source: ThirdParty/Metis/trunk/configure @ 2884

Last change on this file since 2884 was 2884, checked in by tkr, 8 years ago

Re-running autotools

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