source: ThirdParty/HSL/trunk/configure @ 93

Last change on this file since 93 was 93, checked in by andreasw, 14 years ago

updated according to changes in BuildTools?

  • Property svn:executable set to *
File size: 686.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 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='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyHSL 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT 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 COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
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_ADD_FFLAGS_set=${ADD_FFLAGS+set}
917ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
918ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
919ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
920ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
921ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
922ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
923ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
924ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
925ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
926ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
927ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
928ac_env_F77_set=${F77+set}
929ac_env_F77_value=$F77
930ac_cv_env_F77_set=${F77+set}
931ac_cv_env_F77_value=$F77
932ac_env_FFLAGS_set=${FFLAGS+set}
933ac_env_FFLAGS_value=$FFLAGS
934ac_cv_env_FFLAGS_set=${FFLAGS+set}
935ac_cv_env_FFLAGS_value=$FFLAGS
936ac_env_LDFLAGS_set=${LDFLAGS+set}
937ac_env_LDFLAGS_value=$LDFLAGS
938ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
939ac_cv_env_LDFLAGS_value=$LDFLAGS
940ac_env_MPIF77_set=${MPIF77+set}
941ac_env_MPIF77_value=$MPIF77
942ac_cv_env_MPIF77_set=${MPIF77+set}
943ac_cv_env_MPIF77_value=$MPIF77
944ac_env_CC_set=${CC+set}
945ac_env_CC_value=$CC
946ac_cv_env_CC_set=${CC+set}
947ac_cv_env_CC_value=$CC
948ac_env_CFLAGS_set=${CFLAGS+set}
949ac_env_CFLAGS_value=$CFLAGS
950ac_cv_env_CFLAGS_set=${CFLAGS+set}
951ac_cv_env_CFLAGS_value=$CFLAGS
952ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953ac_env_CPPFLAGS_value=$CPPFLAGS
954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972
973#
974# Report the --help message.
975#
976if test "$ac_init_help" = "long"; then
977  # Omit some internal or obsolete options to make the list less imposing.
978  # This message is too long to be a string in the A/UX 3.1 sh.
979  cat <<_ACEOF
980\`configure' configures ThirdPartyHSL 0.0 to adapt to many kinds of systems.
981
982Usage: $0 [OPTION]... [VAR=VALUE]...
983
984To assign environment variables (e.g., CC, CFLAGS...), specify them as
985VAR=VALUE.  See below for descriptions of some of the useful variables.
986
987Defaults for the options are specified in brackets.
988
989Configuration:
990  -h, --help              display this help and exit
991      --help=short        display options specific to this package
992      --help=recursive    display the short help of all the included packages
993  -V, --version           display version information and exit
994  -q, --quiet, --silent   do not print \`checking...' messages
995      --cache-file=FILE   cache test results in FILE [disabled]
996  -C, --config-cache      alias for \`--cache-file=config.cache'
997  -n, --no-create         do not create output files
998      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
999
1000_ACEOF
1001
1002  cat <<_ACEOF
1003Installation directories:
1004  --prefix=PREFIX         install architecture-independent files in PREFIX
1005                          [$ac_default_prefix]
1006  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1007                          [PREFIX]
1008
1009By default, \`make install' will install all the files in
1010\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1011an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1012for instance \`--prefix=\$HOME'.
1013
1014For better control, use the options below.
1015
1016Fine tuning of the installation directories:
1017  --bindir=DIR           user executables [EPREFIX/bin]
1018  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1019  --libexecdir=DIR       program executables [EPREFIX/libexec]
1020  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1021  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1022  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1023  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1024  --libdir=DIR           object code libraries [EPREFIX/lib]
1025  --includedir=DIR       C header files [PREFIX/include]
1026  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1027  --infodir=DIR          info documentation [PREFIX/info]
1028  --mandir=DIR           man documentation [PREFIX/man]
1029_ACEOF
1030
1031  cat <<\_ACEOF
1032
1033Program names:
1034  --program-prefix=PREFIX            prepend PREFIX to installed program names
1035  --program-suffix=SUFFIX            append SUFFIX to installed program names
1036  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1037
1038System types:
1039  --build=BUILD     configure for building on BUILD [guessed]
1040  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1041_ACEOF
1042fi
1043
1044if test -n "$ac_init_help"; then
1045  case $ac_init_help in
1046     short | recursive ) echo "Configuration of ThirdPartyHSL 0.0:";;
1047   esac
1048  cat <<\_ACEOF
1049
1050Optional Features:
1051  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1052  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1053  --enable-debug          compile all projects with debug options tests
1054  --enable-debug-hsl compile this project (HSL) with debug options
1055  --enable-static[=PKGS]
1056                          build static libraries [default=no]
1057  --enable-maintainer-mode  enable make rules and dependencies not useful
1058                          (and sometimes confusing) to the casual installer
1059  --disable-dependency-tracking  speeds up one-time build
1060  --enable-dependency-tracking   do not reject slow dependency extractors
1061  --enable-shared[=PKGS]
1062                          build shared libraries [default=yes]
1063  --enable-fast-install[=PKGS]
1064                          optimize for fast installation [default=yes]
1065  --disable-libtool-lock  avoid locking (might break parallel builds)
1066
1067Optional Packages:
1068  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1069  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1070  --with-hsl-verbosity specify the debug verbosity level for project HSL
1071  --with-hsl-checklevel specify the sanity check level for project HSL
1072  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1073  --with-pic              try to use only PIC/non-PIC objects [default=use
1074                          both]
1075  --with-tags[=TAGS]
1076                          include additional configurations [automatic]
1077
1078Some influential environment variables:
1079  ADD_FFLAGS  Additional Fortran compiler options
1080  DBG_FFLAGS  Debug Fortran compiler options
1081  OPT_FFLAGS  Optimize Fortran compiler options
1082  F77         Fortran 77 compiler command
1083  FFLAGS      Fortran 77 compiler flags
1084  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1085              nonstandard directory <lib dir>
1086  MPIF77      Fortran MPI Compiler
1087  CC          C compiler command
1088  CFLAGS      C compiler flags
1089  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090              headers in a nonstandard directory <include dir>
1091  CPP         C preprocessor
1092  CXX         C++ compiler command
1093  CXXFLAGS    C++ compiler flags
1094  CXXCPP      C++ preprocessor
1095
1096Use these variables to override the choices made by `configure' or to help
1097it to find libraries and programs with nonstandard names/locations.
1098
1099Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1100_ACEOF
1101fi
1102
1103if test "$ac_init_help" = "recursive"; then
1104  # If there are subdirs, report their specific --help.
1105  ac_popdir=`pwd`
1106  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1107    test -d $ac_dir || continue
1108    ac_builddir=.
1109
1110if test "$ac_dir" != .; then
1111  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1112  # A "../" for each directory in $ac_dir_suffix.
1113  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114else
1115  ac_dir_suffix= ac_top_builddir=
1116fi
1117
1118case $srcdir in
1119  .)  # No --srcdir option.  We are building in place.
1120    ac_srcdir=.
1121    if test -z "$ac_top_builddir"; then
1122       ac_top_srcdir=.
1123    else
1124       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125    fi ;;
1126  [\\/]* | ?:[\\/]* )  # Absolute path.
1127    ac_srcdir=$srcdir$ac_dir_suffix;
1128    ac_top_srcdir=$srcdir ;;
1129  *) # Relative path.
1130    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1131    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1132esac
1133
1134# Do not use `cd foo && pwd` to compute absolute paths, because
1135# the directories may not exist.
1136case `pwd` in
1137.) ac_abs_builddir="$ac_dir";;
1138*)
1139  case "$ac_dir" in
1140  .) ac_abs_builddir=`pwd`;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1142  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1143  esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_builddir=${ac_top_builddir}.;;
1147*)
1148  case ${ac_top_builddir}. in
1149  .) ac_abs_top_builddir=$ac_abs_builddir;;
1150  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1151  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1152  esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_srcdir=$ac_srcdir;;
1156*)
1157  case $ac_srcdir in
1158  .) ac_abs_srcdir=$ac_abs_builddir;;
1159  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1160  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1161  esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_srcdir=$ac_top_srcdir;;
1165*)
1166  case $ac_top_srcdir in
1167  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1169  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1170  esac;;
1171esac
1172
1173    cd $ac_dir
1174    # Check for guested configure; otherwise get Cygnus style configure.
1175    if test -f $ac_srcdir/configure.gnu; then
1176      echo
1177      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1178    elif test -f $ac_srcdir/configure; then
1179      echo
1180      $SHELL $ac_srcdir/configure  --help=recursive
1181    elif test -f $ac_srcdir/configure.ac ||
1182           test -f $ac_srcdir/configure.in; then
1183      echo
1184      $ac_configure --help
1185    else
1186      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187    fi
1188    cd $ac_popdir
1189  done
1190fi
1191
1192test -n "$ac_init_help" && exit 0
1193if $ac_init_version; then
1194  cat <<\_ACEOF
1195ThirdPartyHSL configure 0.0
1196generated by GNU Autoconf 2.59
1197
1198Copyright (C) 2003 Free Software Foundation, Inc.
1199This configure script is free software; the Free Software Foundation
1200gives unlimited permission to copy, distribute and modify it.
1201
1202
1203Copyright 2006 International Business Machines and others.
1204All Rights Reserved.
1205This file is part of the open source package Coin which is distributed
1206under the Common Public License.
1207_ACEOF
1208  exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
1215It was created by ThirdPartyHSL $as_me 0.0, which was
1216generated by GNU Autoconf 2.59.  Invocation command line was
1217
1218  $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1235
1236/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1237/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1240/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1241/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1242/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249  IFS=$as_save_IFS
1250  test -z "$as_dir" && as_dir=.
1251  echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278  for ac_arg
1279  do
1280    case $ac_arg in
1281    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283    | -silent | --silent | --silen | --sile | --sil)
1284      continue ;;
1285    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287    esac
1288    case $ac_pass in
1289    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290    2)
1291      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292      if test $ac_must_keep_next = true; then
1293        ac_must_keep_next=false # Got value, back to normal.
1294      else
1295        case $ac_arg in
1296          *=* | --config-cache | -C | -disable-* | --disable-* \
1297          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299          | -with-* | --with-* | -without-* | --without-* | --x)
1300            case "$ac_configure_args0 " in
1301              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302            esac
1303            ;;
1304          -* ) ac_must_keep_next=true ;;
1305        esac
1306      fi
1307      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308      # Get rid of the leading space.
1309      ac_sep=" "
1310      ;;
1311    esac
1312  done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log.  We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323  # Save into config.log some information that might help in debugging.
1324  {
1325    echo
1326
1327    cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332    echo
1333    # The following way of writing the cache mishandles newlines in values,
1334{
1335  (set) 2>&1 |
1336    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337    *ac_space=\ *)
1338      sed -n \
1339        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1341      ;;
1342    *)
1343      sed -n \
1344        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1345      ;;
1346    esac;
1347}
1348    echo
1349
1350    cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355    echo
1356    for ac_var in $ac_subst_vars
1357    do
1358      eval ac_val=$`echo $ac_var`
1359      echo "$ac_var='"'"'$ac_val'"'"'"
1360    done | sort
1361    echo
1362
1363    if test -n "$ac_subst_files"; then
1364      cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369      echo
1370      for ac_var in $ac_subst_files
1371      do
1372        eval ac_val=$`echo $ac_var`
1373        echo "$ac_var='"'"'$ac_val'"'"'"
1374      done | sort
1375      echo
1376    fi
1377
1378    if test -s confdefs.h; then
1379      cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384      echo
1385      sed "/^$/d" confdefs.h | sort
1386      echo
1387    fi
1388    test "$ac_signal" != 0 &&
1389      echo "$as_me: caught signal $ac_signal"
1390    echo "$as_me: exit $exit_status"
1391  } >&5
1392  rm -f core *.core &&
1393  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394    exit $exit_status
1395     ' 0
1396for ac_signal in 1 2 13 15; do
1397  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436  if test "x$prefix" != xNONE; then
1437    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438  else
1439    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440  fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443  if test -r "$ac_site_file"; then
1444    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446    sed 's/^/| /' "$ac_site_file" >&5
1447    . "$ac_site_file"
1448  fi
1449done
1450
1451if test -r "$cache_file"; then
1452  # Some versions of bash will fail to source /dev/null (special
1453  # files actually), so we avoid doing that.
1454  if test -f "$cache_file"; then
1455    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457    case $cache_file in
1458      [\\/]* | ?:[\\/]* ) . $cache_file;;
1459      *)                      . ./$cache_file;;
1460    esac
1461  fi
1462else
1463  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465  >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
1472               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1473  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474  eval ac_new_set=\$ac_env_${ac_var}_set
1475  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476  eval ac_new_val="\$ac_env_${ac_var}_value"
1477  case $ac_old_set,$ac_new_set in
1478    set,)
1479      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481      ac_cache_corrupted=: ;;
1482    ,set)
1483      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485      ac_cache_corrupted=: ;;
1486    ,);;
1487    *)
1488      if test "x$ac_old_val" != "x$ac_new_val"; then
1489        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1491        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1492echo "$as_me:   former value:  $ac_old_val" >&2;}
1493        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1494echo "$as_me:   current value: $ac_new_val" >&2;}
1495        ac_cache_corrupted=:
1496      fi;;
1497  esac
1498  # Pass precious variables to config.status.
1499  if test "$ac_new_set" = set; then
1500    case $ac_new_val in
1501    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503    *) ac_arg=$ac_var=$ac_new_val ;;
1504    esac
1505    case " $ac_configure_args " in
1506      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1507      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508    esac
1509  fi
1510done
1511if $ac_cache_corrupted; then
1512  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516   { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554# List one file in the package so that the configure script can test
1555# whether the package is actually there
1556# Here we don't know yet which files are actually provided...
1557
1558
1559# Where should everything be installed by default?  Here, we want it
1560# to be installed directly in 'bin', 'lib', 'include' subdirectories
1561# of the directory where configure is run.  The default would be
1562# /usr/local.
1563
1564
1565# Initialize the ADDLIBS variable
1566ADDLIBS='-lm'
1567
1568
1569# Initialize the FADDLIBS variable (which is to be used with a fortran
1570# compiler and will not include FLIBS)
1571FADDLIBS=
1572
1573
1574# A useful makefile conditional that is always false
1575
1576
1577if false; then
1578  ALWAYS_FALSE_TRUE=
1579  ALWAYS_FALSE_FALSE='#'
1580else
1581  ALWAYS_FALSE_TRUE='#'
1582  ALWAYS_FALSE_FALSE=
1583fi
1584
1585
1586# We set the following variable so that we know later in AC_COIN_FINALIZE
1587# that we are in a project main directory
1588coin_projectdir=yes
1589
1590
1591#############################################################################
1592#                         Standard build tool stuff                         #
1593#############################################################################
1594
1595# Get the system type
1596ac_aux_dir=
1597for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1598  if test -f $ac_dir/install-sh; then
1599    ac_aux_dir=$ac_dir
1600    ac_install_sh="$ac_aux_dir/install-sh -c"
1601    break
1602  elif test -f $ac_dir/install.sh; then
1603    ac_aux_dir=$ac_dir
1604    ac_install_sh="$ac_aux_dir/install.sh -c"
1605    break
1606  elif test -f $ac_dir/shtool; then
1607    ac_aux_dir=$ac_dir
1608    ac_install_sh="$ac_aux_dir/shtool install -c"
1609    break
1610  fi
1611done
1612if test -z "$ac_aux_dir"; then
1613  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1614echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1615   { (exit 1); exit 1; }; }
1616fi
1617ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1618ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1619ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1620
1621# Make sure we can run config.sub.
1622$ac_config_sub sun4 >/dev/null 2>&1 ||
1623  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1624echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1625   { (exit 1); exit 1; }; }
1626
1627echo "$as_me:$LINENO: checking build system type" >&5
1628echo $ECHO_N "checking build system type... $ECHO_C" >&6
1629if test "${ac_cv_build+set}" = set; then
1630  echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632  ac_cv_build_alias=$build_alias
1633test -z "$ac_cv_build_alias" &&
1634  ac_cv_build_alias=`$ac_config_guess`
1635test -z "$ac_cv_build_alias" &&
1636  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1637echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1638   { (exit 1); exit 1; }; }
1639ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1640  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1642   { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1646echo "${ECHO_T}$ac_cv_build" >&6
1647build=$ac_cv_build
1648build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653
1654# Check if user wants to produce debugging code
1655
1656echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1657echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1658
1659# Check whether --enable-debug or --disable-debug was given.
1660if test "${enable_debug+set}" = set; then
1661  enableval="$enable_debug"
1662  case "${enableval}" in
1663   yes) coin_debug_compile=true
1664        enable_shared=no
1665        ;;
1666   no)  coin_debug_compile=false
1667        ;;
1668   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1669echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1670   { (exit 1); exit 1; }; }
1671        ;;
1672esac
1673else
1674  coin_debug_compile=false
1675fi;
1676
1677# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1678if test "${enable_debug_hsl+set}" = set; then
1679  enableval="$enable_debug_hsl"
1680  case "${enableval}" in
1681    yes) coin_debug_compile=true
1682         enable_shared=no
1683         ;;
1684    no)  coin_debug_compile=false
1685         ;;
1686    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1687echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1688   { (exit 1); exit 1; }; }
1689         ;;
1690 esac
1691else
1692  :
1693fi;
1694
1695 # m4_ifvaln([HSL],
1696
1697if test $coin_debug_compile = true; then
1698  echo "$as_me:$LINENO: result: yes" >&5
1699echo "${ECHO_T}yes" >&6
1700else
1701  echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705
1706# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1707if test "${with_hsl_verbosity+set}" = set; then
1708  withval="$with_hsl_verbosity"
1709  coin_hsl_verbosity=$withval
1710else
1711  coin_hsl_verbosity=0
1712fi;
1713
1714cat >>confdefs.h <<_ACEOF
1715#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1716_ACEOF
1717
1718
1719
1720# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1721if test "${with_hsl_checklevel+set}" = set; then
1722  withval="$with_hsl_checklevel"
1723  coin_hsl_checklevel=$withval
1724else
1725  coin_hsl_checklevel=0
1726fi;
1727
1728cat >>confdefs.h <<_ACEOF
1729#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1730_ACEOF
1731
1732
1733# We use the following variable to have a string with the upper case
1734# version of the project name
1735COIN_PRJCT=HSL
1736
1737
1738 # m4_ifvaln([HSL],
1739
1740
1741
1742# Get the name of the Fortran compiler and appropriate compiler options
1743case $build in
1744  *-mingw*)
1745    if test "${LD+set}" = set; then :; else
1746      LD=link
1747    fi
1748    ;;
1749esac
1750
1751
1752
1753ac_ext=f
1754ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1755ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1757
1758
1759
1760
1761
1762
1763coin_has_f77=yes
1764
1765save_fflags="$FFLAGS"
1766case $build in
1767  *-cygwin* | *-mingw*)
1768             comps="gfortran g77 ifort fl32" ;;
1769  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
1770esac
1771
1772# We delete the cached value, since the test might not have been
1773# performed with out choise of compilers earlier
1774$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
1775ac_ext=f
1776ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1777ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1778ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1779if test -n "$ac_tool_prefix"; then
1780  for ac_prog in $comps
1781  do
1782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1784echo "$as_me:$LINENO: checking for $ac_word" >&5
1785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786if test "${ac_cv_prog_F77+set}" = set; then
1787  echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789  if test -n "$F77"; then
1790  ac_cv_prog_F77="$F77" # Let the user override the test.
1791else
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795  IFS=$as_save_IFS
1796  test -z "$as_dir" && as_dir=.
1797  for ac_exec_ext in '' $ac_executable_extensions; do
1798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801    break 2
1802  fi
1803done
1804done
1805
1806fi
1807fi
1808F77=$ac_cv_prog_F77
1809if test -n "$F77"; then
1810  echo "$as_me:$LINENO: result: $F77" >&5
1811echo "${ECHO_T}$F77" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817    test -n "$F77" && break
1818  done
1819fi
1820if test -z "$F77"; then
1821  ac_ct_F77=$F77
1822  for ac_prog in $comps
1823do
1824  # Extract the first word of "$ac_prog", so it can be a program name with args.
1825set dummy $ac_prog; ac_word=$2
1826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1829  echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831  if test -n "$ac_ct_F77"; then
1832  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837  IFS=$as_save_IFS
1838  test -z "$as_dir" && as_dir=.
1839  for ac_exec_ext in '' $ac_executable_extensions; do
1840  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841    ac_cv_prog_ac_ct_F77="$ac_prog"
1842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843    break 2
1844  fi
1845done
1846done
1847
1848fi
1849fi
1850ac_ct_F77=$ac_cv_prog_ac_ct_F77
1851if test -n "$ac_ct_F77"; then
1852  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1853echo "${ECHO_T}$ac_ct_F77" >&6
1854else
1855  echo "$as_me:$LINENO: result: no" >&5
1856echo "${ECHO_T}no" >&6
1857fi
1858
1859  test -n "$ac_ct_F77" && break
1860done
1861
1862  F77=$ac_ct_F77
1863fi
1864
1865
1866# Provide some information about the compiler.
1867echo "$as_me:1867:" \
1868     "checking for Fortran 77 compiler version" >&5
1869ac_compiler=`set X $ac_compile; echo $2`
1870{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1871  (eval $ac_compiler --version </dev/null >&5) 2>&5
1872  ac_status=$?
1873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874  (exit $ac_status); }
1875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1876  (eval $ac_compiler -v </dev/null >&5) 2>&5
1877  ac_status=$?
1878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879  (exit $ac_status); }
1880{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1881  (eval $ac_compiler -V </dev/null >&5) 2>&5
1882  ac_status=$?
1883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884  (exit $ac_status); }
1885rm -f a.out
1886
1887cat >conftest.$ac_ext <<_ACEOF
1888      program main
1889
1890      end
1891_ACEOF
1892ac_clean_files_save=$ac_clean_files
1893ac_clean_files="$ac_clean_files a.out a.exe b.out"
1894# Try to create an executable without -o first, disregard a.out.
1895# It will help us diagnose broken compilers, and finding out an intuition
1896# of exeext.
1897echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
1898echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
1899ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1900if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1901  (eval $ac_link_default) 2>&5
1902  ac_status=$?
1903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904  (exit $ac_status); }; then
1905  # Find the output, starting from the most likely.  This scheme is
1906# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907# resort.
1908
1909# Be careful to initialize this variable, since it used to be cached.
1910# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1911ac_cv_exeext=
1912# b.out is created by i960 compilers.
1913for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914do
1915  test -f "$ac_file" || continue
1916  case $ac_file in
1917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1918        ;;
1919    conftest.$ac_ext )
1920        # This is the source file.
1921        ;;
1922    [ab].out )
1923        # We found the default executable, but exeext='' is most
1924        # certainly right.
1925        break;;
1926    *.* )
1927        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1928        # FIXME: I believe we export ac_cv_exeext for Libtool,
1929        # but it would be cool to find out if it's true.  Does anybody
1930        # maintain Libtool? --akim.
1931        export ac_cv_exeext
1932        break;;
1933    * )
1934        break;;
1935  esac
1936done
1937else
1938  echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941{ { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: Fortran 77 compiler cannot create executables
1944See \`config.log' for more details." >&2;}
1945   { (exit 77); exit 77; }; }
1946fi
1947
1948ac_exeext=$ac_cv_exeext
1949echo "$as_me:$LINENO: result: $ac_file" >&5
1950echo "${ECHO_T}$ac_file" >&6
1951
1952# Check the compiler produces executables we can run.  If not, either
1953# the compiler is broken, or we cross compile.
1954echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
1955echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
1956# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1957# If not cross compiling, check that we can run a simple program.
1958if test "$cross_compiling" != yes; then
1959  if { ac_try='./$ac_file'
1960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961  (eval $ac_try) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }; }; then
1965    cross_compiling=no
1966  else
1967    if test "$cross_compiling" = maybe; then
1968        cross_compiling=yes
1969    else
1970        { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
1971If you meant to cross compile, use \`--host'.
1972See \`config.log' for more details." >&5
1973echo "$as_me: error: cannot run Fortran 77 compiled programs.
1974If you meant to cross compile, use \`--host'.
1975See \`config.log' for more details." >&2;}
1976   { (exit 1); exit 1; }; }
1977    fi
1978  fi
1979fi
1980echo "$as_me:$LINENO: result: yes" >&5
1981echo "${ECHO_T}yes" >&6
1982
1983rm -f a.out a.exe conftest$ac_cv_exeext b.out
1984ac_clean_files=$ac_clean_files_save
1985# Check the compiler produces executables we can run.  If not, either
1986# the compiler is broken, or we cross compile.
1987echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1988echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1989echo "$as_me:$LINENO: result: $cross_compiling" >&5
1990echo "${ECHO_T}$cross_compiling" >&6
1991
1992echo "$as_me:$LINENO: checking for suffix of executables" >&5
1993echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1995  (eval $ac_link) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }; then
1999  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2000# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2001# work properly (i.e., refer to `conftest.exe'), while it won't with
2002# `rm'.
2003for ac_file in conftest.exe conftest conftest.*; do
2004  test -f "$ac_file" || continue
2005  case $ac_file in
2006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2007    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2008          export ac_cv_exeext
2009          break;;
2010    * ) break;;
2011  esac
2012done
2013else
2014  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2015See \`config.log' for more details." >&5
2016echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2017See \`config.log' for more details." >&2;}
2018   { (exit 1); exit 1; }; }
2019fi
2020
2021rm -f conftest$ac_cv_exeext
2022echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2023echo "${ECHO_T}$ac_cv_exeext" >&6
2024
2025rm -f conftest.$ac_ext
2026EXEEXT=$ac_cv_exeext
2027ac_exeext=$EXEEXT
2028echo "$as_me:$LINENO: checking for suffix of object files" >&5
2029echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2030if test "${ac_cv_objext+set}" = set; then
2031  echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033  cat >conftest.$ac_ext <<_ACEOF
2034      program main
2035
2036      end
2037_ACEOF
2038rm -f conftest.o conftest.obj
2039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040  (eval $ac_compile) 2>&5
2041  ac_status=$?
2042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043  (exit $ac_status); }; then
2044  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2045  case $ac_file in
2046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2048       break;;
2049  esac
2050done
2051else
2052  echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058See \`config.log' for more details." >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062rm -f conftest.$ac_cv_objext conftest.$ac_ext
2063fi
2064echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065echo "${ECHO_T}$ac_cv_objext" >&6
2066OBJEXT=$ac_cv_objext
2067ac_objext=$OBJEXT
2068# If we don't use `.F' as extension, the preprocessor is not run on the
2069# input file.  (Note that this only needs to work for GNU compilers.)
2070ac_save_ext=$ac_ext
2071ac_ext=F
2072echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2073echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2074if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2075  echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077  cat >conftest.$ac_ext <<_ACEOF
2078      program main
2079#ifndef __GNUC__
2080       choke me
2081#endif
2082
2083      end
2084_ACEOF
2085rm -f conftest.$ac_objext
2086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087  (eval $ac_compile) 2>conftest.er1
2088  ac_status=$?
2089  grep -v '^ *+' conftest.er1 >conftest.err
2090  rm -f conftest.er1
2091  cat conftest.err >&5
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); } &&
2094         { ac_try='test -z "$ac_f77_werror_flag"
2095                         || test ! -s conftest.err'
2096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097  (eval $ac_try) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }; } &&
2101         { ac_try='test -s conftest.$ac_objext'
2102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103  (eval $ac_try) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }; }; then
2107  ac_compiler_gnu=yes
2108else
2109  echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112ac_compiler_gnu=no
2113fi
2114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2115ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2116
2117fi
2118echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2119echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2120ac_ext=$ac_save_ext
2121ac_test_FFLAGS=${FFLAGS+set}
2122ac_save_FFLAGS=$FFLAGS
2123FFLAGS=
2124echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2125echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2126if test "${ac_cv_prog_f77_g+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  FFLAGS=-g
2130cat >conftest.$ac_ext <<_ACEOF
2131      program main
2132
2133      end
2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137  (eval $ac_compile) 2>conftest.er1
2138  ac_status=$?
2139  grep -v '^ *+' conftest.er1 >conftest.err
2140  rm -f conftest.er1
2141  cat conftest.err >&5
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); } &&
2144         { ac_try='test -z "$ac_f77_werror_flag"
2145                         || test ! -s conftest.err'
2146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147  (eval $ac_try) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; } &&
2151         { ac_try='test -s conftest.$ac_objext'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; }; then
2157  ac_cv_prog_f77_g=yes
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162ac_cv_prog_f77_g=no
2163fi
2164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165
2166fi
2167echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2168echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2169if test "$ac_test_FFLAGS" = set; then
2170  FFLAGS=$ac_save_FFLAGS
2171elif test $ac_cv_prog_f77_g = yes; then
2172  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2173    FFLAGS="-g -O2"
2174  else
2175    FFLAGS="-g"
2176  fi
2177else
2178  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2179    FFLAGS="-O2"
2180  else
2181    FFLAGS=
2182  fi
2183fi
2184
2185G77=`test $ac_compiler_gnu = yes && echo yes`
2186ac_ext=f
2187ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2188ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2190
2191FFLAGS="$save_fflags"
2192
2193# Check if a project specific FFLAGS variable has been set
2194if test x$COIN_PRJCT != x; then
2195  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
2196  if test x$coin_tmp = xset; then
2197    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
2198  fi
2199fi
2200
2201if test x"$FFLAGS" = x; then
2202
2203  coin_add_fflags=
2204  coin_opt_fflags=
2205  coin_dbg_fflags=
2206  coin_warn_fflags=
2207
2208  if test "$G77" = "yes"; then
2209    coin_opt_fflags="-O3 -fomit-frame-pointer"
2210    coin_add_fflags="-pipe"
2211    coin_dbg_fflags="-g"
2212    case $build in
2213      *-cygwin*)
2214        FFLAGS="-mno-cygwin"
2215        cat >conftest.$ac_ext <<_ACEOF
2216      program main
2217      write(*,*) 'Hello world'
2218      end
2219_ACEOF
2220rm -f conftest.$ac_objext conftest$ac_exeext
2221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2222  (eval $ac_link) 2>conftest.er1
2223  ac_status=$?
2224  grep -v '^ *+' conftest.er1 >conftest.err
2225  rm -f conftest.er1
2226  cat conftest.err >&5
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); } &&
2229         { ac_try='test -z "$ac_f77_werror_flag"
2230                         || test ! -s conftest.err'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; } &&
2236         { ac_try='test -s conftest$ac_exeext'
2237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238  (eval $ac_try) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; }; then
2242  coin_add_fflags="-mno-cygwin $coin_add_fflags"
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247fi
2248rm -f conftest.err conftest.$ac_objext \
2249      conftest$ac_exeext conftest.$ac_ext
2250        FFLAGS=
2251      ;;
2252    esac
2253  else
2254    case $build in
2255      *-cygwin* | *-mingw*)
2256        case $F77 in
2257          ifort* | */ifort*)
2258            coin_opt_fflags='-O3'
2259            coin_add_fflags='-nologo -MT'
2260            coin_dbg_fflags='-debug'
2261          ;;
2262        esac
2263        ;;
2264      *-linux-*)
2265        case $F77 in
2266          ifc* | */ifc* | ifort* | */ifort*)
2267            coin_opt_fflags="-O3 -ip"
2268            coin_add_fflags="-cm -w90 -w95"
2269            coin_dbg_fflags="-g -CA -CB -CS"
2270            # Check if -i_dynamic is necessary (for new glibc library)
2271            FFLAGS=
2272            cat >conftest.$ac_ext <<_ACEOF
2273      program main
2274      write(*,*) 'Hello world'
2275      end
2276_ACEOF
2277rm -f conftest.$ac_objext conftest$ac_exeext
2278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2279  (eval $ac_link) 2>conftest.er1
2280  ac_status=$?
2281  grep -v '^ *+' conftest.er1 >conftest.err
2282  rm -f conftest.er1
2283  cat conftest.err >&5
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); } &&
2286         { ac_try='test -z "$ac_f77_werror_flag"
2287                         || test ! -s conftest.err'
2288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289  (eval $ac_try) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; } &&
2293         { ac_try='test -s conftest$ac_exeext'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; }; then
2299  :
2300else
2301  echo "$as_me: failed program was:" >&5
2302sed 's/^/| /' conftest.$ac_ext >&5
2303
2304coin_add_fflags="-i_dynamic $coin_add_fflags"
2305fi
2306rm -f conftest.err conftest.$ac_objext \
2307      conftest$ac_exeext conftest.$ac_ext
2308            ;;
2309          pgf77* | */pgf77* | pgf90* | */pgf90*)
2310            coin_opt_fflags="-fast"
2311            coin_add_fflags="-Kieee -pc 64"
2312            coin_dbg_fflags="-g"
2313          ;;
2314        esac
2315        ;;
2316      *-ibm-*)
2317        case "$F77" in
2318          xlf* | */xlf* | mpxlf* | */mpxlf* )
2319            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2320            coin_add_fflags="-bmaxdata:0x80000000"
2321            coin_dbg_fflags="-g -C"
2322            ;;
2323        esac
2324        ;;
2325      *-hp-*)
2326        coin_opt_fflags="+O3"
2327        coin_add_fflags="+U77"
2328        coin_dbg_fflags="-C -g"
2329        ;;
2330      *-sun-*)
2331        coin_opt_fflags="-O4"
2332        coin_dbg_fflags="-g"
2333        ;;
2334      *-sgi-*)
2335        coin_opt_fflags="-O5 -OPT:Olimit=0"
2336        coin_dbg_fflags="-g"
2337        ;;
2338    esac
2339  fi
2340
2341  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
2342    coin_dbg_fflags="-g"
2343  fi
2344
2345  if test -z "$coin_opt_fflags"; then
2346    # Try if -O option works if nothing else is set
2347    FFLAGS=-O
2348    cat >conftest.$ac_ext <<_ACEOF
2349      program main
2350      integer i
2351      end
2352_ACEOF
2353rm -f conftest.$ac_objext conftest$ac_exeext
2354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355  (eval $ac_link) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_f77_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest$ac_exeext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  coin_opt_fflags="-O"
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext \
2382      conftest$ac_exeext conftest.$ac_ext
2383  fi
2384
2385  if test x${DBG_FFLAGS+set} != xset; then
2386    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
2387  fi
2388  if test x${OPT_FFLAGS+set} != xset; then
2389    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags -DNDEBUG $coin_warn_fflags"
2390  fi
2391
2392  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
2393  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
2394
2395  if test "$coin_debug_compile" = "true"; then
2396    FFLAGS="$DBG_FFLAGS"
2397  else
2398    FFLAGS="$OPT_FFLAGS"
2399  fi
2400else
2401  FFLAGS="$FFLAGS $ADD_FFLAGS"
2402  if test x${DBG_FFLAGS+set} != xset; then
2403    DBG_FFLAGS="$FFLAGS"
2404  fi
2405  if test x${OPT_FFLAGS+set} != xset; then
2406    OPT_FFLAGS="$FFLAGS"
2407  fi
2408fi
2409
2410# Try if FFLAGS works
2411cat >conftest.$ac_ext <<_ACEOF
2412      program main
2413      integer i
2414      end
2415_ACEOF
2416rm -f conftest.$ac_objext conftest$ac_exeext
2417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2418  (eval $ac_link) 2>conftest.er1
2419  ac_status=$?
2420  grep -v '^ *+' conftest.er1 >conftest.err
2421  rm -f conftest.er1
2422  cat conftest.err >&5
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); } &&
2425         { ac_try='test -z "$ac_f77_werror_flag"
2426                         || test ! -s conftest.err'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; } &&
2432         { ac_try='test -s conftest$ac_exeext'
2433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434  (eval $ac_try) 2>&5
2435  ac_status=$?
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); }; }; then
2438  :
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443FFLAGS=
2444fi
2445rm -f conftest.err conftest.$ac_objext \
2446      conftest$ac_exeext conftest.$ac_ext
2447if test -z "$FFLAGS"; then
2448  { 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
2449echo "$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;}
2450  FFLAGS='-O'
2451  cat >conftest.$ac_ext <<_ACEOF
2452      program main
2453      integer i
2454      end
2455_ACEOF
2456rm -f conftest.$ac_objext conftest$ac_exeext
2457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2458  (eval $ac_link) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465         { ac_try='test -z "$ac_f77_werror_flag"
2466                         || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472         { ac_try='test -s conftest$ac_exeext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  :
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483FFLAGS=
2484fi
2485rm -f conftest.err conftest.$ac_objext \
2486      conftest$ac_exeext conftest.$ac_ext
2487  if test -z "$FFLAGS"; then
2488    { 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
2489echo "$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;}
2490  fi
2491fi
2492
2493{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
2494echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
2495
2496
2497if test x"$MPIF77" = x; then :; else
2498  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
2499echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
2500  F77="$MPIF77"
2501fi
2502
2503case "$F77" in
2504  ifort*)
2505    case $build in
2506  *-mingw*)
2507    if test "${LD+set}" = set; then :; else
2508      LD=link
2509    fi
2510    ;;
2511esac
2512
2513    ;;
2514esac
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523
2524# Need egrep later on
2525echo "$as_me:$LINENO: checking for egrep" >&5
2526echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2527if test "${ac_cv_prog_egrep+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2531    then ac_cv_prog_egrep='grep -E'
2532    else ac_cv_prog_egrep='egrep'
2533    fi
2534fi
2535echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2536echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2537 EGREP=$ac_cv_prog_egrep
2538
2539
2540
2541# Initialize autotools
2542
2543# On Cygwin, building DLLs doesn't work
2544case $build in
2545  *-cygwin*)
2546    coin_disable_shared=yes
2547    platform=Cygwin
2548  ;;
2549  *-mingw*)
2550    coin_disable_shared=yes
2551    platform="Msys"
2552#    case "$CXX" in
2553#      cl*)
2554#        coin_disable_shared=yes
2555#        platform="Msys with cl"
2556#    ;;
2557#    esac
2558  ;;
2559esac
2560if test x"$coin_disable_shared" = xyes; then
2561  if test x"$enable_shared" = xyes; then
2562    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
2563echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
2564  fi
2565  enable_shared=no
2566fi
2567# By default, we only want the shared objects to be compiled
2568# Check whether --enable-static or --disable-static was given.
2569if test "${enable_static+set}" = set; then
2570  enableval="$enable_static"
2571  p=${PACKAGE-default}
2572    case $enableval in
2573    yes) enable_static=yes ;;
2574    no) enable_static=no ;;
2575    *)
2576     enable_static=no
2577      # Look at the argument we got.  We use all the common list separators.
2578      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2579      for pkg in $enableval; do
2580        IFS="$lt_save_ifs"
2581        if test "X$pkg" = "X$p"; then
2582          enable_static=yes
2583        fi
2584      done
2585      IFS="$lt_save_ifs"
2586      ;;
2587    esac
2588else
2589  enable_static=no
2590fi;
2591
2592
2593
2594am__api_version="1.9"
2595# Find a good install program.  We prefer a C program (faster),
2596# so one script is as good as another.  But avoid the broken or
2597# incompatible versions:
2598# SysV /etc/install, /usr/sbin/install
2599# SunOS /usr/etc/install
2600# IRIX /sbin/install
2601# AIX /bin/install
2602# AmigaOS /C/install, which installs bootblocks on floppy discs
2603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2604# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2606# OS/2's system install, which has a completely different semantic
2607# ./install, which can be erroneously created by make from ./install.sh.
2608echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2609echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2610if test -z "$INSTALL"; then
2611if test "${ac_cv_path_install+set}" = set; then
2612  echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617  IFS=$as_save_IFS
2618  test -z "$as_dir" && as_dir=.
2619  # Account for people who put trailing slashes in PATH elements.
2620case $as_dir/ in
2621  ./ | .// | /cC/* | \
2622  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2623  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2624  /usr/ucb/* ) ;;
2625  *)
2626    # OSF1 and SCO ODT 3.0 have their own names for install.
2627    # Don't use installbsd from OSF since it installs stuff as root
2628    # by default.
2629    for ac_prog in ginstall scoinst install; do
2630      for ac_exec_ext in '' $ac_executable_extensions; do
2631        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2632          if test $ac_prog = install &&
2633            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634            # AIX install.  It has an incompatible calling convention.
2635            :
2636          elif test $ac_prog = install &&
2637            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638            # program-specific install script used by HP pwplus--don't use.
2639            :
2640          else
2641            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642            break 3
2643          fi
2644        fi
2645      done
2646    done
2647    ;;
2648esac
2649done
2650
2651
2652fi
2653  if test "${ac_cv_path_install+set}" = set; then
2654    INSTALL=$ac_cv_path_install
2655  else
2656    # As a last resort, use the slow shell script.  We don't cache a
2657    # path for INSTALL within a source directory, because that will
2658    # break other packages using the cache if that directory is
2659    # removed, or if the path is relative.
2660    INSTALL=$ac_install_sh
2661  fi
2662fi
2663echo "$as_me:$LINENO: result: $INSTALL" >&5
2664echo "${ECHO_T}$INSTALL" >&6
2665
2666# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2667# It thinks the first close brace ends the variable substitution.
2668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2669
2670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2671
2672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2673
2674echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2675echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2676# Just in case
2677sleep 1
2678echo timestamp > conftest.file
2679# Do `set' in a subshell so we don't clobber the current shell's
2680# arguments.  Must try -L first in case configure is actually a
2681# symlink; some systems play weird games with the mod time of symlinks
2682# (eg FreeBSD returns the mod time of the symlink's containing
2683# directory).
2684if (
2685   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2686   if test "$*" = "X"; then
2687      # -L didn't work.
2688      set X `ls -t $srcdir/configure conftest.file`
2689   fi
2690   rm -f conftest.file
2691   if test "$*" != "X $srcdir/configure conftest.file" \
2692      && test "$*" != "X conftest.file $srcdir/configure"; then
2693
2694      # If neither matched, then we have a broken ls.  This can happen
2695      # if, for instance, CONFIG_SHELL is bash and it inherits a
2696      # broken ls alias from the environment.  This has actually
2697      # happened.  Such a system could not be considered "sane".
2698      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2699alias in your environment" >&5
2700echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2701alias in your environment" >&2;}
2702   { (exit 1); exit 1; }; }
2703   fi
2704
2705   test "$2" = conftest.file
2706   )
2707then
2708   # Ok.
2709   :
2710else
2711   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2712Check your system clock" >&5
2713echo "$as_me: error: newly created file is older than distributed files!
2714Check your system clock" >&2;}
2715   { (exit 1); exit 1; }; }
2716fi
2717echo "$as_me:$LINENO: result: yes" >&5
2718echo "${ECHO_T}yes" >&6
2719test "$program_prefix" != NONE &&
2720  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2724# Double any \ or $.  echo might interpret backslashes.
2725# By default was `s,x,x', remove it if useless.
2726cat <<\_ACEOF >conftest.sed
2727s/[\\$]/&&/g;s/;s,x,x,$//
2728_ACEOF
2729program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2730rm conftest.sed
2731
2732# expand $ac_aux_dir to an absolute path
2733am_aux_dir=`cd $ac_aux_dir && pwd`
2734
2735test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2736# Use eval to expand $SHELL
2737if eval "$MISSING --run true"; then
2738  am_missing_run="$MISSING --run "
2739else
2740  am_missing_run=
2741  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2742echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2743fi
2744
2745if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2746  # We used to keeping the `.' as first argument, in order to
2747  # allow $(mkdir_p) to be used without argument.  As in
2748  #   $(mkdir_p) $(somedir)
2749  # where $(somedir) is conditionally defined.  However this is wrong
2750  # for two reasons:
2751  #  1. if the package is installed by a user who cannot write `.'
2752  #     make install will fail,
2753  #  2. the above comment should most certainly read
2754  #     $(mkdir_p) $(DESTDIR)$(somedir)
2755  #     so it does not work when $(somedir) is undefined and
2756  #     $(DESTDIR) is not.
2757  #  To support the latter case, we have to write
2758  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2759  #  so the `.' trick is pointless.
2760  mkdir_p='mkdir -p --'
2761else
2762  # On NextStep and OpenStep, the `mkdir' command does not
2763  # recognize any option.  It will interpret all options as
2764  # directories to create, and then abort because `.' already
2765  # exists.
2766  for d in ./-p ./--version;
2767  do
2768    test -d $d && rmdir $d
2769  done
2770  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2771  if test -f "$ac_aux_dir/mkinstalldirs"; then
2772    mkdir_p='$(mkinstalldirs)'
2773  else
2774    mkdir_p='$(install_sh) -d'
2775  fi
2776fi
2777
2778for ac_prog in gawk mawk nawk awk
2779do
2780  # Extract the first word of "$ac_prog", so it can be a program name with args.
2781set dummy $ac_prog; ac_word=$2
2782echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784if test "${ac_cv_prog_AWK+set}" = set; then
2785  echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787  if test -n "$AWK"; then
2788  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795  for ac_exec_ext in '' $ac_executable_extensions; do
2796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797    ac_cv_prog_AWK="$ac_prog"
2798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802done
2803
2804fi
2805fi
2806AWK=$ac_cv_prog_AWK
2807if test -n "$AWK"; then
2808  echo "$as_me:$LINENO: result: $AWK" >&5
2809echo "${ECHO_T}$AWK" >&6
2810else
2811  echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813fi
2814
2815  test -n "$AWK" && break
2816done
2817
2818echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2819echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2820set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2821if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824  cat >conftest.make <<\_ACEOF
2825all:
2826        @echo 'ac_maketemp="$(MAKE)"'
2827_ACEOF
2828# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2829eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2830if test -n "$ac_maketemp"; then
2831  eval ac_cv_prog_make_${ac_make}_set=yes
2832else
2833  eval ac_cv_prog_make_${ac_make}_set=no
2834fi
2835rm -f conftest.make
2836fi
2837if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2838  echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
2840  SET_MAKE=
2841else
2842  echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
2844  SET_MAKE="MAKE=${MAKE-make}"
2845fi
2846
2847rm -rf .tst 2>/dev/null
2848mkdir .tst 2>/dev/null
2849if test -d .tst; then
2850  am__leading_dot=.
2851else
2852  am__leading_dot=_
2853fi
2854rmdir .tst 2>/dev/null
2855
2856DEPDIR="${am__leading_dot}deps"
2857
2858          ac_config_commands="$ac_config_commands depfiles"
2859
2860
2861am_make=${MAKE-make}
2862cat > confinc << 'END'
2863am__doit:
2864        @echo done
2865.PHONY: am__doit
2866END
2867# If we don't find an include directive, just comment out the code.
2868echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2869echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2870am__include="#"
2871am__quote=
2872_am_result=none
2873# First try GNU make style include.
2874echo "include confinc" > confmf
2875# We grep out `Entering directory' and `Leaving directory'
2876# messages which can occur if `w' ends up in MAKEFLAGS.
2877# In particular we don't look at `^make:' because GNU make might
2878# be invoked under some other name (usually "gmake"), in which
2879# case it prints its new name instead of `make'.
2880if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2881   am__include=include
2882   am__quote=
2883   _am_result=GNU
2884fi
2885# Now try BSD make style include.
2886if test "$am__include" = "#"; then
2887   echo '.include "confinc"' > confmf
2888   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2889      am__include=.include
2890      am__quote="\""
2891      _am_result=BSD
2892   fi
2893fi
2894
2895
2896echo "$as_me:$LINENO: result: $_am_result" >&5
2897echo "${ECHO_T}$_am_result" >&6
2898rm -f confinc confmf
2899
2900# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2901if test "${enable_dependency_tracking+set}" = set; then
2902  enableval="$enable_dependency_tracking"
2903
2904fi;
2905if test "x$enable_dependency_tracking" != xno; then
2906  am_depcomp="$ac_aux_dir/depcomp"
2907  AMDEPBACKSLASH='\'
2908fi
2909
2910
2911if test "x$enable_dependency_tracking" != xno; then
2912  AMDEP_TRUE=
2913  AMDEP_FALSE='#'
2914else
2915  AMDEP_TRUE='#'
2916  AMDEP_FALSE=
2917fi
2918
2919
2920
2921ac_ext=c
2922ac_cpp='$CPP $CPPFLAGS'
2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926if test -n "$ac_tool_prefix"; then
2927  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929echo "$as_me:$LINENO: checking for $ac_word" >&5
2930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931if test "${ac_cv_prog_CC+set}" = set; then
2932  echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934  if test -n "$CC"; then
2935  ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942  for ac_exec_ext in '' $ac_executable_extensions; do
2943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949done
2950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955  echo "$as_me:$LINENO: result: $CC" >&5
2956echo "${ECHO_T}$CC" >&6
2957else
2958  echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6
2960fi
2961
2962fi
2963if test -z "$ac_cv_prog_CC"; then
2964  ac_ct_CC=$CC
2965  # Extract the first word of "gcc", so it can be a program name with args.
2966set dummy gcc; ac_word=$2
2967echo "$as_me:$LINENO: checking for $ac_word" >&5
2968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972  if test -n "$ac_ct_CC"; then
2973  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978  IFS=$as_save_IFS
2979  test -z "$as_dir" && as_dir=.
2980  for ac_exec_ext in '' $ac_executable_extensions; do
2981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982    ac_cv_prog_ac_ct_CC="gcc"
2983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987done
2988
2989fi
2990fi
2991ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992if test -n "$ac_ct_CC"; then
2993  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994echo "${ECHO_T}$ac_ct_CC" >&6
2995else
2996  echo "$as_me:$LINENO: result: no" >&5
2997echo "${ECHO_T}no" >&6
2998fi
2999
3000  CC=$ac_ct_CC
3001else
3002  CC="$ac_cv_prog_CC"
3003fi
3004
3005if test -z "$CC"; then
3006  if test -n "$ac_tool_prefix"; then
3007  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}cc; ac_word=$2
3009echo "$as_me:$LINENO: checking for $ac_word" >&5
3010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011if test "${ac_cv_prog_CC+set}" = set; then
3012  echo $ECHO_N "(cached) $ECHO_C" >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022  for ac_exec_ext in '' $ac_executable_extensions; do
3023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_CC="${ac_tool_prefix}cc"
3025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029done
3030
3031fi
3032fi
3033CC=$ac_cv_prog_CC
3034if test -n "$CC"; then
3035  echo "$as_me:$LINENO: result: $CC" >&5
3036echo "${ECHO_T}$CC" >&6
3037else
3038  echo "$as_me:$LINENO: result: no" >&5
3039echo "${ECHO_T}no" >&6
3040fi
3041
3042fi
3043if test -z "$ac_cv_prog_CC"; then
3044  ac_ct_CC=$CC
3045  # Extract the first word of "cc", so it can be a program name with args.
3046set dummy cc; ac_word=$2
3047echo "$as_me:$LINENO: checking for $ac_word" >&5
3048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  if test -n "$ac_ct_CC"; then
3053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060  for ac_exec_ext in '' $ac_executable_extensions; do
3061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_ac_ct_CC="cc"
3063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067done
3068
3069fi
3070fi
3071ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072if test -n "$ac_ct_CC"; then
3073  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3074echo "${ECHO_T}$ac_ct_CC" >&6
3075else
3076  echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
3078fi
3079
3080  CC=$ac_ct_CC
3081else
3082  CC="$ac_cv_prog_CC"
3083fi
3084
3085fi
3086if test -z "$CC"; then
3087  # Extract the first word of "cc", so it can be a program name with args.
3088set dummy cc; ac_word=$2
3089echo "$as_me:$LINENO: checking for $ac_word" >&5
3090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091if test "${ac_cv_prog_CC+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  if test -n "$CC"; then
3095  ac_cv_prog_CC="$CC" # Let the user override the test.
3096else
3097  ac_prog_rejected=no
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  test -z "$as_dir" && as_dir=.
3103  for ac_exec_ext in '' $ac_executable_extensions; do
3104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3106       ac_prog_rejected=yes
3107       continue
3108     fi
3109    ac_cv_prog_CC="cc"
3110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114done
3115
3116if test $ac_prog_rejected = yes; then
3117  # We found a bogon in the path, so make sure we never use it.
3118  set dummy $ac_cv_prog_CC
3119  shift
3120  if test $# != 0; then
3121    # We chose a different compiler from the bogus one.
3122    # However, it has the same basename, so the bogon will be chosen
3123    # first if we set CC to just the basename; use the full file name.
3124    shift
3125    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126  fi
3127fi
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132  echo "$as_me:$LINENO: result: $CC" >&5
3133echo "${ECHO_T}$CC" >&6
3134else
3135  echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
3137fi
3138
3139fi
3140if test -z "$CC"; then
3141  if test -n "$ac_tool_prefix"; then
3142  for ac_prog in cl
3143  do
3144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146echo "$as_me:$LINENO: checking for $ac_word" >&5
3147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148if test "${ac_cv_prog_CC+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  if test -n "$CC"; then
3152  ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159  for ac_exec_ext in '' $ac_executable_extensions; do
3160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166done
3167
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
3172  echo "$as_me:$LINENO: result: $CC" >&5
3173echo "${ECHO_T}$CC" >&6
3174else
3175  echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177fi
3178
3179    test -n "$CC" && break
3180  done
3181fi
3182if test -z "$CC"; then
3183  ac_ct_CC=$CC
3184  for ac_prog in cl
3185do
3186  # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; ac_word=$2
3188echo "$as_me:$LINENO: checking for $ac_word" >&5
3189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -n "$ac_ct_CC"; then
3194  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_ac_ct_CC="$ac_prog"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209
3210fi
3211fi
3212ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213if test -n "$ac_ct_CC"; then
3214  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3215echo "${ECHO_T}$ac_ct_CC" >&6
3216else
3217  echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219fi
3220
3221  test -n "$ac_ct_CC" && break
3222done
3223
3224  CC=$ac_ct_CC
3225fi
3226
3227fi
3228
3229
3230test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3231See \`config.log' for more details." >&5
3232echo "$as_me: error: no acceptable C compiler found in \$PATH
3233See \`config.log' for more details." >&2;}
3234   { (exit 1); exit 1; }; }
3235
3236# Provide some information about the compiler.
3237echo "$as_me:$LINENO:" \
3238     "checking for C compiler version" >&5
3239ac_compiler=`set X $ac_compile; echo $2`
3240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3241  (eval $ac_compiler --version </dev/null >&5) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }
3245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3246  (eval $ac_compiler -v </dev/null >&5) 2>&5
3247  ac_status=$?
3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); }
3250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3251  (eval $ac_compiler -V </dev/null >&5) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }
3255
3256echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3257echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3258if test "${ac_cv_c_compiler_gnu+set}" = set; then
3259  echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261  cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h.  */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h.  */
3267
3268int
3269main ()
3270{
3271#ifndef __GNUC__
3272       choke me
3273#endif
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext
3280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281  (eval $ac_compile) 2>conftest.er1
3282  ac_status=$?
3283  grep -v '^ *+' conftest.er1 >conftest.err
3284  rm -f conftest.er1
3285  cat conftest.err >&5
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); } &&
3288         { ac_try='test -z "$ac_c_werror_flag"
3289                         || test ! -s conftest.err'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; } &&
3295         { ac_try='test -s conftest.$ac_objext'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; }; then
3301  ac_compiler_gnu=yes
3302else
3303  echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306ac_compiler_gnu=no
3307fi
3308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309ac_cv_c_compiler_gnu=$ac_compiler_gnu
3310
3311fi
3312echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3313echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3314GCC=`test $ac_compiler_gnu = yes && echo yes`
3315ac_test_CFLAGS=${CFLAGS+set}
3316ac_save_CFLAGS=$CFLAGS
3317CFLAGS="-g"
3318echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3319echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3320if test "${ac_cv_prog_cc_g+set}" = set; then
3321  echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323  cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h.  */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h.  */
3329
3330int
3331main ()
3332{
3333
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340  (eval $ac_compile) 2>conftest.er1
3341  ac_status=$?
3342  grep -v '^ *+' conftest.er1 >conftest.err
3343  rm -f conftest.er1
3344  cat conftest.err >&5
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); } &&
3347         { ac_try='test -z "$ac_c_werror_flag"
3348                         || test ! -s conftest.err'
3349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350  (eval $ac_try) 2>&5
3351  ac_status=$?
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); }; } &&
3354         { ac_try='test -s conftest.$ac_objext'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; }; then
3360  ac_cv_prog_cc_g=yes
3361else
3362  echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365ac_cv_prog_cc_g=no
3366fi
3367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368fi
3369echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3370echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3371if test "$ac_test_CFLAGS" = set; then
3372  CFLAGS=$ac_save_CFLAGS
3373elif test $ac_cv_prog_cc_g = yes; then
3374  if test "$GCC" = yes; then
3375    CFLAGS="-g -O2"
3376  else
3377    CFLAGS="-g"
3378  fi
3379else
3380  if test "$GCC" = yes; then
3381    CFLAGS="-O2"
3382  else
3383    CFLAGS=
3384  fi
3385fi
3386echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3387echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3388if test "${ac_cv_prog_cc_stdc+set}" = set; then
3389  echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391  ac_cv_prog_cc_stdc=no
3392ac_save_CC=$CC
3393cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399#include <stdarg.h>
3400#include <stdio.h>
3401#include <sys/types.h>
3402#include <sys/stat.h>
3403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3404struct buf { int x; };
3405FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406static char *e (p, i)
3407     char **p;
3408     int i;
3409{
3410  return p[i];
3411}
3412static char *f (char * (*g) (char **, int), char **p, ...)
3413{
3414  char *s;
3415  va_list v;
3416  va_start (v,p);
3417  s = g (p, va_arg (v,int));
3418  va_end (v);
3419  return s;
3420}
3421
3422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3423   function prototypes and stuff, but not '\xHH' hex character constants.
3424   These don't provoke an error unfortunately, instead are silently treated
3425   as 'x'.  The following induces an error, until -std1 is added to get
3426   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3427   array size at least.  It's necessary to write '\x00'==0 to get something
3428   that's true only with -std1.  */
3429int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430
3431int test (int i, double x);
3432struct s1 {int (*f) (int a);};
3433struct s2 {int (*f) (double a);};
3434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435int argc;
3436char **argv;
3437int
3438main ()
3439{
3440return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445# Don't try gcc -ansi; that turns off useful extensions and
3446# breaks some systems' header files.
3447# AIX                   -qlanglvl=ansi
3448# Ultrix and OSF/1      -std1
3449# HP-UX 10.20 and later -Ae
3450# HP-UX older versions  -Aa -D_HPUX_SOURCE
3451# SVR4                  -Xc -D__EXTENSIONS__
3452for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3453do
3454  CC="$ac_save_CC $ac_arg"
3455  rm -f conftest.$ac_objext
3456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457  (eval $ac_compile) 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } &&
3464         { ac_try='test -z "$ac_c_werror_flag"
3465                         || test ! -s conftest.err'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; } &&
3471         { ac_try='test -s conftest.$ac_objext'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; }; then
3477  ac_cv_prog_cc_stdc=$ac_arg
3478break
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483fi
3484rm -f conftest.err conftest.$ac_objext
3485done
3486rm -f conftest.$ac_ext conftest.$ac_objext
3487CC=$ac_save_CC
3488
3489fi
3490
3491case "x$ac_cv_prog_cc_stdc" in
3492  x|xno)
3493    echo "$as_me:$LINENO: result: none needed" >&5
3494echo "${ECHO_T}none needed" >&6 ;;
3495  *)
3496    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3498    CC="$CC $ac_cv_prog_cc_stdc" ;;
3499esac
3500
3501# Some people use a C++ compiler to compile C.  Since we use `exit',
3502# in C++ we need to declare it.  In case someone uses the same compiler
3503# for both compiling C and C++ we need to have the C++ compiler decide
3504# the declaration of exit, since it's the most demanding environment.
3505cat >conftest.$ac_ext <<_ACEOF
3506#ifndef __cplusplus
3507  choke me
3508#endif
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512  (eval $ac_compile) 2>conftest.er1
3513  ac_status=$?
3514  grep -v '^ *+' conftest.er1 >conftest.err
3515  rm -f conftest.er1
3516  cat conftest.err >&5
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); } &&
3519         { ac_try='test -z "$ac_c_werror_flag"
3520                         || test ! -s conftest.err'
3521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522  (eval $ac_try) 2>&5
3523  ac_status=$?
3524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525  (exit $ac_status); }; } &&
3526         { ac_try='test -s conftest.$ac_objext'
3527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528  (eval $ac_try) 2>&5
3529  ac_status=$?
3530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); }; }; then
3532  for ac_declaration in \
3533   '' \
3534   'extern "C" void std::exit (int) throw (); using std::exit;' \
3535   'extern "C" void std::exit (int); using std::exit;' \
3536   'extern "C" void exit (int) throw ();' \
3537   'extern "C" void exit (int);' \
3538   'void exit (int);'
3539do
3540  cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h.  */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h.  */
3546$ac_declaration
3547#include <stdlib.h>
3548int
3549main ()
3550{
3551exit (42);
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558  (eval $ac_compile) 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } &&
3565         { ac_try='test -z "$ac_c_werror_flag"
3566                         || test ! -s conftest.err'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; } &&
3572         { ac_try='test -s conftest.$ac_objext'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; }; then
3578  :
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583continue
3584fi
3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586  cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592$ac_declaration
3593int
3594main ()
3595{
3596exit (42);
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603  (eval $ac_compile) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610         { ac_try='test -z "$ac_c_werror_flag"
3611                         || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617         { ac_try='test -s conftest.$ac_objext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  break
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628fi
3629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630done
3631rm -f conftest*
3632if test -n "$ac_declaration"; then
3633  echo '#ifdef __cplusplus' >>confdefs.h
3634  echo $ac_declaration      >>confdefs.h
3635  echo '#endif'             >>confdefs.h
3636fi
3637
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642fi
3643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650depcc="$CC"   am_compiler_list=
3651
3652echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3653echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3654if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3655  echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3658  # We make a subdir and do the tests there.  Otherwise we can end up
3659  # making bogus files that we don't know about and never remove.  For
3660  # instance it was reported that on HP-UX the gcc test will end up
3661  # making a dummy file named `D' -- because `-MD' means `put the output
3662  # in D'.
3663  mkdir conftest.dir
3664  # Copy depcomp to subdir because otherwise we won't find it if we're
3665  # using a relative directory.
3666  cp "$am_depcomp" conftest.dir
3667  cd conftest.dir
3668  # We will build objects and dependencies in a subdirectory because
3669  # it helps to detect inapplicable dependency modes.  For instance
3670  # both Tru64's cc and ICC support -MD to output dependencies as a
3671  # side effect of compilation, but ICC will put the dependencies in
3672  # the current directory while Tru64 will put them in the object
3673  # directory.
3674  mkdir sub
3675
3676  am_cv_CC_dependencies_compiler_type=none
3677  if test "$am_compiler_list" = ""; then
3678     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3679  fi
3680  for depmode in $am_compiler_list; do
3681    # Setup a source with many dependencies, because some compilers
3682    # like to wrap large dependency lists on column 80 (with \), and
3683    # we should not choose a depcomp mode which is confused by this.
3684    #
3685    # We need to recreate these files for each test, as the compiler may
3686    # overwrite some of them when testing with obscure command lines.
3687    # This happens at least with the AIX C compiler.
3688    : > sub/conftest.c
3689    for i in 1 2 3 4 5 6; do
3690      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3691      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3692      # Solaris 8's {/usr,}/bin/sh.
3693      touch sub/conftst$i.h
3694    done
3695    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3696
3697    case $depmode in
3698    nosideeffect)
3699      # after this tag, mechanisms are not by side-effect, so they'll
3700      # only be used when explicitly requested
3701      if test "x$enable_dependency_tracking" = xyes; then
3702        continue
3703      else
3704        break
3705      fi
3706      ;;
3707    none) break ;;
3708    esac
3709    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3710    # mode.  It turns out that the SunPro C++ compiler does not properly
3711    # handle `-M -o', and we need to detect this.
3712    if depmode=$depmode \
3713       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3714       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3715       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3716         >/dev/null 2>conftest.err &&
3717       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3718       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3719       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3720      # icc doesn't choke on unknown options, it will just issue warnings
3721      # or remarks (even with -Werror).  So we grep stderr for any message
3722      # that says an option was ignored or not supported.
3723      # When given -MP, icc 7.0 and 7.1 complain thusly:
3724      #   icc: Command line warning: ignoring option '-M'; no argument required
3725      # The diagnosis changed in icc 8.0:
3726      #   icc: Command line remark: option '-MP' not supported
3727      if (grep 'ignoring option' conftest.err ||
3728          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3729        am_cv_CC_dependencies_compiler_type=$depmode
3730        break
3731      fi
3732    fi
3733  done
3734
3735  cd ..
3736  rm -rf conftest.dir
3737else
3738  am_cv_CC_dependencies_compiler_type=none
3739fi
3740
3741fi
3742echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3743echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3744CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3745
3746
3747
3748if
3749  test "x$enable_dependency_tracking" != xno \
3750  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751  am__fastdepCC_TRUE=
3752  am__fastdepCC_FALSE='#'
3753else
3754  am__fastdepCC_TRUE='#'
3755  am__fastdepCC_FALSE=
3756fi
3757
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
3766if test x"" = x; then
3767  hdr="#include <dlfcn.h>"
3768else
3769  hdr=""
3770fi
3771
3772for ac_header in dlfcn.h
3773do
3774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3775echo "$as_me:$LINENO: checking for $ac_header" >&5
3776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3777if eval "test \"\${$as_ac_Header+set}\" = set"; then
3778  echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780  cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h.  */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h.  */
3786$hdr
3787
3788#include <$ac_header>
3789_ACEOF
3790rm -f conftest.$ac_objext
3791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792  (eval $ac_compile) 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } &&
3799         { ac_try='test -z "$ac_c_werror_flag"
3800                         || test ! -s conftest.err'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; } &&
3806         { ac_try='test -s conftest.$ac_objext'
3807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808  (eval $ac_try) 2>&5
3809  ac_status=$?
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); }; }; then
3812  eval "$as_ac_Header=yes"
3813else
3814  echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817eval "$as_ac_Header=no"
3818fi
3819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820fi
3821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3823if test `eval echo '${'$as_ac_Header'}'` = yes; then
3824  cat >>confdefs.h <<_ACEOF
3825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3826_ACEOF
3827
3828fi
3829
3830done
3831
3832
3833ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839
3840# Check whether --enable-shared or --disable-shared was given.
3841if test "${enable_shared+set}" = set; then
3842  enableval="$enable_shared"
3843  p=${PACKAGE-default}
3844    case $enableval in
3845    yes) enable_shared=yes ;;
3846    no) enable_shared=no ;;
3847    *)
3848      enable_shared=no
3849      # Look at the argument we got.  We use all the common list separators.
3850      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3851      for pkg in $enableval; do
3852        IFS="$lt_save_ifs"
3853        if test "X$pkg" = "X$p"; then
3854          enable_shared=yes
3855        fi
3856      done
3857      IFS="$lt_save_ifs"
3858      ;;
3859    esac
3860else
3861  enable_shared=yes
3862fi;
3863
3864# Check whether --enable-fast-install or --disable-fast-install was given.
3865if test "${enable_fast_install+set}" = set; then
3866  enableval="$enable_fast_install"
3867  p=${PACKAGE-default}
3868    case $enableval in
3869    yes) enable_fast_install=yes ;;
3870    no) enable_fast_install=no ;;
3871    *)
3872      enable_fast_install=no
3873      # Look at the argument we got.  We use all the common list separators.
3874      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3875      for pkg in $enableval; do
3876        IFS="$lt_save_ifs"
3877        if test "X$pkg" = "X$p"; then
3878          enable_fast_install=yes
3879        fi
3880      done
3881      IFS="$lt_save_ifs"
3882      ;;
3883    esac
3884else
3885  enable_fast_install=yes
3886fi;
3887
3888echo "$as_me:$LINENO: checking host system type" >&5
3889echo $ECHO_N "checking host system type... $ECHO_C" >&6
3890if test "${ac_cv_host+set}" = set; then
3891  echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893  ac_cv_host_alias=$host_alias
3894test -z "$ac_cv_host_alias" &&
3895  ac_cv_host_alias=$ac_cv_build_alias
3896ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3897  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3898echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3899   { (exit 1); exit 1; }; }
3900
3901fi
3902echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3903echo "${ECHO_T}$ac_cv_host" >&6
3904host=$ac_cv_host
3905host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3906host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3907host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3908
3909
3910echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3911echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3912if test "${lt_cv_path_SED+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  # Loop through the user's path and test for sed and gsed.
3916# Then use that list of sed's as ones to test for truncation.
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  for lt_ac_prog in sed gsed; do
3923    for ac_exec_ext in '' $ac_executable_extensions; do
3924      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3925        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3926      fi
3927    done
3928  done
3929done
3930lt_ac_max=0
3931lt_ac_count=0
3932# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3933# along with /bin/sed that truncates output.
3934for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3935  test ! -f $lt_ac_sed && continue
3936  cat /dev/null > conftest.in
3937  lt_ac_count=0
3938  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3939  # Check for GNU sed and select it if it is found.
3940  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3941    lt_cv_path_SED=$lt_ac_sed
3942    break
3943  fi
3944  while true; do
3945    cat conftest.in conftest.in >conftest.tmp
3946    mv conftest.tmp conftest.in
3947    cp conftest.in conftest.nl
3948    echo >>conftest.nl
3949    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3950    cmp -s conftest.out conftest.nl || break
3951    # 10000 chars as input seems more than enough
3952    test $lt_ac_count -gt 10 && break
3953    lt_ac_count=`expr $lt_ac_count + 1`
3954    if test $lt_ac_count -gt $lt_ac_max; then
3955      lt_ac_max=$lt_ac_count
3956      lt_cv_path_SED=$lt_ac_sed
3957    fi
3958  done
3959done
3960
3961fi
3962
3963SED=$lt_cv_path_SED
3964echo "$as_me:$LINENO: result: $SED" >&5
3965echo "${ECHO_T}$SED" >&6
3966
3967
3968# Check whether --with-gnu-ld or --without-gnu-ld was given.
3969if test "${with_gnu_ld+set}" = set; then
3970  withval="$with_gnu_ld"
3971  test "$withval" = no || with_gnu_ld=yes
3972else
3973  with_gnu_ld=no
3974fi;
3975ac_prog=ld
3976if test "$GCC" = yes; then
3977  # Check if gcc -print-prog-name=ld gives a path.
3978  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3979echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3980  case $host in
3981  *-*-mingw*)
3982    # gcc leaves a trailing carriage return which upsets mingw
3983    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3984  *)
3985    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3986  esac
3987  case $ac_prog in
3988    # Accept absolute paths.
3989    [\\/]* | ?:[\\/]*)
3990      re_direlt='/[^/][^/]*/\.\./'
3991      # Canonicalize the pathname of ld
3992      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3993      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3994        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3995      done
3996      test -z "$LD" && LD="$ac_prog"
3997      ;;
3998  "")
3999    # If it fails, then pretend we aren't using GCC.
4000    ac_prog=ld
4001    ;;
4002  *)
4003    # If it is relative, then search for the first ld in PATH.
4004    with_gnu_ld=unknown
4005    ;;
4006  esac
4007elif test "$with_gnu_ld" = yes; then
4008  echo "$as_me:$LINENO: checking for GNU ld" >&5
4009echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4010else
4011  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4012echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4013fi
4014if test "${lt_cv_path_LD+set}" = set; then
4015  echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017  if test -z "$LD"; then
4018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019  for ac_dir in $PATH; do
4020    IFS="$lt_save_ifs"
4021    test -z "$ac_dir" && ac_dir=.
4022    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4023      lt_cv_path_LD="$ac_dir/$ac_prog"
4024      # Check to see if the program is GNU ld.  I'd rather use --version,
4025      # but apparently some variants of GNU ld only accept -v.
4026      # Break only if it was the GNU/non-GNU ld that we prefer.
4027      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4028      *GNU* | *'with BFD'*)
4029        test "$with_gnu_ld" != no && break
4030        ;;
4031      *)
4032        test "$with_gnu_ld" != yes && break
4033        ;;
4034      esac
4035    fi
4036  done
4037  IFS="$lt_save_ifs"
4038else
4039  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4040fi
4041fi
4042
4043LD="$lt_cv_path_LD"
4044if test -n "$LD"; then
4045  echo "$as_me:$LINENO: result: $LD" >&5
4046echo "${ECHO_T}$LD" >&6
4047else
4048  echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
4050fi
4051test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4052echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4053   { (exit 1); exit 1; }; }
4054echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4055echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4056if test "${lt_cv_prog_gnu_ld+set}" = set; then
4057  echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4060case `$LD -v 2>&1 </dev/null` in
4061*GNU* | *'with BFD'*)
4062  lt_cv_prog_gnu_ld=yes
4063  ;;
4064*)
4065  lt_cv_prog_gnu_ld=no
4066  ;;
4067esac
4068fi
4069echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4070echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4071with_gnu_ld=$lt_cv_prog_gnu_ld
4072
4073
4074echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4075echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4076if test "${lt_cv_ld_reload_flag+set}" = set; then
4077  echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079  lt_cv_ld_reload_flag='-r'
4080fi
4081echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4082echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4083reload_flag=$lt_cv_ld_reload_flag
4084case $reload_flag in
4085"" | " "*) ;;
4086*) reload_flag=" $reload_flag" ;;
4087esac
4088reload_cmds='$LD$reload_flag -o $output$reload_objs'
4089case $host_os in
4090  darwin*)
4091    if test "$GCC" = yes; then
4092      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4093    else
4094      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4095    fi
4096    ;;
4097esac
4098
4099echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4100echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4101if test "${lt_cv_path_NM+set}" = set; then
4102  echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104  if test -n "$NM"; then
4105  # Let the user override the test.
4106  lt_cv_path_NM="$NM"
4107else
4108  lt_nm_to_check="${ac_tool_prefix}nm"
4109  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4110    lt_nm_to_check="$lt_nm_to_check nm"
4111  fi
4112  for lt_tmp_nm in $lt_nm_to_check; do
4113    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4114    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4115      IFS="$lt_save_ifs"
4116      test -z "$ac_dir" && ac_dir=.
4117      tmp_nm="$ac_dir/$lt_tmp_nm"
4118      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4119        # Check to see if the nm accepts a BSD-compat flag.
4120        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4121        #   nm: unknown option "B" ignored
4122        # Tru64's nm complains that /dev/null is an invalid object file
4123        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4124        */dev/null* | *'Invalid file or object type'*)
4125          lt_cv_path_NM="$tmp_nm -B"
4126          break
4127          ;;
4128        *)
4129          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4130          */dev/null*)
4131            lt_cv_path_NM="$tmp_nm -p"
4132            break
4133            ;;
4134          *)
4135            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4136            continue # so that we can try to find one that supports BSD flags
4137            ;;
4138          esac
4139          ;;
4140        esac
4141      fi
4142    done
4143    IFS="$lt_save_ifs"
4144  done
4145  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4146fi
4147fi
4148echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4149echo "${ECHO_T}$lt_cv_path_NM" >&6
4150NM="$lt_cv_path_NM"
4151
4152echo "$as_me:$LINENO: checking whether ln -s works" >&5
4153echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4154LN_S=$as_ln_s
4155if test "$LN_S" = "ln -s"; then
4156  echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158else
4159  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4160echo "${ECHO_T}no, using $LN_S" >&6
4161fi
4162
4163echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4164echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4165if test "${lt_cv_deplibs_check_method+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  lt_cv_file_magic_cmd='$MAGIC_CMD'
4169lt_cv_file_magic_test_file=
4170lt_cv_deplibs_check_method='unknown'
4171# Need to set the preceding variable on all platforms that support
4172# interlibrary dependencies.
4173# 'none' -- dependencies not supported.
4174# `unknown' -- same as none, but documents that we really don't know.
4175# 'pass_all' -- all dependencies passed with no checks.
4176# 'test_compile' -- check by making test program.
4177# 'file_magic [[regex]]' -- check by looking for files in library path
4178# which responds to the $file_magic_cmd with a given extended regex.
4179# If you have `file' or equivalent on your system and you're not sure
4180# whether `pass_all' will *always* work, you probably want this one.
4181
4182case $host_os in
4183aix4* | aix5*)
4184  lt_cv_deplibs_check_method=pass_all
4185  ;;
4186
4187beos*)
4188  lt_cv_deplibs_check_method=pass_all
4189  ;;
4190
4191bsdi[45]*)
4192  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4193  lt_cv_file_magic_cmd='/usr/bin/file -L'
4194  lt_cv_file_magic_test_file=/shlib/libc.so
4195  ;;
4196
4197cygwin*)
4198  # func_win32_libid is a shell function defined in ltmain.sh
4199  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4200  lt_cv_file_magic_cmd='func_win32_libid'
4201  ;;
4202
4203mingw* | pw32*)
4204  # Base MSYS/MinGW do not provide the 'file' command needed by
4205  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4206  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4207  lt_cv_file_magic_cmd='$OBJDUMP -f'
4208  ;;
4209
4210darwin* | rhapsody*)
4211  lt_cv_deplibs_check_method=pass_all
4212  ;;
4213
4214freebsd* | kfreebsd*-gnu | dragonfly*)
4215  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4216    case $host_cpu in
4217    i*86 )
4218      # Not sure whether the presence of OpenBSD here was a mistake.
4219      # Let's accept both of them until this is cleared up.
4220      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4221      lt_cv_file_magic_cmd=/usr/bin/file
4222      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4223      ;;
4224    esac
4225  else
4226    lt_cv_deplibs_check_method=pass_all
4227  fi
4228  ;;
4229
4230gnu*)
4231  lt_cv_deplibs_check_method=pass_all
4232  ;;
4233
4234hpux10.20* | hpux11*)
4235  lt_cv_file_magic_cmd=/usr/bin/file
4236  case $host_cpu in
4237  ia64*)
4238    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4239    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4240    ;;
4241  hppa*64*)
4242    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]'
4243    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4244    ;;
4245  *)
4246    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4247    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4248    ;;
4249  esac
4250  ;;
4251
4252interix3*)
4253  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4254  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4255  ;;
4256
4257irix5* | irix6* | nonstopux*)
4258  case $LD in
4259  *-32|*"-32 ") libmagic=32-bit;;
4260  *-n32|*"-n32 ") libmagic=N32;;
4261  *-64|*"-64 ") libmagic=64-bit;;
4262  *) libmagic=never-match;;
4263  esac
4264  lt_cv_deplibs_check_method=pass_all
4265  ;;
4266
4267# This must be Linux ELF.
4268linux*)
4269  lt_cv_deplibs_check_method=pass_all
4270  ;;
4271
4272netbsd*)
4273  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4274    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4275  else
4276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4277  fi
4278  ;;
4279
4280newos6*)
4281  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4282  lt_cv_file_magic_cmd=/usr/bin/file
4283  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4284  ;;
4285
4286nto-qnx*)
4287  lt_cv_deplibs_check_method=unknown
4288  ;;
4289
4290openbsd*)
4291  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4292    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4293  else
4294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4295  fi
4296  ;;
4297
4298osf3* | osf4* | osf5*)
4299  lt_cv_deplibs_check_method=pass_all
4300  ;;
4301
4302solaris*)
4303  lt_cv_deplibs_check_method=pass_all
4304  ;;
4305
4306sysv4 | sysv4.3*)
4307  case $host_vendor in
4308  motorola)
4309    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]'
4310    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4311    ;;
4312  ncr)
4313    lt_cv_deplibs_check_method=pass_all
4314    ;;
4315  sequent)
4316    lt_cv_file_magic_cmd='/bin/file'
4317    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4318    ;;
4319  sni)
4320    lt_cv_file_magic_cmd='/bin/file'
4321    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4322    lt_cv_file_magic_test_file=/lib/libc.so
4323    ;;
4324  siemens)
4325    lt_cv_deplibs_check_method=pass_all
4326    ;;
4327  pc)
4328    lt_cv_deplibs_check_method=pass_all
4329    ;;
4330  esac
4331  ;;
4332
4333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4334  lt_cv_deplibs_check_method=pass_all
4335  ;;
4336esac
4337
4338fi
4339echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4340echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4341file_magic_cmd=$lt_cv_file_magic_cmd
4342deplibs_check_method=$lt_cv_deplibs_check_method
4343test -z "$deplibs_check_method" && deplibs_check_method=unknown
4344
4345
4346
4347
4348# If no C compiler was specified, use CC.
4349LTCC=${LTCC-"$CC"}
4350
4351# If no C compiler flags were specified, use CFLAGS.
4352LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4353
4354# Allow CC to be a program name with arguments.
4355compiler=$CC
4356
4357# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4358if test "${enable_libtool_lock+set}" = set; then
4359  enableval="$enable_libtool_lock"
4360
4361fi;
4362test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4363
4364# Some flags need to be propagated to the compiler or linker for good
4365# libtool support.
4366case $host in
4367ia64-*-hpux*)
4368  # Find out which ABI we are using.
4369  echo 'int i;' > conftest.$ac_ext
4370  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371  (eval $ac_compile) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; then
4375    case `/usr/bin/file conftest.$ac_objext` in
4376    *ELF-32*)
4377      HPUX_IA64_MODE="32"
4378      ;;
4379    *ELF-64*)
4380      HPUX_IA64_MODE="64"
4381      ;;
4382    esac
4383  fi
4384  rm -rf conftest*
4385  ;;
4386*-*-irix6*)
4387  # Find out which ABI we are using.
4388  echo '#line 4388 "configure"' > conftest.$ac_ext
4389  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390  (eval $ac_compile) 2>&5
4391  ac_status=$?
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); }; then
4394   if test "$lt_cv_prog_gnu_ld" = yes; then
4395    case `/usr/bin/file conftest.$ac_objext` in
4396    *32-bit*)
4397      LD="${LD-ld} -melf32bsmip"
4398      ;;
4399    *N32*)
4400      LD="${LD-ld} -melf32bmipn32"
4401      ;;
4402    *64-bit*)
4403      LD="${LD-ld} -melf64bmip"
4404      ;;
4405    esac
4406   else
4407    case `/usr/bin/file conftest.$ac_objext` in
4408    *32-bit*)
4409      LD="${LD-ld} -32"
4410      ;;
4411    *N32*)
4412      LD="${LD-ld} -n32"
4413      ;;
4414    *64-bit*)
4415      LD="${LD-ld} -64"
4416      ;;
4417    esac
4418   fi
4419  fi
4420  rm -rf conftest*
4421  ;;
4422
4423x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4424  # Find out which ABI we are using.
4425  echo 'int i;' > conftest.$ac_ext
4426  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427  (eval $ac_compile) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; then
4431    case `/usr/bin/file conftest.o` in
4432    *32-bit*)
4433      case $host in
4434        x86_64-*linux*)
4435          LD="${LD-ld} -m elf_i386"
4436          ;;
4437        ppc64-*linux*|powerpc64-*linux*)
4438          LD="${LD-ld} -m elf32ppclinux"
4439          ;;
4440        s390x-*linux*)
4441          LD="${LD-ld} -m elf_s390"
4442          ;;
4443        sparc64-*linux*)
4444          LD="${LD-ld} -m elf32_sparc"
4445          ;;
4446      esac
4447      ;;
4448    *64-bit*)
4449      case $host in
4450        x86_64-*linux*)
4451          LD="${LD-ld} -m elf_x86_64"
4452          ;;
4453        ppc*-*linux*|powerpc*-*linux*)
4454          LD="${LD-ld} -m elf64ppc"
4455          ;;
4456        s390*-*linux*)
4457          LD="${LD-ld} -m elf64_s390"
4458          ;;
4459        sparc*-*linux*)
4460          LD="${LD-ld} -m elf64_sparc"
4461          ;;
4462      esac
4463      ;;
4464    esac
4465  fi
4466  rm -rf conftest*
4467  ;;
4468
4469*-*-sco3.2v5*)
4470  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4471  SAVE_CFLAGS="$CFLAGS"
4472  CFLAGS="$CFLAGS -belf"
4473  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4474echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4475if test "${lt_cv_cc_needs_belf+set}" = set; then
4476  echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478  ac_ext=c
4479ac_cpp='$CPP $CPPFLAGS'
4480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483
4484     cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h.  */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h.  */
4490
4491int
4492main ()
4493{
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499rm -f conftest.$ac_objext conftest$ac_exeext
4500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501  (eval $ac_link) 2>conftest.er1
4502  ac_status=$?
4503  grep -v '^ *+' conftest.er1 >conftest.err
4504  rm -f conftest.er1
4505  cat conftest.err >&5
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); } &&
4508         { ac_try='test -z "$ac_c_werror_flag"
4509                         || test ! -s conftest.err'
4510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511  (eval $ac_try) 2>&5
4512  ac_status=$?
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); }; } &&
4515         { ac_try='test -s conftest$ac_exeext'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; }; then
4521  lt_cv_cc_needs_belf=yes
4522else
4523  echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526lt_cv_cc_needs_belf=no
4527fi
4528rm -f conftest.err conftest.$ac_objext \
4529      conftest$ac_exeext conftest.$ac_ext
4530     ac_ext=c
4531ac_cpp='$CPP $CPPFLAGS'
4532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535
4536fi
4537echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4538echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4539  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4540    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4541    CFLAGS="$SAVE_CFLAGS"
4542  fi
4543  ;;
4544sparc*-*solaris*)
4545  # Find out which ABI we are using.
4546  echo 'int i;' > conftest.$ac_ext
4547  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548  (eval $ac_compile) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; then
4552    case `/usr/bin/file conftest.o` in
4553    *64-bit*)
4554      case $lt_cv_prog_gnu_ld in
4555      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4556      *)    LD="${LD-ld} -64" ;;
4557      esac
4558      ;;
4559    esac
4560  fi
4561  rm -rf conftest*
4562  ;;
4563
4564
4565esac
4566
4567need_locks="$enable_libtool_lock"
4568
4569
4570ac_ext=c
4571ac_cpp='$CPP $CPPFLAGS'
4572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4576echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4577# On Suns, sometimes $CPP names a directory.
4578if test -n "$CPP" && test -d "$CPP"; then
4579  CPP=
4580fi
4581if test -z "$CPP"; then
4582  if test "${ac_cv_prog_CPP+set}" = set; then
4583  echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585      # Double quotes because CPP needs to be expanded
4586    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4587    do
4588      ac_preproc_ok=false
4589for ac_c_preproc_warn_flag in '' yes
4590do
4591  # Use a header file that comes with gcc, so configuring glibc
4592  # with a fresh cross-compiler works.
4593  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594  # <limits.h> exists even on freestanding compilers.
4595  # On the NeXT, cc -E runs the code through the compiler's parser,
4596  # not just through cpp. "Syntax error" is here to catch this case.
4597  cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h.  */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h.  */
4603#ifdef __STDC__
4604# include <limits.h>
4605#else
4606# include <assert.h>
4607#endif
4608                     Syntax error
4609_ACEOF
4610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4611  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4612  ac_status=$?
4613  grep -v '^ *+' conftest.er1 >conftest.err
4614  rm -f conftest.er1
4615  cat conftest.err >&5
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); } >/dev/null; then
4618  if test -s conftest.err; then
4619    ac_cpp_err=$ac_c_preproc_warn_flag
4620    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4621  else
4622    ac_cpp_err=
4623  fi
4624else
4625  ac_cpp_err=yes
4626fi
4627if test -z "$ac_cpp_err"; then
4628  :
4629else
4630  echo "$as_me: failed program was:" >&5
4631sed 's/^/| /' conftest.$ac_ext >&5
4632
4633  # Broken: fails on valid input.
4634continue
4635fi
4636rm -f conftest.err conftest.$ac_ext
4637
4638  # OK, works on sane cases.  Now check whether non-existent headers
4639  # can be detected and how.
4640  cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h.  */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h.  */
4646#include <ac_nonexistent.h>
4647_ACEOF
4648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650  ac_status=$?
4651  grep -v '^ *+' conftest.er1 >conftest.err
4652  rm -f conftest.er1
4653  cat conftest.err >&5
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); } >/dev/null; then
4656  if test -s conftest.err; then
4657    ac_cpp_err=$ac_c_preproc_warn_flag
4658    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4659  else
4660    ac_cpp_err=
4661  fi
4662else
4663  ac_cpp_err=yes
4664fi
4665if test -z "$ac_cpp_err"; then
4666  # Broken: success on invalid input.
4667continue
4668else
4669  echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672  # Passes both tests.
4673ac_preproc_ok=:
4674break
4675fi
4676rm -f conftest.err conftest.$ac_ext
4677
4678done
4679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4680rm -f conftest.err conftest.$ac_ext
4681if $ac_preproc_ok; then
4682  break
4683fi
4684
4685    done
4686    ac_cv_prog_CPP=$CPP
4687
4688fi
4689  CPP=$ac_cv_prog_CPP
4690else
4691  ac_cv_prog_CPP=$CPP
4692fi
4693echo "$as_me:$LINENO: result: $CPP" >&5
4694echo "${ECHO_T}$CPP" >&6
4695ac_preproc_ok=false
4696for ac_c_preproc_warn_flag in '' yes
4697do
4698  # Use a header file that comes with gcc, so configuring glibc
4699  # with a fresh cross-compiler works.
4700  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4701  # <limits.h> exists even on freestanding compilers.
4702  # On the NeXT, cc -E runs the code through the compiler's parser,
4703  # not just through cpp. "Syntax error" is here to catch this case.
4704  cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h.  */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h.  */
4710#ifdef __STDC__
4711# include <limits.h>
4712#else
4713# include <assert.h>
4714#endif
4715                     Syntax error
4716_ACEOF
4717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } >/dev/null; then
4725  if test -s conftest.err; then
4726    ac_cpp_err=$ac_c_preproc_warn_flag
4727    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4728  else
4729    ac_cpp_err=
4730  fi
4731else
4732  ac_cpp_err=yes
4733fi
4734if test -z "$ac_cpp_err"; then
4735  :
4736else
4737  echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740  # Broken: fails on valid input.
4741continue
4742fi
4743rm -f conftest.err conftest.$ac_ext
4744
4745  # OK, works on sane cases.  Now check whether non-existent headers
4746  # can be detected and how.
4747  cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753#include <ac_nonexistent.h>
4754_ACEOF
4755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757  ac_status=$?
4758  grep -v '^ *+' conftest.er1 >conftest.err
4759  rm -f conftest.er1
4760  cat conftest.err >&5
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); } >/dev/null; then
4763  if test -s conftest.err; then
4764    ac_cpp_err=$ac_c_preproc_warn_flag
4765    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4766  else
4767    ac_cpp_err=
4768  fi
4769else
4770  ac_cpp_err=yes
4771fi
4772if test -z "$ac_cpp_err"; then
4773  # Broken: success on invalid input.
4774continue
4775else
4776  echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779  # Passes both tests.
4780ac_preproc_ok=:
4781break
4782fi
4783rm -f conftest.err conftest.$ac_ext
4784
4785done
4786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787rm -f conftest.err conftest.$ac_ext
4788if $ac_preproc_ok; then
4789  :
4790else
4791  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4792See \`config.log' for more details." >&5
4793echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4794See \`config.log' for more details." >&2;}
4795   { (exit 1); exit 1; }; }
4796fi
4797
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804
4805echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4806echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4807if test "${ac_cv_header_stdc+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
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#include <stdarg.h>
4818#include <string.h>
4819#include <float.h>
4820
4821int
4822main ()
4823{
4824
4825  ;
4826  return 0;
4827}
4828_ACEOF
4829rm -f conftest.$ac_objext
4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831  (eval $ac_compile) 2>conftest.er1
4832  ac_status=$?
4833  grep -v '^ *+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } &&
4838         { ac_try='test -z "$ac_c_werror_flag"
4839                         || test ! -s conftest.err'
4840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841  (eval $ac_try) 2>&5
4842  ac_status=$?
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); }; } &&
4845         { ac_try='test -s conftest.$ac_objext'
4846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847  (eval $ac_try) 2>&5
4848  ac_status=$?
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); }; }; then
4851  ac_cv_header_stdc=yes
4852else
4853  echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856ac_cv_header_stdc=no
4857fi
4858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4859
4860if test $ac_cv_header_stdc = yes; then
4861  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4862  cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868#include <string.h>
4869
4870_ACEOF
4871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872  $EGREP "memchr" >/dev/null 2>&1; then
4873  :
4874else
4875  ac_cv_header_stdc=no
4876fi
4877rm -f conftest*
4878
4879fi
4880
4881if test $ac_cv_header_stdc = yes; then
4882  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4883  cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h.  */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h.  */
4889#include <stdlib.h>
4890
4891_ACEOF
4892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893  $EGREP "free" >/dev/null 2>&1; then
4894  :
4895else
4896  ac_cv_header_stdc=no
4897fi
4898rm -f conftest*
4899
4900fi
4901
4902if test $ac_cv_header_stdc = yes; then
4903  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4904  if test "$cross_compiling" = yes; then
4905  :
4906else
4907  cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h.  */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h.  */
4913#include <ctype.h>
4914#if ((' ' & 0x0FF) == 0x020)
4915# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4916# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4917#else
4918# define ISLOWER(c) \
4919                   (('a' <= (c) && (c) <= 'i') \
4920                     || ('j' <= (c) && (c) <= 'r') \
4921                     || ('s' <= (c) && (c) <= 'z'))
4922# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4923#endif
4924
4925#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4926int
4927main ()
4928{
4929  int i;
4930  for (i = 0; i < 256; i++)
4931    if (XOR (islower (i), ISLOWER (i))
4932        || toupper (i) != TOUPPER (i))
4933      exit(2);
4934  exit (0);
4935}
4936_ACEOF
4937rm -f conftest$ac_exeext
4938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4939  (eval $ac_link) 2>&5
4940  ac_status=$?
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944  (eval $ac_try) 2>&5
4945  ac_status=$?
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); }; }; then
4948  :
4949else
4950  echo "$as_me: program exited with status $ac_status" >&5
4951echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954( exit $ac_status )
4955ac_cv_header_stdc=no
4956fi
4957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4958fi
4959fi
4960fi
4961echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4962echo "${ECHO_T}$ac_cv_header_stdc" >&6
4963if test $ac_cv_header_stdc = yes; then
4964
4965cat >>confdefs.h <<\_ACEOF
4966#define STDC_HEADERS 1
4967_ACEOF
4968
4969fi
4970
4971# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4982                  inttypes.h stdint.h unistd.h
4983do
4984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985echo "$as_me:$LINENO: checking for $ac_header" >&5
4986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988  echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990  cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996$ac_includes_default
4997
4998#include <$ac_header>
4999_ACEOF
5000rm -f conftest.$ac_objext
5001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002  (eval $ac_compile) 2>conftest.er1
5003  ac_status=$?
5004  grep -v '^ *+' conftest.er1 >conftest.err
5005  rm -f conftest.er1
5006  cat conftest.err >&5
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); } &&
5009         { ac_try='test -z "$ac_c_werror_flag"
5010                         || test ! -s conftest.err'
5011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012  (eval $ac_try) 2>&5
5013  ac_status=$?
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); }; } &&
5016         { ac_try='test -s conftest.$ac_objext'
5017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018  (eval $ac_try) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; }; then
5022  eval "$as_ac_Header=yes"
5023else
5024  echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027eval "$as_ac_Header=no"
5028fi
5029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030fi
5031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5033if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034  cat >>confdefs.h <<_ACEOF
5035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036_ACEOF
5037
5038fi
5039
5040done
5041
5042
5043
5044for ac_header in dlfcn.h
5045do
5046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048  echo "$as_me:$LINENO: checking for $ac_header" >&5
5049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052fi
5053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055else
5056  # Is the header compilable?
5057echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h.  */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h.  */
5065$ac_includes_default
5066#include <$ac_header>
5067_ACEOF
5068rm -f conftest.$ac_objext
5069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070  (eval $ac_compile) 2>conftest.er1
5071  ac_status=$?
5072  grep -v '^ *+' conftest.er1 >conftest.err
5073  rm -f conftest.er1
5074  cat conftest.err >&5
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); } &&
5077         { ac_try='test -z "$ac_c_werror_flag"
5078                         || test ! -s conftest.err'
5079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080  (eval $ac_try) 2>&5
5081  ac_status=$?
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); }; } &&
5084         { ac_try='test -s conftest.$ac_objext'
5085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086  (eval $ac_try) 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); }; }; then
5090  ac_header_compiler=yes
5091else
5092  echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095ac_header_compiler=no
5096fi
5097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099echo "${ECHO_T}$ac_header_compiler" >&6
5100
5101# Is the header present?
5102echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h.  */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h.  */
5110#include <$ac_header>
5111_ACEOF
5112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114  ac_status=$?
5115  grep -v '^ *+' conftest.er1 >conftest.err
5116  rm -f conftest.er1
5117  cat conftest.err >&5
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); } >/dev/null; then
5120  if test -s conftest.err; then
5121    ac_cpp_err=$ac_c_preproc_warn_flag
5122    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5123  else
5124    ac_cpp_err=
5125  fi
5126else
5127  ac_cpp_err=yes
5128fi
5129if test -z "$ac_cpp_err"; then
5130  ac_header_preproc=yes
5131else
5132  echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135  ac_header_preproc=no
5136fi
5137rm -f conftest.err conftest.$ac_ext
5138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139echo "${ECHO_T}$ac_header_preproc" >&6
5140
5141# So?  What about this header?
5142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143  yes:no: )
5144    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148    ac_header_preproc=yes
5149    ;;
5150  no:yes:* )
5151    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5154echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5155    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5158echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5159    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163    (
5164      cat <<\_ASBOX
5165## --------------------------------------------------------------- ##
5166## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5167## --------------------------------------------------------------- ##
5168_ASBOX
5169    ) |
5170      sed "s/^/$as_me: WARNING:     /" >&2
5171    ;;
5172esac
5173echo "$as_me:$LINENO: checking for $ac_header" >&5
5174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  eval "$as_ac_Header=\$ac_header_preproc"
5179fi
5180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182
5183fi
5184if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185  cat >>confdefs.h <<_ACEOF
5186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187_ACEOF
5188
5189fi
5190
5191done
5192
5193ac_ext=cc
5194ac_cpp='$CXXCPP $CPPFLAGS'
5195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198if test -n "$ac_tool_prefix"; then
5199  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5200  do
5201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203echo "$as_me:$LINENO: checking for $ac_word" >&5
5204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205if test "${ac_cv_prog_CXX+set}" = set; then
5206  echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208  if test -n "$CXX"; then
5209  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214  IFS=$as_save_IFS
5215  test -z "$as_dir" && as_dir=.
5216  for ac_exec_ext in '' $ac_executable_extensions; do
5217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220    break 2
5221  fi
5222done
5223done
5224
5225fi
5226fi
5227CXX=$ac_cv_prog_CXX
5228if test -n "$CXX"; then
5229  echo "$as_me:$LINENO: result: $CXX" >&5
5230echo "${ECHO_T}$CXX" >&6
5231else
5232  echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234fi
5235
5236    test -n "$CXX" && break
5237  done
5238fi
5239if test -z "$CXX"; then
5240  ac_ct_CXX=$CXX
5241  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5242do
5243  # Extract the first word of "$ac_prog", so it can be a program name with args.
5244set dummy $ac_prog; ac_word=$2
5245echo "$as_me:$LINENO: checking for $ac_word" >&5
5246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5248  echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250  if test -n "$ac_ct_CXX"; then
5251  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5252else
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258  for ac_exec_ext in '' $ac_executable_extensions; do
5259  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260    ac_cv_prog_ac_ct_CXX="$ac_prog"
5261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265done
5266
5267fi
5268fi
5269ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5270if test -n "$ac_ct_CXX"; then
5271  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5272echo "${ECHO_T}$ac_ct_CXX" >&6
5273else
5274  echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6
5276fi
5277
5278  test -n "$ac_ct_CXX" && break
5279done
5280test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5281
5282  CXX=$ac_ct_CXX
5283fi
5284
5285
5286# Provide some information about the compiler.
5287echo "$as_me:$LINENO:" \
5288     "checking for C++ compiler version" >&5
5289ac_compiler=`set X $ac_compile; echo $2`
5290{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5291  (eval $ac_compiler --version </dev/null >&5) 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }
5295{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5296  (eval $ac_compiler -v </dev/null >&5) 2>&5
5297  ac_status=$?
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); }
5300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5301  (eval $ac_compiler -V </dev/null >&5) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); }
5305
5306echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5307echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5308if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317
5318int
5319main ()
5320{
5321#ifndef __GNUC__
5322       choke me
5323#endif
5324
5325  ;
5326  return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331  (eval $ac_compile) 2>conftest.er1
5332  ac_status=$?
5333  grep -v '^ *+' conftest.er1 >conftest.err
5334  rm -f conftest.er1
5335  cat conftest.err >&5
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); } &&
5338         { ac_try='test -z "$ac_cxx_werror_flag"
5339                         || test ! -s conftest.err'
5340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341  (eval $ac_try) 2>&5
5342  ac_status=$?
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); }; } &&
5345         { ac_try='test -s conftest.$ac_objext'
5346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347  (eval $ac_try) 2>&5
5348  ac_status=$?
5349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350  (exit $ac_status); }; }; then
5351  ac_compiler_gnu=yes
5352else
5353  echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356ac_compiler_gnu=no
5357fi
5358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5360
5361fi
5362echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5363echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5364GXX=`test $ac_compiler_gnu = yes && echo yes`
5365ac_test_CXXFLAGS=${CXXFLAGS+set}
5366ac_save_CXXFLAGS=$CXXFLAGS
5367CXXFLAGS="-g"
5368echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5369echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5370if test "${ac_cv_prog_cxx_g+set}" = set; then
5371  echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373  cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h.  */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h.  */
5379
5380int
5381main ()
5382{
5383
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext
5389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390  (eval $ac_compile) 2>conftest.er1
5391  ac_status=$?
5392  grep -v '^ *+' conftest.er1 >conftest.err
5393  rm -f conftest.er1
5394  cat conftest.err >&5
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); } &&
5397         { ac_try='test -z "$ac_cxx_werror_flag"
5398                         || test ! -s conftest.err'
5399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400  (eval $ac_try) 2>&5
5401  ac_status=$?
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }; } &&
5404         { ac_try='test -s conftest.$ac_objext'
5405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406  (eval $ac_try) 2>&5
5407  ac_status=$?
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); }; }; then
5410  ac_cv_prog_cxx_g=yes
5411else
5412  echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415ac_cv_prog_cxx_g=no
5416fi
5417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418fi
5419echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5420echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5421if test "$ac_test_CXXFLAGS" = set; then
5422  CXXFLAGS=$ac_save_CXXFLAGS
5423elif test $ac_cv_prog_cxx_g = yes; then
5424  if test "$GXX" = yes; then
5425    CXXFLAGS="-g -O2"
5426  else
5427    CXXFLAGS="-g"
5428  fi
5429else
5430  if test "$GXX" = yes; then
5431    CXXFLAGS="-O2"
5432  else
5433    CXXFLAGS=
5434  fi
5435fi
5436for ac_declaration in \
5437   '' \
5438   'extern "C" void std::exit (int) throw (); using std::exit;' \
5439   'extern "C" void std::exit (int); using std::exit;' \
5440   'extern "C" void exit (int) throw ();' \
5441   'extern "C" void exit (int);' \
5442   'void exit (int);'
5443do
5444  cat >conftest.$ac_ext <<_ACEOF
5445/* confdefs.h.  */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h.  */
5450$ac_declaration
5451#include <stdlib.h>
5452int
5453main ()
5454{
5455exit (42);
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext
5461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462  (eval $ac_compile) 2>conftest.er1
5463  ac_status=$?
5464  grep -v '^ *+' conftest.er1 >conftest.err
5465  rm -f conftest.er1
5466  cat conftest.err >&5
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); } &&
5469         { ac_try='test -z "$ac_cxx_werror_flag"
5470                         || test ! -s conftest.err'
5471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472  (eval $ac_try) 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); }; } &&
5476         { ac_try='test -s conftest.$ac_objext'
5477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478  (eval $ac_try) 2>&5
5479  ac_status=$?
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); }; }; then
5482  :
5483else
5484  echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487continue
5488fi
5489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490  cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496$ac_declaration
5497int
5498main ()
5499{
5500exit (42);
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505rm -f conftest.$ac_objext
5506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507  (eval $ac_compile) 2>conftest.er1
5508  ac_status=$?
5509  grep -v '^ *+' conftest.er1 >conftest.err
5510  rm -f conftest.er1
5511  cat conftest.err >&5
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); } &&
5514         { ac_try='test -z "$ac_cxx_werror_flag"
5515                         || test ! -s conftest.err'
5516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517  (eval $ac_try) 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }; } &&
5521         { ac_try='test -s conftest.$ac_objext'
5522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523  (eval $ac_try) 2>&5
5524  ac_status=$?
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); }; }; then
5527  break
5528else
5529  echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532fi
5533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534done
5535rm -f conftest*
5536if test -n "$ac_declaration"; then
5537  echo '#ifdef __cplusplus' >>confdefs.h
5538  echo $ac_declaration      >>confdefs.h
5539  echo '#endif'             >>confdefs.h
5540fi
5541
5542ac_ext=cc
5543ac_cpp='$CXXCPP $CPPFLAGS'
5544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5547
5548depcc="$CXX"  am_compiler_list=
5549
5550echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5551echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5552if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5553  echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5556  # We make a subdir and do the tests there.  Otherwise we can end up
5557  # making bogus files that we don't know about and never remove.  For
5558  # instance it was reported that on HP-UX the gcc test will end up
5559  # making a dummy file named `D' -- because `-MD' means `put the output
5560  # in D'.
5561  mkdir conftest.dir
5562  # Copy depcomp to subdir because otherwise we won't find it if we're
5563  # using a relative directory.
5564  cp "$am_depcomp" conftest.dir
5565  cd conftest.dir
5566  # We will build objects and dependencies in a subdirectory because
5567  # it helps to detect inapplicable dependency modes.  For instance
5568  # both Tru64's cc and ICC support -MD to output dependencies as a
5569  # side effect of compilation, but ICC will put the dependencies in
5570  # the current directory while Tru64 will put them in the object
5571  # directory.
5572  mkdir sub
5573
5574  am_cv_CXX_dependencies_compiler_type=none
5575  if test "$am_compiler_list" = ""; then
5576     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5577  fi
5578  for depmode in $am_compiler_list; do
5579    # Setup a source with many dependencies, because some compilers
5580    # like to wrap large dependency lists on column 80 (with \), and
5581    # we should not choose a depcomp mode which is confused by this.
5582    #
5583    # We need to recreate these files for each test, as the compiler may
5584    # overwrite some of them when testing with obscure command lines.
5585    # This happens at least with the AIX C compiler.
5586    : > sub/conftest.c
5587    for i in 1 2 3 4 5 6; do
5588      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5589      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5590      # Solaris 8's {/usr,}/bin/sh.
5591      touch sub/conftst$i.h
5592    done
5593    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5594
5595    case $depmode in
5596    nosideeffect)
5597      # after this tag, mechanisms are not by side-effect, so they'll
5598      # only be used when explicitly requested
5599      if test "x$enable_dependency_tracking" = xyes; then
5600        continue
5601      else
5602        break
5603      fi
5604      ;;
5605    none) break ;;
5606    esac
5607    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5608    # mode.  It turns out that the SunPro C++ compiler does not properly
5609    # handle `-M -o', and we need to detect this.
5610    if depmode=$depmode \
5611       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5612       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5613       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5614         >/dev/null 2>conftest.err &&
5615       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5616       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5617       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5618      # icc doesn't choke on unknown options, it will just issue warnings
5619      # or remarks (even with -Werror).  So we grep stderr for any message
5620      # that says an option was ignored or not supported.
5621      # When given -MP, icc 7.0 and 7.1 complain thusly:
5622      #   icc: Command line warning: ignoring option '-M'; no argument required
5623      # The diagnosis changed in icc 8.0:
5624      #   icc: Command line remark: option '-MP' not supported
5625      if (grep 'ignoring option' conftest.err ||
5626          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5627        am_cv_CXX_dependencies_compiler_type=$depmode
5628        break
5629      fi
5630    fi
5631  done
5632
5633  cd ..
5634  rm -rf conftest.dir
5635else
5636  am_cv_CXX_dependencies_compiler_type=none
5637fi
5638
5639fi
5640echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5641echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5642CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5643
5644
5645
5646if
5647  test "x$enable_dependency_tracking" != xno \
5648  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5649  am__fastdepCXX_TRUE=
5650  am__fastdepCXX_FALSE='#'
5651else
5652  am__fastdepCXX_TRUE='#'
5653  am__fastdepCXX_FALSE=
5654fi
5655
5656
5657
5658
5659if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5660    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5661    (test "X$CXX" != "Xg++"))) ; then
5662  ac_ext=cc
5663ac_cpp='$CXXCPP $CPPFLAGS'
5664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5667echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5668echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5669if test -z "$CXXCPP"; then
5670  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673      # Double quotes because CXXCPP needs to be expanded
5674    for CXXCPP in "$CXX -E" "/lib/cpp"
5675    do
5676      ac_preproc_ok=false
5677for ac_cxx_preproc_warn_flag in '' yes
5678do
5679  # Use a header file that comes with gcc, so configuring glibc
5680  # with a fresh cross-compiler works.
5681  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5682  # <limits.h> exists even on freestanding compilers.
5683  # On the NeXT, cc -E runs the code through the compiler's parser,
5684  # not just through cpp. "Syntax error" is here to catch this case.
5685  cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h.  */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h.  */
5691#ifdef __STDC__
5692# include <limits.h>
5693#else
5694# include <assert.h>
5695#endif
5696                     Syntax error
5697_ACEOF
5698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5699  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5700  ac_status=$?
5701  grep -v '^ *+' conftest.er1 >conftest.err
5702  rm -f conftest.er1
5703  cat conftest.err >&5
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } >/dev/null; then
5706  if test -s conftest.err; then
5707    ac_cpp_err=$ac_cxx_preproc_warn_flag
5708    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5709  else
5710    ac_cpp_err=
5711  fi
5712else
5713  ac_cpp_err=yes
5714fi
5715if test -z "$ac_cpp_err"; then
5716  :
5717else
5718  echo "$as_me: failed program was:" >&5
5719sed 's/^/| /' conftest.$ac_ext >&5
5720
5721  # Broken: fails on valid input.
5722continue
5723fi
5724rm -f conftest.err conftest.$ac_ext
5725
5726  # OK, works on sane cases.  Now check whether non-existent headers
5727  # can be detected and how.
5728  cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h.  */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h.  */
5734#include <ac_nonexistent.h>
5735_ACEOF
5736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5738  ac_status=$?
5739  grep -v '^ *+' conftest.er1 >conftest.err
5740  rm -f conftest.er1
5741  cat conftest.err >&5
5742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743  (exit $ac_status); } >/dev/null; then
5744  if test -s conftest.err; then
5745    ac_cpp_err=$ac_cxx_preproc_warn_flag
5746    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5747  else
5748    ac_cpp_err=
5749  fi
5750else
5751  ac_cpp_err=yes
5752fi
5753if test -z "$ac_cpp_err"; then
5754  # Broken: success on invalid input.
5755continue
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760  # Passes both tests.
5761ac_preproc_ok=:
5762break
5763fi
5764rm -f conftest.err conftest.$ac_ext
5765
5766done
5767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768rm -f conftest.err conftest.$ac_ext
5769if $ac_preproc_ok; then
5770  break
5771fi
5772
5773    done
5774    ac_cv_prog_CXXCPP=$CXXCPP
5775
5776fi
5777  CXXCPP=$ac_cv_prog_CXXCPP
5778else
5779  ac_cv_prog_CXXCPP=$CXXCPP
5780fi
5781echo "$as_me:$LINENO: result: $CXXCPP" >&5
5782echo "${ECHO_T}$CXXCPP" >&6
5783ac_preproc_ok=false
5784for ac_cxx_preproc_warn_flag in '' yes
5785do
5786  # Use a header file that comes with gcc, so configuring glibc
5787  # with a fresh cross-compiler works.
5788  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789  # <limits.h> exists even on freestanding compilers.
5790  # On the NeXT, cc -E runs the code through the compiler's parser,
5791  # not just through cpp. "Syntax error" is here to catch this case.
5792  cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h.  */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h.  */
5798#ifdef __STDC__
5799# include <limits.h>
5800#else
5801# include <assert.h>
5802#endif
5803                     Syntax error
5804_ACEOF
5805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807  ac_status=$?
5808  grep -v '^ *+' conftest.er1 >conftest.err
5809  rm -f conftest.er1
5810  cat conftest.err >&5
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); } >/dev/null; then
5813  if test -s conftest.err; then
5814    ac_cpp_err=$ac_cxx_preproc_warn_flag
5815    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5816  else
5817    ac_cpp_err=
5818  fi
5819else
5820  ac_cpp_err=yes
5821fi
5822if test -z "$ac_cpp_err"; then
5823  :
5824else
5825  echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828  # Broken: fails on valid input.
5829continue
5830fi
5831rm -f conftest.err conftest.$ac_ext
5832
5833  # OK, works on sane cases.  Now check whether non-existent headers
5834  # can be detected and how.
5835  cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#include <ac_nonexistent.h>
5842_ACEOF
5843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5845  ac_status=$?
5846  grep -v '^ *+' conftest.er1 >conftest.err
5847  rm -f conftest.er1
5848  cat conftest.err >&5
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); } >/dev/null; then
5851  if test -s conftest.err; then
5852    ac_cpp_err=$ac_cxx_preproc_warn_flag
5853    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5854  else
5855    ac_cpp_err=
5856  fi
5857else
5858  ac_cpp_err=yes
5859fi
5860if test -z "$ac_cpp_err"; then
5861  # Broken: success on invalid input.
5862continue
5863else
5864  echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867  # Passes both tests.
5868ac_preproc_ok=:
5869break
5870fi
5871rm -f conftest.err conftest.$ac_ext
5872
5873done
5874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875rm -f conftest.err conftest.$ac_ext
5876if $ac_preproc_ok; then
5877  :
5878else
5879  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5880See \`config.log' for more details." >&5
5881echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5882See \`config.log' for more details." >&2;}
5883   { (exit 1); exit 1; }; }
5884fi
5885
5886ac_ext=cc
5887ac_cpp='$CXXCPP $CPPFLAGS'
5888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5891
5892fi
5893
5894
5895
5896# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5897
5898# find the maximum length of command line arguments
5899echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5900echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5901if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5902  echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904    i=0
5905  teststring="ABCD"
5906
5907  case $build_os in
5908  msdosdjgpp*)
5909    # On DJGPP, this test can blow up pretty badly due to problems in libc
5910    # (any single argument exceeding 2000 bytes causes a buffer overrun
5911    # during glob expansion).  Even if it were fixed, the result of this
5912    # check would be larger than it should be.
5913    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5914    ;;
5915
5916  gnu*)
5917    # Under GNU Hurd, this test is not required because there is
5918    # no limit to the length of command line arguments.
5919    # Libtool will interpret -1 as no limit whatsoever
5920    lt_cv_sys_max_cmd_len=-1;
5921    ;;
5922
5923  cygwin* | mingw*)
5924    # On Win9x/ME, this test blows up -- it succeeds, but takes
5925    # about 5 minutes as the teststring grows exponentially.
5926    # Worse, since 9x/ME are not pre-emptively multitasking,
5927    # you end up with a "frozen" computer, even though with patience
5928    # the test eventually succeeds (with a max line length of 256k).
5929    # Instead, let's just punt: use the minimum linelength reported by
5930    # all of the supported platforms: 8192 (on NT/2K/XP).
5931    lt_cv_sys_max_cmd_len=8192;
5932    ;;
5933
5934  amigaos*)
5935    # On AmigaOS with pdksh, this test takes hours, literally.
5936    # So we just punt and use a minimum line length of 8192.
5937    lt_cv_sys_max_cmd_len=8192;
5938    ;;
5939
5940  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5941    # This has been around since 386BSD, at least.  Likely further.
5942    if test -x /sbin/sysctl; then
5943      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5944    elif test -x /usr/sbin/sysctl; then
5945      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5946    else
5947      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5948    fi
5949    # And add a safety zone
5950    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5951    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5952    ;;
5953
5954  interix*)
5955    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5956    lt_cv_sys_max_cmd_len=196608
5957    ;;
5958
5959  osf*)
5960    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5961    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5962    # nice to cause kernel panics so lets avoid the loop below.
5963    # First set a reasonable default.
5964    lt_cv_sys_max_cmd_len=16384
5965    #
5966    if test -x /sbin/sysconfig; then
5967      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5968        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5969      esac
5970    fi
5971    ;;
5972  sco3.2v5*)
5973    lt_cv_sys_max_cmd_len=102400
5974    ;;
5975  sysv5* | sco5v6* | sysv4.2uw2*)
5976    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5977    if test -n "$kargmax"; then
5978      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5979    else
5980      lt_cv_sys_max_cmd_len=32768
5981    fi
5982    ;;
5983  *)
5984    # If test is not a shell built-in, we'll probably end up computing a
5985    # maximum length that is only half of the actual maximum length, but
5986    # we can't tell.
5987    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5988    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5989               = "XX$teststring") >/dev/null 2>&1 &&
5990            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5991            lt_cv_sys_max_cmd_len=$new_result &&
5992            test $i != 17 # 1/2 MB should be enough
5993    do
5994      i=`expr $i + 1`
5995      teststring=$teststring$teststring
5996    done
5997    teststring=
5998    # Add a significant safety factor because C++ compilers can tack on massive
5999    # amounts of additional arguments before passing them to the linker.
6000    # It appears as though 1/2 is a usable value.
6001    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6002    ;;
6003  esac
6004
6005fi
6006
6007if test -n $lt_cv_sys_max_cmd_len ; then
6008  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6009echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6010else
6011  echo "$as_me:$LINENO: result: none" >&5
6012echo "${ECHO_T}none" >&6
6013fi
6014
6015
6016
6017
6018# Check for command to grab the raw symbol name followed by C symbol from nm.
6019echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6020echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6021if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024
6025# These are sane defaults that work on at least a few old systems.
6026# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6027
6028# Character class describing NM global symbol codes.
6029symcode='[BCDEGRST]'
6030
6031# Regexp to match symbols that can be accessed directly from C.
6032sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6033
6034# Transform an extracted symbol line into a proper C declaration
6035lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6036
6037# Transform an extracted symbol line into symbol name and symbol address
6038lt_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'"
6039
6040# Define system-specific variables.
6041case $host_os in
6042aix*)
6043  symcode='[BCDT]'
6044  ;;
6045cygwin* | mingw* | pw32*)
6046  symcode='[ABCDGISTW]'
6047  ;;
6048hpux*) # Its linker distinguishes data from code symbols
6049  if test "$host_cpu" = ia64; then
6050    symcode='[ABCDEGRST]'
6051  fi
6052  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6053  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'"
6054  ;;
6055linux*)
6056  if test "$host_cpu" = ia64; then
6057    symcode='[ABCDGIRSTW]'
6058    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6059    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'"
6060  fi
6061  ;;
6062irix* | nonstopux*)
6063  symcode='[BCDEGRST]'
6064  ;;
6065osf*)
6066  symcode='[BCDEGQRST]'
6067  ;;
6068solaris*)
6069  symcode='[BDRT]'
6070  ;;
6071sco3.2v5*)
6072  symcode='[DT]'
6073  ;;
6074sysv4.2uw2*)
6075  symcode='[DT]'
6076  ;;
6077sysv5* | sco5v6* | unixware* | OpenUNIX*)
6078  symcode='[ABDT]'
6079  ;;
6080sysv4)
6081  symcode='[DFNSTU]'
6082  ;;
6083esac
6084
6085# Handle CRLF in mingw tool chain
6086opt_cr=
6087case $build_os in
6088mingw*)
6089  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6090  ;;
6091esac
6092
6093# If we're using GNU nm, then use its standard symbol codes.
6094case `$NM -V 2>&1` in
6095*GNU* | *'with BFD'*)
6096  symcode='[ABCDGIRSTW]' ;;
6097esac
6098
6099# Try without a prefix undercore, then with it.
6100for ac_symprfx in "" "_"; do
6101
6102  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6103  symxfrm="\\1 $ac_symprfx\\2 \\2"
6104
6105  # Write the raw and C identifiers.
6106  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6107
6108  # Check to see that the pipe works correctly.
6109  pipe_works=no
6110
6111  rm -f conftest*
6112  cat > conftest.$ac_ext <<EOF
6113#ifdef __cplusplus
6114extern "C" {
6115#endif
6116char nm_test_var;
6117void nm_test_func(){}
6118#ifdef __cplusplus
6119}
6120#endif
6121int main(){nm_test_var='a';nm_test_func();return(0);}
6122EOF
6123
6124  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125  (eval $ac_compile) 2>&5
6126  ac_status=$?
6127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128  (exit $ac_status); }; then
6129    # Now try to grab the symbols.
6130    nlist=conftest.nm
6131    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6132  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6133  ac_status=$?
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } && test -s "$nlist"; then
6136      # Try sorting and uniquifying the output.
6137      if sort "$nlist" | uniq > "$nlist"T; then
6138        mv -f "$nlist"T "$nlist"
6139      else
6140        rm -f "$nlist"T
6141      fi
6142
6143      # Make sure that we snagged all the symbols we need.
6144      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6145        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6146          cat <<EOF > conftest.$ac_ext
6147#ifdef __cplusplus
6148extern "C" {
6149#endif
6150
6151EOF
6152          # Now generate the symbol file.
6153          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6154
6155          cat <<EOF >> conftest.$ac_ext
6156#if defined (__STDC__) && __STDC__
6157# define lt_ptr_t void *
6158#else
6159# define lt_ptr_t char *
6160# define const
6161#endif
6162
6163/* The mapping between symbol names and symbols. */
6164const struct {
6165  const char *name;
6166  lt_ptr_t address;
6167}
6168lt_preloaded_symbols[] =
6169{
6170EOF
6171          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6172          cat <<\EOF >> conftest.$ac_ext
6173  {0, (lt_ptr_t) 0}
6174};
6175
6176#ifdef __cplusplus
6177}
6178#endif
6179EOF
6180          # Now try linking the two files.
6181          mv conftest.$ac_objext conftstm.$ac_objext
6182          lt_save_LIBS="$LIBS"
6183          lt_save_CFLAGS="$CFLAGS"
6184          LIBS="conftstm.$ac_objext"
6185          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6186          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187  (eval $ac_link) 2>&5
6188  ac_status=$?
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6191            pipe_works=yes
6192          fi
6193          LIBS="$lt_save_LIBS"
6194          CFLAGS="$lt_save_CFLAGS"
6195        else
6196          echo "cannot find nm_test_func in $nlist" >&5
6197        fi
6198      else
6199        echo "cannot find nm_test_var in $nlist" >&5
6200      fi
6201    else
6202      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6203    fi
6204  else
6205    echo "$progname: failed program was:" >&5
6206    cat conftest.$ac_ext >&5
6207  fi
6208  rm -f conftest* conftst*
6209
6210  # Do not use the global_symbol_pipe unless it works.
6211  if test "$pipe_works" = yes; then
6212    break
6213  else
6214    lt_cv_sys_global_symbol_pipe=
6215  fi
6216done
6217
6218fi
6219
6220if test -z "$lt_cv_sys_global_symbol_pipe"; then
6221  lt_cv_sys_global_symbol_to_cdecl=
6222fi
6223if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6224  echo "$as_me:$LINENO: result: failed" >&5
6225echo "${ECHO_T}failed" >&6
6226else
6227  echo "$as_me:$LINENO: result: ok" >&5
6228echo "${ECHO_T}ok" >&6
6229fi
6230
6231echo "$as_me:$LINENO: checking for objdir" >&5
6232echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6233if test "${lt_cv_objdir+set}" = set; then
6234  echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236  rm -f .libs 2>/dev/null
6237mkdir .libs 2>/dev/null
6238if test -d .libs; then
6239  lt_cv_objdir=.libs
6240else
6241  # MS-DOS does not allow filenames that begin with a dot.
6242  lt_cv_objdir=_libs
6243fi
6244rmdir .libs 2>/dev/null
6245fi
6246echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6247echo "${ECHO_T}$lt_cv_objdir" >&6
6248objdir=$lt_cv_objdir
6249
6250
6251
6252
6253
6254case $host_os in
6255aix3*)
6256  # AIX sometimes has problems with the GCC collect2 program.  For some
6257  # reason, if we set the COLLECT_NAMES environment variable, the problems
6258  # vanish in a puff of smoke.
6259  if test "X${COLLECT_NAMES+set}" != Xset; then
6260    COLLECT_NAMES=
6261    export COLLECT_NAMES
6262  fi
6263  ;;
6264esac
6265
6266# Sed substitution that helps us do robust quoting.  It backslashifies
6267# metacharacters that are still active within double-quoted strings.
6268Xsed='sed -e 1s/^X//'
6269sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6270
6271# Same as above, but do not quote variable references.
6272double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6273
6274# Sed substitution to delay expansion of an escaped shell variable in a
6275# double_quote_subst'ed string.
6276delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6277
6278# Sed substitution to avoid accidental globbing in evaled expressions
6279no_glob_subst='s/\*/\\\*/g'
6280
6281# Constants:
6282rm="rm -f"
6283
6284# Global variables:
6285default_ofile=libtool
6286can_build_shared=yes
6287
6288# All known linkers require a `.a' archive for static linking (except MSVC,
6289# which needs '.lib').
6290libext=a
6291ltmain="$ac_aux_dir/ltmain.sh"
6292ofile="$default_ofile"
6293with_gnu_ld="$lt_cv_prog_gnu_ld"
6294
6295if test -n "$ac_tool_prefix"; then
6296  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}ar; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_AR+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  if test -n "$AR"; then
6304  ac_cv_prog_AR="$AR" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311  for ac_exec_ext in '' $ac_executable_extensions; do
6312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_AR="${ac_tool_prefix}ar"
6314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318done
6319
6320fi
6321fi
6322AR=$ac_cv_prog_AR
6323if test -n "$AR"; then
6324  echo "$as_me:$LINENO: result: $AR" >&5
6325echo "${ECHO_T}$AR" >&6
6326else
6327  echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331fi
6332if test -z "$ac_cv_prog_AR"; then
6333  ac_ct_AR=$AR
6334  # Extract the first word of "ar", so it can be a program name with args.
6335set dummy ar; ac_word=$2
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  if test -n "$ac_ct_AR"; then
6342  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347  IFS=$as_save_IFS
6348  test -z "$as_dir" && as_dir=.
6349  for ac_exec_ext in '' $ac_executable_extensions; do
6350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351    ac_cv_prog_ac_ct_AR="ar"
6352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353    break 2
6354  fi
6355done
6356done
6357
6358  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6359fi
6360fi
6361ac_ct_AR=$ac_cv_prog_ac_ct_AR
6362if test -n "$ac_ct_AR"; then
6363  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6364echo "${ECHO_T}$ac_ct_AR" >&6
6365else
6366  echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370  AR=$ac_ct_AR
6371else
6372  AR="$ac_cv_prog_AR"
6373fi
6374
6375if test -n "$ac_tool_prefix"; then
6376  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6378echo "$as_me:$LINENO: checking for $ac_word" >&5
6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380if test "${ac_cv_prog_RANLIB+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  if test -n "$RANLIB"; then
6384  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for ac_exec_ext in '' $ac_executable_extensions; do
6392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395    break 2
6396  fi
6397done
6398done
6399
6400fi
6401fi
6402RANLIB=$ac_cv_prog_RANLIB
6403if test -n "$RANLIB"; then
6404  echo "$as_me:$LINENO: result: $RANLIB" >&5
6405echo "${ECHO_T}$RANLIB" >&6
6406else
6407  echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409fi
6410
6411fi
6412if test -z "$ac_cv_prog_RANLIB"; then
6413  ac_ct_RANLIB=$RANLIB
6414  # Extract the first word of "ranlib", so it can be a program name with args.
6415set dummy ranlib; ac_word=$2
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  if test -n "$ac_ct_RANLIB"; then
6422  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_ac_ct_RANLIB="ranlib"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437
6438  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6439fi
6440fi
6441ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6442if test -n "$ac_ct_RANLIB"; then
6443  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6444echo "${ECHO_T}$ac_ct_RANLIB" >&6
6445else
6446  echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6
6448fi
6449
6450  RANLIB=$ac_ct_RANLIB
6451else
6452  RANLIB="$ac_cv_prog_RANLIB"
6453fi
6454
6455if test -n "$ac_tool_prefix"; then
6456  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6457set dummy ${ac_tool_prefix}strip; ac_word=$2
6458echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460if test "${ac_cv_prog_STRIP+set}" = set; then
6461  echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463  if test -n "$STRIP"; then
6464  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  test -z "$as_dir" && as_dir=.
6471  for ac_exec_ext in '' $ac_executable_extensions; do
6472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475    break 2
6476  fi
6477done
6478done
6479
6480fi
6481fi
6482STRIP=$ac_cv_prog_STRIP
6483if test -n "$STRIP"; then
6484  echo "$as_me:$LINENO: result: $STRIP" >&5
6485echo "${ECHO_T}$STRIP" >&6
6486else
6487  echo "$as_me:$LINENO: result: no" >&5
6488echo "${ECHO_T}no" >&6
6489fi
6490
6491fi
6492if test -z "$ac_cv_prog_STRIP"; then
6493  ac_ct_STRIP=$STRIP
6494  # Extract the first word of "strip", so it can be a program name with args.
6495set dummy strip; ac_word=$2
6496echo "$as_me:$LINENO: checking for $ac_word" >&5
6497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6498if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501  if test -n "$ac_ct_STRIP"; then
6502  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509  for ac_exec_ext in '' $ac_executable_extensions; do
6510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511    ac_cv_prog_ac_ct_STRIP="strip"
6512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516done
6517
6518  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6519fi
6520fi
6521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6522if test -n "$ac_ct_STRIP"; then
6523  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6524echo "${ECHO_T}$ac_ct_STRIP" >&6
6525else
6526  echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528fi
6529
6530  STRIP=$ac_ct_STRIP
6531else
6532  STRIP="$ac_cv_prog_STRIP"
6533fi
6534
6535
6536old_CC="$CC"
6537old_CFLAGS="$CFLAGS"
6538
6539# Set sane defaults for various variables
6540test -z "$AR" && AR=ar
6541test -z "$AR_FLAGS" && AR_FLAGS=cru
6542test -z "$AS" && AS=as
6543test -z "$CC" && CC=cc
6544test -z "$LTCC" && LTCC=$CC
6545test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6546test -z "$DLLTOOL" && DLLTOOL=dlltool
6547test -z "$LD" && LD=ld
6548test -z "$LN_S" && LN_S="ln -s"
6549test -z "$MAGIC_CMD" && MAGIC_CMD=file
6550test -z "$NM" && NM=nm
6551test -z "$SED" && SED=sed
6552test -z "$OBJDUMP" && OBJDUMP=objdump
6553test -z "$RANLIB" && RANLIB=:
6554test -z "$STRIP" && STRIP=:
6555test -z "$ac_objext" && ac_objext=o
6556
6557# Determine commands to create old-style static archives.
6558old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6559old_postinstall_cmds='chmod 644 $oldlib'
6560old_postuninstall_cmds=
6561
6562if test -n "$RANLIB"; then
6563  case $host_os in
6564  openbsd*)
6565    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6566    ;;
6567  *)
6568    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6569    ;;
6570  esac
6571  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6572fi
6573
6574for cc_temp in $compiler""; do
6575  case $cc_temp in
6576    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6577    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6578    \-*) ;;
6579    *) break;;
6580  esac
6581done
6582cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6583
6584
6585# Only perform the check for file, if the check method requires it
6586case $deplibs_check_method in
6587file_magic*)
6588  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6589    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6590echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6591if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6592  echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594  case $MAGIC_CMD in
6595[\\/*] |  ?:[\\/]*)
6596  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6597  ;;
6598*)
6599  lt_save_MAGIC_CMD="$MAGIC_CMD"
6600  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6601  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6602  for ac_dir in $ac_dummy; do
6603    IFS="$lt_save_ifs"
6604    test -z "$ac_dir" && ac_dir=.
6605    if test -f $ac_dir/${ac_tool_prefix}file; then
6606      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6607      if test -n "$file_magic_test_file"; then
6608        case $deplibs_check_method in
6609        "file_magic "*)
6610          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6611          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6612          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6613            $EGREP "$file_magic_regex" > /dev/null; then
6614            :
6615          else
6616            cat <<EOF 1>&2
6617
6618*** Warning: the command libtool uses to detect shared libraries,
6619*** $file_magic_cmd, produces output that libtool cannot recognize.
6620*** The result is that libtool may fail to recognize shared libraries
6621*** as such.  This will affect the creation of libtool libraries that
6622*** depend on shared libraries, but programs linked with such libtool
6623*** libraries will work regardless of this problem.  Nevertheless, you
6624*** may want to report the problem to your system manager and/or to
6625*** bug-libtool@gnu.org
6626
6627EOF
6628          fi ;;
6629        esac
6630      fi
6631      break
6632    fi
6633  done
6634  IFS="$lt_save_ifs"
6635  MAGIC_CMD="$lt_save_MAGIC_CMD"
6636  ;;
6637esac
6638fi
6639
6640MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6641if test -n "$MAGIC_CMD"; then
6642  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6643echo "${ECHO_T}$MAGIC_CMD" >&6
6644else
6645  echo "$as_me:$LINENO: result: no" >&5
6646echo "${ECHO_T}no" >&6
6647fi
6648
6649if test -z "$lt_cv_path_MAGIC_CMD"; then
6650  if test -n "$ac_tool_prefix"; then
6651    echo "$as_me:$LINENO: checking for file" >&5
6652echo $ECHO_N "checking for file... $ECHO_C" >&6
6653if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6654  echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656  case $MAGIC_CMD in
6657[\\/*] |  ?:[\\/]*)
6658  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6659  ;;
6660*)
6661  lt_save_MAGIC_CMD="$MAGIC_CMD"
6662  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6664  for ac_dir in $ac_dummy; do
6665    IFS="$lt_save_ifs"
6666    test -z "$ac_dir" && ac_dir=.
6667    if test -f $ac_dir/file; then
6668      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6669      if test -n "$file_magic_test_file"; then
6670        case $deplibs_check_method in
6671        "file_magic "*)
6672          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6673          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6674          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6675            $EGREP "$file_magic_regex" > /dev/null; then
6676            :
6677          else
6678            cat <<EOF 1>&2
6679
6680*** Warning: the command libtool uses to detect shared libraries,
6681*** $file_magic_cmd, produces output that libtool cannot recognize.
6682*** The result is that libtool may fail to recognize shared libraries
6683*** as such.  This will affect the creation of libtool libraries that
6684*** depend on shared libraries, but programs linked with such libtool
6685*** libraries will work regardless of this problem.  Nevertheless, you
6686*** may want to report the problem to your system manager and/or to
6687*** bug-libtool@gnu.org
6688
6689EOF
6690          fi ;;
6691        esac
6692      fi
6693      break
6694    fi
6695  done
6696  IFS="$lt_save_ifs"
6697  MAGIC_CMD="$lt_save_MAGIC_CMD"
6698  ;;
6699esac
6700fi
6701
6702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6703if test -n "$MAGIC_CMD"; then
6704  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6705echo "${ECHO_T}$MAGIC_CMD" >&6
6706else
6707  echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709fi
6710
6711  else
6712    MAGIC_CMD=:
6713  fi
6714fi
6715
6716  fi
6717  ;;
6718esac
6719
6720enable_dlopen=no
6721enable_win32_dll=no
6722
6723# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6724if test "${enable_libtool_lock+set}" = set; then
6725  enableval="$enable_libtool_lock"
6726
6727fi;
6728test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6729
6730
6731# Check whether --with-pic or --without-pic was given.
6732if test "${with_pic+set}" = set; then
6733  withval="$with_pic"
6734  pic_mode="$withval"
6735else
6736  pic_mode=default
6737fi;
6738test -z "$pic_mode" && pic_mode=default
6739
6740# Use C for the default configuration in the libtool script
6741tagname=
6742lt_save_CC="$CC"
6743ac_ext=c
6744ac_cpp='$CPP $CPPFLAGS'
6745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748
6749
6750# Source file extension for C test sources.
6751ac_ext=c
6752
6753# Object file extension for compiled C test sources.
6754objext=o
6755objext=$objext
6756
6757# Code to be used in simple compile tests
6758lt_simple_compile_test_code="int some_variable = 0;\n"
6759
6760# Code to be used in simple link tests
6761lt_simple_link_test_code='int main(){return(0);}\n'
6762
6763
6764# If no C compiler was specified, use CC.
6765LTCC=${LTCC-"$CC"}
6766
6767# If no C compiler flags were specified, use CFLAGS.
6768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6769
6770# Allow CC to be a program name with arguments.
6771compiler=$CC
6772
6773
6774# save warnings/boilerplate of simple test code
6775ac_outfile=conftest.$ac_objext
6776printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6777eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6778_lt_compiler_boilerplate=`cat conftest.err`
6779$rm conftest*
6780
6781ac_outfile=conftest.$ac_objext
6782printf "$lt_simple_link_test_code" >conftest.$ac_ext
6783eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6784_lt_linker_boilerplate=`cat conftest.err`
6785$rm conftest*
6786
6787
6788## CAVEAT EMPTOR:
6789## There is no encapsulation within the following macros, do not change
6790## the running order or otherwise move them around unless you know exactly
6791## what you are doing...
6792
6793lt_prog_compiler_no_builtin_flag=
6794
6795if test "$GCC" = yes; then
6796  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6797
6798
6799echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6800echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6801if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  lt_cv_prog_compiler_rtti_exceptions=no
6805  ac_outfile=conftest.$ac_objext
6806   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6807   lt_compiler_flag="-fno-rtti -fno-exceptions"
6808   # Insert the option either (1) after the last *FLAGS variable, or
6809   # (2) before a word containing "conftest.", or (3) at the end.
6810   # Note that $ac_compile itself does not contain backslashes and begins
6811   # with a dollar sign (not a hyphen), so the echo should work correctly.
6812   # The option is referenced via a variable to avoid confusing sed.
6813   lt_compile=`echo "$ac_compile" | $SED \
6814   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6815   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6816   -e 's:$: $lt_compiler_flag:'`
6817   (eval echo "\"\$as_me:6817: $lt_compile\"" >&5)
6818   (eval "$lt_compile" 2>conftest.err)
6819   ac_status=$?
6820   cat conftest.err >&5
6821   echo "$as_me:6821: \$? = $ac_status" >&5
6822   if (exit $ac_status) && test -s "$ac_outfile"; then
6823     # The compiler can only warn and ignore the option if not recognized
6824     # So say no if there are warnings other than the usual output.
6825     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6826     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6827     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6828       lt_cv_prog_compiler_rtti_exceptions=yes
6829     fi
6830   fi
6831   $rm conftest*
6832
6833fi
6834echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6835echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6836
6837if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6838    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6839else
6840    :
6841fi
6842
6843fi
6844
6845lt_prog_compiler_wl=
6846lt_prog_compiler_pic=
6847lt_prog_compiler_static=
6848
6849echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6850echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6851
6852  if test "$GCC" = yes; then
6853    lt_prog_compiler_wl='-Wl,'
6854    lt_prog_compiler_static='-static'
6855
6856    case $host_os in
6857      aix*)
6858      # All AIX code is PIC.
6859      if test "$host_cpu" = ia64; then
6860        # AIX 5 now supports IA64 processor
6861        lt_prog_compiler_static='-Bstatic'
6862      fi
6863      ;;
6864
6865    amigaos*)
6866      # FIXME: we need at least 68020 code to build shared libraries, but
6867      # adding the `-m68020' flag to GCC prevents building anything better,
6868      # like `-m68040'.
6869      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6870      ;;
6871
6872    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6873      # PIC is the default for these OSes.
6874      ;;
6875
6876    mingw* | pw32* | os2*)
6877      # This hack is so that the source file can tell whether it is being
6878      # built for inclusion in a dll (and should export symbols for example).
6879      lt_prog_compiler_pic='-DDLL_EXPORT'
6880      ;;
6881
6882    darwin* | rhapsody*)
6883      # PIC is the default on this platform
6884      # Common symbols not allowed in MH_DYLIB files
6885      lt_prog_compiler_pic='-fno-common'
6886      ;;
6887
6888    interix3*)
6889      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6890      # Instead, we relocate shared libraries at runtime.
6891      ;;
6892
6893    msdosdjgpp*)
6894      # Just because we use GCC doesn't mean we suddenly get shared libraries
6895      # on systems that don't support them.
6896      lt_prog_compiler_can_build_shared=no
6897      enable_shared=no
6898      ;;
6899
6900    sysv4*MP*)
6901      if test -d /usr/nec; then
6902        lt_prog_compiler_pic=-Kconform_pic
6903      fi
6904      ;;
6905
6906    hpux*)
6907      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6908      # not for PA HP-UX.
6909      case $host_cpu in
6910      hppa*64*|ia64*)
6911        # +Z the default
6912        ;;
6913      *)
6914        lt_prog_compiler_pic='-fPIC'
6915        ;;
6916      esac
6917      ;;
6918
6919    *)
6920      lt_prog_compiler_pic='-fPIC'
6921      ;;
6922    esac
6923  else
6924    # PORTME Check for flag to pass linker flags through the system compiler.
6925    case $host_os in
6926    aix*)
6927      lt_prog_compiler_wl='-Wl,'
6928      if test "$host_cpu" = ia64; then
6929        # AIX 5 now supports IA64 processor
6930        lt_prog_compiler_static='-Bstatic'
6931      else
6932        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6933      fi
6934      ;;
6935      darwin*)
6936        # PIC is the default on this platform
6937        # Common symbols not allowed in MH_DYLIB files
6938       case $cc_basename in
6939         xlc*)
6940         lt_prog_compiler_pic='-qnocommon'
6941         lt_prog_compiler_wl='-Wl,'
6942         ;;
6943       esac
6944       ;;
6945
6946    mingw* | pw32* | os2*)
6947      # This hack is so that the source file can tell whether it is being
6948      # built for inclusion in a dll (and should export symbols for example).
6949      lt_prog_compiler_pic='-DDLL_EXPORT'
6950      ;;
6951
6952    hpux9* | hpux10* | hpux11*)
6953      lt_prog_compiler_wl='-Wl,'
6954      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6955      # not for PA HP-UX.
6956      case $host_cpu in
6957      hppa*64*|ia64*)
6958        # +Z the default
6959        ;;
6960      *)
6961        lt_prog_compiler_pic='+Z'
6962        ;;
6963      esac
6964      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6965      lt_prog_compiler_static='${wl}-a ${wl}archive'
6966      ;;
6967
6968    irix5* | irix6* | nonstopux*)
6969      lt_prog_compiler_wl='-Wl,'
6970      # PIC (with -KPIC) is the default.
6971      lt_prog_compiler_static='-non_shared'
6972      ;;
6973
6974    newsos6)
6975      lt_prog_compiler_pic='-KPIC'
6976      lt_prog_compiler_static='-Bstatic'
6977      ;;
6978
6979    linux*)
6980      case $cc_basename in
6981      icc* | ecc*)
6982        lt_prog_compiler_wl='-Wl,'
6983        lt_prog_compiler_pic='-KPIC'
6984        lt_prog_compiler_static='-static'
6985        ;;
6986      pgcc* | pgf77* | pgf90* | pgf95*)
6987        # Portland Group compilers (*not* the Pentium gcc compiler,
6988        # which looks to be a dead project)
6989        lt_prog_compiler_wl='-Wl,'
6990        lt_prog_compiler_pic='-fpic'
6991        lt_prog_compiler_static='-Bstatic'
6992        ;;
6993      ccc*)
6994        lt_prog_compiler_wl='-Wl,'
6995        # All Alpha code is PIC.
6996        lt_prog_compiler_static='-non_shared'
6997        ;;
6998      esac
6999      ;;
7000
7001    osf3* | osf4* | osf5*)
7002      lt_prog_compiler_wl='-Wl,'
7003      # All OSF/1 code is PIC.
7004      lt_prog_compiler_static='-non_shared'
7005      ;;
7006
7007    solaris*)
7008      lt_prog_compiler_pic='-KPIC'
7009      lt_prog_compiler_static='-Bstatic'
7010      case $cc_basename in
7011      f77* | f90* | f95*)
7012        lt_prog_compiler_wl='-Qoption ld ';;
7013      *)
7014        lt_prog_compiler_wl='-Wl,';;
7015      esac
7016      ;;
7017
7018    sunos4*)
7019      lt_prog_compiler_wl='-Qoption ld '
7020      lt_prog_compiler_pic='-PIC'
7021      lt_prog_compiler_static='-Bstatic'
7022      ;;
7023
7024    sysv4 | sysv4.2uw2* | sysv4.3*)
7025      lt_prog_compiler_wl='-Wl,'
7026      lt_prog_compiler_pic='-KPIC'
7027      lt_prog_compiler_static='-Bstatic'
7028      ;;
7029
7030    sysv4*MP*)
7031      if test -d /usr/nec ;then
7032        lt_prog_compiler_pic='-Kconform_pic'
7033        lt_prog_compiler_static='-Bstatic'
7034      fi
7035      ;;
7036
7037    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7038      lt_prog_compiler_wl='-Wl,'
7039      lt_prog_compiler_pic='-KPIC'
7040      lt_prog_compiler_static='-Bstatic'
7041      ;;
7042
7043    unicos*)
7044      lt_prog_compiler_wl='-Wl,'
7045      lt_prog_compiler_can_build_shared=no
7046      ;;
7047
7048    uts4*)
7049      lt_prog_compiler_pic='-pic'
7050      lt_prog_compiler_static='-Bstatic'
7051      ;;
7052
7053    *)
7054      lt_prog_compiler_can_build_shared=no
7055      ;;
7056    esac
7057  fi
7058
7059echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7060echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7061
7062#
7063# Check to make sure the PIC flag actually works.
7064#
7065if test -n "$lt_prog_compiler_pic"; then
7066
7067echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7068echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7069if test "${lt_prog_compiler_pic_works+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072  lt_prog_compiler_pic_works=no
7073  ac_outfile=conftest.$ac_objext
7074   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7075   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7076   # Insert the option either (1) after the last *FLAGS variable, or
7077   # (2) before a word containing "conftest.", or (3) at the end.
7078   # Note that $ac_compile itself does not contain backslashes and begins
7079   # with a dollar sign (not a hyphen), so the echo should work correctly.
7080   # The option is referenced via a variable to avoid confusing sed.
7081   lt_compile=`echo "$ac_compile" | $SED \
7082   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7083   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7084   -e 's:$: $lt_compiler_flag:'`
7085   (eval echo "\"\$as_me:7085: $lt_compile\"" >&5)
7086   (eval "$lt_compile" 2>conftest.err)
7087   ac_status=$?
7088   cat conftest.err >&5
7089   echo "$as_me:7089: \$? = $ac_status" >&5
7090   if (exit $ac_status) && test -s "$ac_outfile"; then
7091     # The compiler can only warn and ignore the option if not recognized
7092     # So say no if there are warnings other than the usual output.
7093     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7094     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7095     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7096       lt_prog_compiler_pic_works=yes
7097     fi
7098   fi
7099   $rm conftest*
7100
7101fi
7102echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7103echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7104
7105if test x"$lt_prog_compiler_pic_works" = xyes; then
7106    case $lt_prog_compiler_pic in
7107     "" | " "*) ;;
7108     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7109     esac
7110else
7111    lt_prog_compiler_pic=
7112     lt_prog_compiler_can_build_shared=no
7113fi
7114
7115fi
7116case $host_os in
7117  # For platforms which do not support PIC, -DPIC is meaningless:
7118  *djgpp*)
7119    lt_prog_compiler_pic=
7120    ;;
7121  *)
7122    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7123    ;;
7124esac
7125
7126#
7127# Check to make sure the static flag actually works.
7128#
7129wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7130echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7131echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7132if test "${lt_prog_compiler_static_works+set}" = set; then
7133  echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135  lt_prog_compiler_static_works=no
7136   save_LDFLAGS="$LDFLAGS"
7137   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7138   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7139   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7140     # The linker can only warn and ignore the option if not recognized
7141     # So say no if there are warnings
7142     if test -s conftest.err; then
7143       # Append any errors to the config.log.
7144       cat conftest.err 1>&5
7145       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7146       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7147       if diff conftest.exp conftest.er2 >/dev/null; then
7148         lt_prog_compiler_static_works=yes
7149       fi
7150     else
7151       lt_prog_compiler_static_works=yes
7152     fi
7153   fi
7154   $rm conftest*
7155   LDFLAGS="$save_LDFLAGS"
7156
7157fi
7158echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7159echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7160
7161if test x"$lt_prog_compiler_static_works" = xyes; then
7162    :
7163else
7164    lt_prog_compiler_static=
7165fi
7166
7167
7168echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7169echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7170if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7171  echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173  lt_cv_prog_compiler_c_o=no
7174   $rm -r conftest 2>/dev/null
7175   mkdir conftest
7176   cd conftest
7177   mkdir out
7178   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7179
7180   lt_compiler_flag="-o out/conftest2.$ac_objext"
7181   # Insert the option either (1) after the last *FLAGS variable, or
7182   # (2) before a word containing "conftest.", or (3) at the end.
7183   # Note that $ac_compile itself does not contain backslashes and begins
7184   # with a dollar sign (not a hyphen), so the echo should work correctly.
7185   lt_compile=`echo "$ac_compile" | $SED \
7186   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7188   -e 's:$: $lt_compiler_flag:'`
7189   (eval echo "\"\$as_me:7189: $lt_compile\"" >&5)
7190   (eval "$lt_compile" 2>out/conftest.err)
7191   ac_status=$?
7192   cat out/conftest.err >&5
7193   echo "$as_me:7193: \$? = $ac_status" >&5
7194   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7195   then
7196     # The compiler can only warn and ignore the option if not recognized
7197     # So say no if there are warnings
7198     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7199     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7200     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7201       lt_cv_prog_compiler_c_o=yes
7202     fi
7203   fi
7204   chmod u+w . 2>&5
7205   $rm conftest*
7206   # SGI C++ compiler will create directory out/ii_files/ for
7207   # template instantiation
7208   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7209   $rm out/* && rmdir out
7210   cd ..
7211   rmdir conftest
7212   $rm conftest*
7213
7214fi
7215echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7216echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7217
7218
7219hard_links="nottested"
7220if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7221  # do not overwrite the value of need_locks provided by the user
7222  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7223echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7224  hard_links=yes
7225  $rm conftest*
7226  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7227  touch conftest.a
7228  ln conftest.a conftest.b 2>&5 || hard_links=no
7229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7230  echo "$as_me:$LINENO: result: $hard_links" >&5
7231echo "${ECHO_T}$hard_links" >&6
7232  if test "$hard_links" = no; then
7233    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7234echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7235    need_locks=warn
7236  fi
7237else
7238  need_locks=no
7239fi
7240
7241echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7242echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7243
7244  runpath_var=
7245  allow_undefined_flag=
7246  enable_shared_with_static_runtimes=no
7247  archive_cmds=
7248  archive_expsym_cmds=
7249  old_archive_From_new_cmds=
7250  old_archive_from_expsyms_cmds=
7251  export_dynamic_flag_spec=
7252  whole_archive_flag_spec=
7253  thread_safe_flag_spec=
7254  hardcode_libdir_flag_spec=
7255  hardcode_libdir_flag_spec_ld=
7256  hardcode_libdir_separator=
7257  hardcode_direct=no
7258  hardcode_minus_L=no
7259  hardcode_shlibpath_var=unsupported
7260  link_all_deplibs=unknown
7261  hardcode_automatic=no
7262  module_cmds=
7263  module_expsym_cmds=
7264  always_export_symbols=no
7265  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7266  # include_expsyms should be a list of space-separated symbols to be *always*
7267  # included in the symbol list
7268  include_expsyms=
7269  # exclude_expsyms can be an extended regexp of symbols to exclude
7270  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7271  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7272  # as well as any symbol that contains `d'.
7273  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7274  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7275  # platforms (ab)use it in PIC code, but their linkers get confused if
7276  # the symbol is explicitly referenced.  Since portable code cannot
7277  # rely on this symbol name, it's probably fine to never include it in
7278  # preloaded symbol tables.
7279  extract_expsyms_cmds=
7280  # Just being paranoid about ensuring that cc_basename is set.
7281  for cc_temp in $compiler""; do
7282  case $cc_temp in
7283    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7284    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7285    \-*) ;;
7286    *) break;;
7287  esac
7288done
7289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7290
7291  case $host_os in
7292  cygwin* | mingw* | pw32*)
7293    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7294    # When not using gcc, we currently assume that we are using
7295    # Microsoft Visual C++.
7296    if test "$GCC" != yes; then
7297      with_gnu_ld=no
7298    fi
7299    ;;
7300  interix*)
7301    # we just hope/assume this is gcc and not c89 (= MSVC++)
7302    with_gnu_ld=yes
7303    ;;
7304  openbsd*)
7305    with_gnu_ld=no
7306    ;;
7307  esac
7308
7309  ld_shlibs=yes
7310  if test "$with_gnu_ld" = yes; then
7311    # If archive_cmds runs LD, not CC, wlarc should be empty
7312    wlarc='${wl}'
7313
7314    # Set some defaults for GNU ld with shared library support. These
7315    # are reset later if shared libraries are not supported. Putting them
7316    # here allows them to be overridden if necessary.
7317    runpath_var=LD_RUN_PATH
7318    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7319    export_dynamic_flag_spec='${wl}--export-dynamic'
7320    # ancient GNU ld didn't support --whole-archive et. al.
7321    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7322        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7323      else
7324        whole_archive_flag_spec=
7325    fi
7326    supports_anon_versioning=no
7327    case `$LD -v 2>/dev/null` in
7328      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7329      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7330      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7331      *\ 2.11.*) ;; # other 2.11 versions
7332      *) supports_anon_versioning=yes ;;
7333    esac
7334
7335    # See if GNU ld supports shared libraries.
7336    case $host_os in
7337    aix3* | aix4* | aix5*)
7338      # On AIX/PPC, the GNU linker is very broken
7339      if test "$host_cpu" != ia64; then
7340        ld_shlibs=no
7341        cat <<EOF 1>&2
7342
7343*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7344*** to be unable to reliably create shared libraries on AIX.
7345*** Therefore, libtool is disabling shared libraries support.  If you
7346*** really care for shared libraries, you may want to modify your PATH
7347*** so that a non-GNU linker is found, and then restart.
7348
7349EOF
7350      fi
7351      ;;
7352
7353    amigaos*)
7354      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)'
7355      hardcode_libdir_flag_spec='-L$libdir'
7356      hardcode_minus_L=yes
7357
7358      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7359      # that the semantics of dynamic libraries on AmigaOS, at least up
7360      # to version 4, is to share data among multiple programs linked
7361      # with the same dynamic library.  Since this doesn't match the
7362      # behavior of shared libraries on other platforms, we can't use
7363      # them.
7364      ld_shlibs=no
7365      ;;
7366
7367    beos*)
7368      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7369        allow_undefined_flag=unsupported
7370        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7371        # support --undefined.  This deserves some investigation.  FIXME
7372        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7373      else
7374        ld_shlibs=no
7375      fi
7376      ;;
7377
7378    cygwin* | mingw* | pw32*)
7379      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7380      # as there is no search path for DLLs.
7381      hardcode_libdir_flag_spec='-L$libdir'
7382      allow_undefined_flag=unsupported
7383      always_export_symbols=no
7384      enable_shared_with_static_runtimes=yes
7385      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7386
7387      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7388        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7389        # If the export-symbols file already is a .def file (1st line
7390        # is EXPORTS), use it as is; otherwise, prepend...
7391        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7392          cp $export_symbols $output_objdir/$soname.def;
7393        else
7394          echo EXPORTS > $output_objdir/$soname.def;
7395          cat $export_symbols >> $output_objdir/$soname.def;
7396        fi~
7397        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7398      else
7399        ld_shlibs=no
7400      fi
7401      ;;
7402
7403    interix3*)
7404      hardcode_direct=no
7405      hardcode_shlibpath_var=no
7406      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7407      export_dynamic_flag_spec='${wl}-E'
7408      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7409      # Instead, shared libraries are loaded at an image base (0x10000000 by
7410      # default) and relocated if they conflict, which is a slow very memory
7411      # consuming and fragmenting process.  To avoid this, we pick a random,
7412      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7413      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7414      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7415      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'
7416      ;;
7417
7418    linux*)
7419      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7420        tmp_addflag=
7421        case $cc_basename,$host_cpu in
7422        pgcc*)                          # Portland Group C compiler
7423          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'
7424          tmp_addflag=' $pic_flag'
7425          ;;
7426        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7427          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'
7428          tmp_addflag=' $pic_flag -Mnomain' ;;
7429        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7430          tmp_addflag=' -i_dynamic' ;;
7431        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7432          tmp_addflag=' -i_dynamic -nofor_main' ;;
7433        ifc* | ifort*)                  # Intel Fortran compiler
7434          tmp_addflag=' -nofor_main' ;;
7435        esac
7436        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7437
7438        if test $supports_anon_versioning = yes; then
7439          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7440  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7441  $echo "local: *; };" >> $output_objdir/$libname.ver~
7442          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7443        fi
7444      else
7445        ld_shlibs=no
7446      fi
7447      ;;
7448
7449    netbsd*)
7450      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7451        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7452        wlarc=
7453      else
7454        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7455        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7456      fi
7457      ;;
7458
7459    solaris*)
7460      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7461        ld_shlibs=no
7462        cat <<EOF 1>&2
7463
7464*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7465*** create shared libraries on Solaris systems.  Therefore, libtool
7466*** is disabling shared libraries support.  We urge you to upgrade GNU
7467*** binutils to release 2.9.1 or newer.  Another option is to modify
7468*** your PATH or compiler configuration so that the native linker is
7469*** used, and then restart.
7470
7471EOF
7472      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7473        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7474        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7475      else
7476        ld_shlibs=no
7477      fi
7478      ;;
7479
7480    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7481      case `$LD -v 2>&1` in
7482        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7483        ld_shlibs=no
7484        cat <<_LT_EOF 1>&2
7485
7486*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7487*** reliably create shared libraries on SCO systems.  Therefore, libtool
7488*** is disabling shared libraries support.  We urge you to upgrade GNU
7489*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7490*** your PATH or compiler configuration so that the native linker is
7491*** used, and then restart.
7492
7493_LT_EOF
7494        ;;
7495        *)
7496          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7497            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7498            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7499            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7500          else
7501            ld_shlibs=no
7502          fi
7503        ;;
7504      esac
7505      ;;
7506
7507    sunos4*)
7508      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7509      wlarc=
7510      hardcode_direct=yes
7511      hardcode_shlibpath_var=no
7512      ;;
7513
7514    *)
7515      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7516        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518      else
7519        ld_shlibs=no
7520      fi
7521      ;;
7522    esac
7523
7524    if test "$ld_shlibs" = no; then
7525      runpath_var=
7526      hardcode_libdir_flag_spec=
7527      export_dynamic_flag_spec=
7528      whole_archive_flag_spec=
7529    fi
7530  else
7531    # PORTME fill in a description of your system's linker (not GNU ld)
7532    case $host_os in
7533    aix3*)
7534      allow_undefined_flag=unsupported
7535      always_export_symbols=yes
7536      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'
7537      # Note: this linker hardcodes the directories in LIBPATH if there
7538      # are no directories specified by -L.
7539      hardcode_minus_L=yes
7540      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7541        # Neither direct hardcoding nor static linking is supported with a
7542        # broken collect2.
7543        hardcode_direct=unsupported
7544      fi
7545      ;;
7546
7547    aix4* | aix5*)
7548      if test "$host_cpu" = ia64; then
7549        # On IA64, the linker does run time linking by default, so we don't
7550        # have to do anything special.
7551        aix_use_runtimelinking=no
7552        exp_sym_flag='-Bexport'
7553        no_entry_flag=""
7554      else
7555        # If we're using GNU nm, then we don't want the "-C" option.
7556        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7557        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7558          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'
7559        else
7560          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'
7561        fi
7562        aix_use_runtimelinking=no
7563
7564        # Test if we are trying to use run time linking or normal
7565        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7566        # need to do runtime linking.
7567        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7568          for ld_flag in $LDFLAGS; do
7569          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7570            aix_use_runtimelinking=yes
7571            break
7572          fi
7573          done
7574          ;;
7575        esac
7576
7577        exp_sym_flag='-bexport'
7578        no_entry_flag='-bnoentry'
7579      fi
7580
7581      # When large executables or shared objects are built, AIX ld can
7582      # have problems creating the table of contents.  If linking a library
7583      # or program results in "error TOC overflow" add -mminimal-toc to
7584      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7585      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7586
7587      archive_cmds=''
7588      hardcode_direct=yes
7589      hardcode_libdir_separator=':'
7590      link_all_deplibs=yes
7591
7592      if test "$GCC" = yes; then
7593        case $host_os in aix4.[012]|aix4.[012].*)
7594        # We only want to do this on AIX 4.2 and lower, the check
7595        # below for broken collect2 doesn't work under 4.3+
7596          collect2name=`${CC} -print-prog-name=collect2`
7597          if test -f "$collect2name" && \
7598           strings "$collect2name" | grep resolve_lib_name >/dev/null
7599          then
7600          # We have reworked collect2
7601          hardcode_direct=yes
7602          else
7603          # We have old collect2
7604          hardcode_direct=unsupported
7605          # It fails to find uninstalled libraries when the uninstalled
7606          # path is not listed in the libpath.  Setting hardcode_minus_L
7607          # to unsupported forces relinking
7608          hardcode_minus_L=yes
7609          hardcode_libdir_flag_spec='-L$libdir'
7610          hardcode_libdir_separator=
7611          fi
7612          ;;
7613        esac
7614        shared_flag='-shared'
7615        if test "$aix_use_runtimelinking" = yes; then
7616          shared_flag="$shared_flag "'${wl}-G'
7617        fi
7618      else
7619        # not using gcc
7620        if test "$host_cpu" = ia64; then
7621        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7622        # chokes on -Wl,-G. The following line is correct:
7623          shared_flag='-G'
7624        else
7625          if test "$aix_use_runtimelinking" = yes; then
7626            shared_flag='${wl}-G'
7627          else
7628            shared_flag='${wl}-bM:SRE'
7629          fi
7630        fi
7631      fi
7632
7633      # It seems that -bexpall does not export symbols beginning with
7634      # underscore (_), so it is better to generate a list of symbols to export.
7635      always_export_symbols=yes
7636      if test "$aix_use_runtimelinking" = yes; then
7637        # Warning - without using the other runtime loading flags (-brtl),
7638        # -berok will link without error, but may produce a broken library.
7639        allow_undefined_flag='-berok'
7640       # Determine the default libpath from the value encoded in an empty executable.
7641       cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h.  */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h.  */
7647
7648int
7649main ()
7650{
7651
7652  ;
7653  return 0;
7654}
7655_ACEOF
7656rm -f conftest.$ac_objext conftest$ac_exeext
7657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658  (eval $ac_link) 2>conftest.er1
7659  ac_status=$?
7660  grep -v '^ *+' conftest.er1 >conftest.err
7661  rm -f conftest.er1
7662  cat conftest.err >&5
7663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664  (exit $ac_status); } &&
7665         { ac_try='test -z "$ac_c_werror_flag"
7666                         || test ! -s conftest.err'
7667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668  (eval $ac_try) 2>&5
7669  ac_status=$?
7670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671  (exit $ac_status); }; } &&
7672         { ac_try='test -s conftest$ac_exeext'
7673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674  (eval $ac_try) 2>&5
7675  ac_status=$?
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); }; }; then
7678
7679aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7680}'`
7681# Check for a 64-bit object if we didn't find anything.
7682if 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; }
7683}'`; fi
7684else
7685  echo "$as_me: failed program was:" >&5
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688fi
7689rm -f conftest.err conftest.$ac_objext \
7690      conftest$ac_exeext conftest.$ac_ext
7691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7692
7693       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7694        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"
7695       else
7696        if test "$host_cpu" = ia64; then
7697          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7698          allow_undefined_flag="-z nodefs"
7699          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"
7700        else
7701         # Determine the default libpath from the value encoded in an empty executable.
7702         cat >conftest.$ac_ext <<_ACEOF
7703/* confdefs.h.  */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h.  */
7708
7709int
7710main ()
7711{
7712
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717rm -f conftest.$ac_objext conftest$ac_exeext
7718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719  (eval $ac_link) 2>conftest.er1
7720  ac_status=$?
7721  grep -v '^ *+' conftest.er1 >conftest.err
7722  rm -f conftest.er1
7723  cat conftest.err >&5
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); } &&
7726         { ac_try='test -z "$ac_c_werror_flag"
7727                         || test ! -s conftest.err'
7728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729  (eval $ac_try) 2>&5
7730  ac_status=$?
7731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732  (exit $ac_status); }; } &&
7733         { ac_try='test -s conftest$ac_exeext'
7734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735  (eval $ac_try) 2>&5
7736  ac_status=$?
7737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738  (exit $ac_status); }; }; then
7739
7740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7741}'`
7742# Check for a 64-bit object if we didn't find anything.
7743if 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; }
7744}'`; fi
7745else
7746  echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749fi
7750rm -f conftest.err conftest.$ac_objext \
7751      conftest$ac_exeext conftest.$ac_ext
7752if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7753
7754         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7755          # Warning - without using the other run time loading flags,
7756          # -berok will link without error, but may produce a broken library.
7757          no_undefined_flag=' ${wl}-bernotok'
7758          allow_undefined_flag=' ${wl}-berok'
7759          # Exported symbols can be pulled into shared objects from archives
7760          whole_archive_flag_spec='$convenience'
7761          archive_cmds_need_lc=yes
7762          # This is similar to how AIX traditionally builds its shared libraries.
7763          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'
7764        fi
7765      fi
7766      ;;
7767
7768    amigaos*)
7769      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)'
7770      hardcode_libdir_flag_spec='-L$libdir'
7771      hardcode_minus_L=yes
7772      # see comment about different semantics on the GNU ld section
7773      ld_shlibs=no
7774      ;;
7775
7776    bsdi[45]*)
7777      export_dynamic_flag_spec=-rdynamic
7778      ;;
7779
7780    cygwin* | mingw* | pw32*)
7781      # When not using gcc, we currently assume that we are using
7782      # Microsoft Visual C++.
7783      # hardcode_libdir_flag_spec is actually meaningless, as there is
7784      # no search path for DLLs.
7785      hardcode_libdir_flag_spec=' '
7786      allow_undefined_flag=unsupported
7787      # Tell ltmain to make .lib files, not .a files.
7788      libext=lib
7789      # Tell ltmain to make .dll files, not .so files.
7790      shrext_cmds=".dll"
7791      # FIXME: Setting linknames here is a bad hack.
7792      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7793      # The linker will automatically build a .lib file if we build a DLL.
7794      old_archive_From_new_cmds='true'
7795      # FIXME: Should let the user specify the lib program.
7796      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7797      fix_srcfile_path='`cygpath -w "$srcfile"`'
7798      enable_shared_with_static_runtimes=yes
7799      ;;
7800
7801    darwin* | rhapsody*)
7802      case $host_os in
7803        rhapsody* | darwin1.[012])
7804         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7805         ;;
7806       *) # Darwin 1.3 on
7807         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7808           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7809         else
7810           case ${MACOSX_DEPLOYMENT_TARGET} in
7811             10.[012])
7812               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7813               ;;
7814             10.*)
7815               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7816               ;;
7817           esac
7818         fi
7819         ;;
7820      esac
7821      archive_cmds_need_lc=no
7822      hardcode_direct=no
7823      hardcode_automatic=yes
7824      hardcode_shlibpath_var=unsupported
7825      whole_archive_flag_spec=''
7826      link_all_deplibs=yes
7827    if test "$GCC" = yes ; then
7828        output_verbose_link_cmd='echo'
7829        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7830      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7831      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7832      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}'
7833      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}'
7834    else
7835      case $cc_basename in
7836        xlc*)
7837         output_verbose_link_cmd='echo'
7838         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7839         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7840          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7841         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}'
7842          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}'
7843          ;;
7844       *)
7845         ld_shlibs=no
7846          ;;
7847      esac
7848    fi
7849      ;;
7850
7851    dgux*)
7852      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7853      hardcode_libdir_flag_spec='-L$libdir'
7854      hardcode_shlibpath_var=no
7855      ;;
7856
7857    freebsd1*)
7858      ld_shlibs=no
7859      ;;
7860
7861    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7862    # support.  Future versions do this automatically, but an explicit c++rt0.o
7863    # does not break anything, and helps significantly (at the cost of a little
7864    # extra space).
7865    freebsd2.2*)
7866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7867      hardcode_libdir_flag_spec='-R$libdir'
7868      hardcode_direct=yes
7869      hardcode_shlibpath_var=no
7870      ;;
7871
7872    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7873    freebsd2*)
7874      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7875      hardcode_direct=yes
7876      hardcode_minus_L=yes
7877      hardcode_shlibpath_var=no
7878      ;;
7879
7880    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7881    freebsd* | kfreebsd*-gnu | dragonfly*)
7882      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7883      hardcode_libdir_flag_spec='-R$libdir'
7884      hardcode_direct=yes
7885      hardcode_shlibpath_var=no
7886      ;;
7887
7888    hpux9*)
7889      if test "$GCC" = yes; then
7890        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'
7891      else
7892        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'
7893      fi
7894      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7895      hardcode_libdir_separator=:
7896      hardcode_direct=yes
7897
7898      # hardcode_minus_L: Not really in the search PATH,
7899      # but as the default location of the library.
7900      hardcode_minus_L=yes
7901      export_dynamic_flag_spec='${wl}-E'
7902      ;;
7903
7904    hpux10*)
7905      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7906        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7907      else
7908        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7909      fi
7910      if test "$with_gnu_ld" = no; then
7911        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7912        hardcode_libdir_separator=:
7913
7914        hardcode_direct=yes
7915        export_dynamic_flag_spec='${wl}-E'
7916
7917        # hardcode_minus_L: Not really in the search PATH,
7918        # but as the default location of the library.
7919        hardcode_minus_L=yes
7920      fi
7921      ;;
7922
7923    hpux11*)
7924      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7925        case $host_cpu in
7926        hppa*64*)
7927          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7928          ;;
7929        ia64*)
7930          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7931          ;;
7932        *)
7933          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7934          ;;
7935        esac
7936      else
7937        case $host_cpu in
7938        hppa*64*)
7939          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7940          ;;
7941        ia64*)
7942          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7943          ;;
7944        *)
7945          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7946          ;;
7947        esac
7948      fi
7949      if test "$with_gnu_ld" = no; then
7950        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7951        hardcode_libdir_separator=:
7952
7953        case $host_cpu in
7954        hppa*64*|ia64*)
7955          hardcode_libdir_flag_spec_ld='+b $libdir'
7956          hardcode_direct=no
7957          hardcode_shlibpath_var=no
7958          ;;
7959        *)
7960          hardcode_direct=yes
7961          export_dynamic_flag_spec='${wl}-E'
7962
7963          # hardcode_minus_L: Not really in the search PATH,
7964          # but as the default location of the library.
7965          hardcode_minus_L=yes
7966          ;;
7967        esac
7968      fi
7969      ;;
7970
7971    irix5* | irix6* | nonstopux*)
7972      if test "$GCC" = yes; then
7973        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'
7974      else
7975        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'
7976        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7977      fi
7978      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979      hardcode_libdir_separator=:
7980      link_all_deplibs=yes
7981      ;;
7982
7983    netbsd*)
7984      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7985        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7986      else
7987        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7988      fi
7989      hardcode_libdir_flag_spec='-R$libdir'
7990      hardcode_direct=yes
7991      hardcode_shlibpath_var=no
7992      ;;
7993
7994    newsos6)
7995      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7996      hardcode_direct=yes
7997      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7998      hardcode_libdir_separator=:
7999      hardcode_shlibpath_var=no
8000      ;;
8001
8002    openbsd*)
8003      hardcode_direct=yes
8004      hardcode_shlibpath_var=no
8005      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8006        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8007        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8008        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8009        export_dynamic_flag_spec='${wl}-E'
8010      else
8011       case $host_os in
8012         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8013           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8014           hardcode_libdir_flag_spec='-R$libdir'
8015           ;;
8016         *)
8017           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8018           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8019           ;;
8020       esac
8021      fi
8022      ;;
8023
8024    os2*)
8025      hardcode_libdir_flag_spec='-L$libdir'
8026      hardcode_minus_L=yes
8027      allow_undefined_flag=unsupported
8028      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'
8029      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8030      ;;
8031
8032    osf3*)
8033      if test "$GCC" = yes; then
8034        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8035        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'
8036      else
8037        allow_undefined_flag=' -expect_unresolved \*'
8038        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'
8039      fi
8040      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8041      hardcode_libdir_separator=:
8042      ;;
8043
8044    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8045      if test "$GCC" = yes; then
8046        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8047        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'
8048        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8049      else
8050        allow_undefined_flag=' -expect_unresolved \*'
8051        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'
8052        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8053        $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'
8054
8055        # Both c and cxx compiler support -rpath directly
8056        hardcode_libdir_flag_spec='-rpath $libdir'
8057      fi
8058      hardcode_libdir_separator=:
8059      ;;
8060
8061    solaris*)
8062      no_undefined_flag=' -z text'
8063      if test "$GCC" = yes; then
8064        wlarc='${wl}'
8065        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8066        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8067          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8068      else
8069        wlarc=''
8070        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8071        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8072        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8073      fi
8074      hardcode_libdir_flag_spec='-R$libdir'
8075      hardcode_shlibpath_var=no
8076      case $host_os in
8077      solaris2.[0-5] | solaris2.[0-5].*) ;;
8078      *)
8079        # The compiler driver will combine linker options so we
8080        # cannot just pass the convience library names through
8081        # without $wl, iff we do not link with $LD.
8082        # Luckily, gcc supports the same syntax we need for Sun Studio.
8083        # Supported since Solaris 2.6 (maybe 2.5.1?)
8084        case $wlarc in
8085        '')
8086          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8087        *)
8088          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' ;;
8089        esac ;;
8090      esac
8091      link_all_deplibs=yes
8092      ;;
8093
8094    sunos4*)
8095      if test "x$host_vendor" = xsequent; then
8096        # Use $CC to link under sequent, because it throws in some extra .o
8097        # files that make .init and .fini sections work.
8098        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8099      else
8100        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8101      fi
8102      hardcode_libdir_flag_spec='-L$libdir'
8103      hardcode_direct=yes
8104      hardcode_minus_L=yes
8105      hardcode_shlibpath_var=no
8106      ;;
8107
8108    sysv4)
8109      case $host_vendor in
8110        sni)
8111          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112          hardcode_direct=yes # is this really true???
8113        ;;
8114        siemens)
8115          ## LD is ld it makes a PLAMLIB
8116          ## CC just makes a GrossModule.
8117          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8118          reload_cmds='$CC -r -o $output$reload_objs'
8119          hardcode_direct=no
8120        ;;
8121        motorola)
8122          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8124        ;;
8125      esac
8126      runpath_var='LD_RUN_PATH'
8127      hardcode_shlibpath_var=no
8128      ;;
8129
8130    sysv4.3*)
8131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132      hardcode_shlibpath_var=no
8133      export_dynamic_flag_spec='-Bexport'
8134      ;;
8135
8136    sysv4*MP*)
8137      if test -d /usr/nec; then
8138        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139        hardcode_shlibpath_var=no
8140        runpath_var=LD_RUN_PATH
8141        hardcode_runpath_var=yes
8142        ld_shlibs=yes
8143      fi
8144      ;;
8145
8146    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8147      no_undefined_flag='${wl}-z,text'
8148      archive_cmds_need_lc=no
8149      hardcode_shlibpath_var=no
8150      runpath_var='LD_RUN_PATH'
8151
8152      if test "$GCC" = yes; then
8153        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155      else
8156        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8157        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8158      fi
8159      ;;
8160
8161    sysv5* | sco3.2v5* | sco5v6*)
8162      # Note: We can NOT use -z defs as we might desire, because we do not
8163      # link with -lc, and that would cause any symbols used from libc to
8164      # always be unresolved, which means just about no library would
8165      # ever link correctly.  If we're not using GNU ld we use -z text
8166      # though, which does catch some bad symbols but isn't as heavy-handed
8167      # as -z defs.
8168      no_undefined_flag='${wl}-z,text'
8169      allow_undefined_flag='${wl}-z,nodefs'
8170      archive_cmds_need_lc=no
8171      hardcode_shlibpath_var=no
8172      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8173      hardcode_libdir_separator=':'
8174      link_all_deplibs=yes
8175      export_dynamic_flag_spec='${wl}-Bexport'
8176      runpath_var='LD_RUN_PATH'
8177
8178      if test "$GCC" = yes; then
8179        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8180        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8181      else
8182        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8183        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8184      fi
8185      ;;
8186
8187    uts4*)
8188      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189      hardcode_libdir_flag_spec='-L$libdir'
8190      hardcode_shlibpath_var=no
8191      ;;
8192
8193    *)
8194      ld_shlibs=no
8195      ;;
8196    esac
8197  fi
8198
8199echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8200echo "${ECHO_T}$ld_shlibs" >&6
8201test "$ld_shlibs" = no && can_build_shared=no
8202
8203#
8204# Do we need to explicitly link libc?
8205#
8206case "x$archive_cmds_need_lc" in
8207x|xyes)
8208  # Assume -lc should be added
8209  archive_cmds_need_lc=yes
8210
8211  if test "$enable_shared" = yes && test "$GCC" = yes; then
8212    case $archive_cmds in
8213    *'~'*)
8214      # FIXME: we may have to deal with multi-command sequences.
8215      ;;
8216    '$CC '*)
8217      # Test whether the compiler implicitly links with -lc since on some
8218      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8219      # to ld, don't add -lc before -lgcc.
8220      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8221echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8222      $rm conftest*
8223      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8224
8225      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226  (eval $ac_compile) 2>&5
8227  ac_status=$?
8228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229  (exit $ac_status); } 2>conftest.err; then
8230        soname=conftest
8231        lib=conftest
8232        libobjs=conftest.$ac_objext
8233        deplibs=
8234        wl=$lt_prog_compiler_wl
8235        pic_flag=$lt_prog_compiler_pic
8236        compiler_flags=-v
8237        linker_flags=-v
8238        verstring=
8239        output_objdir=.
8240        libname=conftest
8241        lt_save_allow_undefined_flag=$allow_undefined_flag
8242        allow_undefined_flag=
8243        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8244  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8245  ac_status=$?
8246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247  (exit $ac_status); }
8248        then
8249          archive_cmds_need_lc=no
8250        else
8251          archive_cmds_need_lc=yes
8252        fi
8253        allow_undefined_flag=$lt_save_allow_undefined_flag
8254      else
8255        cat conftest.err 1>&5
8256      fi
8257      $rm conftest*
8258      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8259echo "${ECHO_T}$archive_cmds_need_lc" >&6
8260      ;;
8261    esac
8262  fi
8263  ;;
8264esac
8265
8266echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8267echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8268library_names_spec=
8269libname_spec='lib$name'
8270soname_spec=
8271shrext_cmds=".so"
8272postinstall_cmds=
8273postuninstall_cmds=
8274finish_cmds=
8275finish_eval=
8276shlibpath_var=
8277shlibpath_overrides_runpath=unknown
8278version_type=none
8279dynamic_linker="$host_os ld.so"
8280sys_lib_dlsearch_path_spec="/lib /usr/lib"
8281if test "$GCC" = yes; then
8282  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8283  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8284    # if the path contains ";" then we assume it to be the separator
8285    # otherwise default to the standard path separator (i.e. ":") - it is
8286    # assumed that no part of a normal pathname contains ";" but that should
8287    # okay in the real world where ";" in dirpaths is itself problematic.
8288    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8289  else
8290    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8291  fi
8292else
8293  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8294fi
8295need_lib_prefix=unknown
8296hardcode_into_libs=no
8297
8298# when you set need_version to no, make sure it does not cause -set_version
8299# flags to be left without arguments
8300need_version=unknown
8301
8302case $host_os in
8303aix3*)
8304  version_type=linux
8305  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8306  shlibpath_var=LIBPATH
8307
8308  # AIX 3 has no versioning support, so we append a major version to the name.
8309  soname_spec='${libname}${release}${shared_ext}$major'
8310  ;;
8311
8312aix4* | aix5*)
8313  version_type=linux
8314  need_lib_prefix=no
8315  need_version=no
8316  hardcode_into_libs=yes
8317  if test "$host_cpu" = ia64; then
8318    # AIX 5 supports IA64
8319    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8320    shlibpath_var=LD_LIBRARY_PATH
8321  else
8322    # With GCC up to 2.95.x, collect2 would create an import file
8323    # for dependence libraries.  The import file would start with
8324    # the line `#! .'.  This would cause the generated library to
8325    # depend on `.', always an invalid library.  This was fixed in
8326    # development snapshots of GCC prior to 3.0.
8327    case $host_os in
8328      aix4 | aix4.[01] | aix4.[01].*)
8329      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8330           echo ' yes '
8331           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8332        :
8333      else
8334        can_build_shared=no
8335      fi
8336      ;;
8337    esac
8338    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8339    # soname into executable. Probably we can add versioning support to
8340    # collect2, so additional links can be useful in future.
8341    if test "$aix_use_runtimelinking" = yes; then
8342      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8343      # instead of lib<name>.a to let people know that these are not
8344      # typical AIX shared libraries.
8345      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346    else
8347      # We preserve .a as extension for shared libraries through AIX4.2
8348      # and later when we are not doing run time linking.
8349      library_names_spec='${libname}${release}.a $libname.a'
8350      soname_spec='${libname}${release}${shared_ext}$major'
8351    fi
8352    shlibpath_var=LIBPATH
8353  fi
8354  ;;
8355
8356amigaos*)
8357  library_names_spec='$libname.ixlibrary $libname.a'
8358  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8359  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'
8360  ;;
8361
8362beos*)
8363  library_names_spec='${libname}${shared_ext}'
8364  dynamic_linker="$host_os ld.so"
8365  shlibpath_var=LIBRARY_PATH
8366  ;;
8367
8368bsdi[45]*)
8369  version_type=linux
8370  need_version=no
8371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372  soname_spec='${libname}${release}${shared_ext}$major'
8373  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8374  shlibpath_var=LD_LIBRARY_PATH
8375  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8376  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8377  # the default ld.so.conf also contains /usr/contrib/lib and
8378  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8379  # libtool to hard-code these into programs
8380  ;;
8381
8382cygwin* | mingw* | pw32*)
8383  version_type=windows
8384  shrext_cmds=".dll"
8385  need_version=no
8386  need_lib_prefix=no
8387
8388  case $GCC,$host_os in
8389  yes,cygwin* | yes,mingw* | yes,pw32*)
8390    library_names_spec='$libname.dll.a'
8391    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8392    postinstall_cmds='base_file=`basename \${file}`~
8393      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8394      dldir=$destdir/`dirname \$dlpath`~
8395      test -d \$dldir || mkdir -p \$dldir~
8396      $install_prog $dir/$dlname \$dldir/$dlname~
8397      chmod a+x \$dldir/$dlname'
8398    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8399      dlpath=$dir/\$dldll~
8400       $rm \$dlpath'
8401    shlibpath_overrides_runpath=yes
8402
8403    case $host_os in
8404    cygwin*)
8405      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8406      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8407      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8408      ;;
8409    mingw*)
8410      # MinGW DLLs use traditional 'lib' prefix
8411      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8412      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8413      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8414        # It is most probably a Windows format PATH printed by
8415        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8416        # path with ; separators, and with drive letters. We can handle the
8417        # drive letters (cygwin fileutils understands them), so leave them,
8418        # especially as we might pass files found there to a mingw objdump,
8419        # which wouldn't understand a cygwinified path. Ahh.
8420        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8421      else
8422        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8423      fi
8424      ;;
8425    pw32*)
8426      # pw32 DLLs use 'pw' prefix rather than 'lib'
8427      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8428      ;;
8429    esac
8430    ;;
8431
8432  *)
8433    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8434    ;;
8435  esac
8436  dynamic_linker='Win32 ld.exe'
8437  # FIXME: first we should search . and the directory the executable is in
8438  shlibpath_var=PATH
8439  ;;
8440
8441darwin* | rhapsody*)
8442  dynamic_linker="$host_os dyld"
8443  version_type=darwin
8444  need_lib_prefix=no
8445  need_version=no
8446  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8447  soname_spec='${libname}${release}${major}$shared_ext'
8448  shlibpath_overrides_runpath=yes
8449  shlibpath_var=DYLD_LIBRARY_PATH
8450  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8451  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8452  if test "$GCC" = yes; then
8453    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"`
8454  else
8455    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8456  fi
8457  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8458  ;;
8459
8460dgux*)
8461  version_type=linux
8462  need_lib_prefix=no
8463  need_version=no
8464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8465  soname_spec='${libname}${release}${shared_ext}$major'
8466  shlibpath_var=LD_LIBRARY_PATH
8467  ;;
8468
8469freebsd1*)
8470  dynamic_linker=no
8471  ;;
8472
8473kfreebsd*-gnu)
8474  version_type=linux
8475  need_lib_prefix=no
8476  need_version=no
8477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8478  soname_spec='${libname}${release}${shared_ext}$major'
8479  shlibpath_var=LD_LIBRARY_PATH
8480  shlibpath_overrides_runpath=no
8481  hardcode_into_libs=yes
8482  dynamic_linker='GNU ld.so'
8483  ;;
8484
8485freebsd* | dragonfly*)
8486  # DragonFly does not have aout.  When/if they implement a new
8487  # versioning mechanism, adjust this.
8488  if test -x /usr/bin/objformat; then
8489    objformat=`/usr/bin/objformat`
8490  else
8491    case $host_os in
8492    freebsd[123]*) objformat=aout ;;
8493    *) objformat=elf ;;
8494    esac
8495  fi
8496  version_type=freebsd-$objformat
8497  case $version_type in
8498    freebsd-elf*)
8499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8500      need_version=no
8501      need_lib_prefix=no
8502      ;;
8503    freebsd-*)
8504      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8505      need_version=yes
8506      ;;
8507  esac
8508  shlibpath_var=LD_LIBRARY_PATH
8509  case $host_os in
8510  freebsd2*)
8511    shlibpath_overrides_runpath=yes
8512    ;;
8513  freebsd3.[01]* | freebsdelf3.[01]*)
8514    shlibpath_overrides_runpath=yes
8515    hardcode_into_libs=yes
8516    ;;
8517  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8518  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8519    shlibpath_overrides_runpath=no
8520    hardcode_into_libs=yes
8521    ;;
8522  freebsd*) # from 4.6 on
8523    shlibpath_overrides_runpath=yes
8524    hardcode_into_libs=yes
8525    ;;
8526  esac
8527  ;;
8528
8529gnu*)
8530  version_type=linux
8531  need_lib_prefix=no
8532  need_version=no
8533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8534  soname_spec='${libname}${release}${shared_ext}$major'
8535  shlibpath_var=LD_LIBRARY_PATH
8536  hardcode_into_libs=yes
8537  ;;
8538
8539hpux9* | hpux10* | hpux11*)
8540  # Give a soname corresponding to the major version so that dld.sl refuses to
8541  # link against other versions.
8542  version_type=sunos
8543  need_lib_prefix=no
8544  need_version=no
8545  case $host_cpu in
8546  ia64*)
8547    shrext_cmds='.so'
8548    hardcode_into_libs=yes
8549    dynamic_linker="$host_os dld.so"
8550    shlibpath_var=LD_LIBRARY_PATH
8551    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8553    soname_spec='${libname}${release}${shared_ext}$major'
8554    if test "X$HPUX_IA64_MODE" = X32; then
8555      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8556    else
8557      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8558    fi
8559    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8560    ;;
8561   hppa*64*)
8562     shrext_cmds='.sl'
8563     hardcode_into_libs=yes
8564     dynamic_linker="$host_os dld.sl"
8565     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568     soname_spec='${libname}${release}${shared_ext}$major'
8569     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8571     ;;
8572   *)
8573    shrext_cmds='.sl'
8574    dynamic_linker="$host_os dld.sl"
8575    shlibpath_var=SHLIB_PATH
8576    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578    soname_spec='${libname}${release}${shared_ext}$major'
8579    ;;
8580  esac
8581  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8582  postinstall_cmds='chmod 555 $lib'
8583  ;;
8584
8585interix3*)
8586  version_type=linux
8587  need_lib_prefix=no
8588  need_version=no
8589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8590  soname_spec='${libname}${release}${shared_ext}$major'
8591  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8592  shlibpath_var=LD_LIBRARY_PATH
8593  shlibpath_overrides_runpath=no
8594  hardcode_into_libs=yes
8595  ;;
8596
8597irix5* | irix6* | nonstopux*)
8598  case $host_os in
8599    nonstopux*) version_type=nonstopux ;;
8600    *)
8601        if test "$lt_cv_prog_gnu_ld" = yes; then
8602                version_type=linux
8603        else
8604                version_type=irix
8605        fi ;;
8606  esac
8607  need_lib_prefix=no
8608  need_version=no
8609  soname_spec='${libname}${release}${shared_ext}$major'
8610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8611  case $host_os in
8612  irix5* | nonstopux*)
8613    libsuff= shlibsuff=
8614    ;;
8615  *)
8616    case $LD in # libtool.m4 will add one of these switches to LD
8617    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8618      libsuff= shlibsuff= libmagic=32-bit;;
8619    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8620      libsuff=32 shlibsuff=N32 libmagic=N32;;
8621    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8622      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8623    *) libsuff= shlibsuff= libmagic=never-match;;
8624    esac
8625    ;;
8626  esac
8627  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8628  shlibpath_overrides_runpath=no
8629  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8630  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8631  hardcode_into_libs=yes
8632  ;;
8633
8634# No shared lib support for Linux oldld, aout, or coff.
8635linux*oldld* | linux*aout* | linux*coff*)
8636  dynamic_linker=no
8637  ;;
8638
8639# This must be Linux ELF.
8640linux*)
8641  version_type=linux
8642  need_lib_prefix=no
8643  need_version=no
8644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645  soname_spec='${libname}${release}${shared_ext}$major'
8646  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8647  shlibpath_var=LD_LIBRARY_PATH
8648  shlibpath_overrides_runpath=no
8649  # This implies no fast_install, which is unacceptable.
8650  # Some rework will be needed to allow for fast_install
8651  # before this can be enabled.
8652  hardcode_into_libs=yes
8653
8654  # Append ld.so.conf contents to the search path
8655  if test -f /etc/ld.so.conf; then
8656    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' ' '`
8657    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8658  fi
8659
8660  # We used to test for /lib/ld.so.1 and disable shared libraries on
8661  # powerpc, because MkLinux only supported shared libraries with the
8662  # GNU dynamic linker.  Since this was broken with cross compilers,
8663  # most powerpc-linux boxes support dynamic linking these days and
8664  # people can always --disable-shared, the test was removed, and we
8665  # assume the GNU/Linux dynamic linker is in use.
8666  dynamic_linker='GNU/Linux ld.so'
8667  ;;
8668
8669knetbsd*-gnu)
8670  version_type=linux
8671  need_lib_prefix=no
8672  need_version=no
8673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8674  soname_spec='${libname}${release}${shared_ext}$major'
8675  shlibpath_var=LD_LIBRARY_PATH
8676  shlibpath_overrides_runpath=no
8677  hardcode_into_libs=yes
8678  dynamic_linker='GNU ld.so'
8679  ;;
8680
8681netbsd*)
8682  version_type=sunos
8683  need_lib_prefix=no
8684  need_version=no
8685  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8686    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8687    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8688    dynamic_linker='NetBSD (a.out) ld.so'
8689  else
8690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8691    soname_spec='${libname}${release}${shared_ext}$major'
8692    dynamic_linker='NetBSD ld.elf_so'
8693  fi
8694  shlibpath_var=LD_LIBRARY_PATH
8695  shlibpath_overrides_runpath=yes
8696  hardcode_into_libs=yes
8697  ;;
8698
8699newsos6)
8700  version_type=linux
8701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8702  shlibpath_var=LD_LIBRARY_PATH
8703  shlibpath_overrides_runpath=yes
8704  ;;
8705
8706nto-qnx*)
8707  version_type=linux
8708  need_lib_prefix=no
8709  need_version=no
8710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711  soname_spec='${libname}${release}${shared_ext}$major'
8712  shlibpath_var=LD_LIBRARY_PATH
8713  shlibpath_overrides_runpath=yes
8714  ;;
8715
8716openbsd*)
8717  version_type=sunos
8718  sys_lib_dlsearch_path_spec="/usr/lib"
8719  need_lib_prefix=no
8720  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8721  case $host_os in
8722    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8723    *)                         need_version=no  ;;
8724  esac
8725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8726  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8727  shlibpath_var=LD_LIBRARY_PATH
8728  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8729    case $host_os in
8730      openbsd2.[89] | openbsd2.[89].*)
8731        shlibpath_overrides_runpath=no
8732        ;;
8733      *)
8734        shlibpath_overrides_runpath=yes
8735        ;;
8736      esac
8737  else
8738    shlibpath_overrides_runpath=yes
8739  fi
8740  ;;
8741
8742os2*)
8743  libname_spec='$name'
8744  shrext_cmds=".dll"
8745  need_lib_prefix=no
8746  library_names_spec='$libname${shared_ext} $libname.a'
8747  dynamic_linker='OS/2 ld.exe'
8748  shlibpath_var=LIBPATH
8749  ;;
8750
8751osf3* | osf4* | osf5*)
8752  version_type=osf
8753  need_lib_prefix=no
8754  need_version=no
8755  soname_spec='${libname}${release}${shared_ext}$major'
8756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757  shlibpath_var=LD_LIBRARY_PATH
8758  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8759  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8760  ;;
8761
8762solaris*)
8763  version_type=linux
8764  need_lib_prefix=no
8765  need_version=no
8766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767  soname_spec='${libname}${release}${shared_ext}$major'
8768  shlibpath_var=LD_LIBRARY_PATH
8769  shlibpath_overrides_runpath=yes
8770  hardcode_into_libs=yes
8771  # ldd complains unless libraries are executable
8772  postinstall_cmds='chmod +x $lib'
8773  ;;
8774
8775sunos4*)
8776  version_type=sunos
8777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8778  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8779  shlibpath_var=LD_LIBRARY_PATH
8780  shlibpath_overrides_runpath=yes
8781  if test "$with_gnu_ld" = yes; then
8782    need_lib_prefix=no
8783  fi
8784  need_version=yes
8785  ;;
8786
8787sysv4 | sysv4.3*)
8788  version_type=linux
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  shlibpath_var=LD_LIBRARY_PATH
8792  case $host_vendor in
8793    sni)
8794      shlibpath_overrides_runpath=no
8795      need_lib_prefix=no
8796      export_dynamic_flag_spec='${wl}-Blargedynsym'
8797      runpath_var=LD_RUN_PATH
8798      ;;
8799    siemens)
8800      need_lib_prefix=no
8801      ;;
8802    motorola)
8803      need_lib_prefix=no
8804      need_version=no
8805      shlibpath_overrides_runpath=no
8806      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8807      ;;
8808  esac
8809  ;;
8810
8811sysv4*MP*)
8812  if test -d /usr/nec ;then
8813    version_type=linux
8814    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8815    soname_spec='$libname${shared_ext}.$major'
8816    shlibpath_var=LD_LIBRARY_PATH
8817  fi
8818  ;;
8819
8820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8821  version_type=freebsd-elf
8822  need_lib_prefix=no
8823  need_version=no
8824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8825  soname_spec='${libname}${release}${shared_ext}$major'
8826  shlibpath_var=LD_LIBRARY_PATH
8827  hardcode_into_libs=yes
8828  if test "$with_gnu_ld" = yes; then
8829    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8830    shlibpath_overrides_runpath=no
8831  else
8832    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8833    shlibpath_overrides_runpath=yes
8834    case $host_os in
8835      sco3.2v5*)
8836        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8837        ;;
8838    esac
8839  fi
8840  sys_lib_dlsearch_path_spec='/usr/lib'
8841  ;;
8842
8843uts4*)
8844  version_type=linux
8845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846  soname_spec='${libname}${release}${shared_ext}$major'
8847  shlibpath_var=LD_LIBRARY_PATH
8848  ;;
8849
8850*)
8851  dynamic_linker=no
8852  ;;
8853esac
8854echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8855echo "${ECHO_T}$dynamic_linker" >&6
8856test "$dynamic_linker" = no && can_build_shared=no
8857
8858variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8859if test "$GCC" = yes; then
8860  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8861fi
8862
8863echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8864echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8865hardcode_action=
8866if test -n "$hardcode_libdir_flag_spec" || \
8867   test -n "$runpath_var" || \
8868   test "X$hardcode_automatic" = "Xyes" ; then
8869
8870  # We can hardcode non-existant directories.
8871  if test "$hardcode_direct" != no &&
8872     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8873     # have to relink, otherwise we might link with an installed library
8874     # when we should be linking with a yet-to-be-installed one
8875     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8876     test "$hardcode_minus_L" != no; then
8877    # Linking always hardcodes the temporary library directory.
8878    hardcode_action=relink
8879  else
8880    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8881    hardcode_action=immediate
8882  fi
8883else
8884  # We cannot hardcode anything, or else we can only hardcode existing
8885  # directories.
8886  hardcode_action=unsupported
8887fi
8888echo "$as_me:$LINENO: result: $hardcode_action" >&5
8889echo "${ECHO_T}$hardcode_action" >&6
8890
8891if test "$hardcode_action" = relink; then
8892  # Fast installation is not supported
8893  enable_fast_install=no
8894elif test "$shlibpath_overrides_runpath" = yes ||
8895     test "$enable_shared" = no; then
8896  # Fast installation is not necessary
8897  enable_fast_install=needless
8898fi
8899
8900striplib=
8901old_striplib=
8902echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8903echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8904if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8905  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8906  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8907  echo "$as_me:$LINENO: result: yes" >&5
8908echo "${ECHO_T}yes" >&6
8909else
8910# FIXME - insert some real tests, host_os isn't really good enough
8911  case $host_os in
8912   darwin*)
8913       if test -n "$STRIP" ; then
8914         striplib="$STRIP -x"
8915         echo "$as_me:$LINENO: result: yes" >&5
8916echo "${ECHO_T}yes" >&6
8917       else
8918  echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6
8920fi
8921       ;;
8922   *)
8923  echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
8925    ;;
8926  esac
8927fi
8928
8929if test "x$enable_dlopen" != xyes; then
8930  enable_dlopen=unknown
8931  enable_dlopen_self=unknown
8932  enable_dlopen_self_static=unknown
8933else
8934  lt_cv_dlopen=no
8935  lt_cv_dlopen_libs=
8936
8937  case $host_os in
8938  beos*)
8939    lt_cv_dlopen="load_add_on"
8940    lt_cv_dlopen_libs=
8941    lt_cv_dlopen_self=yes
8942    ;;
8943
8944  mingw* | pw32*)
8945    lt_cv_dlopen="LoadLibrary"
8946    lt_cv_dlopen_libs=
8947   ;;
8948
8949  cygwin*)
8950    lt_cv_dlopen="dlopen"
8951    lt_cv_dlopen_libs=
8952   ;;
8953
8954  darwin*)
8955  # if libdl is installed we need to link against it
8956    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8957echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8959  echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961  ac_check_lib_save_LIBS=$LIBS
8962LIBS="-ldl  $LIBS"
8963cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h.  */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h.  */
8969
8970/* Override any gcc2 internal prototype to avoid an error.  */
8971#ifdef __cplusplus
8972extern "C"
8973#endif
8974/* We use char because int might match the return type of a gcc2
8975   builtin and then its argument prototype would still apply.  */
8976char dlopen ();
8977int
8978main ()
8979{
8980dlopen ();
8981  ;
8982  return 0;
8983}
8984_ACEOF
8985rm -f conftest.$ac_objext conftest$ac_exeext
8986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987  (eval $ac_link) 2>conftest.er1
8988  ac_status=$?
8989  grep -v '^ *+' conftest.er1 >conftest.err
8990  rm -f conftest.er1
8991  cat conftest.err >&5
8992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993  (exit $ac_status); } &&
8994         { ac_try='test -z "$ac_c_werror_flag"
8995                         || test ! -s conftest.err'
8996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997  (eval $ac_try) 2>&5
8998  ac_status=$?
8999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000  (exit $ac_status); }; } &&
9001         { ac_try='test -s conftest$ac_exeext'
9002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003  (eval $ac_try) 2>&5
9004  ac_status=$?
9005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006  (exit $ac_status); }; }; then
9007  ac_cv_lib_dl_dlopen=yes
9008else
9009  echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012ac_cv_lib_dl_dlopen=no
9013fi
9014rm -f conftest.err conftest.$ac_objext \
9015      conftest$ac_exeext conftest.$ac_ext
9016LIBS=$ac_check_lib_save_LIBS
9017fi
9018echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9019echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9020if test $ac_cv_lib_dl_dlopen = yes; then
9021  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9022else
9023
9024    lt_cv_dlopen="dyld"
9025    lt_cv_dlopen_libs=
9026    lt_cv_dlopen_self=yes
9027
9028fi
9029
9030   ;;
9031
9032  *)
9033    echo "$as_me:$LINENO: checking for shl_load" >&5
9034echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9035if test "${ac_cv_func_shl_load+set}" = set; then
9036  echo $ECHO_N "(cached) $ECHO_C" >&6
9037else
9038  cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h.  */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h.  */
9044/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9045   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9046#define shl_load innocuous_shl_load
9047
9048/* System header to define __stub macros and hopefully few prototypes,
9049    which can conflict with char shl_load (); below.
9050    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9051    <limits.h> exists even on freestanding compilers.  */
9052
9053#ifdef __STDC__
9054# include <limits.h>
9055#else
9056# include <assert.h>
9057#endif
9058
9059#undef shl_load
9060
9061/* Override any gcc2 internal prototype to avoid an error.  */
9062#ifdef __cplusplus
9063extern "C"
9064{
9065#endif
9066/* We use char because int might match the return type of a gcc2
9067   builtin and then its argument prototype would still apply.  */
9068char shl_load ();
9069/* The GNU C library defines this for functions which it implements
9070    to always fail with ENOSYS.  Some functions are actually named
9071    something starting with __ and the normal name is an alias.  */
9072#if defined (__stub_shl_load) || defined (__stub___shl_load)
9073choke me
9074#else
9075char (*f) () = shl_load;
9076#endif
9077#ifdef __cplusplus
9078}
9079#endif
9080
9081int
9082main ()
9083{
9084return f != shl_load;
9085  ;
9086  return 0;
9087}
9088_ACEOF
9089rm -f conftest.$ac_objext conftest$ac_exeext
9090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091  (eval $ac_link) 2>conftest.er1
9092  ac_status=$?
9093  grep -v '^ *+' conftest.er1 >conftest.err
9094  rm -f conftest.er1
9095  cat conftest.err >&5
9096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097  (exit $ac_status); } &&
9098         { ac_try='test -z "$ac_c_werror_flag"
9099                         || test ! -s conftest.err'
9100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101  (eval $ac_try) 2>&5
9102  ac_status=$?
9103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104  (exit $ac_status); }; } &&
9105         { ac_try='test -s conftest$ac_exeext'
9106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107  (eval $ac_try) 2>&5
9108  ac_status=$?
9109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110  (exit $ac_status); }; }; then
9111  ac_cv_func_shl_load=yes
9112else
9113  echo "$as_me: failed program was:" >&5
9114sed 's/^/| /' conftest.$ac_ext >&5
9115
9116ac_cv_func_shl_load=no
9117fi
9118rm -f conftest.err conftest.$ac_objext \
9119      conftest$ac_exeext conftest.$ac_ext
9120fi
9121echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9122echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9123if test $ac_cv_func_shl_load = yes; then
9124  lt_cv_dlopen="shl_load"
9125else
9126  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9127echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9128if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9129  echo $ECHO_N "(cached) $ECHO_C" >&6
9130else
9131  ac_check_lib_save_LIBS=$LIBS
9132LIBS="-ldld  $LIBS"
9133cat >conftest.$ac_ext <<_ACEOF
9134/* confdefs.h.  */
9135_ACEOF
9136cat confdefs.h >>conftest.$ac_ext
9137cat >>conftest.$ac_ext <<_ACEOF
9138/* end confdefs.h.  */
9139
9140/* Override any gcc2 internal prototype to avoid an error.  */
9141#ifdef __cplusplus
9142extern "C"
9143#endif
9144/* We use char because int might match the return type of a gcc2
9145   builtin and then its argument prototype would still apply.  */
9146char shl_load ();
9147int
9148main ()
9149{
9150shl_load ();
9151  ;
9152  return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext conftest$ac_exeext
9156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157  (eval $ac_link) 2>conftest.er1
9158  ac_status=$?
9159  grep -v '^ *+' conftest.er1 >conftest.err
9160  rm -f conftest.er1
9161  cat conftest.err >&5
9162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163  (exit $ac_status); } &&
9164         { ac_try='test -z "$ac_c_werror_flag"
9165                         || test ! -s conftest.err'
9166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167  (eval $ac_try) 2>&5
9168  ac_status=$?
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); }; } &&
9171         { ac_try='test -s conftest$ac_exeext'
9172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173  (eval $ac_try) 2>&5
9174  ac_status=$?
9175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176  (exit $ac_status); }; }; then
9177  ac_cv_lib_dld_shl_load=yes
9178else
9179  echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182ac_cv_lib_dld_shl_load=no
9183fi
9184rm -f conftest.err conftest.$ac_objext \
9185      conftest$ac_exeext conftest.$ac_ext
9186LIBS=$ac_check_lib_save_LIBS
9187fi
9188echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9189echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9190if test $ac_cv_lib_dld_shl_load = yes; then
9191  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9192else
9193  echo "$as_me:$LINENO: checking for dlopen" >&5
9194echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9195if test "${ac_cv_func_dlopen+set}" = set; then
9196  echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198  cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h.  */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h.  */
9204/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9205   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9206#define dlopen innocuous_dlopen
9207
9208/* System header to define __stub macros and hopefully few prototypes,
9209    which can conflict with char dlopen (); below.
9210    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211    <limits.h> exists even on freestanding compilers.  */
9212
9213#ifdef __STDC__
9214# include <limits.h>
9215#else
9216# include <assert.h>
9217#endif
9218
9219#undef dlopen
9220
9221/* Override any gcc2 internal prototype to avoid an error.  */
9222#ifdef __cplusplus
9223extern "C"
9224{
9225#endif
9226/* We use char because int might match the return type of a gcc2
9227   builtin and then its argument prototype would still apply.  */
9228char dlopen ();
9229/* The GNU C library defines this for functions which it implements
9230    to always fail with ENOSYS.  Some functions are actually named
9231    something starting with __ and the normal name is an alias.  */
9232#if defined (__stub_dlopen) || defined (__stub___dlopen)
9233choke me
9234#else
9235char (*f) () = dlopen;
9236#endif
9237#ifdef __cplusplus
9238}
9239#endif
9240
9241int
9242main ()
9243{
9244return f != dlopen;
9245  ;
9246  return 0;
9247}
9248_ACEOF
9249rm -f conftest.$ac_objext conftest$ac_exeext
9250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251  (eval $ac_link) 2>conftest.er1
9252  ac_status=$?
9253  grep -v '^ *+' conftest.er1 >conftest.err
9254  rm -f conftest.er1
9255  cat conftest.err >&5
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); } &&
9258         { ac_try='test -z "$ac_c_werror_flag"
9259                         || test ! -s conftest.err'
9260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261  (eval $ac_try) 2>&5
9262  ac_status=$?
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); }; } &&
9265         { ac_try='test -s conftest$ac_exeext'
9266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267  (eval $ac_try) 2>&5
9268  ac_status=$?
9269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270  (exit $ac_status); }; }; then
9271  ac_cv_func_dlopen=yes
9272else
9273  echo "$as_me: failed program was:" >&5
9274sed 's/^/| /' conftest.$ac_ext >&5
9275
9276ac_cv_func_dlopen=no
9277fi
9278rm -f conftest.err conftest.$ac_objext \
9279      conftest$ac_exeext conftest.$ac_ext
9280fi
9281echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9282echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9283if test $ac_cv_func_dlopen = yes; then
9284  lt_cv_dlopen="dlopen"
9285else
9286  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9287echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9288if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9289  echo $ECHO_N "(cached) $ECHO_C" >&6
9290else
9291  ac_check_lib_save_LIBS=$LIBS
9292LIBS="-ldl  $LIBS"
9293cat >conftest.$ac_ext <<_ACEOF
9294/* confdefs.h.  */
9295_ACEOF
9296cat confdefs.h >>conftest.$ac_ext
9297cat >>conftest.$ac_ext <<_ACEOF
9298/* end confdefs.h.  */
9299
9300/* Override any gcc2 internal prototype to avoid an error.  */
9301#ifdef __cplusplus
9302extern "C"
9303#endif
9304/* We use char because int might match the return type of a gcc2
9305   builtin and then its argument prototype would still apply.  */
9306char dlopen ();
9307int
9308main ()
9309{
9310dlopen ();
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315rm -f conftest.$ac_objext conftest$ac_exeext
9316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317  (eval $ac_link) 2>conftest.er1
9318  ac_status=$?
9319  grep -v '^ *+' conftest.er1 >conftest.err
9320  rm -f conftest.er1
9321  cat conftest.err >&5
9322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323  (exit $ac_status); } &&
9324         { ac_try='test -z "$ac_c_werror_flag"
9325                         || test ! -s conftest.err'
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); }; } &&
9331         { ac_try='test -s conftest$ac_exeext'
9332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333  (eval $ac_try) 2>&5
9334  ac_status=$?
9335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); }; }; then
9337  ac_cv_lib_dl_dlopen=yes
9338else
9339  echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342ac_cv_lib_dl_dlopen=no
9343fi
9344rm -f conftest.err conftest.$ac_objext \
9345      conftest$ac_exeext conftest.$ac_ext
9346LIBS=$ac_check_lib_save_LIBS
9347fi
9348echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9349echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9350if test $ac_cv_lib_dl_dlopen = yes; then
9351  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9352else
9353  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9354echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9355if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9356  echo $ECHO_N "(cached) $ECHO_C" >&6
9357else
9358  ac_check_lib_save_LIBS=$LIBS
9359LIBS="-lsvld  $LIBS"
9360cat >conftest.$ac_ext <<_ACEOF
9361/* confdefs.h.  */
9362_ACEOF
9363cat confdefs.h >>conftest.$ac_ext
9364cat >>conftest.$ac_ext <<_ACEOF
9365/* end confdefs.h.  */
9366
9367/* Override any gcc2 internal prototype to avoid an error.  */
9368#ifdef __cplusplus
9369extern "C"
9370#endif
9371/* We use char because int might match the return type of a gcc2
9372   builtin and then its argument prototype would still apply.  */
9373char dlopen ();
9374int
9375main ()
9376{
9377dlopen ();
9378  ;
9379  return 0;
9380}
9381_ACEOF
9382rm -f conftest.$ac_objext conftest$ac_exeext
9383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384  (eval $ac_link) 2>conftest.er1
9385  ac_status=$?
9386  grep -v '^ *+' conftest.er1 >conftest.err
9387  rm -f conftest.er1
9388  cat conftest.err >&5
9389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390  (exit $ac_status); } &&
9391         { ac_try='test -z "$ac_c_werror_flag"
9392                         || test ! -s conftest.err'
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); }; } &&
9398         { ac_try='test -s conftest$ac_exeext'
9399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400  (eval $ac_try) 2>&5
9401  ac_status=$?
9402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403  (exit $ac_status); }; }; then
9404  ac_cv_lib_svld_dlopen=yes
9405else
9406  echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409ac_cv_lib_svld_dlopen=no
9410fi
9411rm -f conftest.err conftest.$ac_objext \
9412      conftest$ac_exeext conftest.$ac_ext
9413LIBS=$ac_check_lib_save_LIBS
9414fi
9415echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9416echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9417if test $ac_cv_lib_svld_dlopen = yes; then
9418  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9419else
9420  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9421echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9422if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9423  echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425  ac_check_lib_save_LIBS=$LIBS
9426LIBS="-ldld  $LIBS"
9427cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h.  */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h.  */
9433
9434/* Override any gcc2 internal prototype to avoid an error.  */
9435#ifdef __cplusplus
9436extern "C"
9437#endif
9438/* We use char because int might match the return type of a gcc2
9439   builtin and then its argument prototype would still apply.  */
9440char dld_link ();
9441int
9442main ()
9443{
9444dld_link ();
9445  ;
9446  return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext conftest$ac_exeext
9450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451  (eval $ac_link) 2>conftest.er1
9452  ac_status=$?
9453  grep -v '^ *+' conftest.er1 >conftest.err
9454  rm -f conftest.er1
9455  cat conftest.err >&5
9456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457  (exit $ac_status); } &&
9458         { ac_try='test -z "$ac_c_werror_flag"
9459                         || test ! -s conftest.err'
9460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461  (eval $ac_try) 2>&5
9462  ac_status=$?
9463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464  (exit $ac_status); }; } &&
9465         { ac_try='test -s conftest$ac_exeext'
9466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467  (eval $ac_try) 2>&5
9468  ac_status=$?
9469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470  (exit $ac_status); }; }; then
9471  ac_cv_lib_dld_dld_link=yes
9472else
9473  echo "$as_me: failed program was:" >&5
9474sed 's/^/| /' conftest.$ac_ext >&5
9475
9476ac_cv_lib_dld_dld_link=no
9477fi
9478rm -f conftest.err conftest.$ac_objext \
9479      conftest$ac_exeext conftest.$ac_ext
9480LIBS=$ac_check_lib_save_LIBS
9481fi
9482echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9483echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9484if test $ac_cv_lib_dld_dld_link = yes; then
9485  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9486fi
9487
9488
9489fi
9490
9491
9492fi
9493
9494
9495fi
9496
9497
9498fi
9499
9500
9501fi
9502
9503    ;;
9504  esac
9505
9506  if test "x$lt_cv_dlopen" != xno; then
9507    enable_dlopen=yes
9508  else
9509    enable_dlopen=no
9510  fi
9511
9512  case $lt_cv_dlopen in
9513  dlopen)
9514    save_CPPFLAGS="$CPPFLAGS"
9515    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9516
9517    save_LDFLAGS="$LDFLAGS"
9518    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9519
9520    save_LIBS="$LIBS"
9521    LIBS="$lt_cv_dlopen_libs $LIBS"
9522
9523    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9524echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9525if test "${lt_cv_dlopen_self+set}" = set; then
9526  echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528          if test "$cross_compiling" = yes; then :
9529  lt_cv_dlopen_self=cross
9530else
9531  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9532  lt_status=$lt_dlunknown
9533  cat > conftest.$ac_ext <<EOF
9534#line 9534 "configure"
9535#include "confdefs.h"
9536
9537#if HAVE_DLFCN_H
9538#include <dlfcn.h>
9539#endif
9540
9541#include <stdio.h>
9542
9543#ifdef RTLD_GLOBAL
9544#  define LT_DLGLOBAL           RTLD_GLOBAL
9545#else
9546#  ifdef DL_GLOBAL
9547#    define LT_DLGLOBAL         DL_GLOBAL
9548#  else
9549#    define LT_DLGLOBAL         0
9550#  endif
9551#endif
9552
9553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9554   find out it does not work in some platform. */
9555#ifndef LT_DLLAZY_OR_NOW
9556#  ifdef RTLD_LAZY
9557#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9558#  else
9559#    ifdef DL_LAZY
9560#      define LT_DLLAZY_OR_NOW          DL_LAZY
9561#    else
9562#      ifdef RTLD_NOW
9563#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9564#      else
9565#        ifdef DL_NOW
9566#          define LT_DLLAZY_OR_NOW      DL_NOW
9567#        else
9568#          define LT_DLLAZY_OR_NOW      0
9569#        endif
9570#      endif
9571#    endif
9572#  endif
9573#endif
9574
9575#ifdef __cplusplus
9576extern "C" void exit (int);
9577#endif
9578
9579void fnord() { int i=42;}
9580int main ()
9581{
9582  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9583  int status = $lt_dlunknown;
9584
9585  if (self)
9586    {
9587      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9588      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9589      /* dlclose (self); */
9590    }
9591  else
9592    puts (dlerror ());
9593
9594    exit (status);
9595}
9596EOF
9597  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598  (eval $ac_link) 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9602    (./conftest; exit; ) >&5 2>/dev/null
9603    lt_status=$?
9604    case x$lt_status in
9605      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9606      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9607      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9608    esac
9609  else :
9610    # compilation failed
9611    lt_cv_dlopen_self=no
9612  fi
9613fi
9614rm -fr conftest*
9615
9616
9617fi
9618echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9619echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9620
9621    if test "x$lt_cv_dlopen_self" = xyes; then
9622      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9623      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9624echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9625if test "${lt_cv_dlopen_self_static+set}" = set; then
9626  echo $ECHO_N "(cached) $ECHO_C" >&6
9627else
9628          if test "$cross_compiling" = yes; then :
9629  lt_cv_dlopen_self_static=cross
9630else
9631  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9632  lt_status=$lt_dlunknown
9633  cat > conftest.$ac_ext <<EOF
9634#line 9634 "configure"
9635#include "confdefs.h"
9636
9637#if HAVE_DLFCN_H
9638#include <dlfcn.h>
9639#endif
9640
9641#include <stdio.h>
9642
9643#ifdef RTLD_GLOBAL
9644#  define LT_DLGLOBAL           RTLD_GLOBAL
9645#else
9646#  ifdef DL_GLOBAL
9647#    define LT_DLGLOBAL         DL_GLOBAL
9648#  else
9649#    define LT_DLGLOBAL         0
9650#  endif
9651#endif
9652
9653/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9654   find out it does not work in some platform. */
9655#ifndef LT_DLLAZY_OR_NOW
9656#  ifdef RTLD_LAZY
9657#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9658#  else
9659#    ifdef DL_LAZY
9660#      define LT_DLLAZY_OR_NOW          DL_LAZY
9661#    else
9662#      ifdef RTLD_NOW
9663#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9664#      else
9665#        ifdef DL_NOW
9666#          define LT_DLLAZY_OR_NOW      DL_NOW
9667#        else
9668#          define LT_DLLAZY_OR_NOW      0
9669#        endif
9670#      endif
9671#    endif
9672#  endif
9673#endif
9674
9675#ifdef __cplusplus
9676extern "C" void exit (int);
9677#endif
9678
9679void fnord() { int i=42;}
9680int main ()
9681{
9682  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9683  int status = $lt_dlunknown;
9684
9685  if (self)
9686    {
9687      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9688      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9689      /* dlclose (self); */
9690    }
9691  else
9692    puts (dlerror ());
9693
9694    exit (status);
9695}
9696EOF
9697  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698  (eval $ac_link) 2>&5
9699  ac_status=$?
9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9702    (./conftest; exit; ) >&5 2>/dev/null
9703    lt_status=$?
9704    case x$lt_status in
9705      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9706      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9707      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9708    esac
9709  else :
9710    # compilation failed
9711    lt_cv_dlopen_self_static=no
9712  fi
9713fi
9714rm -fr conftest*
9715
9716
9717fi
9718echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9719echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9720    fi
9721
9722    CPPFLAGS="$save_CPPFLAGS"
9723    LDFLAGS="$save_LDFLAGS"
9724    LIBS="$save_LIBS"
9725    ;;
9726  esac
9727
9728  case $lt_cv_dlopen_self in
9729  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9730  *) enable_dlopen_self=unknown ;;
9731  esac
9732
9733  case $lt_cv_dlopen_self_static in
9734  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9735  *) enable_dlopen_self_static=unknown ;;
9736  esac
9737fi
9738
9739
9740# Report which library types will actually be built
9741echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9742echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9743echo "$as_me:$LINENO: result: $can_build_shared" >&5
9744echo "${ECHO_T}$can_build_shared" >&6
9745
9746echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9747echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9748test "$can_build_shared" = "no" && enable_shared=no
9749
9750# On AIX, shared libraries and static libraries use the same namespace, and
9751# are all built from PIC.
9752case $host_os in
9753aix3*)
9754  test "$enable_shared" = yes && enable_static=no
9755  if test -n "$RANLIB"; then
9756    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9757    postinstall_cmds='$RANLIB $lib'
9758  fi
9759  ;;
9760
9761aix4* | aix5*)
9762  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9763    test "$enable_shared" = yes && enable_static=no
9764  fi
9765    ;;
9766esac
9767echo "$as_me:$LINENO: result: $enable_shared" >&5
9768echo "${ECHO_T}$enable_shared" >&6
9769
9770echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9771echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9772# Make sure either enable_shared or enable_static is yes.
9773test "$enable_shared" = yes || enable_static=yes
9774echo "$as_me:$LINENO: result: $enable_static" >&5
9775echo "${ECHO_T}$enable_static" >&6
9776
9777# The else clause should only fire when bootstrapping the
9778# libtool distribution, otherwise you forgot to ship ltmain.sh
9779# with your package, and you will get complaints that there are
9780# no rules to generate ltmain.sh.
9781if test -f "$ltmain"; then
9782  # See if we are running on zsh, and set the options which allow our commands through
9783  # without removal of \ escapes.
9784  if test -n "${ZSH_VERSION+set}" ; then
9785    setopt NO_GLOB_SUBST
9786  fi
9787  # Now quote all the things that may contain metacharacters while being
9788  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9789  # variables and quote the copies for generation of the libtool script.
9790  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9791    SED SHELL STRIP \
9792    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9793    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9794    deplibs_check_method reload_flag reload_cmds need_locks \
9795    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9796    lt_cv_sys_global_symbol_to_c_name_address \
9797    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9798    old_postinstall_cmds old_postuninstall_cmds \
9799    compiler \
9800    CC \
9801    LD \
9802    lt_prog_compiler_wl \
9803    lt_prog_compiler_pic \
9804    lt_prog_compiler_static \
9805    lt_prog_compiler_no_builtin_flag \
9806    export_dynamic_flag_spec \
9807    thread_safe_flag_spec \
9808    whole_archive_flag_spec \
9809    enable_shared_with_static_runtimes \
9810    old_archive_cmds \
9811    old_archive_from_new_cmds \
9812    predep_objects \
9813    postdep_objects \
9814    predeps \
9815    postdeps \
9816    compiler_lib_search_path \
9817    archive_cmds \
9818    archive_expsym_cmds \
9819    postinstall_cmds \
9820    postuninstall_cmds \
9821    old_archive_from_expsyms_cmds \
9822    allow_undefined_flag \
9823    no_undefined_flag \
9824    export_symbols_cmds \
9825    hardcode_libdir_flag_spec \
9826    hardcode_libdir_flag_spec_ld \
9827    hardcode_libdir_separator \
9828    hardcode_automatic \
9829    module_cmds \
9830    module_expsym_cmds \
9831    lt_cv_prog_compiler_c_o \
9832    exclude_expsyms \
9833    include_expsyms; do
9834
9835    case $var in
9836    old_archive_cmds | \
9837    old_archive_from_new_cmds | \
9838    archive_cmds | \
9839    archive_expsym_cmds | \
9840    module_cmds | \
9841    module_expsym_cmds | \
9842    old_archive_from_expsyms_cmds | \
9843    export_symbols_cmds | \
9844    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9845    postinstall_cmds | postuninstall_cmds | \
9846    old_postinstall_cmds | old_postuninstall_cmds | \
9847    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9848      # Double-quote double-evaled strings.
9849      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9850      ;;
9851    *)
9852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9853      ;;
9854    esac
9855  done
9856
9857  case $lt_echo in
9858  *'\$0 --fallback-echo"')
9859    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9860    ;;
9861  esac
9862
9863cfgfile="${ofile}T"
9864  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9865  $rm -f "$cfgfile"
9866  { echo "$as_me:$LINENO: creating $ofile" >&5
9867echo "$as_me: creating $ofile" >&6;}
9868
9869  cat <<__EOF__ >> "$cfgfile"
9870#! $SHELL
9871
9872# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9873# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9874# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9875#
9876# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9877# Free Software Foundation, Inc.
9878#
9879# This file is part of GNU Libtool:
9880# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9881#
9882# This program is free software; you can redistribute it and/or modify
9883# it under the terms of the GNU General Public License as published by
9884# the Free Software Foundation; either version 2 of the License, or
9885# (at your option) any later version.
9886#
9887# This program is distributed in the hope that it will be useful, but
9888# WITHOUT ANY WARRANTY; without even the implied warranty of
9889# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9890# General Public License for more details.
9891#
9892# You should have received a copy of the GNU General Public License
9893# along with this program; if not, write to the Free Software
9894# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9895#
9896# As a special exception to the GNU General Public License, if you
9897# distribute this file as part of a program that contains a
9898# configuration script generated by Autoconf, you may include it under
9899# the same distribution terms that you use for the rest of that program.
9900
9901# A sed program that does not truncate output.
9902SED=$lt_SED
9903
9904# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9905Xsed="$SED -e 1s/^X//"
9906
9907# The HP-UX ksh and POSIX shell print the target directory to stdout
9908# if CDPATH is set.
9909(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9910
9911# The names of the tagged configurations supported by this script.
9912available_tags=
9913
9914# ### BEGIN LIBTOOL CONFIG
9915
9916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9917
9918# Shell to use when invoking shell scripts.
9919SHELL=$lt_SHELL
9920
9921# Whether or not to build shared libraries.
9922build_libtool_libs=$enable_shared
9923
9924# Whether or not to build static libraries.
9925build_old_libs=$enable_static
9926
9927# Whether or not to add -lc for building shared libraries.
9928build_libtool_need_lc=$archive_cmds_need_lc
9929
9930# Whether or not to disallow shared libs when runtime libs are static
9931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9932
9933# Whether or not to optimize for fast installation.
9934fast_install=$enable_fast_install
9935
9936# The host system.
9937host_alias=$host_alias
9938host=$host
9939host_os=$host_os
9940
9941# The build system.
9942build_alias=$build_alias
9943build=$build
9944build_os=$build_os
9945
9946# An echo program that does not interpret backslashes.
9947echo=$lt_echo
9948
9949# The archiver.
9950AR=$lt_AR
9951AR_FLAGS=$lt_AR_FLAGS
9952
9953# A C compiler.
9954LTCC=$lt_LTCC
9955
9956# LTCC compiler flags.
9957LTCFLAGS=$lt_LTCFLAGS
9958
9959# A language-specific compiler.
9960CC=$lt_compiler
9961
9962# Is the compiler the GNU C compiler?
9963with_gcc=$GCC
9964
9965# An ERE matcher.
9966EGREP=$lt_EGREP
9967
9968# The linker used to build libraries.
9969LD=$lt_LD
9970
9971# Whether we need hard or soft links.
9972LN_S=$lt_LN_S
9973
9974# A BSD-compatible nm program.
9975NM=$lt_NM
9976
9977# A symbol stripping program
9978STRIP=$lt_STRIP
9979
9980# Used to examine libraries when file_magic_cmd begins "file"
9981MAGIC_CMD=$MAGIC_CMD
9982
9983# Used on cygwin: DLL creation program.
9984DLLTOOL="$DLLTOOL"
9985
9986# Used on cygwin: object dumper.
9987OBJDUMP="$OBJDUMP"
9988
9989# Used on cygwin: assembler.
9990AS="$AS"
9991
9992# The name of the directory that contains temporary libtool files.
9993objdir=$objdir
9994
9995# How to create reloadable object files.
9996reload_flag=$lt_reload_flag
9997reload_cmds=$lt_reload_cmds
9998
9999# How to pass a linker flag through the compiler.
10000wl=$lt_lt_prog_compiler_wl
10001
10002# Object file suffix (normally "o").
10003objext="$ac_objext"
10004
10005# Old archive suffix (normally "a").
10006libext="$libext"
10007
10008# Shared library suffix (normally ".so").
10009shrext_cmds='$shrext_cmds'
10010
10011# Executable file suffix (normally "").
10012exeext="$exeext"
10013
10014# Additional compiler flags for building library objects.
10015pic_flag=$lt_lt_prog_compiler_pic
10016pic_mode=$pic_mode
10017
10018# What is the maximum length of a command?
10019max_cmd_len=$lt_cv_sys_max_cmd_len
10020
10021# Does compiler simultaneously support -c and -o options?
10022compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10023
10024# Must we lock files when doing compilation?
10025need_locks=$lt_need_locks
10026
10027# Do we need the lib prefix for modules?
10028need_lib_prefix=$need_lib_prefix
10029
10030# Do we need a version for libraries?
10031need_version=$need_version
10032
10033# Whether dlopen is supported.
10034dlopen_support=$enable_dlopen
10035
10036# Whether dlopen of programs is supported.
10037dlopen_self=$enable_dlopen_self
10038
10039# Whether dlopen of statically linked programs is supported.
10040dlopen_self_static=$enable_dlopen_self_static
10041
10042# Compiler flag to prevent dynamic linking.
10043link_static_flag=$lt_lt_prog_compiler_static
10044
10045# Compiler flag to turn off builtin functions.
10046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10047
10048# Compiler flag to allow reflexive dlopens.
10049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10050
10051# Compiler flag to generate shared objects directly from archives.
10052whole_archive_flag_spec=$lt_whole_archive_flag_spec
10053
10054# Compiler flag to generate thread-safe objects.
10055thread_safe_flag_spec=$lt_thread_safe_flag_spec
10056
10057# Library versioning type.
10058version_type=$version_type
10059
10060# Format of library name prefix.
10061libname_spec=$lt_libname_spec
10062
10063# List of archive names.  First name is the real one, the rest are links.
10064# The last name is the one that the linker finds with -lNAME.
10065library_names_spec=$lt_library_names_spec
10066
10067# The coded name of the library, if different from the real name.
10068soname_spec=$lt_soname_spec
10069
10070# Commands used to build and install an old-style archive.
10071RANLIB=$lt_RANLIB
10072old_archive_cmds=$lt_old_archive_cmds
10073old_postinstall_cmds=$lt_old_postinstall_cmds
10074old_postuninstall_cmds=$lt_old_postuninstall_cmds
10075
10076# Create an old-style archive from a shared archive.
10077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10078
10079# Create a temporary old-style archive to link instead of a shared archive.
10080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10081
10082# Commands used to build and install a shared archive.
10083archive_cmds=$lt_archive_cmds
10084archive_expsym_cmds=$lt_archive_expsym_cmds
10085postinstall_cmds=$lt_postinstall_cmds
10086postuninstall_cmds=$lt_postuninstall_cmds
10087
10088# Commands used to build a loadable module (assumed same as above if empty)
10089module_cmds=$lt_module_cmds
10090module_expsym_cmds=$lt_module_expsym_cmds
10091
10092# Commands to strip libraries.
10093old_striplib=$lt_old_striplib
10094striplib=$lt_striplib
10095
10096# Dependencies to place before the objects being linked to create a
10097# shared library.
10098predep_objects=$lt_predep_objects
10099
10100# Dependencies to place after the objects being linked to create a
10101# shared library.
10102postdep_objects=$lt_postdep_objects
10103
10104# Dependencies to place before the objects being linked to create a
10105# shared library.
10106predeps=$lt_predeps
10107
10108# Dependencies to place after the objects being linked to create a
10109# shared library.
10110postdeps=$lt_postdeps
10111
10112# The library search path used internally by the compiler when linking
10113# a shared library.
10114compiler_lib_search_path=$lt_compiler_lib_search_path
10115
10116# Method to check whether dependent libraries are shared objects.
10117deplibs_check_method=$lt_deplibs_check_method
10118
10119# Command to use when deplibs_check_method == file_magic.
10120file_magic_cmd=$lt_file_magic_cmd
10121
10122# Flag that allows shared libraries with undefined symbols to be built.
10123allow_undefined_flag=$lt_allow_undefined_flag
10124
10125# Flag that forces no undefined symbols.
10126no_undefined_flag=$lt_no_undefined_flag
10127
10128# Commands used to finish a libtool library installation in a directory.
10129finish_cmds=$lt_finish_cmds
10130
10131# Same as above, but a single script fragment to be evaled but not shown.
10132finish_eval=$lt_finish_eval
10133
10134# Take the output of nm and produce a listing of raw symbols and C names.
10135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10136
10137# Transform the output of nm in a proper C declaration
10138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10139
10140# Transform the output of nm in a C name address pair
10141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10142
10143# This is the shared library runtime path variable.
10144runpath_var=$runpath_var
10145
10146# This is the shared library path variable.
10147shlibpath_var=$shlibpath_var
10148
10149# Is shlibpath searched before the hard-coded library search path?
10150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10151
10152# How to hardcode a shared library path into an executable.
10153hardcode_action=$hardcode_action
10154
10155# Whether we should hardcode library paths into libraries.
10156hardcode_into_libs=$hardcode_into_libs
10157
10158# Flag to hardcode \$libdir into a binary during linking.
10159# This must work even if \$libdir does not exist.
10160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10161
10162# If ld is used when linking, flag to hardcode \$libdir into
10163# a binary during linking. This must work even if \$libdir does
10164# not exist.
10165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10166
10167# Whether we need a single -rpath flag with a separated argument.
10168hardcode_libdir_separator=$lt_hardcode_libdir_separator
10169
10170# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10171# resulting binary.
10172hardcode_direct=$hardcode_direct
10173
10174# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10175# resulting binary.
10176hardcode_minus_L=$hardcode_minus_L
10177
10178# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10179# the resulting binary.
10180hardcode_shlibpath_var=$hardcode_shlibpath_var
10181
10182# Set to yes if building a shared library automatically hardcodes DIR into the library
10183# and all subsequent libraries and executables linked against it.
10184hardcode_automatic=$hardcode_automatic
10185
10186# Variables whose values should be saved in libtool wrapper scripts and
10187# restored at relink time.
10188variables_saved_for_relink="$variables_saved_for_relink"
10189
10190# Whether libtool must link a program against all its dependency libraries.
10191link_all_deplibs=$link_all_deplibs
10192
10193# Compile-time system search path for libraries
10194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10195
10196# Run-time system search path for libraries
10197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10198
10199# Fix the shell variable \$srcfile for the compiler.
10200fix_srcfile_path="$fix_srcfile_path"
10201
10202# Set to yes if exported symbols are required.
10203always_export_symbols=$always_export_symbols
10204
10205# The commands to list exported symbols.
10206export_symbols_cmds=$lt_export_symbols_cmds
10207
10208# The commands to extract the exported symbol list from a shared archive.
10209extract_expsyms_cmds=$lt_extract_expsyms_cmds
10210
10211# Symbols that should not be listed in the preloaded symbols.
10212exclude_expsyms=$lt_exclude_expsyms
10213
10214# Symbols that must always be exported.
10215include_expsyms=$lt_include_expsyms
10216
10217# ### END LIBTOOL CONFIG
10218
10219__EOF__
10220
10221
10222  case $host_os in
10223  aix3*)
10224    cat <<\EOF >> "$cfgfile"
10225
10226# AIX sometimes has problems with the GCC collect2 program.  For some
10227# reason, if we set the COLLECT_NAMES environment variable, the problems
10228# vanish in a puff of smoke.
10229if test "X${COLLECT_NAMES+set}" != Xset; then
10230  COLLECT_NAMES=
10231  export COLLECT_NAMES
10232fi
10233EOF
10234    ;;
10235  esac
10236
10237  # We use sed instead of cat because bash on DJGPP gets confused if
10238  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10239  # text mode, it properly converts lines to CR/LF.  This bash problem
10240  # is reportedly fixed, but why not run on old versions too?
10241  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10242
10243  mv -f "$cfgfile" "$ofile" || \
10244    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10245  chmod +x "$ofile"
10246
10247else
10248  # If there is no Makefile yet, we rely on a make rule to execute
10249  # `config.status --recheck' to rerun these tests and create the
10250  # libtool script then.
10251  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10252  if test -f "$ltmain_in"; then
10253    test -f Makefile && make "$ltmain"
10254  fi
10255fi
10256
10257
10258ac_ext=c
10259ac_cpp='$CPP $CPPFLAGS'
10260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10262ac_compiler_gnu=$ac_cv_c_compiler_gnu
10263
10264CC="$lt_save_CC"
10265
10266
10267# Check whether --with-tags or --without-tags was given.
10268if test "${with_tags+set}" = set; then
10269  withval="$with_tags"
10270  tagnames="$withval"
10271fi;
10272
10273if test -f "$ltmain" && test -n "$tagnames"; then
10274  if test ! -f "${ofile}"; then
10275    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10276echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10277  fi
10278
10279  if test -z "$LTCC"; then
10280    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10281    if test -z "$LTCC"; then
10282      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10283echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10284    else
10285      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10286echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10287    fi
10288  fi
10289  if test -z "$LTCFLAGS"; then
10290    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10291  fi
10292
10293  # Extract list of available tagged configurations in $ofile.
10294  # Note that this assumes the entire list is on one line.
10295  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10296
10297  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10298  for tagname in $tagnames; do
10299    IFS="$lt_save_ifs"
10300    # Check whether tagname contains only valid characters
10301    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10302    "") ;;
10303    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10304echo "$as_me: error: invalid tag name: $tagname" >&2;}
10305   { (exit 1); exit 1; }; }
10306        ;;
10307    esac
10308
10309    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10310    then
10311      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10312echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10313   { (exit 1); exit 1; }; }
10314    fi
10315
10316    # Update the list of available tags.
10317    if test -n "$tagname"; then
10318      echo appending configuration tag \"$tagname\" to $ofile
10319
10320      case $tagname in
10321      CXX)
10322        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10323            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10324            (test "X$CXX" != "Xg++"))) ; then
10325          ac_ext=cc
10326ac_cpp='$CXXCPP $CPPFLAGS'
10327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10330
10331
10332
10333
10334archive_cmds_need_lc_CXX=no
10335allow_undefined_flag_CXX=
10336always_export_symbols_CXX=no
10337archive_expsym_cmds_CXX=
10338export_dynamic_flag_spec_CXX=
10339hardcode_direct_CXX=no
10340hardcode_libdir_flag_spec_CXX=
10341hardcode_libdir_flag_spec_ld_CXX=
10342hardcode_libdir_separator_CXX=
10343hardcode_minus_L_CXX=no
10344hardcode_shlibpath_var_CXX=unsupported
10345hardcode_automatic_CXX=no
10346module_cmds_CXX=
10347module_expsym_cmds_CXX=
10348link_all_deplibs_CXX=unknown
10349old_archive_cmds_CXX=$old_archive_cmds
10350no_undefined_flag_CXX=
10351whole_archive_flag_spec_CXX=
10352enable_shared_with_static_runtimes_CXX=no
10353
10354# Dependencies to place before and after the object being linked:
10355predep_objects_CXX=
10356postdep_objects_CXX=
10357predeps_CXX=
10358postdeps_CXX=
10359compiler_lib_search_path_CXX=
10360
10361# Source file extension for C++ test sources.
10362ac_ext=cpp
10363
10364# Object file extension for compiled C++ test sources.
10365objext=o
10366objext_CXX=$objext
10367
10368# Code to be used in simple compile tests
10369lt_simple_compile_test_code="int some_variable = 0;\n"
10370
10371# Code to be used in simple link tests
10372lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10373
10374# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10375
10376# If no C compiler was specified, use CC.
10377LTCC=${LTCC-"$CC"}
10378
10379# If no C compiler flags were specified, use CFLAGS.
10380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10381
10382# Allow CC to be a program name with arguments.
10383compiler=$CC
10384
10385
10386# save warnings/boilerplate of simple test code
10387ac_outfile=conftest.$ac_objext
10388printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10390_lt_compiler_boilerplate=`cat conftest.err`
10391$rm conftest*
10392
10393ac_outfile=conftest.$ac_objext
10394printf "$lt_simple_link_test_code" >conftest.$ac_ext
10395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10396_lt_linker_boilerplate=`cat conftest.err`
10397$rm conftest*
10398
10399
10400# Allow CC to be a program name with arguments.
10401lt_save_CC=$CC
10402lt_save_LD=$LD
10403lt_save_GCC=$GCC
10404GCC=$GXX
10405lt_save_with_gnu_ld=$with_gnu_ld
10406lt_save_path_LD=$lt_cv_path_LD
10407if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10408  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10409else
10410  $as_unset lt_cv_prog_gnu_ld
10411fi
10412if test -n "${lt_cv_path_LDCXX+set}"; then
10413  lt_cv_path_LD=$lt_cv_path_LDCXX
10414else
10415  $as_unset lt_cv_path_LD
10416fi
10417test -z "${LDCXX+set}" || LD=$LDCXX
10418CC=${CXX-"c++"}
10419compiler=$CC
10420compiler_CXX=$CC
10421for cc_temp in $compiler""; do
10422  case $cc_temp in
10423    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10424    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10425    \-*) ;;
10426    *) break;;
10427  esac
10428done
10429cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10430
10431
10432# We don't want -fno-exception wen compiling C++ code, so set the
10433# no_builtin_flag separately
10434if test "$GXX" = yes; then
10435  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10436else
10437  lt_prog_compiler_no_builtin_flag_CXX=
10438fi
10439
10440if test "$GXX" = yes; then
10441  # Set up default GNU C++ configuration
10442
10443
10444# Check whether --with-gnu-ld or --without-gnu-ld was given.
10445if test "${with_gnu_ld+set}" = set; then
10446  withval="$with_gnu_ld"
10447  test "$withval" = no || with_gnu_ld=yes
10448else
10449  with_gnu_ld=no
10450fi;
10451ac_prog=ld
10452if test "$GCC" = yes; then
10453  # Check if gcc -print-prog-name=ld gives a path.
10454  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10455echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10456  case $host in
10457  *-*-mingw*)
10458    # gcc leaves a trailing carriage return which upsets mingw
10459    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10460  *)
10461    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10462  esac
10463  case $ac_prog in
10464    # Accept absolute paths.
10465    [\\/]* | ?:[\\/]*)
10466      re_direlt='/[^/][^/]*/\.\./'
10467      # Canonicalize the pathname of ld
10468      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10469      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10470        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10471      done
10472      test -z "$LD" && LD="$ac_prog"
10473      ;;
10474  "")
10475    # If it fails, then pretend we aren't using GCC.
10476    ac_prog=ld
10477    ;;
10478  *)
10479    # If it is relative, then search for the first ld in PATH.
10480    with_gnu_ld=unknown
10481    ;;
10482  esac
10483elif test "$with_gnu_ld" = yes; then
10484  echo "$as_me:$LINENO: checking for GNU ld" >&5
10485echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10486else
10487  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10488echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10489fi
10490if test "${lt_cv_path_LD+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493  if test -z "$LD"; then
10494  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10495  for ac_dir in $PATH; do
10496    IFS="$lt_save_ifs"
10497    test -z "$ac_dir" && ac_dir=.
10498    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10499      lt_cv_path_LD="$ac_dir/$ac_prog"
10500      # Check to see if the program is GNU ld.  I'd rather use --version,
10501      # but apparently some variants of GNU ld only accept -v.
10502      # Break only if it was the GNU/non-GNU ld that we prefer.
10503      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10504      *GNU* | *'with BFD'*)
10505        test "$with_gnu_ld" != no && break
10506        ;;
10507      *)
10508        test "$with_gnu_ld" != yes && break
10509        ;;
10510      esac
10511    fi
10512  done
10513  IFS="$lt_save_ifs"
10514else
10515  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10516fi
10517fi
10518
10519LD="$lt_cv_path_LD"
10520if test -n "$LD"; then
10521  echo "$as_me:$LINENO: result: $LD" >&5
10522echo "${ECHO_T}$LD" >&6
10523else
10524  echo "$as_me:$LINENO: result: no" >&5
10525echo "${ECHO_T}no" >&6
10526fi
10527test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10528echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10529   { (exit 1); exit 1; }; }
10530echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10531echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10532if test "${lt_cv_prog_gnu_ld+set}" = set; then
10533  echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10536case `$LD -v 2>&1 </dev/null` in
10537*GNU* | *'with BFD'*)
10538  lt_cv_prog_gnu_ld=yes
10539  ;;
10540*)
10541  lt_cv_prog_gnu_ld=no
10542  ;;
10543esac
10544fi
10545echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10546echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10547with_gnu_ld=$lt_cv_prog_gnu_ld
10548
10549
10550
10551  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10552  # archiving commands below assume that GNU ld is being used.
10553  if test "$with_gnu_ld" = yes; then
10554    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10555    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'
10556
10557    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10558    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10559
10560    # If archive_cmds runs LD, not CC, wlarc should be empty
10561    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10562    #     investigate it a little bit more. (MM)
10563    wlarc='${wl}'
10564
10565    # ancient GNU ld didn't support --whole-archive et. al.
10566    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10567        grep 'no-whole-archive' > /dev/null; then
10568      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10569    else
10570      whole_archive_flag_spec_CXX=
10571    fi
10572  else
10573    with_gnu_ld=no
10574    wlarc=
10575
10576    # A generic and very simple default shared library creation
10577    # command for GNU C++ for the case where it uses the native
10578    # linker, instead of GNU ld.  If possible, this setting should
10579    # overridden to take advantage of the native linker features on
10580    # the platform it is being used on.
10581    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10582  fi
10583
10584  # Commands to make compiler produce verbose output that lists
10585  # what "hidden" libraries, object files and flags are used when
10586  # linking a shared library.
10587  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10588
10589else
10590  GXX=no
10591  with_gnu_ld=no
10592  wlarc=
10593fi
10594
10595# PORTME: fill in a description of your system's C++ link characteristics
10596echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10597echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10598ld_shlibs_CXX=yes
10599case $host_os in
10600  aix3*)
10601    # FIXME: insert proper C++ library support
10602    ld_shlibs_CXX=no
10603    ;;
10604  aix4* | aix5*)
10605    if test "$host_cpu" = ia64; then
10606      # On IA64, the linker does run time linking by default, so we don't
10607      # have to do anything special.
10608      aix_use_runtimelinking=no
10609      exp_sym_flag='-Bexport'
10610      no_entry_flag=""
10611    else
10612      aix_use_runtimelinking=no
10613
10614      # Test if we are trying to use run time linking or normal
10615      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10616      # need to do runtime linking.
10617      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10618        for ld_flag in $LDFLAGS; do
10619          case $ld_flag in
10620          *-brtl*)
10621            aix_use_runtimelinking=yes
10622            break
10623            ;;
10624          esac
10625        done
10626        ;;
10627      esac
10628
10629      exp_sym_flag='-bexport'
10630      no_entry_flag='-bnoentry'
10631    fi
10632
10633    # When large executables or shared objects are built, AIX ld can
10634    # have problems creating the table of contents.  If linking a library
10635    # or program results in "error TOC overflow" add -mminimal-toc to
10636    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10637    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10638
10639    archive_cmds_CXX=''
10640    hardcode_direct_CXX=yes
10641    hardcode_libdir_separator_CXX=':'
10642    link_all_deplibs_CXX=yes
10643
10644    if test "$GXX" = yes; then
10645      case $host_os in aix4.[012]|aix4.[012].*)
10646      # We only want to do this on AIX 4.2 and lower, the check
10647      # below for broken collect2 doesn't work under 4.3+
10648        collect2name=`${CC} -print-prog-name=collect2`
10649        if test -f "$collect2name" && \
10650           strings "$collect2name" | grep resolve_lib_name >/dev/null
10651        then
10652          # We have reworked collect2
10653          hardcode_direct_CXX=yes
10654        else
10655          # We have old collect2
10656          hardcode_direct_CXX=unsupported
10657          # It fails to find uninstalled libraries when the uninstalled
10658          # path is not listed in the libpath.  Setting hardcode_minus_L
10659          # to unsupported forces relinking
10660          hardcode_minus_L_CXX=yes
10661          hardcode_libdir_flag_spec_CXX='-L$libdir'
10662          hardcode_libdir_separator_CXX=
10663        fi
10664        ;;
10665      esac
10666      shared_flag='-shared'
10667      if test "$aix_use_runtimelinking" = yes; then
10668        shared_flag="$shared_flag "'${wl}-G'
10669      fi
10670    else
10671      # not using gcc
10672      if test "$host_cpu" = ia64; then
10673        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10674        # chokes on -Wl,-G. The following line is correct:
10675        shared_flag='-G'
10676      else
10677        if test "$aix_use_runtimelinking" = yes; then
10678          shared_flag='${wl}-G'
10679        else
10680          shared_flag='${wl}-bM:SRE'
10681        fi
10682      fi
10683    fi
10684
10685    # It seems that -bexpall does not export symbols beginning with
10686    # underscore (_), so it is better to generate a list of symbols to export.
10687    always_export_symbols_CXX=yes
10688    if test "$aix_use_runtimelinking" = yes; then
10689      # Warning - without using the other runtime loading flags (-brtl),
10690      # -berok will link without error, but may produce a broken library.
10691      allow_undefined_flag_CXX='-berok'
10692      # Determine the default libpath from the value encoded in an empty executable.
10693      cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h.  */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h.  */
10699
10700int
10701main ()
10702{
10703
10704  ;
10705  return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext conftest$ac_exeext
10709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10710  (eval $ac_link) 2>conftest.er1
10711  ac_status=$?
10712  grep -v '^ *+' conftest.er1 >conftest.err
10713  rm -f conftest.er1
10714  cat conftest.err >&5
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); } &&
10717         { ac_try='test -z "$ac_cxx_werror_flag"
10718                         || test ! -s conftest.err'
10719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720  (eval $ac_try) 2>&5
10721  ac_status=$?
10722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723  (exit $ac_status); }; } &&
10724         { ac_try='test -s conftest$ac_exeext'
10725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726  (eval $ac_try) 2>&5
10727  ac_status=$?
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); }; }; then
10730
10731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10732}'`
10733# Check for a 64-bit object if we didn't find anything.
10734if 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; }
10735}'`; fi
10736else
10737  echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
10739
10740fi
10741rm -f conftest.err conftest.$ac_objext \
10742      conftest$ac_exeext conftest.$ac_ext
10743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10744
10745      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10746
10747      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"
10748     else
10749      if test "$host_cpu" = ia64; then
10750        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10751        allow_undefined_flag_CXX="-z nodefs"
10752        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"
10753      else
10754        # Determine the default libpath from the value encoded in an empty executable.
10755        cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h.  */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h.  */
10761
10762int
10763main ()
10764{
10765
10766  ;
10767  return 0;
10768}
10769_ACEOF
10770rm -f conftest.$ac_objext conftest$ac_exeext
10771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772  (eval $ac_link) 2>conftest.er1
10773  ac_status=$?
10774  grep -v '^ *+' conftest.er1 >conftest.err
10775  rm -f conftest.er1
10776  cat conftest.err >&5
10777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778  (exit $ac_status); } &&
10779         { ac_try='test -z "$ac_cxx_werror_flag"
10780                         || test ! -s conftest.err'
10781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782  (eval $ac_try) 2>&5
10783  ac_status=$?
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); }; } &&
10786         { ac_try='test -s conftest$ac_exeext'
10787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788  (eval $ac_try) 2>&5
10789  ac_status=$?
10790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791  (exit $ac_status); }; }; then
10792
10793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File