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

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

temporarily committing release candidate

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