source: ThirdParty/HSL/releases/1.0.7/configure @ 571

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

temporarily committing release candidate to stable

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