source: ThirdParty/Metis/stable/1.2/configure @ 2934

Last change on this file since 2934 was 2934, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty/Metis?/stable/1.2

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