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

Last change on this file since 2606 was 2606, checked in by stefan, 8 years ago

restoring BuildTools/ThirdParty/Metis?/stable/1.2

  • Property svn:executable set to *
File size: 709.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 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartyMetis 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis 1.2 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis 1.2:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-metis compile project Metis with debug compiler flags
1064  --enable-doscompile     Under Cygwin, compile so that executables run under
1065                          DOS. Set to mingw to use gcc/g++/ld with
1066                          -mno-cygwin. Set to msvc to use cl/link (or
1067                          icl/link). Default when mentioned: mingw. Default
1068                          when not mentioned: disabled.
1069  --disable-pkg-config    disable use of pkg-config (if available)
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-metis-verbosity specify the debug verbosity level for project Metis
1086  --with-metis-checklevel specify the sanity check level for project Metis
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyMetis configure 1.2
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2009 International Business Machines and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyMetis $as_me 1.2, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define METIS_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define METIS_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define METIS_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define METIS_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=METIS
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define METIS_SVN_REV $METIS_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693
1694
1695
1696
1697#############################################################################
1698#                         Standard build tool stuff                         #
1699#############################################################################
1700
1701# Get the system type
1702ac_aux_dir=
1703for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1704  if test -f $ac_dir/install-sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install-sh -c"
1707    break
1708  elif test -f $ac_dir/install.sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install.sh -c"
1711    break
1712  elif test -f $ac_dir/shtool; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/shtool install -c"
1715    break
1716  fi
1717done
1718if test -z "$ac_aux_dir"; then
1719  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1720echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1721   { (exit 1); exit 1; }; }
1722fi
1723ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740  ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744   { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759
1760#turn off warnings and pedantic mode since they could make trouble on some platforms,
1761#and we couldn't fix them anyway
1762coin_skip_warn_cflags=yes
1763coin_skip_warn_fflags=yes
1764
1765# Check if user wants to produce debugging code
1766
1767echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1768echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1769
1770# Check whether --enable-debug or --disable-debug was given.
1771if test "${enable_debug+set}" = set; then
1772  enableval="$enable_debug"
1773  case "${enableval}" in
1774   yes) coin_debug_compile=true
1775        if test "${enable_shared+set}" = set; then :; else
1776          enable_shared=no
1777        fi
1778        ;;
1779   no)  coin_debug_compile=false
1780        ;;
1781   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1782echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1783   { (exit 1); exit 1; }; }
1784        ;;
1785esac
1786else
1787  coin_debug_compile=false
1788fi;
1789
1790# Check whether --enable-debug-metis or --disable-debug-metis was given.
1791if test "${enable_debug_metis+set}" = set; then
1792  enableval="$enable_debug_metis"
1793  case "${enableval}" in
1794    yes) coin_debug_compile=true
1795         ;;
1796    no)  coin_debug_compile=false
1797         ;;
1798    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1799echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1800   { (exit 1); exit 1; }; }
1801         ;;
1802 esac
1803else
1804  :
1805fi;
1806
1807 # m4_ifvaln([Metis],
1808
1809if test $coin_debug_compile = true; then
1810  echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817
1818# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1819if test "${with_metis_verbosity+set}" = set; then
1820  withval="$with_metis_verbosity"
1821  if test "$withval" = yes; then
1822                withval=1
1823              fi
1824              coin_metis_verbosity=$withval
1825else
1826  coin_metis_verbosity=0
1827fi;
1828
1829cat >>confdefs.h <<_ACEOF
1830#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1831_ACEOF
1832
1833
1834
1835# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1836if test "${with_metis_checklevel+set}" = set; then
1837  withval="$with_metis_checklevel"
1838  if test "$withval" = yes; then
1839                withval=1
1840              fi
1841              coin_metis_checklevel=$withval
1842else
1843  coin_metis_checklevel=0
1844fi;
1845
1846cat >>confdefs.h <<_ACEOF
1847#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1848_ACEOF
1849
1850
1851 # m4_ifvaln([Metis],
1852
1853
1854
1855# Get the name of the C compiler
1856case $build in
1857  *-mingw*)
1858    if test "${LD+set}" = set; then :; else
1859      LD=link
1860    fi
1861    ;;
1862 esac
1863 case $enable_doscompile in
1864   msvc)
1865     if test "x${LD+set}" = xset; then :; else
1866       LD=link
1867     fi
1868     ;;
1869 esac
1870
1871
1872 # Check whether --enable-doscompile or --disable-doscompile was given.
1873if test "${enable_doscompile+set}" = set; then
1874  enableval="$enable_doscompile"
1875  if test "$enable_doscompile" != no; then
1876     case $build in
1877       *-cygwin* | *-mingw*) ;;
1878       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1879echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1880   { (exit 1); exit 1; }; } ;;
1881     esac
1882   fi
1883else
1884  enable_doscompile=no
1885fi;
1886 case "$enable_doscompile" in
1887   mingw)
1888     case $build in
1889       *-mingw*) enable_doscompile=no ;;
1890     esac
1891     ;;
1892   msvc|no) ;;
1893   yes) enable_doscompile=mingw ;;
1894   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1895                    Try configure --help=recursive." >&5
1896echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1897                    Try configure --help=recursive." >&2;}
1898   { (exit 1); exit 1; }; }
1899      ;;
1900  esac
1901  if test "$enable_doscompile" != no ; then
1902    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1903echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1904  fi
1905
1906
1907
1908
1909ac_ext=c
1910ac_cpp='$CPP $CPPFLAGS'
1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916# For consistency, we set the C compiler to the same value of the C++
1917# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1918if test x"$CXX" != x; then
1919  case "$CXX" in
1920    clang* ) ;;
1921    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1922      if test x"$CC" = x; then
1923        CC="$CXX"
1924        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1925echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1926      fi
1927      ;;
1928  esac
1929fi
1930
1931
1932
1933
1934
1935
1936coin_has_cc=yes
1937
1938save_cflags="$CFLAGS"
1939
1940# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1941# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1942# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1943# compiler. In this case, put cc after gcc.
1944
1945case $build in
1946  *-cygwin* | *-mingw*)
1947             if test "$enable_doscompile" = msvc ; then
1948               comps="icl cl"
1949             else
1950               comps="gcc cl"
1951             fi ;;
1952  *-*-solaris*)
1953             # Extract the first word of "cc", so it can be a program name with args.
1954set dummy cc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$sol_cc_compiler"; then
1961  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1962else
1963  ac_prog_rejected=no
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972       ac_prog_rejected=yes
1973       continue
1974     fi
1975    ac_cv_prog_sol_cc_compiler="cc"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981
1982if test $ac_prog_rejected = yes; then
1983  # We found a bogon in the path, so make sure we never use it.
1984  set dummy $ac_cv_prog_sol_cc_compiler
1985  shift
1986  if test $# != 0; then
1987    # We chose a different compiler from the bogus one.
1988    # However, it has the same basename, so the bogon will be chosen
1989    # first if we set sol_cc_compiler to just the basename; use the full file name.
1990    shift
1991    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1992  fi
1993fi
1994fi
1995fi
1996sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1997if test -n "$sol_cc_compiler"; then
1998  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1999echo "${ECHO_T}$sol_cc_compiler" >&6
2000else
2001  echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005             if test "$sol_cc_compiler" = "cc" ; then
2006               comps="cc xlc gcc pgcc icc"
2007             else
2008               comps="xlc gcc pgcc icc cc"
2009             fi
2010             ;;
2011  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2012  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2013  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2014esac
2015
2016# We delete the cached value, since the test might not have been
2017# performed with our choice of compilers earlier
2018$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2019# AC_MSG_NOTICE([C compiler candidates: $comps])
2020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025if test -n "$ac_tool_prefix"; then
2026  for ac_prog in $comps
2027  do
2028    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032if test "${ac_cv_prog_CC+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  if test -n "$CC"; then
2036  ac_cv_prog_CC="$CC" # Let the user override the test.
2037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043  for ac_exec_ext in '' $ac_executable_extensions; do
2044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051
2052fi
2053fi
2054CC=$ac_cv_prog_CC
2055if test -n "$CC"; then
2056  echo "$as_me:$LINENO: result: $CC" >&5
2057echo "${ECHO_T}$CC" >&6
2058else
2059  echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
2063    test -n "$CC" && break
2064  done
2065fi
2066if test -z "$CC"; then
2067  ac_ct_CC=$CC
2068  for ac_prog in $comps
2069do
2070  # Extract the first word of "$ac_prog", so it can be a program name with args.
2071set dummy $ac_prog; ac_word=$2
2072echo "$as_me:$LINENO: checking for $ac_word" >&5
2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075  echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077  if test -n "$ac_ct_CC"; then
2078  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085  for ac_exec_ext in '' $ac_executable_extensions; do
2086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087    ac_cv_prog_ac_ct_CC="$ac_prog"
2088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089    break 2
2090  fi
2091done
2092done
2093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
2098  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6
2100else
2101  echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6
2103fi
2104
2105  test -n "$ac_ct_CC" && break
2106done
2107
2108  CC=$ac_ct_CC
2109fi
2110
2111
2112test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&2;}
2116   { (exit 1); exit 1; }; }
2117
2118# Provide some information about the compiler.
2119echo "$as_me:$LINENO:" \
2120     "checking for C compiler version" >&5
2121ac_compiler=`set X $ac_compile; echo $2`
2122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123  (eval $ac_compiler --version </dev/null >&5) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128  (eval $ac_compiler -v </dev/null >&5) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133  (eval $ac_compiler -V </dev/null >&5) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }
2137
2138cat >conftest.$ac_ext <<_ACEOF
2139/* confdefs.h.  */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h.  */
2144
2145int
2146main ()
2147{
2148
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153ac_clean_files_save=$ac_clean_files
2154ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155# Try to create an executable without -o first, disregard a.out.
2156# It will help us diagnose broken compilers, and finding out an intuition
2157# of exeext.
2158echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162  (eval $ac_link_default) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  # Find the output, starting from the most likely.  This scheme is
2167# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168# resort.
2169
2170# Be careful to initialize this variable, since it used to be cached.
2171# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172ac_cv_exeext=
2173# b.out is created by i960 compilers.
2174for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175do
2176  test -f "$ac_file" || continue
2177  case $ac_file in
2178    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2179        ;;
2180    conftest.$ac_ext )
2181        # This is the source file.
2182        ;;
2183    [ab].out )
2184        # We found the default executable, but exeext='' is most
2185        # certainly right.
2186        break;;
2187    *.* )
2188        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189        # FIXME: I believe we export ac_cv_exeext for Libtool,
2190        # but it would be cool to find out if it's true.  Does anybody
2191        # maintain Libtool? --akim.
2192        export ac_cv_exeext
2193        break;;
2194    * )
2195        break;;
2196  esac
2197done
2198else
2199  echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: C compiler cannot create executables
2205See \`config.log' for more details." >&2;}
2206   { (exit 77); exit 77; }; }
2207fi
2208
2209ac_exeext=$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6
2212
2213# Check the compiler produces executables we can run.  If not, either
2214# the compiler is broken, or we cross compile.
2215echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220  if { ac_try='./$ac_file'
2221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222  (eval $ac_try) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; }; then
2226    cross_compiling=no
2227  else
2228    if test "$cross_compiling" = maybe; then
2229        cross_compiling=yes
2230    else
2231        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238    fi
2239  fi
2240fi
2241echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6
2243
2244rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245ac_clean_files=$ac_clean_files_save
2246# Check the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6
2252
2253echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256  (eval $ac_link) 2>&5
2257  ac_status=$?
2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259  (exit $ac_status); }; then
2260  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2262# work properly (i.e., refer to `conftest.exe'), while it won't with
2263# `rm'.
2264for ac_file in conftest.exe conftest conftest.*; do
2265  test -f "$ac_file" || continue
2266  case $ac_file in
2267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269          export ac_cv_exeext
2270          break;;
2271    * ) break;;
2272  esac
2273done
2274else
2275  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest$ac_cv_exeext
2283echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286rm -f conftest.$ac_ext
2287EXEEXT=$ac_cv_exeext
2288ac_exeext=$EXEEXT
2289echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291if test "${ac_cv_objext+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h.  */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h.  */
2300
2301int
2302main ()
2303{
2304
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309rm -f conftest.o conftest.obj
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311  (eval $ac_compile) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; then
2315  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316  case $ac_file in
2317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319       break;;
2320  esac
2321done
2322else
2323  echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6
2337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
2339echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h.  */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h.  */
2350
2351int
2352main ()
2353{
2354#ifndef __GNUC__
2355       choke me
2356#endif
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>conftest.er1
2365  ac_status=$?
2366  grep -v '^ *+' conftest.er1 >conftest.err
2367  rm -f conftest.er1
2368  cat conftest.err >&5
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); } &&
2371         { ac_try='test -z "$ac_c_werror_flag"
2372                         || test ! -s conftest.err'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; } &&
2378         { ac_try='test -s conftest.$ac_objext'
2379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380  (eval $ac_try) 2>&5
2381  ac_status=$?
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); }; }; then
2384  ac_compiler_gnu=yes
2385else
2386  echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389ac_compiler_gnu=no
2390fi
2391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393
2394fi
2395echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397GCC=`test $ac_compiler_gnu = yes && echo yes`
2398ac_test_CFLAGS=${CFLAGS+set}
2399ac_save_CFLAGS=$CFLAGS
2400CFLAGS="-g"
2401echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403if test "${ac_cv_prog_cc_g+set}" = set; then
2404  echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406  cat >conftest.$ac_ext <<_ACEOF
2407/* confdefs.h.  */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h.  */
2412
2413int
2414main ()
2415{
2416
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423  (eval $ac_compile) 2>conftest.er1
2424  ac_status=$?
2425  grep -v '^ *+' conftest.er1 >conftest.err
2426  rm -f conftest.er1
2427  cat conftest.err >&5
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); } &&
2430         { ac_try='test -z "$ac_c_werror_flag"
2431                         || test ! -s conftest.err'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; } &&
2437         { ac_try='test -s conftest.$ac_objext'
2438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439  (eval $ac_try) 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }; }; then
2443  ac_cv_prog_cc_g=yes
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448ac_cv_prog_cc_g=no
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451fi
2452echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454if test "$ac_test_CFLAGS" = set; then
2455  CFLAGS=$ac_save_CFLAGS
2456elif test $ac_cv_prog_cc_g = yes; then
2457  if test "$GCC" = yes; then
2458    CFLAGS="-g -O2"
2459  else
2460    CFLAGS="-g"
2461  fi
2462else
2463  if test "$GCC" = yes; then
2464    CFLAGS="-O2"
2465  else
2466    CFLAGS=
2467  fi
2468fi
2469echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  ac_cv_prog_cc_stdc=no
2475ac_save_CC=$CC
2476cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h.  */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h.  */
2482#include <stdarg.h>
2483#include <stdio.h>
2484#include <sys/types.h>
2485#include <sys/stat.h>
2486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2487struct buf { int x; };
2488FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489static char *e (p, i)
2490     char **p;
2491     int i;
2492{
2493  return p[i];
2494}
2495static char *f (char * (*g) (char **, int), char **p, ...)
2496{
2497  char *s;
2498  va_list v;
2499  va_start (v,p);
2500  s = g (p, va_arg (v,int));
2501  va_end (v);
2502  return s;
2503}
2504
2505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2506   function prototypes and stuff, but not '\xHH' hex character constants.
2507   These don't provoke an error unfortunately, instead are silently treated
2508   as 'x'.  The following induces an error, until -std1 is added to get
2509   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2510   array size at least.  It's necessary to write '\x00'==0 to get something
2511   that's true only with -std1.  */
2512int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514int test (int i, double x);
2515struct s1 {int (*f) (int a);};
2516struct s2 {int (*f) (double a);};
2517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518int argc;
2519char **argv;
2520int
2521main ()
2522{
2523return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2524  ;
2525  return 0;
2526}
2527_ACEOF
2528# Don't try gcc -ansi; that turns off useful extensions and
2529# breaks some systems' header files.
2530# AIX                   -qlanglvl=ansi
2531# Ultrix and OSF/1      -std1
2532# HP-UX 10.20 and later -Ae
2533# HP-UX older versions  -Aa -D_HPUX_SOURCE
2534# SVR4                  -Xc -D__EXTENSIONS__
2535for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536do
2537  CC="$ac_save_CC $ac_arg"
2538  rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540  (eval $ac_compile) 2>conftest.er1
2541  ac_status=$?
2542  grep -v '^ *+' conftest.er1 >conftest.err
2543  rm -f conftest.er1
2544  cat conftest.err >&5
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); } &&
2547         { ac_try='test -z "$ac_c_werror_flag"
2548                         || test ! -s conftest.err'
2549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550  (eval $ac_try) 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; } &&
2554         { ac_try='test -s conftest.$ac_objext'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; }; then
2560  ac_cv_prog_cc_stdc=$ac_arg
2561break
2562else
2563  echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext
2568done
2569rm -f conftest.$ac_ext conftest.$ac_objext
2570CC=$ac_save_CC
2571
2572fi
2573
2574case "x$ac_cv_prog_cc_stdc" in
2575  x|xno)
2576    echo "$as_me:$LINENO: result: none needed" >&5
2577echo "${ECHO_T}none needed" >&6 ;;
2578  *)
2579    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581    CC="$CC $ac_cv_prog_cc_stdc" ;;
2582esac
2583
2584# Some people use a C++ compiler to compile C.  Since we use `exit',
2585# in C++ we need to declare it.  In case someone uses the same compiler
2586# for both compiling C and C++ we need to have the C++ compiler decide
2587# the declaration of exit, since it's the most demanding environment.
2588cat >conftest.$ac_ext <<_ACEOF
2589#ifndef __cplusplus
2590  choke me
2591#endif
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595  (eval $ac_compile) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest.$ac_objext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  for ac_declaration in \
2616   '' \
2617   'extern "C" void std::exit (int) throw (); using std::exit;' \
2618   'extern "C" void std::exit (int); using std::exit;' \
2619   'extern "C" void exit (int) throw ();' \
2620   'extern "C" void exit (int);' \
2621   'void exit (int);'
2622do
2623  cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h.  */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h.  */
2629$ac_declaration
2630#include <stdlib.h>
2631int
2632main ()
2633{
2634exit (42);
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641  (eval $ac_compile) 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } &&
2648         { ac_try='test -z "$ac_c_werror_flag"
2649                         || test ! -s conftest.err'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; } &&
2655         { ac_try='test -s conftest.$ac_objext'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; }; then
2661  :
2662else
2663  echo "$as_me: failed program was:" >&5
2664sed 's/^/| /' conftest.$ac_ext >&5
2665
2666continue
2667fi
2668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669  cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675$ac_declaration
2676int
2677main ()
2678{
2679exit (42);
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693         { ac_try='test -z "$ac_c_werror_flag"
2694                         || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700         { ac_try='test -s conftest.$ac_objext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  break
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711fi
2712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713done
2714rm -f conftest*
2715if test -n "$ac_declaration"; then
2716  echo '#ifdef __cplusplus' >>confdefs.h
2717  echo $ac_declaration      >>confdefs.h
2718  echo '#endif'             >>confdefs.h
2719fi
2720
2721else
2722  echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733if test -z "$CC" ; then
2734  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2735echo "$as_me: error: Failed to find a C compiler!" >&2;}
2736   { (exit 1); exit 1; }; }
2737fi
2738# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2739case "$CC" in
2740  clang* ) ;;
2741  cl* | */cl* | CL* | */CL* )
2742    if test "$ac_cv_prog_cc_g" = yes ; then
2743      ac_cv_prog_cc_g=no
2744      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2745echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2746    fi ;;
2747esac
2748CFLAGS="$save_cflags"
2749
2750# add automake conditional so we can recognize cl compiler in makefile
2751coin_cc_is_cl=false
2752case "$CC" in
2753  clang* ) ;;
2754  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2755    coin_cc_is_cl=true
2756    ;;
2757esac
2758
2759
2760if test $coin_cc_is_cl = true; then
2761  COIN_CC_IS_CL_TRUE=
2762  COIN_CC_IS_CL_FALSE='#'
2763else
2764  COIN_CC_IS_CL_TRUE='#'
2765  COIN_CC_IS_CL_FALSE=
2766fi
2767
2768
2769# Check if a project specific CFLAGS variable has been set
2770if test x$COIN_PRJCT != x; then
2771  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2772  if test x$coin_tmp = xset; then
2773    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2774  fi
2775fi
2776
2777if test x"$CFLAGS" = x; then
2778
2779  coin_add_cflags=
2780  coin_opt_cflags=
2781  coin_dbg_cflags=
2782  coin_warn_cflags=
2783
2784  if test "$GCC" = "yes"; then
2785    case "$CC" in
2786      icc* | */icc*)
2787        ;;
2788      *)
2789        coin_opt_cflags="-O3"
2790        coin_add_cflags="-pipe"
2791        coin_dbg_cflags="-g -O0"
2792        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2793        case $build in
2794          *-darwin*)
2795            ;;
2796          *)
2797            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2798            ;;
2799        esac
2800        case $enable_doscompile in
2801          mingw)
2802            CFLAGS="-mno-cygwin"
2803            cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h.  */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h.  */
2809
2810int
2811main ()
2812{
2813int i=0; i++;
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext conftest$ac_exeext
2819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2820  (eval $ac_link) 2>conftest.er1
2821  ac_status=$?
2822  grep -v '^ *+' conftest.er1 >conftest.err
2823  rm -f conftest.er1
2824  cat conftest.err >&5
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); } &&
2827         { ac_try='test -z "$ac_c_werror_flag"
2828                         || test ! -s conftest.err'
2829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830  (eval $ac_try) 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); }; } &&
2834         { ac_try='test -s conftest$ac_exeext'
2835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836  (eval $ac_try) 2>&5
2837  ac_status=$?
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); }; }; then
2840  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2841else
2842  echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845fi
2846rm -f conftest.err conftest.$ac_objext \
2847      conftest$ac_exeext conftest.$ac_ext
2848            CFLAGS=
2849          ;;
2850        esac
2851    esac
2852  fi
2853  if test -z "$coin_opt_cflags"; then
2854    case $build in
2855      *-cygwin* | *-mingw*)
2856        case "$CC" in
2857          clang* ) ;;
2858          cl* | */cl* | CL* | */CL*)
2859            coin_opt_cflags='-MT -O2'
2860            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2861            coin_dbg_cflags='-MTd'
2862            ;;
2863          icl* | */icl* | ICL* | */ICL*)
2864            coin_opt_cflags='-MT -Ox'
2865            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2866            coin_dbg_cflags='-MTd -debug'
2867            ;;
2868        esac
2869        ;;
2870      *-linux-*)
2871        case "$CC" in
2872          icc* | */icc*)
2873            coin_opt_cflags="-O3 -ip -mp1"
2874            coin_add_cflags=""
2875            coin_dbg_cflags="-g"
2876            # Check if -i_dynamic is necessary (for new glibc library)
2877            CFLAGS=
2878            cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  :
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920coin_add_cflags="-i_dynamic $coin_add_cflags"
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924            ;;
2925          pgcc* | */pgcc*)
2926            coin_opt_cflags="-fast"
2927            coin_add_cflags="-Kieee -pc 64"
2928            coin_dbg_cflags="-g"
2929            ;;
2930        esac
2931        ;;
2932      *-ibm-*)
2933        case "$CC" in
2934          xlc* | */xlc* | mpxlc* | */mpxlc*)
2935            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2936            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2937            coin_dbg_cflags="-g"
2938          ;;
2939        esac
2940        ;;
2941      *-hp-*)
2942        coin_opt_cflags="-O"
2943        coin_add_cflags="-Ae"
2944        coin_dbg_cflags="-g"
2945        ;;
2946      *-*-solaris*)
2947        coin_opt_cflags="-xO4"
2948        coin_dbg_cflags="-g"
2949        ;;
2950      *-sgi-*)
2951        coin_opt_cflags="-O -OPT:Olimit=0"
2952        coin_dbg_cflags="-g"
2953        ;;
2954    esac
2955  fi
2956
2957  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2958    coin_dbg_cflags="-g"
2959  fi
2960
2961  if test -z "$coin_opt_cflags"; then
2962    # Try if -O option works if nothing else is set
2963    CFLAGS="-O"
2964    cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h.  */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h.  */
2970
2971int
2972main ()
2973{
2974int i=0; i++;
2975  ;
2976  return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext conftest$ac_exeext
2980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2981  (eval $ac_link) 2>conftest.er1
2982  ac_status=$?
2983  grep -v '^ *+' conftest.er1 >conftest.err
2984  rm -f conftest.er1
2985  cat conftest.err >&5
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988         { ac_try='test -z "$ac_c_werror_flag"
2989                         || test ! -s conftest.err'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; } &&
2995         { ac_try='test -s conftest$ac_exeext'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001  coin_opt_cflags="-O"
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006fi
3007rm -f conftest.err conftest.$ac_objext \
3008      conftest$ac_exeext conftest.$ac_ext
3009  fi
3010
3011  # if PM doesn't want the warning messages, take them out
3012  if test x"$coin_skip_warn_cflags" = xyes; then
3013    coin_warn_cflags=
3014  fi
3015
3016  if test x${DBG_CFLAGS+set} != xset; then
3017    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3018  fi
3019  if test x${OPT_CFLAGS+set} != xset; then
3020    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3021  fi
3022
3023  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3024  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3025
3026  if test "$coin_debug_compile" = "true"; then
3027    CFLAGS="$DBG_CFLAGS"
3028  else
3029    CFLAGS="$OPT_CFLAGS"
3030  fi
3031else
3032  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3033  if test x${DBG_CFLAGS+set} != xset; then
3034    DBG_CFLAGS="$CFLAGS"
3035  fi
3036  if test x${OPT_CFLAGS+set} != xset; then
3037    OPT_CFLAGS="$CFLAGS"
3038  fi
3039fi
3040
3041# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3042
3043case "$CFLAGS" in
3044  *-mno-cygwin*)
3045    if test x${CPPFLAGS+set} != xset ; then
3046      CPPFLAGS="-mno-cygwin"
3047    else
3048      case "$CPPFLAGS" in
3049        *-mno-cygwin*)
3050          ;;
3051        *)
3052          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3053          ;;
3054      esac
3055    fi ;;
3056esac
3057
3058# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3059if test x$COIN_PRJCT != x; then
3060  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3061fi
3062
3063# Try if CFLAGS works
3064save_CFLAGS="$CFLAGS"
3065cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h.  */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h.  */
3071
3072int
3073main ()
3074{
3075int i=0; i++;
3076  ;
3077  return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext conftest$ac_exeext
3081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3082  (eval $ac_link) 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } &&
3089         { ac_try='test -z "$ac_c_werror_flag"
3090                         || test ! -s conftest.err'
3091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092  (eval $ac_try) 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; } &&
3096         { ac_try='test -s conftest$ac_exeext'
3097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098  (eval $ac_try) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; }; then
3102  :
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107CFLAGS=
3108fi
3109rm -f conftest.err conftest.$ac_objext \
3110      conftest$ac_exeext conftest.$ac_ext
3111if test -z "$CFLAGS"; then
3112  { 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
3113echo "$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;}
3114  CFLAGS='-O'
3115  cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121
3122int
3123main ()
3124{
3125int i=0; i++;
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext conftest$ac_exeext
3131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3132  (eval $ac_link) 2>conftest.er1
3133  ac_status=$?
3134  grep -v '^ *+' conftest.er1 >conftest.err
3135  rm -f conftest.er1
3136  cat conftest.err >&5
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); } &&
3139         { ac_try='test -z "$ac_c_werror_flag"
3140                         || test ! -s conftest.err'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; } &&
3146         { ac_try='test -s conftest$ac_exeext'
3147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148  (eval $ac_try) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; }; then
3152  :
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157CFLAGS=
3158fi
3159rm -f conftest.err conftest.$ac_objext \
3160      conftest$ac_exeext conftest.$ac_ext
3161  if test -z "$CFLAGS"; then
3162    { 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
3163echo "$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;}
3164  fi
3165fi
3166
3167{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3168echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3169
3170
3171if test x"$MPICC" = x; then :; else
3172  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3173echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3174  CC="$MPICC"
3175fi
3176
3177# Correct the LD variable if we are using the MS or Intel-windows compiler
3178case "$CC" in
3179  clang* ) ;;
3180  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3181    case $build in
3182  *-mingw*)
3183    if test "${LD+set}" = set; then :; else
3184      LD=link
3185    fi
3186    ;;
3187 esac
3188 case $enable_doscompile in
3189   msvc)
3190     if test "x${LD+set}" = xset; then :; else
3191       LD=link
3192     fi
3193     ;;
3194 esac
3195
3196    ;;
3197esac
3198
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205
3206
3207# Check if pkg-config is available (to setup addlibs file)
3208
3209
3210# Check whether --enable-pkg-config or --disable-pkg-config was given.
3211if test "${enable_pkg_config+set}" = set; then
3212  enableval="$enable_pkg_config"
3213  use_pkgconfig="$enableval"
3214else
3215  use_pkgconfig=yes
3216fi;
3217
3218if test $use_pkgconfig = yes ; then
3219  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3220    if test -n "$ac_tool_prefix"; then
3221  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3222set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3223echo "$as_me:$LINENO: checking for $ac_word" >&5
3224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  case $PKG_CONFIG in
3229  [\\/]* | ?:[\\/]*)
3230  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3231  ;;
3232  *)
3233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236  IFS=$as_save_IFS
3237  test -z "$as_dir" && as_dir=.
3238  for ac_exec_ext in '' $ac_executable_extensions; do
3239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242    break 2
3243  fi
3244done
3245done
3246
3247  ;;
3248esac
3249fi
3250PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3251
3252if test -n "$PKG_CONFIG"; then
3253  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3254echo "${ECHO_T}$PKG_CONFIG" >&6
3255else
3256  echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258fi
3259
3260fi
3261if test -z "$ac_cv_path_PKG_CONFIG"; then
3262  ac_pt_PKG_CONFIG=$PKG_CONFIG
3263  # Extract the first word of "pkg-config", so it can be a program name with args.
3264set dummy pkg-config; ac_word=$2
3265echo "$as_me:$LINENO: checking for $ac_word" >&5
3266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3267if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  case $ac_pt_PKG_CONFIG in
3271  [\\/]* | ?:[\\/]*)
3272  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3273  ;;
3274  *)
3275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280  for ac_exec_ext in '' $ac_executable_extensions; do
3281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287done
3288
3289  ;;
3290esac
3291fi
3292ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3293
3294if test -n "$ac_pt_PKG_CONFIG"; then
3295  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3296echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3297else
3298  echo "$as_me:$LINENO: result: no" >&5
3299echo "${ECHO_T}no" >&6
3300fi
3301
3302  PKG_CONFIG=$ac_pt_PKG_CONFIG
3303else
3304  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3305fi
3306
3307  fi
3308  if test -n "$PKG_CONFIG"; then
3309    _pkg_min_version=0.16.0
3310    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3311echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3312    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3313      echo "$as_me:$LINENO: result: yes" >&5
3314echo "${ECHO_T}yes" >&6
3315    else
3316      echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318      PKG_CONFIG=""
3319    fi
3320  fi
3321
3322  # check if pkg-config supports the short-errors flag
3323  if test -n "$PKG_CONFIG" && \
3324    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3325    pkg_short_errors=" --short-errors "
3326  else
3327    pkg_short_errors=""
3328  fi
3329fi
3330
3331
3332
3333if test -n "$PKG_CONFIG"; then
3334  COIN_HAS_PKGCONFIG_TRUE=
3335  COIN_HAS_PKGCONFIG_FALSE='#'
3336else
3337  COIN_HAS_PKGCONFIG_TRUE='#'
3338  COIN_HAS_PKGCONFIG_FALSE=
3339fi
3340
3341
3342
3343# assemble pkg-config search path for installed projects
3344COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3345
3346# 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
3347# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3348# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3349if test "x${prefix}" = xNONE ; then
3350  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3351else
3352  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3353fi
3354
3355
3356# Check whether --with-coin-instdir or --without-coin-instdir was given.
3357if test "${with_coin_instdir+set}" = set; then
3358  withval="$with_coin_instdir"
3359  if test -d "$withval"; then : ; else
3360     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3361echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3362   { (exit 1); exit 1; }; }
3363   fi
3364   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3365
3366fi;
3367
3368
3369
3370# assemble additional pkg-config search paths for uninstalled projects
3371if test x$coin_projectdir = xyes ; then
3372  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3373  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3374  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3375  # 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)
3376  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3377  if test -e ../coin_subdirs.txt ; then
3378    for i in `cat ../coin_subdirs.txt` ; do
3379      if test -d ../$i ; then
3380        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3381      fi
3382      if test -d ../$i/pkgconfig ; then
3383        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3384      fi
3385    done
3386  fi
3387
3388  if test -e ../../coin_subdirs.txt ; then
3389    for i in `cat ../../coin_subdirs.txt` ; do
3390      if test -d ../../$i ; then
3391        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3392      fi
3393      if test -d ../../$i/pkgconfig ; then
3394        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3395      fi
3396    done
3397  fi
3398
3399
3400fi
3401
3402if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3403  { 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
3404echo "$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;}
3405fi
3406
3407
3408
3409# Initialize automake
3410{
3411
3412
3413
3414# START
3415
3416# Test if force_shared has been set
3417if test "x" = xforce_shared; then
3418  if test x$enable_shared = xno; then
3419    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3420echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3421   { (exit 1); exit 1; }; }
3422  fi
3423  enable_shared=yes;
3424else
3425  # On Cygwin and AIX, building DLLs doesn't work
3426  case $build in
3427    *-cygwin*)
3428      coin_disable_shared=yes
3429      platform=Cygwin
3430    ;;
3431    *-aix*)
3432      coin_disable_shared=yes
3433      platform=AIX
3434    ;;
3435    *-mingw*)
3436      coin_disable_shared=yes
3437      platform="Msys"
3438#      case "$CXX" in
3439#        cl*)
3440#          coin_disable_shared=yes
3441#          platform="Msys with cl"
3442#      ;;
3443#      esac
3444    ;;
3445  esac
3446fi
3447if test x"$coin_disable_shared" = xyes; then
3448  if test x"$enable_shared" = xyes; then
3449    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3450echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3451  fi
3452  enable_shared=no
3453fi
3454# By default, we only want the shared objects to be compiled
3455# Check whether --enable-static or --disable-static was given.
3456if test "${enable_static+set}" = set; then
3457  enableval="$enable_static"
3458  p=${PACKAGE-default}
3459    case $enableval in
3460    yes) enable_static=yes ;;
3461    no) enable_static=no ;;
3462    *)
3463     enable_static=no
3464      # Look at the argument we got.  We use all the common list separators.
3465      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3466      for pkg in $enableval; do
3467        IFS="$lt_save_ifs"
3468        if test "X$pkg" = "X$p"; then
3469          enable_static=yes
3470        fi
3471      done
3472      IFS="$lt_save_ifs"
3473      ;;
3474    esac
3475else
3476  enable_static=no
3477fi;
3478
3479
3480
3481
3482# Initialize automake
3483echo "$as_me:$LINENO: checking for egrep" >&5
3484echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3485if test "${ac_cv_prog_egrep+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3489    then ac_cv_prog_egrep='grep -E'
3490    else ac_cv_prog_egrep='egrep'
3491    fi
3492fi
3493echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3494echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3495 EGREP=$ac_cv_prog_egrep
3496
3497
3498echo "$as_me:$LINENO: checking whether ln -s works" >&5
3499echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3500LN_S=$as_ln_s
3501if test "$LN_S" = "ln -s"; then
3502  echo "$as_me:$LINENO: result: yes" >&5
3503echo "${ECHO_T}yes" >&6
3504else
3505  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3506echo "${ECHO_T}no, using $LN_S" >&6
3507fi
3508
3509am__api_version="1.9"
3510# Find a good install program.  We prefer a C program (faster),
3511# so one script is as good as another.  But avoid the broken or
3512# incompatible versions:
3513# SysV /etc/install, /usr/sbin/install
3514# SunOS /usr/etc/install
3515# IRIX /sbin/install
3516# AIX /bin/install
3517# AmigaOS /C/install, which installs bootblocks on floppy discs
3518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3521# OS/2's system install, which has a completely different semantic
3522# ./install, which can be erroneously created by make from ./install.sh.
3523echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3524echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3525if test -z "$INSTALL"; then
3526if test "${ac_cv_path_install+set}" = set; then
3527  echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  test -z "$as_dir" && as_dir=.
3534  # Account for people who put trailing slashes in PATH elements.
3535case $as_dir/ in
3536  ./ | .// | /cC/* | \
3537  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3538  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3539  /usr/ucb/* ) ;;
3540  *)
3541    # OSF1 and SCO ODT 3.0 have their own names for install.
3542    # Don't use installbsd from OSF since it installs stuff as root
3543    # by default.
3544    for ac_prog in ginstall scoinst install; do
3545      for ac_exec_ext in '' $ac_executable_extensions; do
3546        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3547          if test $ac_prog = install &&
3548            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549            # AIX install.  It has an incompatible calling convention.
3550            :
3551          elif test $ac_prog = install &&
3552            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553            # program-specific install script used by HP pwplus--don't use.
3554            :
3555          else
3556            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3557            break 3
3558          fi
3559        fi
3560      done
3561    done
3562    ;;
3563esac
3564done
3565
3566
3567fi
3568  if test "${ac_cv_path_install+set}" = set; then
3569    INSTALL=$ac_cv_path_install
3570  else
3571    # As a last resort, use the slow shell script.  We don't cache a
3572    # path for INSTALL within a source directory, because that will
3573    # break other packages using the cache if that directory is
3574    # removed, or if the path is relative.
3575    INSTALL=$ac_install_sh
3576  fi
3577fi
3578echo "$as_me:$LINENO: result: $INSTALL" >&5
3579echo "${ECHO_T}$INSTALL" >&6
3580
3581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3582# It thinks the first close brace ends the variable substitution.
3583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3584
3585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3586
3587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3588
3589echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3590echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3591# Just in case
3592sleep 1
3593echo timestamp > conftest.file
3594# Do `set' in a subshell so we don't clobber the current shell's
3595# arguments.  Must try -L first in case configure is actually a
3596# symlink; some systems play weird games with the mod time of symlinks
3597# (eg FreeBSD returns the mod time of the symlink's containing
3598# directory).
3599if (
3600   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3601   if test "$*" = "X"; then
3602      # -L didn't work.
3603      set X `ls -t $srcdir/configure conftest.file`
3604   fi
3605   rm -f conftest.file
3606   if test "$*" != "X $srcdir/configure conftest.file" \
3607      && test "$*" != "X conftest.file $srcdir/configure"; then
3608
3609      # If neither matched, then we have a broken ls.  This can happen
3610      # if, for instance, CONFIG_SHELL is bash and it inherits a
3611      # broken ls alias from the environment.  This has actually
3612      # happened.  Such a system could not be considered "sane".
3613      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3614alias in your environment" >&5
3615echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3616alias in your environment" >&2;}
3617   { (exit 1); exit 1; }; }
3618   fi
3619
3620   test "$2" = conftest.file
3621   )
3622then
3623   # Ok.
3624   :
3625else
3626   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3627Check your system clock" >&5
3628echo "$as_me: error: newly created file is older than distributed files!
3629Check your system clock" >&2;}
3630   { (exit 1); exit 1; }; }
3631fi
3632echo "$as_me:$LINENO: result: yes" >&5
3633echo "${ECHO_T}yes" >&6
3634test "$program_prefix" != NONE &&
3635  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3636# Use a double $ so make ignores it.
3637test "$program_suffix" != NONE &&
3638  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3639# Double any \ or $.  echo might interpret backslashes.
3640# By default was `s,x,x', remove it if useless.
3641cat <<\_ACEOF >conftest.sed
3642s/[\\$]/&&/g;s/;s,x,x,$//
3643_ACEOF
3644program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3645rm conftest.sed
3646
3647# expand $ac_aux_dir to an absolute path
3648am_aux_dir=`cd $ac_aux_dir && pwd`
3649
3650test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3651# Use eval to expand $SHELL
3652if eval "$MISSING --run true"; then
3653  am_missing_run="$MISSING --run "
3654else
3655  am_missing_run=
3656  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3657echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3658fi
3659
3660if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3661  # We used to keeping the `.' as first argument, in order to
3662  # allow $(mkdir_p) to be used without argument.  As in
3663  #   $(mkdir_p) $(somedir)
3664  # where $(somedir) is conditionally defined.  However this is wrong
3665  # for two reasons:
3666  #  1. if the package is installed by a user who cannot write `.'
3667  #     make install will fail,
3668  #  2. the above comment should most certainly read
3669  #     $(mkdir_p) $(DESTDIR)$(somedir)
3670  #     so it does not work when $(somedir) is undefined and
3671  #     $(DESTDIR) is not.
3672  #  To support the latter case, we have to write
3673  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3674  #  so the `.' trick is pointless.
3675  mkdir_p='mkdir -p --'
3676else
3677  # On NextStep and OpenStep, the `mkdir' command does not
3678  # recognize any option.  It will interpret all options as
3679  # directories to create, and then abort because `.' already
3680  # exists.
3681  for d in ./-p ./--version;
3682  do
3683    test -d $d && rmdir $d
3684  done
3685  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3686  if test -f "$ac_aux_dir/mkinstalldirs"; then
3687    mkdir_p='$(mkinstalldirs)'
3688  else
3689    mkdir_p='$(install_sh) -d'
3690  fi
3691fi
3692
3693for ac_prog in gawk mawk nawk awk
3694do
3695  # Extract the first word of "$ac_prog", so it can be a program name with args.
3696set dummy $ac_prog; ac_word=$2
3697echo "$as_me:$LINENO: checking for $ac_word" >&5
3698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699if test "${ac_cv_prog_AWK+set}" = set; then
3700  echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702  if test -n "$AWK"; then
3703  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  test -z "$as_dir" && as_dir=.
3710  for ac_exec_ext in '' $ac_executable_extensions; do
3711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712    ac_cv_prog_AWK="$ac_prog"
3713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714    break 2
3715  fi
3716done
3717done
3718
3719fi
3720fi
3721AWK=$ac_cv_prog_AWK
3722if test -n "$AWK"; then
3723  echo "$as_me:$LINENO: result: $AWK" >&5
3724echo "${ECHO_T}$AWK" >&6
3725else
3726  echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728fi
3729
3730  test -n "$AWK" && break
3731done
3732
3733echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3735set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3736if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  cat >conftest.make <<\_ACEOF
3740all:
3741        @echo 'ac_maketemp="$(MAKE)"'
3742_ACEOF
3743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3745if test -n "$ac_maketemp"; then
3746  eval ac_cv_prog_make_${ac_make}_set=yes
3747else
3748  eval ac_cv_prog_make_${ac_make}_set=no
3749fi
3750rm -f conftest.make
3751fi
3752if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3753  echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755  SET_MAKE=
3756else
3757  echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6
3759  SET_MAKE="MAKE=${MAKE-make}"
3760fi
3761
3762rm -rf .tst 2>/dev/null
3763mkdir .tst 2>/dev/null
3764if test -d .tst; then
3765  am__leading_dot=.
3766else
3767  am__leading_dot=_
3768fi
3769rmdir .tst 2>/dev/null
3770
3771DEPDIR="${am__leading_dot}deps"
3772
3773          ac_config_commands="$ac_config_commands depfiles"
3774
3775
3776am_make=${MAKE-make}
3777cat > confinc << 'END'
3778am__doit:
3779        @echo done
3780.PHONY: am__doit
3781END
3782# If we don't find an include directive, just comment out the code.
3783echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3784echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3785am__include="#"
3786am__quote=
3787_am_result=none
3788# First try GNU make style include.
3789echo "include confinc" > confmf
3790# We grep out `Entering directory' and `Leaving directory'
3791# messages which can occur if `w' ends up in MAKEFLAGS.
3792# In particular we don't look at `^make:' because GNU make might
3793# be invoked under some other name (usually "gmake"), in which
3794# case it prints its new name instead of `make'.
3795if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3796   am__include=include
3797   am__quote=
3798   _am_result=GNU
3799fi
3800# Now try BSD make style include.
3801if test "$am__include" = "#"; then
3802   echo '.include "confinc"' > confmf
3803   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3804      am__include=.include
3805      am__quote="\""
3806      _am_result=BSD
3807   fi
3808fi
3809
3810
3811echo "$as_me:$LINENO: result: $_am_result" >&5
3812echo "${ECHO_T}$_am_result" >&6
3813rm -f confinc confmf
3814
3815# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3816if test "${enable_dependency_tracking+set}" = set; then
3817  enableval="$enable_dependency_tracking"
3818
3819fi;
3820if test "x$enable_dependency_tracking" != xno; then
3821  am_depcomp="$ac_aux_dir/depcomp"
3822  AMDEPBACKSLASH='\'
3823fi
3824
3825
3826if test "x$enable_dependency_tracking" != xno; then
3827  AMDEP_TRUE=
3828  AMDEP_FALSE='#'
3829else
3830  AMDEP_TRUE='#'
3831  AMDEP_FALSE=
3832fi
3833
3834
3835
3836
3837
3838
3839# AC_MSG_NOTICE([Beginning automake initialisation.])
3840# Stuff for automake
3841# test to see if srcdir already configured
3842if test "`cd $srcdir && pwd`" != "`pwd`" &&
3843   test -f $srcdir/config.status; then
3844  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3845echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3846   { (exit 1); exit 1; }; }
3847fi
3848
3849# test whether we have cygpath
3850if test -z "$CYGPATH_W"; then
3851  if (cygpath --version) >/dev/null 2>/dev/null; then
3852    CYGPATH_W='cygpath -w'
3853  else
3854    CYGPATH_W=echo
3855  fi
3856fi
3857
3858
3859# Define the identity of the package.
3860 PACKAGE='thirdpartymetis'
3861 VERSION='1.2'
3862
3863
3864cat >>confdefs.h <<_ACEOF
3865#define PACKAGE "$PACKAGE"
3866_ACEOF
3867
3868
3869cat >>confdefs.h <<_ACEOF
3870#define VERSION "$VERSION"
3871_ACEOF
3872
3873# Some tools Automake needs.
3874
3875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3876
3877
3878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3879
3880
3881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3882
3883
3884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3885
3886
3887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3888
3889install_sh=${install_sh-"$am_aux_dir/install-sh"}
3890
3891# Installed binaries are usually stripped using `strip' when the user
3892# run `make install-strip'.  However `strip' might not be the right
3893# tool to use in cross-compilation environments, therefore Automake
3894# will honor the `STRIP' environment variable to overrule this program.
3895if test "$cross_compiling" != no; then
3896  if test -n "$ac_tool_prefix"; then
3897  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3898set dummy ${ac_tool_prefix}strip; ac_word=$2
3899echo "$as_me:$LINENO: checking for $ac_word" >&5
3900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901if test "${ac_cv_prog_STRIP+set}" = set; then
3902  echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904  if test -n "$STRIP"; then
3905  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910  IFS=$as_save_IFS
3911  test -z "$as_dir" && as_dir=.
3912  for ac_exec_ext in '' $ac_executable_extensions; do
3913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916    break 2
3917  fi
3918done
3919done
3920
3921fi
3922fi
3923STRIP=$ac_cv_prog_STRIP
3924if test -n "$STRIP"; then
3925  echo "$as_me:$LINENO: result: $STRIP" >&5
3926echo "${ECHO_T}$STRIP" >&6
3927else
3928  echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
3930fi
3931
3932fi
3933if test -z "$ac_cv_prog_STRIP"; then
3934  ac_ct_STRIP=$STRIP
3935  # Extract the first word of "strip", so it can be a program name with args.
3936set dummy strip; ac_word=$2
3937echo "$as_me:$LINENO: checking for $ac_word" >&5
3938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3940  echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942  if test -n "$ac_ct_STRIP"; then
3943  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948  IFS=$as_save_IFS
3949  test -z "$as_dir" && as_dir=.
3950  for ac_exec_ext in '' $ac_executable_extensions; do
3951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952    ac_cv_prog_ac_ct_STRIP="strip"
3953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956done
3957done
3958
3959  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3960fi
3961fi
3962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3963if test -n "$ac_ct_STRIP"; then
3964  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3965echo "${ECHO_T}$ac_ct_STRIP" >&6
3966else
3967  echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969fi
3970
3971  STRIP=$ac_ct_STRIP
3972else
3973  STRIP="$ac_cv_prog_STRIP"
3974fi
3975
3976fi
3977INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3978
3979# We need awk for the "check" target.  The system "awk" is bad on
3980# some platforms.
3981# Always define AMTAR for backward compatibility.
3982
3983AMTAR=${AMTAR-"${am_missing_run}tar"}
3984
3985am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3986
3987
3988
3989
3990depcc="$CC"   am_compiler_list=
3991
3992echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3993echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3994if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3998  # We make a subdir and do the tests there.  Otherwise we can end up
3999  # making bogus files that we don't know about and never remove.  For
4000  # instance it was reported that on HP-UX the gcc test will end up
4001  # making a dummy file named `D' -- because `-MD' means `put the output
4002  # in D'.
4003  mkdir conftest.dir
4004  # Copy depcomp to subdir because otherwise we won't find it if we're
4005  # using a relative directory.
4006  cp "$am_depcomp" conftest.dir
4007  cd conftest.dir
4008  # We will build objects and dependencies in a subdirectory because
4009  # it helps to detect inapplicable dependency modes.  For instance
4010  # both Tru64's cc and ICC support -MD to output dependencies as a
4011  # side effect of compilation, but ICC will put the dependencies in
4012  # the current directory while Tru64 will put them in the object
4013  # directory.
4014  mkdir sub
4015
4016  am_cv_CC_dependencies_compiler_type=none
4017  if test "$am_compiler_list" = ""; then
4018     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019  fi
4020  for depmode in $am_compiler_list; do
4021    # Setup a source with many dependencies, because some compilers
4022    # like to wrap large dependency lists on column 80 (with \), and
4023    # we should not choose a depcomp mode which is confused by this.
4024    #
4025    # We need to recreate these files for each test, as the compiler may
4026    # overwrite some of them when testing with obscure command lines.
4027    # This happens at least with the AIX C compiler.
4028    : > sub/conftest.c
4029    for i in 1 2 3 4 5 6; do
4030      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4031      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4032      # Solaris 8's {/usr,}/bin/sh.
4033      touch sub/conftst$i.h
4034    done
4035    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4036
4037    case $depmode in
4038    nosideeffect)
4039      # after this tag, mechanisms are not by side-effect, so they'll
4040      # only be used when explicitly requested
4041      if test "x$enable_dependency_tracking" = xyes; then
4042        continue
4043      else
4044        break
4045      fi
4046      ;;
4047    none) break ;;
4048    esac
4049    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050    # mode.  It turns out that the SunPro C++ compiler does not properly
4051    # handle `-M -o', and we need to detect this.
4052    if depmode=$depmode \
4053       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4054       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4056         >/dev/null 2>conftest.err &&
4057       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4058       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4059       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4060      # icc doesn't choke on unknown options, it will just issue warnings
4061      # or remarks (even with -Werror).  So we grep stderr for any message
4062      # that says an option was ignored or not supported.
4063      # When given -MP, icc 7.0 and 7.1 complain thusly:
4064      #   icc: Command line warning: ignoring option '-M'; no argument required
4065      # The diagnosis changed in icc 8.0:
4066      #   icc: Command line remark: option '-MP' not supported
4067      if (grep 'ignoring option' conftest.err ||
4068          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4069        am_cv_CC_dependencies_compiler_type=$depmode
4070        break
4071      fi
4072    fi
4073  done
4074
4075  cd ..
4076  rm -rf conftest.dir
4077else
4078  am_cv_CC_dependencies_compiler_type=none
4079fi
4080
4081fi
4082echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4083echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4084CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4085
4086
4087
4088if
4089  test "x$enable_dependency_tracking" != xno \
4090  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091  am__fastdepCC_TRUE=
4092  am__fastdepCC_FALSE='#'
4093else
4094  am__fastdepCC_TRUE='#'
4095  am__fastdepCC_FALSE=
4096fi
4097
4098
4099
4100echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4101echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4102    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4103if test "${enable_maintainer_mode+set}" = set; then
4104  enableval="$enable_maintainer_mode"
4105  USE_MAINTAINER_MODE=$enableval
4106else
4107  USE_MAINTAINER_MODE=no
4108fi;
4109  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4110echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4111
4112
4113if test $USE_MAINTAINER_MODE = yes; then
4114  MAINTAINER_MODE_TRUE=
4115  MAINTAINER_MODE_FALSE='#'
4116else
4117  MAINTAINER_MODE_TRUE='#'
4118  MAINTAINER_MODE_FALSE=
4119fi
4120
4121  MAINT=$MAINTAINER_MODE_TRUE
4122
4123
4124
4125coin_have_externals=no
4126if test "$enable_maintainer_mode" = yes; then
4127
4128  # If maintainer mode is chosen, we make sure that the correct versions
4129  # of the tools are used, and that we know where libtool.m4 is (to
4130  # recreate acinclude.m4)
4131
4132
4133  LIBTOOLM4=
4134  # Normally, $HOME
4135  AUTOTOOLS_DFLT=$HOME
4136
4137  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4138echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4139if test "${ac_cv_use_correct_autotools+set}" = set; then
4140  echo $ECHO_N "(cached) $ECHO_C" >&6
4141else
4142  ac_cv_use_correct_autotools=check
4143fi
4144echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4145echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4146
4147  if test $ac_cv_use_correct_autotools = check; then
4148    ac_cv_use_correct_autotools=yes
4149    # Check if we have autoconf
4150    # Extract the first word of "autoconf", so it can be a program name with args.
4151set dummy autoconf; ac_word=$2
4152echo "$as_me:$LINENO: checking for $ac_word" >&5
4153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154if test "${ac_cv_prog_have_autoconf+set}" = set; then
4155  echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157  if test -n "$have_autoconf"; then
4158  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4159else
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165  for ac_exec_ext in '' $ac_executable_extensions; do
4166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167    ac_cv_prog_have_autoconf="yes"
4168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169    break 2
4170  fi
4171done
4172done
4173
4174  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4175fi
4176fi
4177have_autoconf=$ac_cv_prog_have_autoconf
4178if test -n "$have_autoconf"; then
4179  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4180echo "${ECHO_T}$have_autoconf" >&6
4181else
4182  echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6
4184fi
4185
4186    if test $have_autoconf = no; then
4187      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4188echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4189   { (exit 1); exit 1; }; }
4190    fi
4191
4192    # Check whether autoconf is the correct version
4193    correct_version='2.59'
4194    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4195    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4196echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4197    autoconf --version > confauto.out 2>&1
4198    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4199      echo "$as_me:$LINENO: result: yes" >&5
4200echo "${ECHO_T}yes" >&6
4201    else
4202      rm -f confauto.out
4203      echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4206echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4207   { (exit 1); exit 1; }; }
4208    fi
4209    rm -f confauto.out
4210
4211    # Check if the executable autoconf is picked up from the correct location
4212    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4213echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4214    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4215    autoconf_dir=`cd $autoconf_dir; pwd`
4216    if test x$AUTOTOOLS_DIR = x; then
4217      want_dir=$AUTOTOOLS_DFLT/bin
4218    else
4219      want_dir=$AUTOTOOLS_DIR/bin
4220    fi
4221    if test $autoconf_dir = `cd $want_dir; pwd`; then
4222      echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
4224    else
4225      rm -f confauto.out
4226      echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
4228      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4229echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4230   { (exit 1); exit 1; }; }
4231    fi
4232
4233    # Check if we have automake
4234    # Extract the first word of "automake", so it can be a program name with args.
4235set dummy automake; ac_word=$2
4236echo "$as_me:$LINENO: checking for $ac_word" >&5
4237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238if test "${ac_cv_prog_have_automake+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  if test -n "$have_automake"; then
4242  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249  for ac_exec_ext in '' $ac_executable_extensions; do
4250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251    ac_cv_prog_have_automake="yes"
4252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253    break 2
4254  fi
4255done
4256done
4257
4258  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4259fi
4260fi
4261have_automake=$ac_cv_prog_have_automake
4262if test -n "$have_automake"; then
4263  echo "$as_me:$LINENO: result: $have_automake" >&5
4264echo "${ECHO_T}$have_automake" >&6
4265else
4266  echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268fi
4269
4270    if test $have_automake = no; then
4271      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4272echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4273   { (exit 1); exit 1; }; }
4274    fi
4275
4276    # Check whether automake is the correct version
4277    correct_version='1.9.6'
4278    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4279    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4280echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4281    automake --version > confauto.out 2>&1
4282    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4283      echo "$as_me:$LINENO: result: yes" >&5
4284echo "${ECHO_T}yes" >&6
4285    else
4286      rm -f confauto.out
4287      echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4290echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4291   { (exit 1); exit 1; }; }
4292    fi
4293    rm -f confauto.out
4294
4295    # Check if the executable automake is picked up from the correct location
4296    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4297echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4298    automake_dir=`which automake | sed -e 's=/automake=='`
4299    automake_dir=`cd $automake_dir; pwd`
4300    if test x$AUTOTOOLS_DIR = x; then
4301      want_dir=$AUTOTOOLS_DFLT/bin
4302    else
4303      want_dir=$AUTOTOOLS_DIR/bin
4304    fi
4305    if test $automake_dir = `cd $want_dir; pwd`; then
4306      echo "$as_me:$LINENO: result: yes" >&5
4307echo "${ECHO_T}yes" >&6
4308    else
4309      rm -f confauto.out
4310      echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4313echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4314   { (exit 1); exit 1; }; }
4315    fi
4316
4317    # Check if this is the correct version of libtool (with escaped dots)
4318    if test x$AUTOTOOLS_DIR = x; then
4319      want_dir=$AUTOTOOLS_DFLT/share
4320    else
4321      want_dir=$AUTOTOOLS_DIR/share
4322    fi
4323    correct_version='1.5.22'
4324    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4325    if test -r $want_dir/libtool/ltmain.sh; then
4326  have_ltmain=yes
4327  :
4328else
4329  have_ltmain=no
4330  :
4331fi
4332
4333    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4334echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4335    if test $have_ltmain = yes; then
4336    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4337        echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339      else
4340        echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4343echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4344   { (exit 1); exit 1; }; }
4345      fi
4346    else
4347      echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
4349      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4350echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4351   { (exit 1); exit 1; }; }
4352    fi
4353  fi
4354
4355  # Check if we can find the libtool file
4356  if test x$AUTOTOOLS_DIR = x; then
4357    want_dir=$AUTOTOOLS_DFLT/share
4358  else
4359    want_dir=$AUTOTOOLS_DIR/share
4360  fi
4361  if test -r $want_dir/aclocal/libtool.m4; then
4362  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4363  :
4364else
4365  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4366echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4367   { (exit 1); exit 1; }; }
4368  :
4369fi
4370
4371
4372  # Check if we have an Dependencies file
4373  if test -r $srcdir/Dependencies; then
4374    coin_have_externals=yes
4375  fi
4376  # Check if subversion is installed and understands https
4377  # Extract the first word of "svn", so it can be a program name with args.
4378set dummy svn; ac_word=$2
4379echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4381if test "${ac_cv_prog_have_svn+set}" = set; then
4382  echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384  if test -n "$have_svn"; then
4385  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392  for ac_exec_ext in '' $ac_executable_extensions; do
4393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394    ac_cv_prog_have_svn="yes"
4395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396    break 2
4397  fi
4398done
4399done
4400
4401  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4402fi
4403fi
4404have_svn=$ac_cv_prog_have_svn
4405if test -n "$have_svn"; then
4406  echo "$as_me:$LINENO: result: $have_svn" >&5
4407echo "${ECHO_T}$have_svn" >&6
4408else
4409  echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
4411fi
4412
4413  if test x$have_svn = xyes; then
4414    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4415echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4416if test "${ac_cv_svn_understands_https+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  svn --version > confauto.out 2>&1
4420                    if $EGREP https confauto.out >/dev/null 2>&1; then
4421                      ac_cv_svn_understands_https=yes
4422                    else
4423                      ac_cv_svn_understands_https=no
4424                      have_svn=no
4425                      ac_cv_prog_have_svn=no
4426                    fi
4427                    rm -f confauto.out
4428fi
4429echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4430echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4431  fi
4432
4433  # Find the location of the BuildTools directory
4434  BUILDTOOLSDIR=
4435  if test -r $srcdir/BuildTools/coin.m4; then
4436    BUILDTOOLSDIR=$srcdir/BuildTools
4437  else
4438    if test -r $srcdir/../BuildTools/coin.m4; then
4439      BUILDTOOLSDIR=$srcdir/../BuildTools
4440    else
4441      if test -r $srcdir/../../BuildTools/coin.m4; then
4442        BUILDTOOLSDIR=$srcdir/../../BuildTools
4443      else
4444        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4445echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4446   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4447      fi
4448    fi
4449  fi
4450
4451
4452  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4453  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4454    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4455  fi
4456
4457  # The following variable is set to the name of the directory where
4458  # the autotool scripts are located
4459
4460  AUX_DIR=$ac_aux_dir
4461fi
4462
4463# helpful variable for the base directory of this package
4464abs_source_dir=`cd $srcdir; pwd`
4465
4466
4467# Stuff for example Makefiles
4468if test x$prefix = xNONE; then
4469  full_prefix=$ac_default_prefix
4470else
4471  full_prefix=$prefix
4472fi
4473full_prefix=`cd $full_prefix ; pwd`
4474
4475abs_lib_dir=$full_prefix/lib
4476
4477abs_include_dir=$full_prefix/include
4478
4479abs_bin_dir=$full_prefix/bin
4480
4481
4482
4483if test $coin_have_externals = yes && test x$have_svn = xyes; then
4484  HAVE_EXTERNALS_TRUE=
4485  HAVE_EXTERNALS_FALSE='#'
4486else
4487  HAVE_EXTERNALS_TRUE='#'
4488  HAVE_EXTERNALS_FALSE=
4489fi
4490
4491
4492# AC_MSG_NOTICE([End automake initialisation.])
4493
4494
4495
4496LIBTOOL=
4497if test -r ../libtool; then
4498  coin_config_dir=..
4499  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4500fi
4501if test "x$LIBTOOL" = x; then
4502  if test -r ../../libtool; then
4503    coin_config_dir=../..
4504    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4505  fi
4506fi
4507
4508if test "x$LIBTOOL" = x; then
4509# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4510  # Stuff for libtool
4511  # Check whether --enable-shared or --disable-shared was given.
4512if test "${enable_shared+set}" = set; then
4513  enableval="$enable_shared"
4514  p=${PACKAGE-default}
4515    case $enableval in
4516    yes) enable_shared=yes ;;
4517    no) enable_shared=no ;;
4518    *)
4519      enable_shared=no
4520      # Look at the argument we got.  We use all the common list separators.
4521      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4522      for pkg in $enableval; do
4523        IFS="$lt_save_ifs"
4524        if test "X$pkg" = "X$p"; then
4525          enable_shared=yes
4526        fi
4527      done
4528      IFS="$lt_save_ifs"
4529      ;;
4530    esac
4531else
4532  enable_shared=yes
4533fi;
4534
4535# Check whether --enable-fast-install or --disable-fast-install was given.
4536if test "${enable_fast_install+set}" = set; then
4537  enableval="$enable_fast_install"
4538  p=${PACKAGE-default}
4539    case $enableval in
4540    yes) enable_fast_install=yes ;;
4541    no) enable_fast_install=no ;;
4542    *)
4543      enable_fast_install=no
4544      # Look at the argument we got.  We use all the common list separators.
4545      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4546      for pkg in $enableval; do
4547        IFS="$lt_save_ifs"
4548        if test "X$pkg" = "X$p"; then
4549          enable_fast_install=yes
4550        fi
4551      done
4552      IFS="$lt_save_ifs"
4553      ;;
4554    esac
4555else
4556  enable_fast_install=yes
4557fi;
4558
4559echo "$as_me:$LINENO: checking host system type" >&5
4560echo $ECHO_N "checking host system type... $ECHO_C" >&6
4561if test "${ac_cv_host+set}" = set; then
4562  echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564  ac_cv_host_alias=$host_alias
4565test -z "$ac_cv_host_alias" &&
4566  ac_cv_host_alias=$ac_cv_build_alias
4567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4568  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4570   { (exit 1); exit 1; }; }
4571
4572fi
4573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4574echo "${ECHO_T}$ac_cv_host" >&6
4575host=$ac_cv_host
4576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4579
4580
4581echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4582echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4583if test "${lt_cv_path_SED+set}" = set; then
4584  echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586  # Loop through the user's path and test for sed and gsed.
4587# Then use that list of sed's as ones to test for truncation.
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593  for lt_ac_prog in sed gsed; do
4594    for ac_exec_ext in '' $ac_executable_extensions; do
4595      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4596        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4597      fi
4598    done
4599  done
4600done
4601lt_ac_max=0
4602lt_ac_count=0
4603# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4604# along with /bin/sed that truncates output.
4605for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4606  test ! -f $lt_ac_sed && continue
4607  cat /dev/null > conftest.in
4608  lt_ac_count=0
4609  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4610  # Check for GNU sed and select it if it is found.
4611  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4612    lt_cv_path_SED=$lt_ac_sed
4613    break
4614  fi
4615  while true; do
4616    cat conftest.in conftest.in >conftest.tmp
4617    mv conftest.tmp conftest.in
4618    cp conftest.in conftest.nl
4619    echo >>conftest.nl
4620    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4621    cmp -s conftest.out conftest.nl || break
4622    # 10000 chars as input seems more than enough
4623    test $lt_ac_count -gt 10 && break
4624    lt_ac_count=`expr $lt_ac_count + 1`
4625    if test $lt_ac_count -gt $lt_ac_max; then
4626      lt_ac_max=$lt_ac_count
4627      lt_cv_path_SED=$lt_ac_sed
4628    fi
4629  done
4630done
4631
4632fi
4633
4634SED=$lt_cv_path_SED
4635echo "$as_me:$LINENO: result: $SED" >&5
4636echo "${ECHO_T}$SED" >&6
4637
4638
4639# Check whether --with-gnu-ld or --without-gnu-ld was given.
4640if test "${with_gnu_ld+set}" = set; then
4641  withval="$with_gnu_ld"
4642  test "$withval" = no || with_gnu_ld=yes
4643else
4644  with_gnu_ld=no
4645fi;
4646ac_prog=ld
4647if test "$GCC" = yes; then
4648  # Check if gcc -print-prog-name=ld gives a path.
4649  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4650echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4651  case $host in
4652  *-*-mingw*)
4653    # gcc leaves a trailing carriage return which upsets mingw
4654    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4655  *)
4656    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4657  esac
4658  case $ac_prog in
4659    # Accept absolute paths.
4660    [\\/]* | ?:[\\/]*)
4661      re_direlt='/[^/][^/]*/\.\./'
4662      # Canonicalize the pathname of ld
4663      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4664      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4665        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4666      done
4667      test -z "$LD" && LD="$ac_prog"
4668      ;;
4669  "")
4670    # If it fails, then pretend we aren't using GCC.
4671    ac_prog=ld
4672    ;;
4673  *)
4674    # If it is relative, then search for the first ld in PATH.
4675    with_gnu_ld=unknown
4676    ;;
4677  esac
4678elif test "$with_gnu_ld" = yes; then
4679  echo "$as_me:$LINENO: checking for GNU ld" >&5
4680echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4681else
4682  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4683echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4684fi
4685if test "${lt_cv_path_LD+set}" = set; then
4686  echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688  if test -z "$LD"; then
4689  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4690  for ac_dir in $PATH; do
4691    IFS="$lt_save_ifs"
4692    test -z "$ac_dir" && ac_dir=.
4693    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4694      lt_cv_path_LD="$ac_dir/$ac_prog"
4695      # Check to see if the program is GNU ld.  I'd rather use --version,
4696      # but apparently some variants of GNU ld only accept -v.
4697      # Break only if it was the GNU/non-GNU ld that we prefer.
4698      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4699      *GNU* | *'with BFD'*)
4700        test "$with_gnu_ld" != no && break
4701        ;;
4702      *)
4703        test "$with_gnu_ld" != yes && break
4704        ;;
4705      esac
4706    fi
4707  done
4708  IFS="$lt_save_ifs"
4709else
4710  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4711fi
4712fi
4713
4714LD="$lt_cv_path_LD"
4715if test -n "$LD"; then
4716  echo "$as_me:$LINENO: result: $LD" >&5
4717echo "${ECHO_T}$LD" >&6
4718else
4719  echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
4721fi
4722test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4723echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4724   { (exit 1); exit 1; }; }
4725echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4726echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4727if test "${lt_cv_prog_gnu_ld+set}" = set; then
4728  echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4731case `$LD -v 2>&1 </dev/null` in
4732*GNU* | *'with BFD'*)
4733  lt_cv_prog_gnu_ld=yes
4734  ;;
4735*)
4736  lt_cv_prog_gnu_ld=no
4737  ;;
4738esac
4739fi
4740echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4741echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4742with_gnu_ld=$lt_cv_prog_gnu_ld
4743
4744
4745echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4746echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4747if test "${lt_cv_ld_reload_flag+set}" = set; then
4748  echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750  lt_cv_ld_reload_flag='-r'
4751fi
4752echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4753echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4754reload_flag=$lt_cv_ld_reload_flag
4755case $reload_flag in
4756"" | " "*) ;;
4757*) reload_flag=" $reload_flag" ;;
4758esac
4759reload_cmds='$LD$reload_flag -o $output$reload_objs'
4760case $host_os in
4761  darwin*)
4762    if test "$GCC" = yes; then
4763      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4764    else
4765      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4766    fi
4767    ;;
4768esac
4769
4770echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4771echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4772if test "${lt_cv_path_NM+set}" = set; then
4773  echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775  if test -n "$NM"; then
4776  # Let the user override the test.
4777  lt_cv_path_NM="$NM"
4778else
4779  lt_nm_to_check="${ac_tool_prefix}nm"
4780  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4781    lt_nm_to_check="$lt_nm_to_check nm"
4782  fi
4783  for lt_tmp_nm in $lt_nm_to_check; do
4784    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4785    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4786      IFS="$lt_save_ifs"
4787      test -z "$ac_dir" && ac_dir=.
4788      tmp_nm="$ac_dir/$lt_tmp_nm"
4789      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4790        # Check to see if the nm accepts a BSD-compat flag.
4791        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4792        #   nm: unknown option "B" ignored
4793        # Tru64's nm complains that /dev/null is an invalid object file
4794        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4795        */dev/null* | *'Invalid file or object type'*)
4796          lt_cv_path_NM="$tmp_nm -B"
4797          break
4798          ;;
4799        *)
4800          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4801          */dev/null*)
4802            lt_cv_path_NM="$tmp_nm -p"
4803            break
4804            ;;
4805          *)
4806            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4807            continue # so that we can try to find one that supports BSD flags
4808            ;;
4809          esac
4810          ;;
4811        esac
4812      fi
4813    done
4814    IFS="$lt_save_ifs"
4815  done
4816  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4817fi
4818fi
4819echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4820echo "${ECHO_T}$lt_cv_path_NM" >&6
4821NM="$lt_cv_path_NM"
4822
4823echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4824echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4825if test "${lt_cv_deplibs_check_method+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  lt_cv_file_magic_cmd='$MAGIC_CMD'
4829lt_cv_file_magic_test_file=
4830lt_cv_deplibs_check_method='unknown'
4831# Need to set the preceding variable on all platforms that support
4832# interlibrary dependencies.
4833# 'none' -- dependencies not supported.
4834# `unknown' -- same as none, but documents that we really don't know.
4835# 'pass_all' -- all dependencies passed with no checks.
4836# 'test_compile' -- check by making test program.
4837# 'file_magic [[regex]]' -- check by looking for files in library path
4838# which responds to the $file_magic_cmd with a given extended regex.
4839# If you have `file' or equivalent on your system and you're not sure
4840# whether `pass_all' will *always* work, you probably want this one.
4841
4842case $host_os in
4843aix4* | aix5*)
4844  lt_cv_deplibs_check_method=pass_all
4845  ;;
4846
4847beos*)
4848  lt_cv_deplibs_check_method=pass_all
4849  ;;
4850
4851bsdi[45]*)
4852  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4853  lt_cv_file_magic_cmd='/usr/bin/file -L'
4854  lt_cv_file_magic_test_file=/shlib/libc.so
4855  ;;
4856
4857cygwin*)
4858  # func_win32_libid is a shell function defined in ltmain.sh
4859  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4860  lt_cv_file_magic_cmd='func_win32_libid'
4861  ;;
4862
4863mingw* | pw32*)
4864  # Base MSYS/MinGW do not provide the 'file' command needed by
4865  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4866  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4867  lt_cv_file_magic_cmd='$OBJDUMP -f'
4868  ;;
4869
4870darwin* | rhapsody*)
4871  lt_cv_deplibs_check_method=pass_all
4872  ;;
4873
4874freebsd* | kfreebsd*-gnu | dragonfly*)
4875  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4876    case $host_cpu in
4877    i*86 )
4878      # Not sure whether the presence of OpenBSD here was a mistake.
4879      # Let's accept both of them until this is cleared up.
4880      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4881      lt_cv_file_magic_cmd=/usr/bin/file
4882      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4883      ;;
4884    esac
4885  else
4886    lt_cv_deplibs_check_method=pass_all
4887  fi
4888  ;;
4889
4890gnu*)
4891  lt_cv_deplibs_check_method=pass_all
4892  ;;
4893
4894hpux10.20* | hpux11*)
4895  lt_cv_file_magic_cmd=/usr/bin/file
4896  case $host_cpu in
4897  ia64*)
4898    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4899    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4900    ;;
4901  hppa*64*)
4902    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]'
4903    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4904    ;;
4905  *)
4906    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4907    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4908    ;;
4909  esac
4910  ;;
4911
4912interix3*)
4913  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4914  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4915  ;;
4916
4917irix5* | irix6* | nonstopux*)
4918  case $LD in
4919  *-32|*"-32 ") libmagic=32-bit;;
4920  *-n32|*"-n32 ") libmagic=N32;;
4921  *-64|*"-64 ") libmagic=64-bit;;
4922  *) libmagic=never-match;;
4923  esac
4924  lt_cv_deplibs_check_method=pass_all
4925  ;;
4926
4927# This must be Linux ELF.
4928linux*)
4929  lt_cv_deplibs_check_method=pass_all
4930  ;;
4931
4932netbsd*)
4933  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4935  else
4936    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4937  fi
4938  ;;
4939
4940newos6*)
4941  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4942  lt_cv_file_magic_cmd=/usr/bin/file
4943  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4944  ;;
4945
4946nto-qnx*)
4947  lt_cv_deplibs_check_method=unknown
4948  ;;
4949
4950openbsd*)
4951  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4952    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4953  else
4954    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4955  fi
4956  ;;
4957
4958osf3* | osf4* | osf5*)
4959  lt_cv_deplibs_check_method=pass_all
4960  ;;
4961
4962solaris*)
4963  lt_cv_deplibs_check_method=pass_all
4964  ;;
4965
4966sysv4 | sysv4.3*)
4967  case $host_vendor in
4968  motorola)
4969    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]'
4970    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4971    ;;
4972  ncr)
4973    lt_cv_deplibs_check_method=pass_all
4974    ;;
4975  sequent)
4976    lt_cv_file_magic_cmd='/bin/file'
4977    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4978    ;;
4979  sni)
4980    lt_cv_file_magic_cmd='/bin/file'
4981    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4982    lt_cv_file_magic_test_file=/lib/libc.so
4983    ;;
4984  siemens)
4985    lt_cv_deplibs_check_method=pass_all
4986    ;;
4987  pc)
4988    lt_cv_deplibs_check_method=pass_all
4989    ;;
4990  esac
4991  ;;
4992
4993sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4994  lt_cv_deplibs_check_method=pass_all
4995  ;;
4996esac
4997
4998fi
4999echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5000echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5001file_magic_cmd=$lt_cv_file_magic_cmd
5002deplibs_check_method=$lt_cv_deplibs_check_method
5003test -z "$deplibs_check_method" && deplibs_check_method=unknown
5004
5005
5006
5007
5008# If no C compiler was specified, use CC.
5009LTCC=${LTCC-"$CC"}
5010
5011# If no C compiler flags were specified, use CFLAGS.
5012LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5013
5014# Allow CC to be a program name with arguments.
5015compiler=$CC
5016
5017# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5018if test "${enable_libtool_lock+set}" = set; then
5019  enableval="$enable_libtool_lock"
5020
5021fi;
5022test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5023
5024# Some flags need to be propagated to the compiler or linker for good
5025# libtool support.
5026case $host in
5027ia64-*-hpux*)
5028  # Find out which ABI we are using.
5029  echo 'int i;' > conftest.$ac_ext
5030  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031  (eval $ac_compile) 2>&5
5032  ac_status=$?
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); }; then
5035    case `/usr/bin/file conftest.$ac_objext` in
5036    *ELF-32*)
5037      HPUX_IA64_MODE="32"
5038      ;;
5039    *ELF-64*)
5040      HPUX_IA64_MODE="64"
5041      ;;
5042    esac
5043  fi
5044  rm -rf conftest*
5045  ;;
5046*-*-irix6*)
5047  # Find out which ABI we are using.
5048  echo '#line 5048 "configure"' > conftest.$ac_ext
5049  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050  (eval $ac_compile) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; then
5054   if test "$lt_cv_prog_gnu_ld" = yes; then
5055    case `/usr/bin/file conftest.$ac_objext` in
5056    *32-bit*)
5057      LD="${LD-ld} -melf32bsmip"
5058      ;;
5059    *N32*)
5060      LD="${LD-ld} -melf32bmipn32"
5061      ;;
5062    *64-bit*)
5063      LD="${LD-ld} -melf64bmip"
5064      ;;
5065    esac
5066   else
5067    case `/usr/bin/file conftest.$ac_objext` in
5068    *32-bit*)
5069      LD="${LD-ld} -32"
5070      ;;
5071    *N32*)
5072      LD="${LD-ld} -n32"
5073      ;;
5074    *64-bit*)
5075      LD="${LD-ld} -64"
5076      ;;
5077    esac
5078   fi
5079  fi
5080  rm -rf conftest*
5081  ;;
5082
5083x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5084  # Find out which ABI we are using.
5085  echo 'int i;' > conftest.$ac_ext
5086  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087  (eval $ac_compile) 2>&5
5088  ac_status=$?
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); }; then
5091    case `/usr/bin/file conftest.o` in
5092    *32-bit*)
5093      case $host in
5094        x86_64-*linux*)
5095          LD="${LD-ld} -m elf_i386"
5096          ;;
5097        ppc64-*linux*|powerpc64-*linux*)
5098          LD="${LD-ld} -m elf32ppclinux"
5099          ;;
5100        s390x-*linux*)
5101          LD="${LD-ld} -m elf_s390"
5102          ;;
5103        sparc64-*linux*)
5104          LD="${LD-ld} -m elf32_sparc"
5105          ;;
5106      esac
5107      ;;
5108    *64-bit*)
5109      case $host in
5110        x86_64-*linux*)
5111          LD="${LD-ld} -m elf_x86_64"
5112          ;;
5113        ppc*-*linux*|powerpc*-*linux*)
5114          LD="${LD-ld} -m elf64ppc"
5115          ;;
5116        s390*-*linux*)
5117          LD="${LD-ld} -m elf64_s390"
5118          ;;
5119        sparc*-*linux*)
5120          LD="${LD-ld} -m elf64_sparc"
5121          ;;
5122      esac
5123      ;;
5124    esac
5125  fi
5126  rm -rf conftest*
5127  ;;
5128
5129*-*-sco3.2v5*)
5130  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5131  SAVE_CFLAGS="$CFLAGS"
5132  CFLAGS="$CFLAGS -belf"
5133  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5134echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5135if test "${lt_cv_cc_needs_belf+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144     cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150
5151int
5152main ()
5153{
5154
5155  ;
5156  return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext conftest$ac_exeext
5160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161  (eval $ac_link) 2>conftest.er1
5162  ac_status=$?
5163  grep -v '^ *+' conftest.er1 >conftest.err
5164  rm -f conftest.er1
5165  cat conftest.err >&5
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); } &&
5168         { ac_try='test -z "$ac_c_werror_flag"
5169                         || test ! -s conftest.err'
5170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171  (eval $ac_try) 2>&5
5172  ac_status=$?
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); }; } &&
5175         { ac_try='test -s conftest$ac_exeext'
5176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177  (eval $ac_try) 2>&5
5178  ac_status=$?
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); }; }; then
5181  lt_cv_cc_needs_belf=yes
5182else
5183  echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186lt_cv_cc_needs_belf=no
5187fi
5188rm -f conftest.err conftest.$ac_objext \
5189      conftest$ac_exeext conftest.$ac_ext
5190     ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196fi
5197echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5198echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5199  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5200    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5201    CFLAGS="$SAVE_CFLAGS"
5202  fi
5203  ;;
5204sparc*-*solaris*)
5205  # Find out which ABI we are using.
5206  echo 'int i;' > conftest.$ac_ext
5207  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208  (eval $ac_compile) 2>&5
5209  ac_status=$?
5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  (exit $ac_status); }; then
5212    case `/usr/bin/file conftest.o` in
5213    *64-bit*)
5214      case $lt_cv_prog_gnu_ld in
5215      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5216      *)    LD="${LD-ld} -64" ;;
5217      esac
5218      ;;
5219    esac
5220  fi
5221  rm -rf conftest*
5222  ;;
5223
5224
5225esac
5226
5227need_locks="$enable_libtool_lock"
5228
5229
5230ac_ext=c
5231ac_cpp='$CPP $CPPFLAGS'
5232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5236echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5237# On Suns, sometimes $CPP names a directory.
5238if test -n "$CPP" && test -d "$CPP"; then
5239  CPP=
5240fi
5241if test -z "$CPP"; then
5242  if test "${ac_cv_prog_CPP+set}" = set; then
5243  echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245      # Double quotes because CPP needs to be expanded
5246    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5247    do
5248      ac_preproc_ok=false
5249for ac_c_preproc_warn_flag in '' yes
5250do
5251  # Use a header file that comes with gcc, so configuring glibc
5252  # with a fresh cross-compiler works.
5253  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254  # <limits.h> exists even on freestanding compilers.
5255  # On the NeXT, cc -E runs the code through the compiler's parser,
5256  # not just through cpp. "Syntax error" is here to catch this case.
5257  cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h.  */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h.  */
5263#ifdef __STDC__
5264# include <limits.h>
5265#else
5266# include <assert.h>
5267#endif
5268                     Syntax error
5269_ACEOF
5270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5271  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } >/dev/null; then
5278  if test -s conftest.err; then
5279    ac_cpp_err=$ac_c_preproc_warn_flag
5280    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5281  else
5282    ac_cpp_err=
5283  fi
5284else
5285  ac_cpp_err=yes
5286fi
5287if test -z "$ac_cpp_err"; then
5288  :
5289else
5290  echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293  # Broken: fails on valid input.
5294continue
5295fi
5296rm -f conftest.err conftest.$ac_ext
5297
5298  # OK, works on sane cases.  Now check whether non-existent headers
5299  # can be detected and how.
5300  cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h.  */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h.  */
5306#include <ac_nonexistent.h>
5307_ACEOF
5308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5309  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5310  ac_status=$?
5311  grep -v '^ *+' conftest.er1 >conftest.err
5312  rm -f conftest.er1
5313  cat conftest.err >&5
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); } >/dev/null; then
5316  if test -s conftest.err; then
5317    ac_cpp_err=$ac_c_preproc_warn_flag
5318    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5319  else
5320    ac_cpp_err=
5321  fi
5322else
5323  ac_cpp_err=yes
5324fi
5325if test -z "$ac_cpp_err"; then
5326  # Broken: success on invalid input.
5327continue
5328else
5329  echo "$as_me: failed program was:" >&5
5330sed 's/^/| /' conftest.$ac_ext >&5
5331
5332  # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
5336rm -f conftest.err conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then
5342  break
5343fi
5344
5345    done
5346    ac_cv_prog_CPP=$CPP
5347
5348fi
5349  CPP=$ac_cv_prog_CPP
5350else
5351  ac_cv_prog_CPP=$CPP
5352fi
5353echo "$as_me:$LINENO: result: $CPP" >&5
5354echo "${ECHO_T}$CPP" >&6
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358  # Use a header file that comes with gcc, so configuring glibc
5359  # with a fresh cross-compiler works.
5360  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361  # <limits.h> exists even on freestanding compilers.
5362  # On the NeXT, cc -E runs the code through the compiler's parser,
5363  # not just through cpp. "Syntax error" is here to catch this case.
5364  cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h.  */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h.  */
5370#ifdef __STDC__
5371# include <limits.h>
5372#else
5373# include <assert.h>
5374#endif
5375                     Syntax error
5376_ACEOF
5377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5378  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379  ac_status=$?
5380  grep -v '^ *+' conftest.er1 >conftest.err
5381  rm -f conftest.er1
5382  cat conftest.err >&5
5383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); } >/dev/null; then
5385  if test -s conftest.err; then
5386    ac_cpp_err=$ac_c_preproc_warn_flag
5387    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388  else
5389    ac_cpp_err=
5390  fi
5391else
5392  ac_cpp_err=yes
5393fi
5394if test -z "$ac_cpp_err"; then
5395  :
5396else
5397  echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
5400  # Broken: fails on valid input.
5401continue
5402fi
5403rm -f conftest.err conftest.$ac_ext
5404
5405  # OK, works on sane cases.  Now check whether non-existent headers
5406  # can be detected and how.
5407  cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h.  */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h.  */
5413#include <ac_nonexistent.h>
5414_ACEOF
5415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5416  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5417  ac_status=$?
5418  grep -v '^ *+' conftest.er1 >conftest.err
5419  rm -f conftest.er1
5420  cat conftest.err >&5
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); } >/dev/null; then
5423  if test -s conftest.err; then
5424    ac_cpp_err=$ac_c_preproc_warn_flag
5425    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426  else
5427    ac_cpp_err=
5428  fi
5429else
5430  ac_cpp_err=yes
5431fi
5432if test -z "$ac_cpp_err"; then
5433  # Broken: success on invalid input.
5434continue
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439  # Passes both tests.
5440ac_preproc_ok=:
5441break
5442fi
5443rm -f conftest.err conftest.$ac_ext
5444
5445done
5446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5447rm -f conftest.err conftest.$ac_ext
5448if $ac_preproc_ok; then
5449  :
5450else
5451  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5452See \`config.log' for more details." >&5
5453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5454See \`config.log' for more details." >&2;}
5455   { (exit 1); exit 1; }; }
5456fi
5457
5458ac_ext=c
5459ac_cpp='$CPP $CPPFLAGS'
5460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463
5464
5465echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5466echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5467if test "${ac_cv_header_stdc+set}" = set; then
5468  echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470  cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h.  */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
5475/* end confdefs.h.  */
5476#include <stdlib.h>
5477#include <stdarg.h>
5478#include <string.h>
5479#include <float.h>
5480
5481int
5482main ()
5483{
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489rm -f conftest.$ac_objext
5490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491  (eval $ac_compile) 2>conftest.er1
5492  ac_status=$?
5493  grep -v '^ *+' conftest.er1 >conftest.err
5494  rm -f conftest.er1
5495  cat conftest.err >&5
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); } &&
5498         { ac_try='test -z "$ac_c_werror_flag"
5499                         || test ! -s conftest.err'
5500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501  (eval $ac_try) 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }; } &&
5505         { ac_try='test -s conftest.$ac_objext'
5506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507  (eval $ac_try) 2>&5
5508  ac_status=$?
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); }; }; then
5511  ac_cv_header_stdc=yes
5512else
5513  echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516ac_cv_header_stdc=no
5517fi
5518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519
5520if test $ac_cv_header_stdc = yes; then
5521  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5522  cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h.  */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h.  */
5528#include <string.h>
5529
5530_ACEOF
5531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532  $EGREP "memchr" >/dev/null 2>&1; then
5533  :
5534else
5535  ac_cv_header_stdc=no
5536fi
5537rm -f conftest*
5538
5539fi
5540
5541if test $ac_cv_header_stdc = yes; then
5542  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5543  cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h.  */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h.  */
5549#include <stdlib.h>
5550
5551_ACEOF
5552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553  $EGREP "free" >/dev/null 2>&1; then
5554  :
5555else
5556  ac_cv_header_stdc=no
5557fi
5558rm -f conftest*
5559
5560fi
5561
5562if test $ac_cv_header_stdc = yes; then
5563  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5564  if test "$cross_compiling" = yes; then
5565  :
5566else
5567  cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h.  */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h.  */
5573#include <ctype.h>
5574#if ((' ' & 0x0FF) == 0x020)
5575# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5576# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5577#else
5578# define ISLOWER(c) \
5579                   (('a' <= (c) && (c) <= 'i') \
5580                     || ('j' <= (c) && (c) <= 'r') \
5581                     || ('s' <= (c) && (c) <= 'z'))
5582# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5583#endif
5584
5585#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5586int
5587main ()
5588{
5589  int i;
5590  for (i = 0; i < 256; i++)
5591    if (XOR (islower (i), ISLOWER (i))
5592        || toupper (i) != TOUPPER (i))
5593      exit(2);
5594  exit (0);
5595}
5596_ACEOF
5597rm -f conftest$ac_exeext
5598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599  (eval $ac_link) 2>&5
5600  ac_status=$?
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604  (eval $ac_try) 2>&5
5605  ac_status=$?
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); }; }; then
5608  :
5609else
5610  echo "$as_me: program exited with status $ac_status" >&5
5611echo "$as_me: failed program was:" >&5
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
5614( exit $ac_status )
5615ac_cv_header_stdc=no
5616fi
5617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618fi
5619fi
5620fi
5621echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5622echo "${ECHO_T}$ac_cv_header_stdc" >&6
5623if test $ac_cv_header_stdc = yes; then
5624
5625cat >>confdefs.h <<\_ACEOF
5626#define STDC_HEADERS 1
5627_ACEOF
5628
5629fi
5630
5631# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5642                  inttypes.h stdint.h unistd.h
5643do
5644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645echo "$as_me:$LINENO: checking for $ac_header" >&5
5646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648  echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650  cat >conftest.$ac_ext <<_ACEOF
5651/* confdefs.h.  */
5652_ACEOF
5653cat confdefs.h >>conftest.$ac_ext
5654cat >>conftest.$ac_ext <<_ACEOF
5655/* end confdefs.h.  */
5656$ac_includes_default
5657
5658#include <$ac_header>
5659_ACEOF
5660rm -f conftest.$ac_objext
5661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662  (eval $ac_compile) 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } &&
5669         { ac_try='test -z "$ac_c_werror_flag"
5670                         || test ! -s conftest.err'
5671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672  (eval $ac_try) 2>&5
5673  ac_status=$?
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); }; } &&
5676         { ac_try='test -s conftest.$ac_objext'
5677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678  (eval $ac_try) 2>&5
5679  ac_status=$?
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); }; }; then
5682  eval "$as_ac_Header=yes"
5683else
5684  echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687eval "$as_ac_Header=no"
5688fi
5689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690fi
5691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5693if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694  cat >>confdefs.h <<_ACEOF
5695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5696_ACEOF
5697
5698fi
5699
5700done
5701
5702
5703
5704for ac_header in dlfcn.h
5705do
5706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5707if eval "test \"\${$as_ac_Header+set}\" = set"; then
5708  echo "$as_me:$LINENO: checking for $ac_header" >&5
5709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711  echo $ECHO_N "(cached) $ECHO_C" >&6
5712fi
5713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5715else
5716  # Is the header compilable?
5717echo "$as_me:$LINENO: checking $ac_header usability" >&5
5718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5719cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h.  */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h.  */
5725$ac_includes_default
5726#include <$ac_header>
5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730  (eval $ac_compile) 2>conftest.er1
5731  ac_status=$?
5732  grep -v '^ *+' conftest.er1 >conftest.err
5733  rm -f conftest.er1
5734  cat conftest.err >&5
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); } &&
5737         { ac_try='test -z "$ac_c_werror_flag"
5738                         || test ! -s conftest.err'
5739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740  (eval $ac_try) 2>&5
5741  ac_status=$?
5742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743  (exit $ac_status); }; } &&
5744         { ac_try='test -s conftest.$ac_objext'
5745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746  (eval $ac_try) 2>&5
5747  ac_status=$?
5748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749  (exit $ac_status); }; }; then
5750  ac_header_compiler=yes
5751else
5752  echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755ac_header_compiler=no
5756fi
5757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5759echo "${ECHO_T}$ac_header_compiler" >&6
5760
5761# Is the header present?
5762echo "$as_me:$LINENO: checking $ac_header presence" >&5
5763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5764cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h.  */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h.  */
5770#include <$ac_header>
5771_ACEOF
5772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5774  ac_status=$?
5775  grep -v '^ *+' conftest.er1 >conftest.err
5776  rm -f conftest.er1
5777  cat conftest.err >&5
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); } >/dev/null; then
5780  if test -s conftest.err; then
5781    ac_cpp_err=$ac_c_preproc_warn_flag
5782    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5783  else
5784    ac_cpp_err=
5785  fi
5786else
5787  ac_cpp_err=yes
5788fi
5789if test -z "$ac_cpp_err"; then
5790  ac_header_preproc=yes
5791else
5792  echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795  ac_header_preproc=no
5796fi
5797rm -f conftest.err conftest.$ac_ext
5798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799echo "${ECHO_T}$ac_header_preproc" >&6
5800
5801# So?  What about this header?
5802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5803  yes:no: )
5804    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5808    ac_header_preproc=yes
5809    ;;
5810  no:yes:* )
5811    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5813    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5814echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5815    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5817    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5818echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5821    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5823    (
5824      cat <<\_ASBOX
5825## --------------------------------------------------------------- ##
5826## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5827## --------------------------------------------------------------- ##
5828_ASBOX
5829    ) |
5830      sed "s/^/$as_me: WARNING:     /" >&2
5831    ;;
5832esac
5833echo "$as_me:$LINENO: checking for $ac_header" >&5
5834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5835if eval "test \"\${$as_ac_Header+set}\" = set"; then
5836  echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838  eval "$as_ac_Header=\$ac_header_preproc"
5839fi
5840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5842
5843fi
5844if test `eval echo '${'$as_ac_Header'}'` = yes; then
5845  cat >>confdefs.h <<_ACEOF
5846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5847_ACEOF
5848
5849fi
5850
5851done
5852
5853ac_ext=cc
5854ac_cpp='$CXXCPP $CPPFLAGS'
5855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5858if test -n "$ac_tool_prefix"; then
5859  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5860  do
5861    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5863echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865if test "${ac_cv_prog_CXX+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  if test -n "$CXX"; then
5869  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  test -z "$as_dir" && as_dir=.
5876  for ac_exec_ext in '' $ac_executable_extensions; do
5877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883done
5884
5885fi
5886fi
5887CXX=$ac_cv_prog_CXX
5888if test -n "$CXX"; then
5889  echo "$as_me:$LINENO: result: $CXX" >&5
5890echo "${ECHO_T}$CXX" >&6
5891else
5892  echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894fi
5895
5896    test -n "$CXX" && break
5897  done
5898fi
5899if test -z "$CXX"; then
5900  ac_ct_CXX=$CXX
5901  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5902do
5903  # Extract the first word of "$ac_prog", so it can be a program name with args.
5904set dummy $ac_prog; ac_word=$2
5905echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  if test -n "$ac_ct_CXX"; then
5911  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916  IFS=$as_save_IFS
5917  test -z "$as_dir" && as_dir=.
5918  for ac_exec_ext in '' $ac_executable_extensions; do
5919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920    ac_cv_prog_ac_ct_CXX="$ac_prog"
5921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925done
5926
5927fi
5928fi
5929ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5930if test -n "$ac_ct_CXX"; then
5931  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5932echo "${ECHO_T}$ac_ct_CXX" >&6
5933else
5934  echo "$as_me:$LINENO: result: no" >&5
5935echo "${ECHO_T}no" >&6
5936fi
5937
5938  test -n "$ac_ct_CXX" && break
5939done
5940test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5941
5942  CXX=$ac_ct_CXX
5943fi
5944
5945
5946# Provide some information about the compiler.
5947echo "$as_me:$LINENO:" \
5948     "checking for C++ compiler version" >&5
5949ac_compiler=`set X $ac_compile; echo $2`
5950{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5951  (eval $ac_compiler --version </dev/null >&5) 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); }
5955{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5956  (eval $ac_compiler -v </dev/null >&5) 2>&5
5957  ac_status=$?
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); }
5960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5961  (eval $ac_compiler -V </dev/null >&5) 2>&5
5962  ac_status=$?
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); }
5965
5966echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5967echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5968if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5969  echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971  cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h.  */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h.  */
5977
5978int
5979main ()
5980{
5981#ifndef __GNUC__
5982       choke me
5983#endif
5984
5985  ;
5986  return 0;
5987}
5988_ACEOF
5989rm -f conftest.$ac_objext
5990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991  (eval $ac_compile) 2>conftest.er1
5992  ac_status=$?
5993  grep -v '^ *+' conftest.er1 >conftest.err
5994  rm -f conftest.er1
5995  cat conftest.err >&5
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); } &&
5998         { ac_try='test -z "$ac_cxx_werror_flag"
5999                         || test ! -s conftest.err'
6000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001  (eval $ac_try) 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); }; } &&
6005         { ac_try='test -s conftest.$ac_objext'
6006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007  (eval $ac_try) 2>&5
6008  ac_status=$?
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); }; }; then
6011  ac_compiler_gnu=yes
6012else
6013  echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016ac_compiler_gnu=no
6017fi
6018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6020
6021fi
6022echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6023echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6024GXX=`test $ac_compiler_gnu = yes && echo yes`
6025ac_test_CXXFLAGS=${CXXFLAGS+set}
6026ac_save_CXXFLAGS=$CXXFLAGS
6027CXXFLAGS="-g"
6028echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6029echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6030if test "${ac_cv_prog_cxx_g+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033  cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h.  */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h.  */
6039
6040int
6041main ()
6042{
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048rm -f conftest.$ac_objext
6049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050  (eval $ac_compile) 2>conftest.er1
6051  ac_status=$?
6052  grep -v '^ *+' conftest.er1 >conftest.err
6053  rm -f conftest.er1
6054  cat conftest.err >&5
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); } &&
6057         { ac_try='test -z "$ac_cxx_werror_flag"
6058                         || test ! -s conftest.err'
6059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060  (eval $ac_try) 2>&5
6061  ac_status=$?
6062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063  (exit $ac_status); }; } &&
6064         { ac_try='test -s conftest.$ac_objext'
6065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066  (eval $ac_try) 2>&5
6067  ac_status=$?
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); }; }; then
6070  ac_cv_prog_cxx_g=yes
6071else
6072  echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075ac_cv_prog_cxx_g=no
6076fi
6077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
6079echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6080echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6081if test "$ac_test_CXXFLAGS" = set; then
6082  CXXFLAGS=$ac_save_CXXFLAGS
6083elif test $ac_cv_prog_cxx_g = yes; then
6084  if test "$GXX" = yes; then
6085    CXXFLAGS="-g -O2"
6086  else
6087    CXXFLAGS="-g"
6088  fi
6089else
6090  if test "$GXX" = yes; then
6091    CXXFLAGS="-O2"
6092  else
6093    CXXFLAGS=
6094  fi
6095fi
6096for ac_declaration in \
6097   '' \
6098   'extern "C" void std::exit (int) throw (); using std::exit;' \
6099   'extern "C" void std::exit (int); using std::exit;' \
6100   'extern "C" void exit (int) throw ();' \
6101   'extern "C" void exit (int);' \
6102   'void exit (int);'
6103do
6104  cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h.  */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h.  */
6110$ac_declaration
6111#include <stdlib.h>
6112int
6113main ()
6114{
6115exit (42);
6116  ;
6117  return 0;
6118}
6119_ACEOF
6120rm -f conftest.$ac_objext
6121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122  (eval $ac_compile) 2>conftest.er1
6123  ac_status=$?
6124  grep -v '^ *+' conftest.er1 >conftest.err
6125  rm -f conftest.er1
6126  cat conftest.err >&5
6127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128  (exit $ac_status); } &&
6129         { ac_try='test -z "$ac_cxx_werror_flag"
6130                         || test ! -s conftest.err'
6131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132  (eval $ac_try) 2>&5
6133  ac_status=$?
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); }; } &&
6136         { ac_try='test -s conftest.$ac_objext'
6137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138  (eval $ac_try) 2>&5
6139  ac_status=$?
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); }; }; then
6142  :
6143else
6144  echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147continue
6148fi
6149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150  cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h.  */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h.  */
6156$ac_declaration
6157int
6158main ()
6159{
6160exit (42);
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext
6166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167  (eval $ac_compile) 2>conftest.er1
6168  ac_status=$?
6169  grep -v '^ *+' conftest.er1 >conftest.err
6170  rm -f conftest.er1
6171  cat conftest.err >&5
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } &&
6174         { ac_try='test -z "$ac_cxx_werror_flag"
6175                         || test ! -s conftest.err'
6176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177  (eval $ac_try) 2>&5
6178  ac_status=$?
6179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180  (exit $ac_status); }; } &&
6181         { ac_try='test -s conftest.$ac_objext'
6182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183  (eval $ac_try) 2>&5
6184  ac_status=$?
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); }; }; then
6187  break
6188else
6189  echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192fi
6193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6194done
6195rm -f conftest*
6196if test -n "$ac_declaration"; then
6197  echo '#ifdef __cplusplus' >>confdefs.h
6198  echo $ac_declaration      >>confdefs.h
6199  echo '#endif'             >>confdefs.h
6200fi
6201
6202ac_ext=cc
6203ac_cpp='$CXXCPP $CPPFLAGS'
6204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6207
6208depcc="$CXX"  am_compiler_list=
6209
6210echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6211echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6212if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6213  echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6216  # We make a subdir and do the tests there.  Otherwise we can end up
6217  # making bogus files that we don't know about and never remove.  For
6218  # instance it was reported that on HP-UX the gcc test will end up
6219  # making a dummy file named `D' -- because `-MD' means `put the output
6220  # in D'.
6221  mkdir conftest.dir
6222  # Copy depcomp to subdir because otherwise we won't find it if we're
6223  # using a relative directory.
6224  cp "$am_depcomp" conftest.dir
6225  cd conftest.dir
6226  # We will build objects and dependencies in a subdirectory because
6227  # it helps to detect inapplicable dependency modes.  For instance
6228  # both Tru64's cc and ICC support -MD to output dependencies as a
6229  # side effect of compilation, but ICC will put the dependencies in
6230  # the current directory while Tru64 will put them in the object
6231  # directory.
6232  mkdir sub
6233
6234  am_cv_CXX_dependencies_compiler_type=none
6235  if test "$am_compiler_list" = ""; then
6236     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6237  fi
6238  for depmode in $am_compiler_list; do
6239    # Setup a source with many dependencies, because some compilers
6240    # like to wrap large dependency lists on column 80 (with \), and
6241    # we should not choose a depcomp mode which is confused by this.
6242    #
6243    # We need to recreate these files for each test, as the compiler may
6244    # overwrite some of them when testing with obscure command lines.
6245    # This happens at least with the AIX C compiler.
6246    : > sub/conftest.c
6247    for i in 1 2 3 4 5 6; do
6248      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6249      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6250      # Solaris 8's {/usr,}/bin/sh.
6251      touch sub/conftst$i.h
6252    done
6253    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6254
6255    case $depmode in
6256    nosideeffect)
6257      # after this tag, mechanisms are not by side-effect, so they'll
6258      # only be used when explicitly requested
6259      if test "x$enable_dependency_tracking" = xyes; then
6260        continue
6261      else
6262        break
6263      fi
6264      ;;
6265    none) break ;;
6266    esac
6267    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6268    # mode.  It turns out that the SunPro C++ compiler does not properly
6269    # handle `-M -o', and we need to detect this.
6270    if depmode=$depmode \
6271       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6272       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6273       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6274         >/dev/null 2>conftest.err &&
6275       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6276       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6277       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6278      # icc doesn't choke on unknown options, it will just issue warnings
6279      # or remarks (even with -Werror).  So we grep stderr for any message
6280      # that says an option was ignored or not supported.
6281      # When given -MP, icc 7.0 and 7.1 complain thusly:
6282      #   icc: Command line warning: ignoring option '-M'; no argument required
6283      # The diagnosis changed in icc 8.0:
6284      #   icc: Command line remark: option '-MP' not supported
6285      if (grep 'ignoring option' conftest.err ||
6286          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6287        am_cv_CXX_dependencies_compiler_type=$depmode
6288        break
6289      fi
6290    fi
6291  done
6292
6293  cd ..
6294  rm -rf conftest.dir
6295else
6296  am_cv_CXX_dependencies_compiler_type=none
6297fi
6298
6299fi
6300echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6301echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6302CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6303
6304
6305
6306if
6307  test "x$enable_dependency_tracking" != xno \
6308  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6309  am__fastdepCXX_TRUE=
6310  am__fastdepCXX_FALSE='#'
6311else
6312  am__fastdepCXX_TRUE='#'
6313  am__fastdepCXX_FALSE=
6314fi
6315
6316
6317
6318
6319if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6320    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6321    (test "X$CXX" != "Xg++"))) ; then
6322  ac_ext=cc
6323ac_cpp='$CXXCPP $CPPFLAGS'
6324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6328echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6329if test -z "$CXXCPP"; then
6330  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6331  echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333      # Double quotes because CXXCPP needs to be expanded
6334    for CXXCPP in "$CXX -E" "/lib/cpp"
6335    do
6336      ac_preproc_ok=false
6337for ac_cxx_preproc_warn_flag in '' yes
6338do
6339  # Use a header file that comes with gcc, so configuring glibc
6340  # with a fresh cross-compiler works.
6341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342  # <limits.h> exists even on freestanding compilers.
6343  # On the NeXT, cc -E runs the code through the compiler's parser,
6344  # not just through cpp. "Syntax error" is here to catch this case.
6345  cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h.  */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h.  */
6351#ifdef __STDC__
6352# include <limits.h>
6353#else
6354# include <assert.h>
6355#endif
6356                     Syntax error
6357_ACEOF
6358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6360  ac_status=$?
6361  grep -v '^ *+' conftest.er1 >conftest.err
6362  rm -f conftest.er1
6363  cat conftest.err >&5
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } >/dev/null; then
6366  if test -s conftest.err; then
6367    ac_cpp_err=$ac_cxx_preproc_warn_flag
6368    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6369  else
6370    ac_cpp_err=
6371  fi
6372else
6373  ac_cpp_err=yes
6374fi
6375if test -z "$ac_cpp_err"; then
6376  :
6377else
6378  echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381  # Broken: fails on valid input.
6382continue
6383fi
6384rm -f conftest.err conftest.$ac_ext
6385
6386  # OK, works on sane cases.  Now check whether non-existent headers
6387  # can be detected and how.
6388  cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h.  */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h.  */
6394#include <ac_nonexistent.h>
6395_ACEOF
6396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6398  ac_status=$?
6399  grep -v '^ *+' conftest.er1 >conftest.err
6400  rm -f conftest.er1
6401  cat conftest.err >&5
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); } >/dev/null; then
6404  if test -s conftest.err; then
6405    ac_cpp_err=$ac_cxx_preproc_warn_flag
6406    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6407  else
6408    ac_cpp_err=
6409  fi
6410else
6411  ac_cpp_err=yes
6412fi
6413if test -z "$ac_cpp_err"; then
6414  # Broken: success on invalid input.
6415continue
6416else
6417  echo "$as_me: failed program was:" >&5
6418sed 's/^/| /' conftest.$ac_ext >&5
6419
6420  # Passes both tests.
6421ac_preproc_ok=:
6422break
6423fi
6424rm -f conftest.err conftest.$ac_ext
6425
6426done
6427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6428rm -f conftest.err conftest.$ac_ext
6429if $ac_preproc_ok; then
6430  break
6431fi
6432
6433    done
6434    ac_cv_prog_CXXCPP=$CXXCPP
6435
6436fi
6437  CXXCPP=$ac_cv_prog_CXXCPP
6438else
6439  ac_cv_prog_CXXCPP=$CXXCPP
6440fi
6441echo "$as_me:$LINENO: result: $CXXCPP" >&5
6442echo "${ECHO_T}$CXXCPP" >&6
6443ac_preproc_ok=false
6444for ac_cxx_preproc_warn_flag in '' yes
6445do
6446  # Use a header file that comes with gcc, so configuring glibc
6447  # with a fresh cross-compiler works.
6448  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6449  # <limits.h> exists even on freestanding compilers.
6450  # On the NeXT, cc -E runs the code through the compiler's parser,
6451  # not just through cpp. "Syntax error" is here to catch this case.
6452  cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h.  */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h.  */
6458#ifdef __STDC__
6459# include <limits.h>
6460#else
6461# include <assert.h>
6462#endif
6463                     Syntax error
6464_ACEOF
6465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6466  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } >/dev/null; then
6473  if test -s conftest.err; then
6474    ac_cpp_err=$ac_cxx_preproc_warn_flag
6475    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6476  else
6477    ac_cpp_err=
6478  fi
6479else
6480  ac_cpp_err=yes
6481fi
6482if test -z "$ac_cpp_err"; then
6483  :
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488  # Broken: fails on valid input.
6489continue
6490fi
6491rm -f conftest.err conftest.$ac_ext
6492
6493  # OK, works on sane cases.  Now check whether non-existent headers
6494  # can be detected and how.
6495  cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h.  */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h.  */
6501#include <ac_nonexistent.h>
6502_ACEOF
6503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6504  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6505  ac_status=$?
6506  grep -v '^ *+' conftest.er1 >conftest.err
6507  rm -f conftest.er1
6508  cat conftest.err >&5
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); } >/dev/null; then
6511  if test -s conftest.err; then
6512    ac_cpp_err=$ac_cxx_preproc_warn_flag
6513    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6514  else
6515    ac_cpp_err=
6516  fi
6517else
6518  ac_cpp_err=yes
6519fi
6520if test -z "$ac_cpp_err"; then
6521  # Broken: success on invalid input.
6522continue
6523else
6524  echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527  # Passes both tests.
6528ac_preproc_ok=:
6529break
6530fi
6531rm -f conftest.err conftest.$ac_ext
6532
6533done
6534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6535rm -f conftest.err conftest.$ac_ext
6536if $ac_preproc_ok; then
6537  :
6538else
6539  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6540See \`config.log' for more details." >&5
6541echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6542See \`config.log' for more details." >&2;}
6543   { (exit 1); exit 1; }; }
6544fi
6545
6546ac_ext=cc
6547ac_cpp='$CXXCPP $CPPFLAGS'
6548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6551
6552fi
6553
6554
6555ac_ext=f
6556ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6557ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6559if test -n "$ac_tool_prefix"; then
6560  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6561  do
6562    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6564echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6566if test "${ac_cv_prog_F77+set}" = set; then
6567  echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569  if test -n "$F77"; then
6570  ac_cv_prog_F77="$F77" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575  IFS=$as_save_IFS
6576  test -z "$as_dir" && as_dir=.
6577  for ac_exec_ext in '' $ac_executable_extensions; do
6578  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584done
6585
6586fi
6587fi
6588F77=$ac_cv_prog_F77
6589if test -n "$F77"; then
6590  echo "$as_me:$LINENO: result: $F77" >&5
6591echo "${ECHO_T}$F77" >&6
6592else
6593  echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6
6595fi
6596
6597    test -n "$F77" && break
6598  done
6599fi
6600if test -z "$F77"; then
6601  ac_ct_F77=$F77
6602  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6603do
6604  # Extract the first word of "$ac_prog", so it can be a program name with args.
6605set dummy $ac_prog; ac_word=$2
6606echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6608if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6609  echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611  if test -n "$ac_ct_F77"; then
6612  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619  for ac_exec_ext in '' $ac_executable_extensions; do
6620  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621    ac_cv_prog_ac_ct_F77="$ac_prog"
6622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626done
6627
6628fi
6629fi
6630ac_ct_F77=$ac_cv_prog_ac_ct_F77
6631if test -n "$ac_ct_F77"; then
6632  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6633echo "${ECHO_T}$ac_ct_F77" >&6
6634else
6635  echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6
6637fi
6638
6639  test -n "$ac_ct_F77" && break
6640done
6641
6642  F77=$ac_ct_F77
6643fi
6644
6645
6646# Provide some information about the compiler.
6647echo "$as_me:6647:" \
6648     "checking for Fortran 77 compiler version" >&5
6649ac_compiler=`set X $ac_compile; echo $2`
6650{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6651  (eval $ac_compiler --version </dev/null >&5) 2>&5
6652  ac_status=$?
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); }
6655{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6656  (eval $ac_compiler -v </dev/null >&5) 2>&5
6657  ac_status=$?
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); }
6660{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6661  (eval $ac_compiler -V </dev/null >&5) 2>&5
6662  ac_status=$?
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); }
6665rm -f a.out
6666
6667# If we don't use `.F' as extension, the preprocessor is not run on the
6668# input file.  (Note that this only needs to work for GNU compilers.)
6669ac_save_ext=$ac_ext
6670ac_ext=F
6671echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6672echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6673if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6674  echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676  cat >conftest.$ac_ext <<_ACEOF
6677      program main
6678#ifndef __GNUC__
6679       choke me
6680#endif
6681
6682      end
6683_ACEOF
6684rm -f conftest.$ac_objext
6685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686  (eval $ac_compile) 2>conftest.er1
6687  ac_status=$?
6688  grep -v '^ *+' conftest.er1 >conftest.err
6689  rm -f conftest.er1
6690  cat conftest.err >&5
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); } &&
6693         { ac_try='test -z "$ac_f77_werror_flag"
6694                         || test ! -s conftest.err'
6695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696  (eval $ac_try) 2>&5
6697  ac_status=$?
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); }; } &&
6700         { ac_try='test -s conftest.$ac_objext'
6701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702  (eval $ac_try) 2>&5
6703  ac_status=$?
6704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); }; }; then
6706  ac_compiler_gnu=yes
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711ac_compiler_gnu=no
6712fi
6713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6714ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6715
6716fi
6717echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6718echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6719ac_ext=$ac_save_ext
6720ac_test_FFLAGS=${FFLAGS+set}
6721ac_save_FFLAGS=$FFLAGS
6722FFLAGS=
6723echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6724echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6725if test "${ac_cv_prog_f77_g+set}" = set; then
6726  echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728  FFLAGS=-g
6729cat >conftest.$ac_ext <<_ACEOF
6730      program main
6731
6732      end
6733_ACEOF
6734rm -f conftest.$ac_objext
6735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736  (eval $ac_compile) 2>conftest.er1
6737  ac_status=$?
6738  grep -v '^ *+' conftest.er1 >conftest.err
6739  rm -f conftest.er1
6740  cat conftest.err >&5
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); } &&
6743         { ac_try='test -z "$ac_f77_werror_flag"
6744                         || test ! -s conftest.err'
6745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746  (eval $ac_try) 2>&5
6747  ac_status=$?
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); }; } &&
6750         { ac_try='test -s conftest.$ac_objext'
6751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752  (eval $ac_try) 2>&5
6753  ac_status=$?
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); }; }; then
6756  ac_cv_prog_f77_g=yes
6757else
6758  echo "$as_me: failed program was:" >&5
6759sed 's/^/| /' conftest.$ac_ext >&5
6760
6761ac_cv_prog_f77_g=no
6762fi
6763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764
6765fi
6766echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6767echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6768if test "$ac_test_FFLAGS" = set; then
6769  FFLAGS=$ac_save_FFLAGS
6770elif test $ac_cv_prog_f77_g = yes; then
6771  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6772    FFLAGS="-g -O2"
6773  else
6774    FFLAGS="-g"
6775  fi
6776else
6777  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6778    FFLAGS="-O2"
6779  else
6780    FFLAGS=
6781  fi
6782fi
6783
6784G77=`test $ac_compiler_gnu = yes && echo yes`
6785ac_ext=c
6786ac_cpp='$CPP $CPPFLAGS'
6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
6791
6792
6793# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6794
6795# find the maximum length of command line arguments
6796echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6797echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6798if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801    i=0
6802  teststring="ABCD"
6803
6804  case $build_os in
6805  msdosdjgpp*)
6806    # On DJGPP, this test can blow up pretty badly due to problems in libc
6807    # (any single argument exceeding 2000 bytes causes a buffer overrun
6808    # during glob expansion).  Even if it were fixed, the result of this
6809    # check would be larger than it should be.
6810    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6811    ;;
6812
6813  gnu*)
6814    # Under GNU Hurd, this test is not required because there is
6815    # no limit to the length of command line arguments.
6816    # Libtool will interpret -1 as no limit whatsoever
6817    lt_cv_sys_max_cmd_len=-1;
6818    ;;
6819
6820  cygwin* | mingw*)
6821    # On Win9x/ME, this test blows up -- it succeeds, but takes
6822    # about 5 minutes as the teststring grows exponentially.
6823    # Worse, since 9x/ME are not pre-emptively multitasking,
6824    # you end up with a "frozen" computer, even though with patience
6825    # the test eventually succeeds (with a max line length of 256k).
6826    # Instead, let's just punt: use the minimum linelength reported by
6827    # all of the supported platforms: 8192 (on NT/2K/XP).
6828    lt_cv_sys_max_cmd_len=8192;
6829    ;;
6830
6831  amigaos*)
6832    # On AmigaOS with pdksh, this test takes hours, literally.
6833    # So we just punt and use a minimum line length of 8192.
6834    lt_cv_sys_max_cmd_len=8192;
6835    ;;
6836
6837  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6838    # This has been around since 386BSD, at least.  Likely further.
6839    if test -x /sbin/sysctl; then
6840      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6841    elif test -x /usr/sbin/sysctl; then
6842      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6843    else
6844      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6845    fi
6846    # And add a safety zone
6847    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6848    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6849    ;;
6850
6851  interix*)
6852    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6853    lt_cv_sys_max_cmd_len=196608
6854    ;;
6855
6856  osf*)
6857    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6858    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6859    # nice to cause kernel panics so lets avoid the loop below.
6860    # First set a reasonable default.
6861    lt_cv_sys_max_cmd_len=16384
6862    #
6863    if test -x /sbin/sysconfig; then
6864      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6865        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6866      esac
6867    fi
6868    ;;
6869  sco3.2v5*)
6870    lt_cv_sys_max_cmd_len=102400
6871    ;;
6872  sysv5* | sco5v6* | sysv4.2uw2*)
6873    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6874    if test -n "$kargmax"; then
6875      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6876    else
6877      lt_cv_sys_max_cmd_len=32768
6878    fi
6879    ;;
6880  *)
6881    # If test is not a shell built-in, we'll probably end up computing a
6882    # maximum length that is only half of the actual maximum length, but
6883    # we can't tell.
6884    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6885    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6886               = "XX$teststring") >/dev/null 2>&1 &&
6887            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6888            lt_cv_sys_max_cmd_len=$new_result &&
6889            test $i != 17 # 1/2 MB should be enough
6890    do
6891      i=`expr $i + 1`
6892      teststring=$teststring$teststring
6893    done
6894    teststring=
6895    # Add a significant safety factor because C++ compilers can tack on massive
6896    # amounts of additional arguments before passing them to the linker.
6897    # It appears as though 1/2 is a usable value.
6898    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6899    ;;
6900  esac
6901
6902fi
6903
6904if test -n $lt_cv_sys_max_cmd_len ; then
6905  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6906echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6907else
6908  echo "$as_me:$LINENO: result: none" >&5
6909echo "${ECHO_T}none" >&6
6910fi
6911
6912
6913
6914
6915# Check for command to grab the raw symbol name followed by C symbol from nm.
6916echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6917echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6918if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6919  echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921
6922# These are sane defaults that work on at least a few old systems.
6923# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6924
6925# Character class describing NM global symbol codes.
6926symcode='[BCDEGRST]'
6927
6928# Regexp to match symbols that can be accessed directly from C.
6929sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6930
6931# Transform an extracted symbol line into a proper C declaration
6932lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6933
6934# Transform an extracted symbol line into symbol name and symbol address
6935lt_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'"
6936
6937# Define system-specific variables.
6938case $host_os in
6939aix*)
6940  symcode='[BCDT]'
6941  ;;
6942cygwin* | mingw* | pw32*)
6943  symcode='[ABCDGISTW]'
6944  ;;
6945hpux*) # Its linker distinguishes data from code symbols
6946  if test "$host_cpu" = ia64; then
6947    symcode='[ABCDEGRST]'
6948  fi
6949  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6950  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'"
6951  ;;
6952linux*)
6953  if test "$host_cpu" = ia64; then
6954    symcode='[ABCDGIRSTW]'
6955    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6956    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'"
6957  fi
6958  ;;
6959irix* | nonstopux*)
6960  symcode='[BCDEGRST]'
6961  ;;
6962osf*)
6963  symcode='[BCDEGQRST]'
6964  ;;
6965solaris*)
6966  symcode='[BDRT]'
6967  ;;
6968sco3.2v5*)
6969  symcode='[DT]'
6970  ;;
6971sysv4.2uw2*)
6972  symcode='[DT]'
6973  ;;
6974sysv5* | sco5v6* | unixware* | OpenUNIX*)
6975  symcode='[ABDT]'
6976  ;;
6977sysv4)
6978  symcode='[DFNSTU]'
6979  ;;
6980esac
6981
6982# Handle CRLF in mingw tool chain
6983opt_cr=
6984case $build_os in
6985mingw*)
6986  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6987  ;;
6988esac
6989
6990# If we're using GNU nm, then use its standard symbol codes.
6991case `$NM -V 2>&1` in
6992*GNU* | *'with BFD'*)
6993  symcode='[ABCDGIRSTW]' ;;
6994esac
6995
6996# Try without a prefix undercore, then with it.
6997for ac_symprfx in "" "_"; do
6998
6999  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7000  symxfrm="\\1 $ac_symprfx\\2 \\2"
7001
7002  # Write the raw and C identifiers.
7003  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7004
7005  # Check to see that the pipe works correctly.
7006  pipe_works=no
7007
7008  rm -f conftest*
7009  cat > conftest.$ac_ext <<EOF
7010#ifdef __cplusplus
7011extern "C" {
7012#endif
7013char nm_test_var;
7014void nm_test_func(){}
7015#ifdef __cplusplus
7016}
7017#endif
7018int main(){nm_test_var='a';nm_test_func();return(0);}
7019EOF
7020
7021  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022  (eval $ac_compile) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }; then
7026    # Now try to grab the symbols.
7027    nlist=conftest.nm
7028    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7029  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7030  ac_status=$?
7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032  (exit $ac_status); } && test -s "$nlist"; then
7033      # Try sorting and uniquifying the output.
7034      if sort "$nlist" | uniq > "$nlist"T; then
7035        mv -f "$nlist"T "$nlist"
7036      else
7037        rm -f "$nlist"T
7038      fi
7039
7040      # Make sure that we snagged all the symbols we need.
7041      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7042        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7043          cat <<EOF > conftest.$ac_ext
7044#ifdef __cplusplus
7045extern "C" {
7046#endif
7047
7048EOF
7049          # Now generate the symbol file.
7050          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7051
7052          cat <<EOF >> conftest.$ac_ext
7053#if defined (__STDC__) && __STDC__
7054# define lt_ptr_t void *
7055#else
7056# define lt_ptr_t char *
7057# define const
7058#endif
7059
7060/* The mapping between symbol names and symbols. */
7061const struct {
7062  const char *name;
7063  lt_ptr_t address;
7064}
7065lt_preloaded_symbols[] =
7066{
7067EOF
7068          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7069          cat <<\EOF >> conftest.$ac_ext
7070  {0, (lt_ptr_t) 0}
7071};
7072
7073#ifdef __cplusplus
7074}
7075#endif
7076EOF
7077          # Now try linking the two files.
7078          mv conftest.$ac_objext conftstm.$ac_objext
7079          lt_save_LIBS="$LIBS"
7080          lt_save_CFLAGS="$CFLAGS"
7081          LIBS="conftstm.$ac_objext"
7082          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7084  (eval $ac_link) 2>&5
7085  ac_status=$?
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7088            pipe_works=yes
7089          fi
7090          LIBS="$lt_save_LIBS"
7091          CFLAGS="$lt_save_CFLAGS"
7092        else
7093          echo "cannot find nm_test_func in $nlist" >&5
7094        fi
7095      else
7096        echo "cannot find nm_test_var in $nlist" >&5
7097      fi
7098    else
7099      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7100    fi
7101  else
7102    echo "$progname: failed program was:" >&5
7103    cat conftest.$ac_ext >&5
7104  fi
7105  rm -f conftest* conftst*
7106
7107  # Do not use the global_symbol_pipe unless it works.
7108  if test "$pipe_works" = yes; then
7109    break
7110  else
7111    lt_cv_sys_global_symbol_pipe=
7112  fi
7113done
7114
7115fi
7116
7117if test -z "$lt_cv_sys_global_symbol_pipe"; then
7118  lt_cv_sys_global_symbol_to_cdecl=
7119fi
7120if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7121  echo "$as_me:$LINENO: result: failed" >&5
7122echo "${ECHO_T}failed" >&6
7123else
7124  echo "$as_me:$LINENO: result: ok" >&5
7125echo "${ECHO_T}ok" >&6
7126fi
7127
7128echo "$as_me:$LINENO: checking for objdir" >&5
7129echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7130if test "${lt_cv_objdir+set}" = set; then
7131  echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133  rm -f .libs 2>/dev/null
7134mkdir .libs 2>/dev/null
7135if test -d .libs; then
7136  lt_cv_objdir=.libs
7137else
7138  # MS-DOS does not allow filenames that begin with a dot.
7139  lt_cv_objdir=_libs
7140fi
7141rmdir .libs 2>/dev/null
7142fi
7143echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7144echo "${ECHO_T}$lt_cv_objdir" >&6
7145objdir=$lt_cv_objdir
7146
7147
7148
7149
7150
7151case $host_os in
7152aix3*)
7153  # AIX sometimes has problems with the GCC collect2 program.  For some
7154  # reason, if we set the COLLECT_NAMES environment variable, the problems
7155  # vanish in a puff of smoke.
7156  if test "X${COLLECT_NAMES+set}" != Xset; then
7157    COLLECT_NAMES=
7158    export COLLECT_NAMES
7159  fi
7160  ;;
7161esac
7162
7163# Sed substitution that helps us do robust quoting.  It backslashifies
7164# metacharacters that are still active within double-quoted strings.
7165Xsed='sed -e 1s/^X//'
7166sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7167
7168# Same as above, but do not quote variable references.
7169double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7170
7171# Sed substitution to delay expansion of an escaped shell variable in a
7172# double_quote_subst'ed string.
7173delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7174
7175# Sed substitution to avoid accidental globbing in evaled expressions
7176no_glob_subst='s/\*/\\\*/g'
7177
7178# Constants:
7179rm="rm -f"
7180
7181# Global variables:
7182default_ofile=libtool
7183can_build_shared=yes
7184
7185# All known linkers require a `.a' archive for static linking (except MSVC,
7186# which needs '.lib').
7187libext=a
7188ltmain="$ac_aux_dir/ltmain.sh"
7189ofile="$default_ofile"
7190with_gnu_ld="$lt_cv_prog_gnu_ld"
7191
7192if test -n "$ac_tool_prefix"; then
7193  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7194set dummy ${ac_tool_prefix}ar; ac_word=$2
7195echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7197if test "${ac_cv_prog_AR+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200  if test -n "$AR"; then
7201  ac_cv_prog_AR="$AR" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208  for ac_exec_ext in '' $ac_executable_extensions; do
7209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210    ac_cv_prog_AR="${ac_tool_prefix}ar"
7211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215done
7216
7217fi
7218fi
7219AR=$ac_cv_prog_AR
7220if test -n "$AR"; then
7221  echo "$as_me:$LINENO: result: $AR" >&5
7222echo "${ECHO_T}$AR" >&6
7223else
7224  echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6
7226fi
7227
7228fi
7229if test -z "$ac_cv_prog_AR"; then
7230  ac_ct_AR=$AR
7231  # Extract the first word of "ar", so it can be a program name with args.
7232set dummy ar; ac_word=$2
7233echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7235if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7236  echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238  if test -n "$ac_ct_AR"; then
7239  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244  IFS=$as_save_IFS
7245  test -z "$as_dir" && as_dir=.
7246  for ac_exec_ext in '' $ac_executable_extensions; do
7247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248    ac_cv_prog_ac_ct_AR="ar"
7249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250    break 2
7251  fi
7252done
7253done
7254
7255  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7256fi
7257fi
7258ac_ct_AR=$ac_cv_prog_ac_ct_AR
7259if test -n "$ac_ct_AR"; then
7260  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7261echo "${ECHO_T}$ac_ct_AR" >&6
7262else
7263  echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6
7265fi
7266
7267  AR=$ac_ct_AR
7268else
7269  AR="$ac_cv_prog_AR"
7270fi
7271
7272if test -n "$ac_tool_prefix"; then
7273  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7274set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7275echo "$as_me:$LINENO: checking for $ac_word" >&5
7276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7277if test "${ac_cv_prog_RANLIB+set}" = set; then
7278  echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280  if test -n "$RANLIB"; then
7281  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288  for ac_exec_ext in '' $ac_executable_extensions; do
7289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292    break 2
7293  fi
7294done
7295done
7296
7297fi
7298fi
7299RANLIB=$ac_cv_prog_RANLIB
7300if test -n "$RANLIB"; then
7301  echo "$as_me:$LINENO: result: $RANLIB" >&5
7302echo "${ECHO_T}$RANLIB" >&6
7303else
7304  echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
7306fi
7307
7308fi
7309if test -z "$ac_cv_prog_RANLIB"; then
7310  ac_ct_RANLIB=$RANLIB
7311  # Extract the first word of "ranlib", so it can be a program name with args.
7312set dummy ranlib; ac_word=$2
7313echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7315if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  if test -n "$ac_ct_RANLIB"; then
7319  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324  IFS=$as_save_IFS
7325  test -z "$as_dir" && as_dir=.
7326  for ac_exec_ext in '' $ac_executable_extensions; do
7327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328    ac_cv_prog_ac_ct_RANLIB="ranlib"
7329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330    break 2
7331  fi
7332done
7333done
7334
7335  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7336fi
7337fi
7338ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7339if test -n "$ac_ct_RANLIB"; then
7340  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7341echo "${ECHO_T}$ac_ct_RANLIB" >&6
7342else
7343  echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
7345fi
7346
7347  RANLIB=$ac_ct_RANLIB
7348else
7349  RANLIB="$ac_cv_prog_RANLIB"
7350fi
7351
7352if test -n "$ac_tool_prefix"; then
7353  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7354set dummy ${ac_tool_prefix}strip; ac_word=$2
7355echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357if test "${ac_cv_prog_STRIP+set}" = set; then
7358  echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360  if test -n "$STRIP"; then
7361  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368  for ac_exec_ext in '' $ac_executable_extensions; do
7369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375done
7376
7377fi
7378fi
7379STRIP=$ac_cv_prog_STRIP
7380if test -n "$STRIP"; then
7381  echo "$as_me:$LINENO: result: $STRIP" >&5
7382echo "${ECHO_T}$STRIP" >&6
7383else
7384  echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
7386fi
7387
7388fi
7389if test -z "$ac_cv_prog_STRIP"; then
7390  ac_ct_STRIP=$STRIP
7391  # Extract the first word of "strip", so it can be a program name with args.
7392set dummy strip; ac_word=$2
7393echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7396  echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398  if test -n "$ac_ct_STRIP"; then
7399  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406  for ac_exec_ext in '' $ac_executable_extensions; do
7407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408    ac_cv_prog_ac_ct_STRIP="strip"
7409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413done
7414
7415  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7416fi
7417fi
7418ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7419if test -n "$ac_ct_STRIP"; then
7420  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7421echo "${ECHO_T}$ac_ct_STRIP" >&6
7422else
7423  echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6
7425fi
7426
7427  STRIP=$ac_ct_STRIP
7428else
7429  STRIP="$ac_cv_prog_STRIP"
7430fi
7431
7432
7433old_CC="$CC"
7434old_CFLAGS="$CFLAGS"
7435
7436# Set sane defaults for various variables
7437test -z "$AR" && AR=ar
7438test -z "$AR_FLAGS" && AR_FLAGS=cru
7439test -z "$AS" && AS=as
7440test -z "$CC" && CC=cc
7441test -z "$LTCC" && LTCC=$CC
7442test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7443test -z "$DLLTOOL" && DLLTOOL=dlltool
7444test -z "$LD" && LD=ld
7445test -z "$LN_S" && LN_S="ln -s"
7446test -z "$MAGIC_CMD" && MAGIC_CMD=file
7447test -z "$NM" && NM=nm
7448test -z "$SED" && SED=sed
7449test -z "$OBJDUMP" && OBJDUMP=objdump
7450test -z "$RANLIB" && RANLIB=:
7451test -z "$STRIP" && STRIP=:
7452test -z "$ac_objext" && ac_objext=o
7453
7454# Determine commands to create old-style static archives.
7455old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7456old_postinstall_cmds='chmod 644 $oldlib'
7457old_postuninstall_cmds=
7458
7459if test -n "$RANLIB"; then
7460  case $host_os in
7461  openbsd*)
7462    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7463    ;;
7464  *)
7465    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7466    ;;
7467  esac
7468  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7469fi
7470
7471for cc_temp in $compiler""; do
7472  case $cc_temp in
7473    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7474    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7475    \-*) ;;
7476    *) break;;
7477  esac
7478done
7479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7480
7481
7482# Only perform the check for file, if the check method requires it
7483case $deplibs_check_method in
7484file_magic*)
7485  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7486    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7487echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7488if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  case $MAGIC_CMD in
7492[\\/*] |  ?:[\\/]*)
7493  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7494  ;;
7495*)
7496  lt_save_MAGIC_CMD="$MAGIC_CMD"
7497  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7498  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7499  for ac_dir in $ac_dummy; do
7500    IFS="$lt_save_ifs"
7501    test -z "$ac_dir" && ac_dir=.
7502    if test -f $ac_dir/${ac_tool_prefix}file; then
7503      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7504      if test -n "$file_magic_test_file"; then
7505        case $deplibs_check_method in
7506        "file_magic "*)
7507          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7508          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7509          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7510            $EGREP "$file_magic_regex" > /dev/null; then
7511            :
7512          else
7513            cat <<EOF 1>&2
7514
7515*** Warning: the command libtool uses to detect shared libraries,
7516*** $file_magic_cmd, produces output that libtool cannot recognize.
7517*** The result is that libtool may fail to recognize shared libraries
7518*** as such.  This will affect the creation of libtool libraries that
7519*** depend on shared libraries, but programs linked with such libtool
7520*** libraries will work regardless of this problem.  Nevertheless, you
7521*** may want to report the problem to your system manager and/or to
7522*** bug-libtool@gnu.org
7523
7524EOF
7525          fi ;;
7526        esac
7527      fi
7528      break
7529    fi
7530  done
7531  IFS="$lt_save_ifs"
7532  MAGIC_CMD="$lt_save_MAGIC_CMD"
7533  ;;
7534esac
7535fi
7536
7537MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7538if test -n "$MAGIC_CMD"; then
7539  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7540echo "${ECHO_T}$MAGIC_CMD" >&6
7541else
7542  echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544fi
7545
7546if test -z "$lt_cv_path_MAGIC_CMD"; then
7547  if test -n "$ac_tool_prefix"; then
7548    echo "$as_me:$LINENO: checking for file" >&5
7549echo $ECHO_N "checking for file... $ECHO_C" >&6
7550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7551  echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553  case $MAGIC_CMD in
7554[\\/*] |  ?:[\\/]*)
7555  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7556  ;;
7557*)
7558  lt_save_MAGIC_CMD="$MAGIC_CMD"
7559  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7560  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7561  for ac_dir in $ac_dummy; do
7562    IFS="$lt_save_ifs"
7563    test -z "$ac_dir" && ac_dir=.
7564    if test -f $ac_dir/file; then
7565      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7566      if test -n "$file_magic_test_file"; then
7567        case $deplibs_check_method in
7568        "file_magic "*)
7569          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7570          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7571          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7572            $EGREP "$file_magic_regex" > /dev/null; then
7573            :
7574          else
7575            cat <<EOF 1>&2
7576
7577*** Warning: the command libtool uses to detect shared libraries,
7578*** $file_magic_cmd, produces output that libtool cannot recognize.
7579*** The result is that libtool may fail to recognize shared libraries
7580*** as such.  This will affect the creation of libtool libraries that
7581*** depend on shared libraries, but programs linked with such libtool
7582*** libraries will work regardless of this problem.  Nevertheless, you
7583*** may want to report the problem to your system manager and/or to
7584*** bug-libtool@gnu.org
7585
7586EOF
7587          fi ;;
7588        esac
7589      fi
7590      break
7591    fi
7592  done
7593  IFS="$lt_save_ifs"
7594  MAGIC_CMD="$lt_save_MAGIC_CMD"
7595  ;;
7596esac
7597fi
7598
7599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600if test -n "$MAGIC_CMD"; then
7601  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7602echo "${ECHO_T}$MAGIC_CMD" >&6
7603else
7604  echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606fi
7607
7608  else
7609    MAGIC_CMD=:
7610  fi
7611fi
7612
7613  fi
7614  ;;
7615esac
7616
7617enable_dlopen=no
7618enable_win32_dll=no
7619
7620# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7621if test "${enable_libtool_lock+set}" = set; then
7622  enableval="$enable_libtool_lock"
7623
7624fi;
7625test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7626
7627
7628# Check whether --with-pic or --without-pic was given.
7629if test "${with_pic+set}" = set; then
7630  withval="$with_pic"
7631  pic_mode="$withval"
7632else
7633  pic_mode=default
7634fi;
7635test -z "$pic_mode" && pic_mode=default
7636
7637# Use C for the default configuration in the libtool script
7638tagname=
7639lt_save_CC="$CC"
7640ac_ext=c
7641ac_cpp='$CPP $CPPFLAGS'
7642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645
7646
7647# Source file extension for C test sources.
7648ac_ext=c
7649
7650# Object file extension for compiled C test sources.
7651objext=o
7652objext=$objext
7653
7654# Code to be used in simple compile tests
7655lt_simple_compile_test_code="int some_variable = 0;\n"
7656
7657# Code to be used in simple link tests
7658lt_simple_link_test_code='int main(){return(0);}\n'
7659
7660
7661# If no C compiler was specified, use CC.
7662LTCC=${LTCC-"$CC"}
7663
7664# If no C compiler flags were specified, use CFLAGS.
7665LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7666
7667# Allow CC to be a program name with arguments.
7668compiler=$CC
7669
7670
7671# save warnings/boilerplate of simple test code
7672ac_outfile=conftest.$ac_objext
7673printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7674eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7675_lt_compiler_boilerplate=`cat conftest.err`
7676$rm conftest*
7677
7678ac_outfile=conftest.$ac_objext
7679printf "$lt_simple_link_test_code" >conftest.$ac_ext
7680eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7681_lt_linker_boilerplate=`cat conftest.err`
7682$rm conftest*
7683
7684
7685## CAVEAT EMPTOR:
7686## There is no encapsulation within the following macros, do not change
7687## the running order or otherwise move them around unless you know exactly
7688## what you are doing...
7689
7690lt_prog_compiler_no_builtin_flag=
7691
7692if test "$GCC" = yes; then
7693  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7694
7695
7696echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7697echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7698if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7699  echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701  lt_cv_prog_compiler_rtti_exceptions=no
7702  ac_outfile=conftest.$ac_objext
7703   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7704   lt_compiler_flag="-fno-rtti -fno-exceptions"
7705   # Insert the option either (1) after the last *FLAGS variable, or
7706   # (2) before a word containing "conftest.", or (3) at the end.
7707   # Note that $ac_compile itself does not contain backslashes and begins
7708   # with a dollar sign (not a hyphen), so the echo should work correctly.
7709   # The option is referenced via a variable to avoid confusing sed.
7710   lt_compile=`echo "$ac_compile" | $SED \
7711   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713   -e 's:$: $lt_compiler_flag:'`
7714   (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
7715   (eval "$lt_compile" 2>conftest.err)
7716   ac_status=$?
7717   cat conftest.err >&5
7718   echo "$as_me:7718: \$? = $ac_status" >&5
7719   if (exit $ac_status) && test -s "$ac_outfile"; then
7720     # The compiler can only warn and ignore the option if not recognized
7721     # So say no if there are warnings other than the usual output.
7722     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7723     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7724     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7725       lt_cv_prog_compiler_rtti_exceptions=yes
7726     fi
7727   fi
7728   $rm conftest*
7729
7730fi
7731echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7732echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7733
7734if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7735    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7736else
7737    :
7738fi
7739
7740fi
7741
7742lt_prog_compiler_wl=
7743lt_prog_compiler_pic=
7744lt_prog_compiler_static=
7745
7746echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7747echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7748
7749  if test "$GCC" = yes; then
7750    lt_prog_compiler_wl='-Wl,'
7751    lt_prog_compiler_static='-static'
7752
7753    case $host_os in
7754      aix*)
7755      # All AIX code is PIC.
7756      if test "$host_cpu" = ia64; then
7757        # AIX 5 now supports IA64 processor
7758        lt_prog_compiler_static='-Bstatic'
7759      fi
7760      ;;
7761
7762    amigaos*)
7763      # FIXME: we need at least 68020 code to build shared libraries, but
7764      # adding the `-m68020' flag to GCC prevents building anything better,
7765      # like `-m68040'.
7766      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7767      ;;
7768
7769    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7770      # PIC is the default for these OSes.
7771      ;;
7772
7773    mingw* | pw32* | os2*)
7774      # This hack is so that the source file can tell whether it is being
7775      # built for inclusion in a dll (and should export symbols for example).
7776      lt_prog_compiler_pic='-DDLL_EXPORT'
7777      ;;
7778
7779    darwin* | rhapsody*)
7780      # PIC is the default on this platform
7781      # Common symbols not allowed in MH_DYLIB files
7782      lt_prog_compiler_pic='-fno-common'
7783      ;;
7784
7785    interix3*)
7786      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7787      # Instead, we relocate shared libraries at runtime.
7788      ;;
7789
7790    msdosdjgpp*)
7791      # Just because we use GCC doesn't mean we suddenly get shared libraries
7792      # on systems that don't support them.
7793      lt_prog_compiler_can_build_shared=no
7794      enable_shared=no
7795      ;;
7796
7797    sysv4*MP*)
7798      if test -d /usr/nec; then
7799        lt_prog_compiler_pic=-Kconform_pic
7800      fi
7801      ;;
7802
7803    hpux*)
7804      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7805      # not for PA HP-UX.
7806      case $host_cpu in
7807      hppa*64*|ia64*)
7808        # +Z the default
7809        ;;
7810      *)
7811        lt_prog_compiler_pic='-fPIC'
7812        ;;
7813      esac
7814      ;;
7815
7816    *)
7817      lt_prog_compiler_pic='-fPIC'
7818      ;;
7819    esac
7820  else
7821    # PORTME Check for flag to pass linker flags through the system compiler.
7822    case $host_os in
7823    aix*)
7824      lt_prog_compiler_wl='-Wl,'
7825      if test "$host_cpu" = ia64; then
7826        # AIX 5 now supports IA64 processor
7827        lt_prog_compiler_static='-Bstatic'
7828      else
7829        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7830      fi
7831      ;;
7832      darwin*)
7833        # PIC is the default on this platform
7834        # Common symbols not allowed in MH_DYLIB files
7835       case $cc_basename in
7836         xlc*)
7837         lt_prog_compiler_pic='-qnocommon'
7838         lt_prog_compiler_wl='-Wl,'
7839         ;;
7840       esac
7841       ;;
7842
7843    mingw* | pw32* | os2*)
7844      # This hack is so that the source file can tell whether it is being
7845      # built for inclusion in a dll (and should export symbols for example).
7846      lt_prog_compiler_pic='-DDLL_EXPORT'
7847      ;;
7848
7849    hpux9* | hpux10* | hpux11*)
7850      lt_prog_compiler_wl='-Wl,'
7851      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7852      # not for PA HP-UX.
7853      case $host_cpu in
7854      hppa*64*|ia64*)
7855        # +Z the default
7856        ;;
7857      *)
7858        lt_prog_compiler_pic='+Z'
7859        ;;
7860      esac
7861      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7862      lt_prog_compiler_static='${wl}-a ${wl}archive'
7863      ;;
7864
7865    irix5* | irix6* | nonstopux*)
7866      lt_prog_compiler_wl='-Wl,'
7867      # PIC (with -KPIC) is the default.
7868      lt_prog_compiler_static='-non_shared'
7869      ;;
7870
7871    newsos6)
7872      lt_prog_compiler_pic='-KPIC'
7873      lt_prog_compiler_static='-Bstatic'
7874      ;;
7875
7876    linux*)
7877      case $cc_basename in
7878      icc* | ecc*)
7879        lt_prog_compiler_wl='-Wl,'
7880        lt_prog_compiler_pic='-KPIC'
7881        lt_prog_compiler_static='-static'
7882        ;;
7883      pgcc* | pgf77* | pgf90* | pgf95*)
7884        # Portland Group compilers (*not* the Pentium gcc compiler,
7885        # which looks to be a dead project)
7886        lt_prog_compiler_wl='-Wl,'
7887        lt_prog_compiler_pic='-fpic'
7888        lt_prog_compiler_static='-Bstatic'
7889        ;;
7890      ccc*)
7891        lt_prog_compiler_wl='-Wl,'
7892        # All Alpha code is PIC.
7893        lt_prog_compiler_static='-non_shared'
7894        ;;
7895      esac
7896      ;;
7897
7898    osf3* | osf4* | osf5*)
7899      lt_prog_compiler_wl='-Wl,'
7900      # All OSF/1 code is PIC.
7901      lt_prog_compiler_static='-non_shared'
7902      ;;
7903
7904    solaris*)
7905      lt_prog_compiler_pic='-KPIC'
7906      lt_prog_compiler_static='-Bstatic'
7907      case $cc_basename in
7908      f77* | f90* | f95*)
7909        lt_prog_compiler_wl='-Qoption ld ';;
7910      *)
7911        lt_prog_compiler_wl='-Wl,';;
7912      esac
7913      ;;
7914
7915    sunos4*)
7916      lt_prog_compiler_wl='-Qoption ld '
7917      lt_prog_compiler_pic='-PIC'
7918      lt_prog_compiler_static='-Bstatic'
7919      ;;
7920
7921    sysv4 | sysv4.2uw2* | sysv4.3*)
7922      lt_prog_compiler_wl='-Wl,'
7923      lt_prog_compiler_pic='-KPIC'
7924      lt_prog_compiler_static='-Bstatic'
7925      ;;
7926
7927    sysv4*MP*)
7928      if test -d /usr/nec ;then
7929        lt_prog_compiler_pic='-Kconform_pic'
7930        lt_prog_compiler_static='-Bstatic'
7931      fi
7932      ;;
7933
7934    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7935      lt_prog_compiler_wl='-Wl,'
7936      lt_prog_compiler_pic='-KPIC'
7937      lt_prog_compiler_static='-Bstatic'
7938      ;;
7939
7940    unicos*)
7941      lt_prog_compiler_wl='-Wl,'
7942      lt_prog_compiler_can_build_shared=no
7943      ;;
7944
7945    uts4*)
7946      lt_prog_compiler_pic='-pic'
7947      lt_prog_compiler_static='-Bstatic'
7948      ;;
7949
7950    *)
7951      lt_prog_compiler_can_build_shared=no
7952      ;;
7953    esac
7954  fi
7955
7956echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7957echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7958
7959#
7960# Check to make sure the PIC flag actually works.
7961#
7962if test -n "$lt_prog_compiler_pic"; then
7963
7964echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7965echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7966if test "${lt_prog_compiler_pic_works+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  lt_prog_compiler_pic_works=no
7970  ac_outfile=conftest.$ac_objext
7971   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7972   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7973   # Insert the option either (1) after the last *FLAGS variable, or
7974   # (2) before a word containing "conftest.", or (3) at the end.
7975   # Note that $ac_compile itself does not contain backslashes and begins
7976   # with a dollar sign (not a hyphen), so the echo should work correctly.
7977   # The option is referenced via a variable to avoid confusing sed.
7978   lt_compile=`echo "$ac_compile" | $SED \
7979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7981   -e 's:$: $lt_compiler_flag:'`
7982   (eval echo "\"\$as_me:7982: $lt_compile\"" >&5)
7983   (eval "$lt_compile" 2>conftest.err)
7984   ac_status=$?
7985   cat conftest.err >&5
7986   echo "$as_me:7986: \$? = $ac_status" >&5
7987   if (exit $ac_status) && test -s "$ac_outfile"; then
7988     # The compiler can only warn and ignore the option if not recognized
7989     # So say no if there are warnings other than the usual output.
7990     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7991     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7992     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7993       lt_prog_compiler_pic_works=yes
7994     fi
7995   fi
7996   $rm conftest*
7997
7998fi
7999echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8000echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8001
8002if test x"$lt_prog_compiler_pic_works" = xyes; then
8003    case $lt_prog_compiler_pic in
8004     "" | " "*) ;;
8005     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8006     esac
8007else
8008    lt_prog_compiler_pic=
8009     lt_prog_compiler_can_build_shared=no
8010fi
8011
8012fi
8013case $host_os in
8014  # For platforms which do not support PIC, -DPIC is meaningless:
8015  *djgpp*)
8016    lt_prog_compiler_pic=
8017    ;;
8018  *)
8019    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8020    ;;
8021esac
8022
8023#
8024# Check to make sure the static flag actually works.
8025#
8026wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8027echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8028echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8029if test "${lt_prog_compiler_static_works+set}" = set; then
8030  echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032  lt_prog_compiler_static_works=no
8033   save_LDFLAGS="$LDFLAGS"
8034   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8035   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8036   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8037     # The linker can only warn and ignore the option if not recognized
8038     # So say no if there are warnings
8039     if test -s conftest.err; then
8040       # Append any errors to the config.log.
8041       cat conftest.err 1>&5
8042       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8043       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8044       if diff conftest.exp conftest.er2 >/dev/null; then
8045         lt_prog_compiler_static_works=yes
8046       fi
8047     else
8048       lt_prog_compiler_static_works=yes
8049     fi
8050   fi
8051   $rm conftest*
8052   LDFLAGS="$save_LDFLAGS"
8053
8054fi
8055echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8056echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8057
8058if test x"$lt_prog_compiler_static_works" = xyes; then
8059    :
8060else
8061    lt_prog_compiler_static=
8062fi
8063
8064
8065echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8066echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8067if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8068  echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070  lt_cv_prog_compiler_c_o=no
8071   $rm -r conftest 2>/dev/null
8072   mkdir conftest
8073   cd conftest
8074   mkdir out
8075   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8076
8077   lt_compiler_flag="-o out/conftest2.$ac_objext"
8078   # Insert the option either (1) after the last *FLAGS variable, or
8079   # (2) before a word containing "conftest.", or (3) at the end.
8080   # Note that $ac_compile itself does not contain backslashes and begins
8081   # with a dollar sign (not a hyphen), so the echo should work correctly.
8082   lt_compile=`echo "$ac_compile" | $SED \
8083   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8084   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8085   -e 's:$: $lt_compiler_flag:'`
8086   (eval echo "\"\$as_me:8086: $lt_compile\"" >&5)
8087   (eval "$lt_compile" 2>out/conftest.err)
8088   ac_status=$?
8089   cat out/conftest.err >&5
8090   echo "$as_me:8090: \$? = $ac_status" >&5
8091   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8092   then
8093     # The compiler can only warn and ignore the option if not recognized
8094     # So say no if there are warnings
8095     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8096     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8097     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8098       lt_cv_prog_compiler_c_o=yes
8099     fi
8100   fi
8101   chmod u+w . 2>&5
8102   $rm conftest*
8103   # SGI C++ compiler will create directory out/ii_files/ for
8104   # template instantiation
8105   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8106   $rm out/* && rmdir out
8107   cd ..
8108   rmdir conftest
8109   $rm conftest*
8110
8111fi
8112echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8113echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8114
8115
8116hard_links="nottested"
8117if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8118  # do not overwrite the value of need_locks provided by the user
8119  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8120echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8121  hard_links=yes
8122  $rm conftest*
8123  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8124  touch conftest.a
8125  ln conftest.a conftest.b 2>&5 || hard_links=no
8126  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8127  echo "$as_me:$LINENO: result: $hard_links" >&5
8128echo "${ECHO_T}$hard_links" >&6
8129  if test "$hard_links" = no; then
8130    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8131echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8132    need_locks=warn
8133  fi
8134else
8135  need_locks=no
8136fi
8137
8138echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8139echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8140
8141  runpath_var=
8142  allow_undefined_flag=
8143  enable_shared_with_static_runtimes=no
8144  archive_cmds=
8145  archive_expsym_cmds=
8146  old_archive_From_new_cmds=
8147  old_archive_from_expsyms_cmds=
8148  export_dynamic_flag_spec=
8149  whole_archive_flag_spec=
8150  thread_safe_flag_spec=
8151  hardcode_libdir_flag_spec=
8152  hardcode_libdir_flag_spec_ld=
8153  hardcode_libdir_separator=
8154  hardcode_direct=no
8155  hardcode_minus_L=no
8156  hardcode_shlibpath_var=unsupported
8157  link_all_deplibs=unknown
8158  hardcode_automatic=no
8159  module_cmds=
8160  module_expsym_cmds=
8161  always_export_symbols=no
8162  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8163  # include_expsyms should be a list of space-separated symbols to be *always*
8164  # included in the symbol list
8165  include_expsyms=
8166  # exclude_expsyms can be an extended regexp of symbols to exclude
8167  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8168  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8169  # as well as any symbol that contains `d'.
8170  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8171  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8172  # platforms (ab)use it in PIC code, but their linkers get confused if
8173  # the symbol is explicitly referenced.  Since portable code cannot
8174  # rely on this symbol name, it's probably fine to never include it in
8175  # preloaded symbol tables.
8176  extract_expsyms_cmds=
8177  # Just being paranoid about ensuring that cc_basename is set.
8178  for cc_temp in $compiler""; do
8179  case $cc_temp in
8180    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8181    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182    \-*) ;;
8183    *) break;;
8184  esac
8185done
8186cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8187
8188  case $host_os in
8189  cygwin* | mingw* | pw32*)
8190    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8191    # When not using gcc, we currently assume that we are using
8192    # Microsoft Visual C++.
8193    if test "$GCC" != yes; then
8194      with_gnu_ld=no
8195    fi
8196    ;;
8197  interix*)
8198    # we just hope/assume this is gcc and not c89 (= MSVC++)
8199    with_gnu_ld=yes
8200    ;;
8201  openbsd*)
8202    with_gnu_ld=no
8203    ;;
8204  esac
8205
8206  ld_shlibs=yes
8207  if test "$with_gnu_ld" = yes; then
8208    # If archive_cmds runs LD, not CC, wlarc should be empty
8209    wlarc='${wl}'
8210
8211    # Set some defaults for GNU ld with shared library support. These
8212    # are reset later if shared libraries are not supported. Putting them
8213    # here allows them to be overridden if necessary.
8214    runpath_var=LD_RUN_PATH
8215    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8216    export_dynamic_flag_spec='${wl}--export-dynamic'
8217    # ancient GNU ld didn't support --whole-archive et. al.
8218    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8219        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8220      else
8221        whole_archive_flag_spec=
8222    fi
8223    supports_anon_versioning=no
8224    case `$LD -v 2>/dev/null` in
8225      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8226      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8227      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8228      *\ 2.11.*) ;; # other 2.11 versions
8229      *) supports_anon_versioning=yes ;;
8230    esac
8231
8232    # See if GNU ld supports shared libraries.
8233    case $host_os in
8234    aix3* | aix4* | aix5*)
8235      # On AIX/PPC, the GNU linker is very broken
8236      if test "$host_cpu" != ia64; then
8237        ld_shlibs=no
8238        cat <<EOF 1>&2
8239
8240*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8241*** to be unable to reliably create shared libraries on AIX.
8242*** Therefore, libtool is disabling shared libraries support.  If you
8243*** really care for shared libraries, you may want to modify your PATH
8244*** so that a non-GNU linker is found, and then restart.
8245
8246EOF
8247      fi
8248      ;;
8249
8250    amigaos*)
8251      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)'
8252      hardcode_libdir_flag_spec='-L$libdir'
8253      hardcode_minus_L=yes
8254
8255      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8256      # that the semantics of dynamic libraries on AmigaOS, at least up
8257      # to version 4, is to share data among multiple programs linked
8258      # with the same dynamic library.  Since this doesn't match the
8259      # behavior of shared libraries on other platforms, we can't use
8260      # them.
8261      ld_shlibs=no
8262      ;;
8263
8264    beos*)
8265      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8266        allow_undefined_flag=unsupported
8267        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8268        # support --undefined.  This deserves some investigation.  FIXME
8269        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270      else
8271        ld_shlibs=no
8272      fi
8273      ;;
8274
8275    cygwin* | mingw* | pw32*)
8276      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8277      # as there is no search path for DLLs.
8278      hardcode_libdir_flag_spec='-L$libdir'
8279      allow_undefined_flag=unsupported
8280      always_export_symbols=no
8281      enable_shared_with_static_runtimes=yes
8282      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8283
8284      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8285        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8286        # If the export-symbols file already is a .def file (1st line
8287        # is EXPORTS), use it as is; otherwise, prepend...
8288        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8289          cp $export_symbols $output_objdir/$soname.def;
8290        else
8291          echo EXPORTS > $output_objdir/$soname.def;
8292          cat $export_symbols >> $output_objdir/$soname.def;
8293        fi~
8294        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8295      else
8296        ld_shlibs=no
8297      fi
8298      ;;
8299
8300    interix3*)
8301      hardcode_direct=no
8302      hardcode_shlibpath_var=no
8303      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8304      export_dynamic_flag_spec='${wl}-E'
8305      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8306      # Instead, shared libraries are loaded at an image base (0x10000000 by
8307      # default) and relocated if they conflict, which is a slow very memory
8308      # consuming and fragmenting process.  To avoid this, we pick a random,
8309      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8310      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8311      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8312      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'
8313      ;;
8314
8315    linux*)
8316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317        tmp_addflag=
8318        case $cc_basename,$host_cpu in
8319        pgcc*)                          # Portland Group C compiler
8320          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'
8321          tmp_addflag=' $pic_flag'
8322          ;;
8323        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8324          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'
8325          tmp_addflag=' $pic_flag -Mnomain' ;;
8326        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8327          tmp_addflag=' -i_dynamic' ;;
8328        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8329          tmp_addflag=' -i_dynamic -nofor_main' ;;
8330        ifc* | ifort*)                  # Intel Fortran compiler
8331          tmp_addflag=' -nofor_main' ;;
8332        esac
8333        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334
8335        if test $supports_anon_versioning = yes; then
8336          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8337  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8338  $echo "local: *; };" >> $output_objdir/$libname.ver~
8339          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8340        fi
8341      else
8342        ld_shlibs=no
8343      fi
8344      ;;
8345
8346    netbsd*)
8347      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8348        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8349        wlarc=
8350      else
8351        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353      fi
8354      ;;
8355
8356    solaris*)
8357      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8358        ld_shlibs=no
8359        cat <<EOF 1>&2
8360
8361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362*** create shared libraries on Solaris systems.  Therefore, libtool
8363*** is disabling shared libraries support.  We urge you to upgrade GNU
8364*** binutils to release 2.9.1 or newer.  Another option is to modify
8365*** your PATH or compiler configuration so that the native linker is
8366*** used, and then restart.
8367
8368EOF
8369      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8370        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372      else
8373        ld_shlibs=no
8374      fi
8375      ;;
8376
8377    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378      case `$LD -v 2>&1` in
8379        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8380        ld_shlibs=no
8381        cat <<_LT_EOF 1>&2
8382
8383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384*** reliably create shared libraries on SCO systems.  Therefore, libtool
8385*** is disabling shared libraries support.  We urge you to upgrade GNU
8386*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8387*** your PATH or compiler configuration so that the native linker is
8388*** used, and then restart.
8389
8390_LT_EOF
8391        ;;
8392        *)
8393          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8395            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8396            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8397          else
8398            ld_shlibs=no
8399          fi
8400        ;;
8401      esac
8402      ;;
8403
8404    sunos4*)
8405      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406      wlarc=
8407      hardcode_direct=yes
8408      hardcode_shlibpath_var=no
8409      ;;
8410
8411    *)
8412      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8413        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415      else
8416        ld_shlibs=no
8417      fi
8418      ;;
8419    esac
8420
8421    if test "$ld_shlibs" = no; then
8422      runpath_var=
8423      hardcode_libdir_flag_spec=
8424      export_dynamic_flag_spec=
8425      whole_archive_flag_spec=
8426    fi
8427  else
8428    # PORTME fill in a description of your system's linker (not GNU ld)
8429    case $host_os in
8430    aix3*)
8431      allow_undefined_flag=unsupported
8432      always_export_symbols=yes
8433      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'
8434      # Note: this linker hardcodes the directories in LIBPATH if there
8435      # are no directories specified by -L.
8436      hardcode_minus_L=yes
8437      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438        # Neither direct hardcoding nor static linking is supported with a
8439        # broken collect2.
8440        hardcode_direct=unsupported
8441      fi
8442      ;;
8443
8444    aix4* | aix5*)
8445      if test "$host_cpu" = ia64; then
8446        # On IA64, the linker does run time linking by default, so we don't
8447        # have to do anything special.
8448        aix_use_runtimelinking=no
8449        exp_sym_flag='-Bexport'
8450        no_entry_flag=""
8451      else
8452        # If we're using GNU nm, then we don't want the "-C" option.
8453        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8454        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8455          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'
8456        else
8457          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'
8458        fi
8459        aix_use_runtimelinking=no
8460
8461        # Test if we are trying to use run time linking or normal
8462        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8463        # need to do runtime linking.
8464        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8465          for ld_flag in $LDFLAGS; do
8466          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8467            aix_use_runtimelinking=yes
8468            break
8469          fi
8470          done
8471          ;;
8472        esac
8473
8474        exp_sym_flag='-bexport'
8475        no_entry_flag='-bnoentry'
8476      fi
8477
8478      # When large executables or shared objects are built, AIX ld can
8479      # have problems creating the table of contents.  If linking a library
8480      # or program results in "error TOC overflow" add -mminimal-toc to
8481      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8482      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8483
8484      archive_cmds=''
8485      hardcode_direct=yes
8486      hardcode_libdir_separator=':'
8487      link_all_deplibs=yes
8488
8489      if test "$GCC" = yes; then
8490        case $host_os in aix4.[012]|aix4.[012].*)
8491        # We only want to do this on AIX 4.2 and lower, the check
8492        # below for broken collect2 doesn't work under 4.3+
8493          collect2name=`${CC} -print-prog-name=collect2`
8494          if test -f "$collect2name" && \
8495           strings "$collect2name" | grep resolve_lib_name >/dev/null
8496          then
8497          # We have reworked collect2
8498          hardcode_direct=yes
8499          else
8500          # We have old collect2
8501          hardcode_direct=unsupported
8502          # It fails to find uninstalled libraries when the uninstalled
8503          # path is not listed in the libpath.  Setting hardcode_minus_L
8504          # to unsupported forces relinking
8505          hardcode_minus_L=yes
8506          hardcode_libdir_flag_spec='-L$libdir'
8507          hardcode_libdir_separator=
8508          fi
8509          ;;
8510        esac
8511        shared_flag='-shared'
8512        if test "$aix_use_runtimelinking" = yes; then
8513          shared_flag="$shared_flag "'${wl}-G'
8514        fi
8515      else
8516        # not using gcc
8517        if test "$host_cpu" = ia64; then
8518        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8519        # chokes on -Wl,-G. The following line is correct:
8520          shared_flag='-G'
8521        else
8522          if test "$aix_use_runtimelinking" = yes; then
8523            shared_flag='${wl}-G'
8524          else
8525            shared_flag='${wl}-bM:SRE'
8526          fi
8527        fi
8528      fi
8529
8530      # It seems that -bexpall does not export symbols beginning with
8531      # underscore (_), so it is better to generate a list of symbols to export.
8532      always_export_symbols=yes
8533      if test "$aix_use_runtimelinking" = yes; then
8534        # Warning - without using the other runtime loading flags (-brtl),
8535        # -berok will link without error, but may produce a broken library.
8536        allow_undefined_flag='-berok'
8537       # Determine the default libpath from the value encoded in an empty executable.
8538       cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h.  */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h.  */
8544
8545int
8546main ()
8547{
8548
8549  ;
8550  return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555  (eval $ac_link) 2>conftest.er1
8556  ac_status=$?
8557  grep -v '^ *+' conftest.er1 >conftest.err
8558  rm -f conftest.er1
8559  cat conftest.err >&5
8560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); } &&
8562         { ac_try='test -z "$ac_c_werror_flag"
8563                         || test ! -s conftest.err'
8564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565  (eval $ac_try) 2>&5
8566  ac_status=$?
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); }; } &&
8569         { ac_try='test -s conftest$ac_exeext'
8570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571  (eval $ac_try) 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575
8576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8577}'`
8578# Check for a 64-bit object if we didn't find anything.
8579if 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; }
8580}'`; fi
8581else
8582  echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585fi
8586rm -f conftest.err conftest.$ac_objext \
8587      conftest$ac_exeext conftest.$ac_ext
8588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589
8590       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591        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"
8592       else
8593        if test "$host_cpu" = ia64; then
8594          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8595          allow_undefined_flag="-z nodefs"
8596          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"
8597        else
8598         # Determine the default libpath from the value encoded in an empty executable.
8599         cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h.  */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h.  */
8605
8606int
8607main ()
8608{
8609
8610  ;
8611  return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616  (eval $ac_link) 2>conftest.er1
8617  ac_status=$?
8618  grep -v '^ *+' conftest.er1 >conftest.err
8619  rm -f conftest.er1
8620  cat conftest.err >&5
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); } &&
8623         { ac_try='test -z "$ac_c_werror_flag"
8624                         || test ! -s conftest.err'
8625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626  (eval $ac_try) 2>&5
8627  ac_status=$?
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); }; } &&
8630         { ac_try='test -s conftest$ac_exeext'
8631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632  (eval $ac_try) 2>&5
8633  ac_status=$?
8634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635  (exit $ac_status); }; }; then
8636
8637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8638}'`
8639# Check for a 64-bit object if we didn't find anything.
8640if 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; }
8641}'`; fi
8642else
8643  echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646fi
8647rm -f conftest.err conftest.$ac_objext \
8648      conftest$ac_exeext conftest.$ac_ext
8649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8650
8651         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8652          # Warning - without using the other run time loading flags,
8653          # -berok will link without error, but may produce a broken library.
8654          no_undefined_flag=' ${wl}-bernotok'
8655          allow_undefined_flag=' ${wl}-berok'
8656          # Exported symbols can be pulled into shared objects from archives
8657          whole_archive_flag_spec='$convenience'
8658          archive_cmds_need_lc=yes
8659          # This is similar to how AIX traditionally builds its shared libraries.
8660          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'
8661        fi
8662      fi
8663      ;;
8664
8665    amigaos*)
8666      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)'
8667      hardcode_libdir_flag_spec='-L$libdir'
8668      hardcode_minus_L=yes
8669      # see comment about different semantics on the GNU ld section
8670      ld_shlibs=no
8671      ;;
8672
8673    bsdi[45]*)
8674      export_dynamic_flag_spec=-rdynamic
8675      ;;
8676
8677    cygwin* | mingw* | pw32*)
8678      # When not using gcc, we currently assume that we are using
8679      # Microsoft Visual C++.
8680      # hardcode_libdir_flag_spec is actually meaningless, as there is
8681      # no search path for DLLs.
8682      hardcode_libdir_flag_spec=' '
8683      allow_undefined_flag=unsupported
8684      # Tell ltmain to make .lib files, not .a files.
8685      libext=lib
8686      # Tell ltmain to make .dll files, not .so files.
8687      shrext_cmds=".dll"
8688      # FIXME: Setting linknames here is a bad hack.
8689      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8690      # The linker will automatically build a .lib file if we build a DLL.
8691      old_archive_From_new_cmds='true'
8692      # FIXME: Should let the user specify the lib program.
8693      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8694      fix_srcfile_path='`cygpath -w "$srcfile"`'
8695      enable_shared_with_static_runtimes=yes
8696      ;;
8697
8698    darwin* | rhapsody*)
8699      case $host_os in
8700        rhapsody* | darwin1.[012])
8701         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8702         ;;
8703       *) # Darwin 1.3 on
8704         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8705           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8706         else
8707           case ${MACOSX_DEPLOYMENT_TARGET} in
8708             10.[012])
8709               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8710               ;;
8711             10.*)
8712               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8713               ;;
8714           esac
8715         fi
8716         ;;
8717      esac
8718      archive_cmds_need_lc=no
8719      hardcode_direct=no
8720      hardcode_automatic=yes
8721      hardcode_shlibpath_var=unsupported
8722      whole_archive_flag_spec=''
8723      link_all_deplibs=yes
8724    if test "$GCC" = yes ; then
8725        output_verbose_link_cmd='echo'
8726        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8727      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8728      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8729      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}'
8730      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}'
8731    else
8732      case $cc_basename in
8733        xlc*)
8734         output_verbose_link_cmd='echo'
8735         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8736         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8737          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8738         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}'
8739          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}'
8740          ;;
8741       *)
8742         ld_shlibs=no
8743          ;;
8744      esac
8745    fi
8746      ;;
8747
8748    dgux*)
8749      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8750      hardcode_libdir_flag_spec='-L$libdir'
8751      hardcode_shlibpath_var=no
8752      ;;
8753
8754    freebsd1*)
8755      ld_shlibs=no
8756      ;;
8757
8758    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8759    # support.  Future versions do this automatically, but an explicit c++rt0.o
8760    # does not break anything, and helps significantly (at the cost of a little
8761    # extra space).
8762    freebsd2.2*)
8763      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8764      hardcode_libdir_flag_spec='-R$libdir'
8765      hardcode_direct=yes
8766      hardcode_shlibpath_var=no
8767      ;;
8768
8769    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8770    freebsd2*)
8771      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772      hardcode_direct=yes
8773      hardcode_minus_L=yes
8774      hardcode_shlibpath_var=no
8775      ;;
8776
8777    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8778    freebsd* | kfreebsd*-gnu | dragonfly*)
8779      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8780      hardcode_libdir_flag_spec='-R$libdir'
8781      hardcode_direct=yes
8782      hardcode_shlibpath_var=no
8783      ;;
8784
8785    hpux9*)
8786      if test "$GCC" = yes; then
8787        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'
8788      else
8789        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'
8790      fi
8791      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8792      hardcode_libdir_separator=:
8793      hardcode_direct=yes
8794
8795      # hardcode_minus_L: Not really in the search PATH,
8796      # but as the default location of the library.
8797      hardcode_minus_L=yes
8798      export_dynamic_flag_spec='${wl}-E'
8799      ;;
8800
8801    hpux10*)
8802      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8803        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8804      else
8805        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8806      fi
8807      if test "$with_gnu_ld" = no; then
8808        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8809        hardcode_libdir_separator=:
8810
8811        hardcode_direct=yes
8812        export_dynamic_flag_spec='${wl}-E'
8813
8814        # hardcode_minus_L: Not really in the search PATH,
8815        # but as the default location of the library.
8816        hardcode_minus_L=yes
8817      fi
8818      ;;
8819
8820    hpux11*)
8821      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8822        case $host_cpu in
8823        hppa*64*)
8824          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825          ;;
8826        ia64*)
8827          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8828          ;;
8829        *)
8830          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8831          ;;
8832        esac
8833      else
8834        case $host_cpu in
8835        hppa*64*)
8836          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837          ;;
8838        ia64*)
8839          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8840          ;;
8841        *)
8842          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8843          ;;
8844        esac
8845      fi
8846      if test "$with_gnu_ld" = no; then
8847        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8848        hardcode_libdir_separator=:
8849
8850        case $host_cpu in
8851        hppa*64*|ia64*)
8852          hardcode_libdir_flag_spec_ld='+b $libdir'
8853          hardcode_direct=no
8854          hardcode_shlibpath_var=no
8855          ;;
8856        *)
8857          hardcode_direct=yes
8858          export_dynamic_flag_spec='${wl}-E'
8859
8860          # hardcode_minus_L: Not really in the search PATH,
8861          # but as the default location of the library.
8862          hardcode_minus_L=yes
8863          ;;
8864        esac
8865      fi
8866      ;;
8867
8868    irix5* | irix6* | nonstopux*)
8869      if test "$GCC" = yes; then
8870        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'
8871      else
8872        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'
8873        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8874      fi
8875      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876      hardcode_libdir_separator=:
8877      link_all_deplibs=yes
8878      ;;
8879
8880    netbsd*)
8881      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8882        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8883      else
8884        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8885      fi
8886      hardcode_libdir_flag_spec='-R$libdir'
8887      hardcode_direct=yes
8888      hardcode_shlibpath_var=no
8889      ;;
8890
8891    newsos6)
8892      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893      hardcode_direct=yes
8894      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8895      hardcode_libdir_separator=:
8896      hardcode_shlibpath_var=no
8897      ;;
8898
8899    openbsd*)
8900      hardcode_direct=yes
8901      hardcode_shlibpath_var=no
8902      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8903        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8904        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8905        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906        export_dynamic_flag_spec='${wl}-E'
8907      else
8908       case $host_os in
8909         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8910           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8911           hardcode_libdir_flag_spec='-R$libdir'
8912           ;;
8913         *)
8914           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8915           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916           ;;
8917       esac
8918      fi
8919      ;;
8920
8921    os2*)
8922      hardcode_libdir_flag_spec='-L$libdir'
8923      hardcode_minus_L=yes
8924      allow_undefined_flag=unsupported
8925      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'
8926      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8927      ;;
8928
8929    osf3*)
8930      if test "$GCC" = yes; then
8931        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8932        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'
8933      else
8934        allow_undefined_flag=' -expect_unresolved \*'
8935        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'
8936      fi
8937      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8938      hardcode_libdir_separator=:
8939      ;;
8940
8941    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8942      if test "$GCC" = yes; then
8943        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8944        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'
8945        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8946      else
8947        allow_undefined_flag=' -expect_unresolved \*'
8948        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'
8949        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8950        $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'
8951
8952        # Both c and cxx compiler support -rpath directly
8953        hardcode_libdir_flag_spec='-rpath $libdir'
8954      fi
8955      hardcode_libdir_separator=:
8956      ;;
8957
8958    solaris*)
8959      no_undefined_flag=' -z text'
8960      if test "$GCC" = yes; then
8961        wlarc='${wl}'
8962        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8964          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8965      else
8966        wlarc=''
8967        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8969        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8970      fi
8971      hardcode_libdir_flag_spec='-R$libdir'
8972      hardcode_shlibpath_var=no
8973      case $host_os in
8974      solaris2.[0-5] | solaris2.[0-5].*) ;;
8975      *)
8976        # The compiler driver will combine linker options so we
8977        # cannot just pass the convience library names through
8978        # without $wl, iff we do not link with $LD.
8979        # Luckily, gcc supports the same syntax we need for Sun Studio.
8980        # Supported since Solaris 2.6 (maybe 2.5.1?)
8981        case $wlarc in
8982        '')
8983          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8984        *)
8985          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' ;;
8986        esac ;;
8987      esac
8988      link_all_deplibs=yes
8989      ;;
8990
8991    sunos4*)
8992      if test "x$host_vendor" = xsequent; then
8993        # Use $CC to link under sequent, because it throws in some extra .o
8994        # files that make .init and .fini sections work.
8995        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8996      else
8997        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8998      fi
8999      hardcode_libdir_flag_spec='-L$libdir'
9000      hardcode_direct=yes
9001      hardcode_minus_L=yes
9002      hardcode_shlibpath_var=no
9003      ;;
9004
9005    sysv4)
9006      case $host_vendor in
9007        sni)
9008          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009          hardcode_direct=yes # is this really true???
9010        ;;
9011        siemens)
9012          ## LD is ld it makes a PLAMLIB
9013          ## CC just makes a GrossModule.
9014          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9015          reload_cmds='$CC -r -o $output$reload_objs'
9016          hardcode_direct=no
9017        ;;
9018        motorola)
9019          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9021        ;;
9022      esac
9023      runpath_var='LD_RUN_PATH'
9024      hardcode_shlibpath_var=no
9025      ;;
9026
9027    sysv4.3*)
9028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029      hardcode_shlibpath_var=no
9030      export_dynamic_flag_spec='-Bexport'
9031      ;;
9032
9033    sysv4*MP*)
9034      if test -d /usr/nec; then
9035        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036        hardcode_shlibpath_var=no
9037        runpath_var=LD_RUN_PATH
9038        hardcode_runpath_var=yes
9039        ld_shlibs=yes
9040      fi
9041      ;;
9042
9043    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9044      no_undefined_flag='${wl}-z,text'
9045      archive_cmds_need_lc=no
9046      hardcode_shlibpath_var=no
9047      runpath_var='LD_RUN_PATH'
9048
9049      if test "$GCC" = yes; then
9050        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052      else
9053        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055      fi
9056      ;;
9057
9058    sysv5* | sco3.2v5* | sco5v6*)
9059      # Note: We can NOT use -z defs as we might desire, because we do not
9060      # link with -lc, and that would cause any symbols used from libc to
9061      # always be unresolved, which means just about no library would
9062      # ever link correctly.  If we're not using GNU ld we use -z text
9063      # though, which does catch some bad symbols but isn't as heavy-handed
9064      # as -z defs.
9065      no_undefined_flag='${wl}-z,text'
9066      allow_undefined_flag='${wl}-z,nodefs'
9067      archive_cmds_need_lc=no
9068      hardcode_shlibpath_var=no
9069      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9070      hardcode_libdir_separator=':'
9071      link_all_deplibs=yes
9072      export_dynamic_flag_spec='${wl}-Bexport'
9073      runpath_var='LD_RUN_PATH'
9074
9075      if test "$GCC" = yes; then
9076        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078      else
9079        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081      fi
9082      ;;
9083
9084    uts4*)
9085      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086      hardcode_libdir_flag_spec='-L$libdir'
9087      hardcode_shlibpath_var=no
9088      ;;
9089
9090    *)
9091      ld_shlibs=no
9092      ;;
9093    esac
9094  fi
9095
9096echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9097echo "${ECHO_T}$ld_shlibs" >&6
9098test "$ld_shlibs" = no && can_build_shared=no
9099
9100#
9101# Do we need to explicitly link libc?
9102#
9103case "x$archive_cmds_need_lc" in
9104x|xyes)
9105  # Assume -lc should be added
9106  archive_cmds_need_lc=yes
9107
9108  if test "$enable_shared" = yes && test "$GCC" = yes; then
9109    case $archive_cmds in
9110    *'~'*)
9111      # FIXME: we may have to deal with multi-command sequences.
9112      ;;
9113    '$CC '*)
9114      # Test whether the compiler implicitly links with -lc since on some
9115      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9116      # to ld, don't add -lc before -lgcc.
9117      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9118echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9119      $rm conftest*
9120      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9121
9122      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123  (eval $ac_compile) 2>&5
9124  ac_status=$?
9125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126  (exit $ac_status); } 2>conftest.err; then
9127        soname=conftest
9128        lib=conftest
9129        libobjs=conftest.$ac_objext
9130        deplibs=
9131        wl=$lt_prog_compiler_wl
9132        pic_flag=$lt_prog_compiler_pic
9133        compiler_flags=-v
9134        linker_flags=-v
9135        verstring=
9136        output_objdir=.
9137        libname=conftest
9138        lt_save_allow_undefined_flag=$allow_undefined_flag
9139        allow_undefined_flag=
9140        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9141  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9142  ac_status=$?
9143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144  (exit $ac_status); }
9145        then
9146          archive_cmds_need_lc=no
9147        else
9148          archive_cmds_need_lc=yes
9149        fi
9150        allow_undefined_flag=$lt_save_allow_undefined_flag
9151      else
9152        cat conftest.err 1>&5
9153      fi
9154      $rm conftest*
9155      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9156echo "${ECHO_T}$archive_cmds_need_lc" >&6
9157      ;;
9158    esac
9159  fi
9160  ;;
9161esac
9162
9163echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9164echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9165library_names_spec=
9166libname_spec='lib$name'
9167soname_spec=
9168shrext_cmds=".so"
9169postinstall_cmds=
9170postuninstall_cmds=
9171finish_cmds=
9172finish_eval=
9173shlibpath_var=
9174shlibpath_overrides_runpath=unknown
9175version_type=none
9176dynamic_linker="$host_os ld.so"
9177sys_lib_dlsearch_path_spec="/lib /usr/lib"
9178if test "$GCC" = yes; then
9179  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9180  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9181    # if the path contains ";" then we assume it to be the separator
9182    # otherwise default to the standard path separator (i.e. ":") - it is
9183    # assumed that no part of a normal pathname contains ";" but that should
9184    # okay in the real world where ";" in dirpaths is itself problematic.
9185    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9186  else
9187    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9188  fi
9189else
9190  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9191fi
9192need_lib_prefix=unknown
9193hardcode_into_libs=no
9194
9195# when you set need_version to no, make sure it does not cause -set_version
9196# flags to be left without arguments
9197need_version=unknown
9198
9199case $host_os in
9200aix3*)
9201  version_type=linux
9202  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9203  shlibpath_var=LIBPATH
9204
9205  # AIX 3 has no versioning support, so we append a major version to the name.
9206  soname_spec='${libname}${release}${shared_ext}$major'
9207  ;;
9208
9209aix4* | aix5*)
9210  version_type=linux
9211  need_lib_prefix=no
9212  need_version=no
9213  hardcode_into_libs=yes
9214  if test "$host_cpu" = ia64; then
9215    # AIX 5 supports IA64
9216    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9217    shlibpath_var=LD_LIBRARY_PATH
9218  else
9219    # With GCC up to 2.95.x, collect2 would create an import file
9220    # for dependence libraries.  The import file would start with
9221    # the line `#! .'.  This would cause the generated library to
9222    # depend on `.', always an invalid library.  This was fixed in
9223    # development snapshots of GCC prior to 3.0.
9224    case $host_os in
9225      aix4 | aix4.[01] | aix4.[01].*)
9226      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9227           echo ' yes '
9228           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9229        :
9230      else
9231        can_build_shared=no
9232      fi
9233      ;;
9234    esac
9235    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9236    # soname into executable. Probably we can add versioning support to
9237    # collect2, so additional links can be useful in future.
9238    if test "$aix_use_runtimelinking" = yes; then
9239      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9240      # instead of lib<name>.a to let people know that these are not
9241      # typical AIX shared libraries.
9242      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243    else
9244      # We preserve .a as extension for shared libraries through AIX4.2
9245      # and later when we are not doing run time linking.
9246      library_names_spec='${libname}${release}.a $libname.a'
9247      soname_spec='${libname}${release}${shared_ext}$major'
9248    fi
9249    shlibpath_var=LIBPATH
9250  fi
9251  ;;
9252
9253amigaos*)
9254  library_names_spec='$libname.ixlibrary $libname.a'
9255  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9256  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'
9257  ;;
9258
9259beos*)
9260  library_names_spec='${libname}${shared_ext}'
9261  dynamic_linker="$host_os ld.so"
9262  shlibpath_var=LIBRARY_PATH
9263  ;;
9264
9265bsdi[45]*)
9266  version_type=linux
9267  need_version=no
9268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269  soname_spec='${libname}${release}${shared_ext}$major'
9270  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271  shlibpath_var=LD_LIBRARY_PATH
9272  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274  # the default ld.so.conf also contains /usr/contrib/lib and
9275  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276  # libtool to hard-code these into programs
9277  ;;
9278
9279cygwin* | mingw* | pw32*)
9280  version_type=windows
9281  shrext_cmds=".dll"
9282  need_version=no
9283  need_lib_prefix=no
9284
9285  case $GCC,$host_os in
9286  yes,cygwin* | yes,mingw* | yes,pw32*)
9287    library_names_spec='$libname.dll.a'
9288    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289    postinstall_cmds='base_file=`basename \${file}`~
9290      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9291      dldir=$destdir/`dirname \$dlpath`~
9292      test -d \$dldir || mkdir -p \$dldir~
9293      $install_prog $dir/$dlname \$dldir/$dlname~
9294      chmod a+x \$dldir/$dlname'
9295    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296      dlpath=$dir/\$dldll~
9297       $rm \$dlpath'
9298    shlibpath_overrides_runpath=yes
9299
9300    case $host_os in
9301    cygwin*)
9302      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9305      ;;
9306    mingw*)
9307      # MinGW DLLs use traditional 'lib' prefix
9308      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9311        # It is most probably a Windows format PATH printed by
9312        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313        # path with ; separators, and with drive letters. We can handle the
9314        # drive letters (cygwin fileutils understands them), so leave them,
9315        # especially as we might pass files found there to a mingw objdump,
9316        # which wouldn't understand a cygwinified path. Ahh.
9317        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9318      else
9319        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9320      fi
9321      ;;
9322    pw32*)
9323      # pw32 DLLs use 'pw' prefix rather than 'lib'
9324      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325      ;;
9326    esac
9327    ;;
9328
9329  *)
9330    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9331    ;;
9332  esac
9333  dynamic_linker='Win32 ld.exe'
9334  # FIXME: first we should search . and the directory the executable is in
9335  shlibpath_var=PATH
9336  ;;
9337
9338darwin* | rhapsody*)
9339  dynamic_linker="$host_os dyld"
9340  version_type=darwin
9341  need_lib_prefix=no
9342  need_version=no
9343  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344  soname_spec='${libname}${release}${major}$shared_ext'
9345  shlibpath_overrides_runpath=yes
9346  shlibpath_var=DYLD_LIBRARY_PATH
9347  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9348  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9349  if test "$GCC" = yes; then
9350    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"`
9351  else
9352    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9353  fi
9354  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9355  ;;
9356
9357dgux*)
9358  version_type=linux
9359  need_lib_prefix=no
9360  need_version=no
9361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9362  soname_spec='${libname}${release}${shared_ext}$major'
9363  shlibpath_var=LD_LIBRARY_PATH
9364  ;;
9365
9366freebsd1*)
9367  dynamic_linker=no
9368  ;;
9369
9370kfreebsd*-gnu)
9371  version_type=linux
9372  need_lib_prefix=no
9373  need_version=no
9374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9375  soname_spec='${libname}${release}${shared_ext}$major'
9376  shlibpath_var=LD_LIBRARY_PATH
9377  shlibpath_overrides_runpath=no
9378  hardcode_into_libs=yes
9379  dynamic_linker='GNU ld.so'
9380  ;;
9381
9382freebsd* | dragonfly*)
9383  # DragonFly does not have aout.  When/if they implement a new
9384  # versioning mechanism, adjust this.
9385  if test -x /usr/bin/objformat; then
9386    objformat=`/usr/bin/objformat`
9387  else
9388    case $host_os in
9389    freebsd[123]*) objformat=aout ;;
9390    *) objformat=elf ;;
9391    esac
9392  fi
9393  version_type=freebsd-$objformat
9394  case $version_type in
9395    freebsd-elf*)
9396      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9397      need_version=no
9398      need_lib_prefix=no
9399      ;;
9400    freebsd-*)
9401      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9402      need_version=yes
9403      ;;
9404  esac
9405  shlibpath_var=LD_LIBRARY_PATH
9406  case $host_os in
9407  freebsd2*)
9408    shlibpath_overrides_runpath=yes
9409    ;;
9410  freebsd3.[01]* | freebsdelf3.[01]*)
9411    shlibpath_overrides_runpath=yes
9412    hardcode_into_libs=yes
9413    ;;
9414  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9415  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9416    shlibpath_overrides_runpath=no
9417    hardcode_into_libs=yes
9418    ;;
9419  freebsd*) # from 4.6 on
9420    shlibpath_overrides_runpath=yes
9421    hardcode_into_libs=yes
9422    ;;
9423  esac
9424  ;;
9425
9426gnu*)
9427  version_type=linux
9428  need_lib_prefix=no
9429  need_version=no
9430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9431  soname_spec='${libname}${release}${shared_ext}$major'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  hardcode_into_libs=yes
9434  ;;
9435
9436hpux9* | hpux10* | hpux11*)
9437  # Give a soname corresponding to the major version so that dld.sl refuses to
9438  # link against other versions.
9439  version_type=sunos
9440  need_lib_prefix=no
9441  need_version=no
9442  case $host_cpu in
9443  ia64*)
9444    shrext_cmds='.so'
9445    hardcode_into_libs=yes
9446    dynamic_linker="$host_os dld.so"
9447    shlibpath_var=LD_LIBRARY_PATH
9448    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450    soname_spec='${libname}${release}${shared_ext}$major'
9451    if test "X$HPUX_IA64_MODE" = X32; then
9452      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9453    else
9454      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9455    fi
9456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9457    ;;
9458   hppa*64*)
9459     shrext_cmds='.sl'
9460     hardcode_into_libs=yes
9461     dynamic_linker="$host_os dld.sl"
9462     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9463     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465     soname_spec='${libname}${release}${shared_ext}$major'
9466     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9467     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9468     ;;
9469   *)
9470    shrext_cmds='.sl'
9471    dynamic_linker="$host_os dld.sl"
9472    shlibpath_var=SHLIB_PATH
9473    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475    soname_spec='${libname}${release}${shared_ext}$major'
9476    ;;
9477  esac
9478  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9479  postinstall_cmds='chmod 555 $lib'
9480  ;;
9481
9482interix3*)
9483  version_type=linux
9484  need_lib_prefix=no
9485  need_version=no
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9489  shlibpath_var=LD_LIBRARY_PATH
9490  shlibpath_overrides_runpath=no
9491  hardcode_into_libs=yes
9492  ;;
9493
9494irix5* | irix6* | nonstopux*)
9495  case $host_os in
9496    nonstopux*) version_type=nonstopux ;;
9497    *)
9498        if test "$lt_cv_prog_gnu_ld" = yes; then
9499                version_type=linux
9500        else
9501                version_type=irix
9502        fi ;;
9503  esac
9504  need_lib_prefix=no
9505  need_version=no
9506  soname_spec='${libname}${release}${shared_ext}$major'
9507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9508  case $host_os in
9509  irix5* | nonstopux*)
9510    libsuff= shlibsuff=
9511    ;;
9512  *)
9513    case $LD in # libtool.m4 will add one of these switches to LD
9514    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9515      libsuff= shlibsuff= libmagic=32-bit;;
9516    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9517      libsuff=32 shlibsuff=N32 libmagic=N32;;
9518    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9519      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9520    *) libsuff= shlibsuff= libmagic=never-match;;
9521    esac
9522    ;;
9523  esac
9524  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9525  shlibpath_overrides_runpath=no
9526  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9527  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9528  hardcode_into_libs=yes
9529  ;;
9530
9531# No shared lib support for Linux oldld, aout, or coff.
9532linux*oldld* | linux*aout* | linux*coff*)
9533  dynamic_linker=no
9534  ;;
9535
9536# This must be Linux ELF.
9537linux*)
9538  version_type=linux
9539  need_lib_prefix=no
9540  need_version=no
9541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542  soname_spec='${libname}${release}${shared_ext}$major'
9543  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9544  shlibpath_var=LD_LIBRARY_PATH
9545  shlibpath_overrides_runpath=no
9546  # This implies no fast_install, which is unacceptable.
9547  # Some rework will be needed to allow for fast_install
9548  # before this can be enabled.
9549  hardcode_into_libs=yes
9550
9551  # Append ld.so.conf contents to the search path
9552  if test -f /etc/ld.so.conf; then
9553    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' ' '`
9554    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9555  fi
9556
9557  # We used to test for /lib/ld.so.1 and disable shared libraries on
9558  # powerpc, because MkLinux only supported shared libraries with the
9559  # GNU dynamic linker.  Since this was broken with cross compilers,
9560  # most powerpc-linux boxes support dynamic linking these days and
9561  # people can always --disable-shared, the test was removed, and we
9562  # assume the GNU/Linux dynamic linker is in use.
9563  dynamic_linker='GNU/Linux ld.so'
9564  ;;
9565
9566knetbsd*-gnu)
9567  version_type=linux
9568  need_lib_prefix=no
9569  need_version=no
9570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9571  soname_spec='${libname}${release}${shared_ext}$major'
9572  shlibpath_var=LD_LIBRARY_PATH
9573  shlibpath_overrides_runpath=no
9574  hardcode_into_libs=yes
9575  dynamic_linker='GNU ld.so'
9576  ;;
9577
9578netbsd*)
9579  version_type=sunos
9580  need_lib_prefix=no
9581  need_version=no
9582  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9584    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9585    dynamic_linker='NetBSD (a.out) ld.so'
9586  else
9587    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9588    soname_spec='${libname}${release}${shared_ext}$major'
9589    dynamic_linker='NetBSD ld.elf_so'
9590  fi
9591  shlibpath_var=LD_LIBRARY_PATH
9592  shlibpath_overrides_runpath=yes
9593  hardcode_into_libs=yes
9594  ;;
9595
9596newsos6)
9597  version_type=linux
9598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599  shlibpath_var=LD_LIBRARY_PATH
9600  shlibpath_overrides_runpath=yes
9601  ;;
9602
9603nto-qnx*)
9604  version_type=linux
9605  need_lib_prefix=no
9606  need_version=no
9607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608  soname_spec='${libname}${release}${shared_ext}$major'
9609  shlibpath_var=LD_LIBRARY_PATH
9610  shlibpath_overrides_runpath=yes
9611  ;;
9612
9613openbsd*)
9614  version_type=sunos
9615  sys_lib_dlsearch_path_spec="/usr/lib"
9616  need_lib_prefix=no
9617  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9618  case $host_os in
9619    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9620    *)                         need_version=no  ;;
9621  esac
9622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9623  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9624  shlibpath_var=LD_LIBRARY_PATH
9625  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9626    case $host_os in
9627      openbsd2.[89] | openbsd2.[89].*)
9628        shlibpath_overrides_runpath=no
9629        ;;
9630      *)
9631        shlibpath_overrides_runpath=yes
9632        ;;
9633      esac
9634  else
9635    shlibpath_overrides_runpath=yes
9636  fi
9637  ;;
9638
9639os2*)
9640  libname_spec='$name'
9641  shrext_cmds=".dll"
9642  need_lib_prefix=no
9643  library_names_spec='$libname${shared_ext} $libname.a'
9644  dynamic_linker='OS/2 ld.exe'
9645  shlibpath_var=LIBPATH
9646  ;;
9647
9648osf3* | osf4* | osf5*)
9649  version_type=osf
9650  need_lib_prefix=no
9651  need_version=no
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654  shlibpath_var=LD_LIBRARY_PATH
9655  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9656  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9657  ;;
9658
9659solaris*)
9660  version_type=linux
9661  need_lib_prefix=no
9662  need_version=no
9663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664  soname_spec='${libname}${release}${shared_ext}$major'
9665  shlibpath_var=LD_LIBRARY_PATH
9666  shlibpath_overrides_runpath=yes
9667  hardcode_into_libs=yes
9668  # ldd complains unless libraries are executable
9669  postinstall_cmds='chmod +x $lib'
9670  ;;
9671
9672sunos4*)
9673  version_type=sunos
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9675  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9676  shlibpath_var=LD_LIBRARY_PATH
9677  shlibpath_overrides_runpath=yes
9678  if test "$with_gnu_ld" = yes; then
9679    need_lib_prefix=no
9680  fi
9681  need_version=yes
9682  ;;
9683
9684sysv4 | sysv4.3*)
9685  version_type=linux
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  case $host_vendor in
9690    sni)
9691      shlibpath_overrides_runpath=no
9692      need_lib_prefix=no
9693      export_dynamic_flag_spec='${wl}-Blargedynsym'
9694      runpath_var=LD_RUN_PATH
9695      ;;
9696    siemens)
9697      need_lib_prefix=no
9698      ;;
9699    motorola)
9700      need_lib_prefix=no
9701      need_version=no
9702      shlibpath_overrides_runpath=no
9703      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9704      ;;
9705  esac
9706  ;;
9707
9708sysv4*MP*)
9709  if test -d /usr/nec ;then
9710    version_type=linux
9711    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9712    soname_spec='$libname${shared_ext}.$major'
9713    shlibpath_var=LD_LIBRARY_PATH
9714  fi
9715  ;;
9716
9717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9718  version_type=freebsd-elf
9719  need_lib_prefix=no
9720  need_version=no
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9722  soname_spec='${libname}${release}${shared_ext}$major'
9723  shlibpath_var=LD_LIBRARY_PATH
9724  hardcode_into_libs=yes
9725  if test "$with_gnu_ld" = yes; then
9726    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9727    shlibpath_overrides_runpath=no
9728  else
9729    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9730    shlibpath_overrides_runpath=yes
9731    case $host_os in
9732      sco3.2v5*)
9733        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9734        ;;
9735    esac
9736  fi
9737  sys_lib_dlsearch_path_spec='/usr/lib'
9738  ;;
9739
9740uts4*)
9741  version_type=linux
9742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743  soname_spec='${libname}${release}${shared_ext}$major'
9744  shlibpath_var=LD_LIBRARY_PATH
9745  ;;
9746
9747*)
9748  dynamic_linker=no
9749  ;;
9750esac
9751echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9752echo "${ECHO_T}$dynamic_linker" >&6
9753test "$dynamic_linker" = no && can_build_shared=no
9754
9755variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9756if test "$GCC" = yes; then
9757  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9758fi
9759
9760echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9761echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9762hardcode_action=
9763if test -n "$hardcode_libdir_flag_spec" || \
9764   test -n "$runpath_var" || \
9765   test "X$hardcode_automatic" = "Xyes" ; then
9766
9767  # We can hardcode non-existant directories.
9768  if test "$hardcode_direct" != no &&
9769     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9770     # have to relink, otherwise we might link with an installed library
9771     # when we should be linking with a yet-to-be-installed one
9772     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9773     test "$hardcode_minus_L" != no; then
9774    # Linking always hardcodes the temporary library directory.
9775    hardcode_action=relink
9776  else
9777    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9778    hardcode_action=immediate
9779  fi
9780else
9781  # We cannot hardcode anything, or else we can only hardcode existing
9782  # directories.
9783  hardcode_action=unsupported
9784fi
9785echo "$as_me:$LINENO: result: $hardcode_action" >&5
9786echo "${ECHO_T}$hardcode_action" >&6
9787
9788if test "$hardcode_action" = relink; then
9789  # Fast installation is not supported
9790  enable_fast_install=no
9791elif test "$shlibpath_overrides_runpath" = yes ||
9792     test "$enable_shared" = no; then
9793  # Fast installation is not necessary
9794  enable_fast_install=needless
9795fi
9796
9797striplib=
9798old_striplib=
9799echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9800echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9801if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9802  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9803  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9804  echo "$as_me:$LINENO: result: yes" >&5
9805echo "${ECHO_T}yes" >&6
9806else
9807# FIXME - insert some real tests, host_os isn't really good enough
9808  case $host_os in
9809   darwin*)
9810       if test -n "$STRIP" ; then
9811         striplib="$STRIP -x"
9812         echo "$as_me:$LINENO: result: yes" >&5
9813echo "${ECHO_T}yes" >&6
9814       else
9815  echo "$as_me:$LINENO: result: no" >&5
9816echo "${ECHO_T}no" >&6
9817fi
9818       ;;
9819   *)
9820  echo "$as_me:$LINENO: result: no" >&5
9821echo "${ECHO_T}no" >&6
9822    ;;
9823  esac
9824fi
9825
9826if test "x$enable_dlopen" != xyes; then
9827  enable_dlopen=unknown
9828  enable_dlopen_self=unknown
9829  enable_dlopen_self_static=unknown
9830else
9831  lt_cv_dlopen=no
9832  lt_cv_dlopen_libs=
9833
9834  case $host_os in
9835  beos*)
9836    lt_cv_dlopen="load_add_on"
9837    lt_cv_dlopen_libs=
9838    lt_cv_dlopen_self=yes
9839    ;;
9840
9841  mingw* | pw32*)
9842    lt_cv_dlopen="LoadLibrary"
9843    lt_cv_dlopen_libs=
9844   ;;
9845
9846  cygwin*)
9847    lt_cv_dlopen="dlopen"
9848    lt_cv_dlopen_libs=
9849   ;;
9850
9851  darwin*)
9852  # if libdl is installed we need to link against it
9853    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9854echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9855if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9856  echo $ECHO_N "(cached) $ECHO_C" >&6
9857else
9858  ac_check_lib_save_LIBS=$LIBS
9859LIBS="-ldl  $LIBS"
9860cat >conftest.$ac_ext <<_ACEOF
9861/* confdefs.h.  */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h.  */
9866
9867/* Override any gcc2 internal prototype to avoid an error.  */
9868#ifdef __cplusplus
9869extern "C"
9870#endif
9871/* We use char because int might match the return type of a gcc2
9872   builtin and then its argument prototype would still apply.  */
9873char dlopen ();
9874int
9875main ()
9876{
9877dlopen ();
9878  ;
9879  return 0;
9880}
9881_ACEOF
9882rm -f conftest.$ac_objext conftest$ac_exeext
9883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884  (eval $ac_link) 2>conftest.er1
9885  ac_status=$?
9886  grep -v '^ *+' conftest.er1 >conftest.err
9887  rm -f conftest.er1
9888  cat conftest.err >&5
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); } &&
9891         { ac_try='test -z "$ac_c_werror_flag"
9892                         || test ! -s conftest.err'
9893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894  (eval $ac_try) 2>&5
9895  ac_status=$?
9896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); }; } &&
9898         { ac_try='test -s conftest$ac_exeext'
9899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900  (eval $ac_try) 2>&5
9901  ac_status=$?
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); }; }; then
9904  ac_cv_lib_dl_dlopen=yes
9905else
9906  echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
9908
9909ac_cv_lib_dl_dlopen=no
9910fi
9911rm -f conftest.err conftest.$ac_objext \
9912      conftest$ac_exeext conftest.$ac_ext
9913LIBS=$ac_check_lib_save_LIBS
9914fi
9915echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9916echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9917if test $ac_cv_lib_dl_dlopen = yes; then
9918  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9919else
9920
9921    lt_cv_dlopen="dyld"
9922    lt_cv_dlopen_libs=
9923    lt_cv_dlopen_self=yes
9924
9925fi
9926
9927   ;;
9928
9929  *)
9930    echo "$as_me:$LINENO: checking for shl_load" >&5
9931echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9932if test "${ac_cv_func_shl_load+set}" = set; then
9933  echo $ECHO_N "(cached) $ECHO_C" >&6
9934else
9935  cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h.  */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h.  */
9941/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9943#define shl_load innocuous_shl_load
9944
9945/* System header to define __stub macros and hopefully few prototypes,
9946    which can conflict with char shl_load (); below.
9947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9948    <limits.h> exists even on freestanding compilers.  */
9949
9950#ifdef __STDC__
9951# include <limits.h>
9952#else
9953# include <assert.h>
9954#endif
9955
9956#undef shl_load
9957
9958/* Override any gcc2 internal prototype to avoid an error.  */
9959#ifdef __cplusplus
9960extern "C"
9961{
9962#endif
9963/* We use char because int might match the return type of a gcc2
9964   builtin and then its argument prototype would still apply.  */
9965char shl_load ();
9966/* The GNU C library defines this for functions which it implements
9967    to always fail with ENOSYS.  Some functions are actually named
9968    something starting with __ and the normal name is an alias.  */
9969#if defined (__stub_shl_load) || defined (__stub___shl_load)
9970choke me
9971#else
9972char (*f) () = shl_load;
9973#endif
9974#ifdef __cplusplus
9975}
9976#endif
9977
9978int
9979main ()
9980{
9981return f != shl_load;
9982  ;
9983  return 0;
9984}
9985_ACEOF
9986rm -f conftest.$ac_objext conftest$ac_exeext
9987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988  (eval $ac_link) 2>conftest.er1
9989  ac_status=$?
9990  grep -v '^ *+' conftest.er1 >conftest.err
9991  rm -f conftest.er1
9992  cat conftest.err >&5
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); } &&
9995         { ac_try='test -z "$ac_c_werror_flag"
9996                         || test ! -s conftest.err'
9997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998  (eval $ac_try) 2>&5
9999  ac_status=$?
10000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001  (exit $ac_status); }; } &&
10002         { ac_try='test -s conftest$ac_exeext'
10003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004  (eval $ac_try) 2>&5
10005  ac_status=$?
10006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); }; }; then
10008  ac_cv_func_shl_load=yes
10009else
10010  echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013ac_cv_func_shl_load=no
10014fi
10015rm -f conftest.err conftest.$ac_objext \
10016      conftest$ac_exeext conftest.$ac_ext
10017fi
10018echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10019echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10020if test $ac_cv_func_shl_load = yes; then
10021  lt_cv_dlopen="shl_load"
10022else
10023  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10024echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10025if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10026  echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028  ac_check_lib_save_LIBS=$LIBS
10029LIBS="-ldld  $LIBS"
10030cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h.  */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h.  */
10036
10037/* Override any gcc2 internal prototype to avoid an error.  */
10038#ifdef __cplusplus
10039extern "C"
10040#endif
10041/* We use char because int might match the return type of a gcc2
10042   builtin and then its argument prototype would still apply.  */
10043char shl_load ();
10044int
10045main ()
10046{
10047shl_load ();
10048  ;
10049  return 0;
10050}
10051_ACEOF
10052rm -f conftest.$ac_objext conftest$ac_exeext
10053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054  (eval $ac_link) 2>conftest.er1
10055  ac_status=$?
10056  grep -v '^ *+' conftest.er1 >conftest.err
10057  rm -f conftest.er1
10058  cat conftest.err >&5
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); } &&
10061         { ac_try='test -z "$ac_c_werror_flag"
10062                         || test ! -s conftest.err'
10063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064  (eval $ac_try) 2>&5
10065  ac_status=$?
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); }; } &&
10068         { ac_try='test -s conftest$ac_exeext'
10069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070  (eval $ac_try) 2>&5
10071  ac_status=$?
10072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073  (exit $ac_status); }; }; then
10074  ac_cv_lib_dld_shl_load=yes
10075else
10076  echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
10079ac_cv_lib_dld_shl_load=no
10080fi
10081rm -f conftest.err conftest.$ac_objext \
10082      conftest$ac_exeext conftest.$ac_ext
10083LIBS=$ac_check_lib_save_LIBS
10084fi
10085echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10086echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10087if test $ac_cv_lib_dld_shl_load = yes; then
10088  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10089else
10090  echo "$as_me:$LINENO: checking for dlopen" >&5
10091echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10092if test "${ac_cv_func_dlopen+set}" = set; then
10093  echo $ECHO_N "(cached) $ECHO_C" >&6
10094else
10095  cat >conftest.$ac_ext <<_ACEOF
10096/* confdefs.h.  */
10097_ACEOF
10098cat confdefs.h >>conftest.$ac_ext
10099cat >>conftest.$ac_ext <<_ACEOF
10100/* end confdefs.h.  */
10101/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10102   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10103#define dlopen innocuous_dlopen
10104
10105/* System header to define __stub macros and hopefully few prototypes,
10106    which can conflict with char dlopen (); below.
10107    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10108    <limits.h> exists even on freestanding compilers.  */
10109
10110#ifdef __STDC__
10111# include <limits.h>
10112#else
10113# include <assert.h>
10114#endif
10115
10116#undef dlopen
10117
10118/* Override any gcc2 internal prototype to avoid an error.  */
10119#ifdef __cplusplus
10120extern "C"
10121{
10122#endif
10123/* We use char because int might match the return type of a gcc2
10124   builtin and then its argument prototype would still apply.  */
10125char dlopen ();
10126/* The GNU C library defines this for functions which it implements
10127    to always fail with ENOSYS.  Some functions are actually named
10128    something starting with __ and the normal name is an alias.  */
10129#if defined (__stub_dlopen) || defined (__stub___dlopen)
10130choke me
10131#else
10132char (*f) () = dlopen;
10133#endif
10134#ifdef __cplusplus
10135}
10136#endif
10137
10138int
10139main ()
10140{
10141return f != dlopen;
10142  ;
10143  return 0;
10144}
10145_ACEOF
10146rm -f conftest.$ac_objext conftest$ac_exeext
10147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148  (eval $ac_link) 2>conftest.er1
10149  ac_status=$?
10150  grep -v '^ *+' conftest.er1 >conftest.err
10151  rm -f conftest.er1
10152  cat conftest.err >&5
10153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154  (exit $ac_status); } &&
10155         { ac_try='test -z "$ac_c_werror_flag"
10156                         || test ! -s conftest.err'
10157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158  (eval $ac_try) 2>&5
10159  ac_status=$?
10160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); }; } &&
10162         { ac_try='test -s conftest$ac_exeext'
10163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164  (eval $ac_try) 2>&5
10165  ac_status=$?
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); }; }; then
10168  ac_cv_func_dlopen=yes
10169else
10170  echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
10173ac_cv_func_dlopen=no
10174fi
10175rm -f conftest.err conftest.$ac_objext \
10176      conftest$ac_exeext conftest.$ac_ext
10177fi
10178echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10179echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10180if test $ac_cv_func_dlopen = yes; then
10181  lt_cv_dlopen="dlopen"
10182else
10183  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10184echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10185if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10186  echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188  ac_check_lib_save_LIBS=$LIBS
10189LIBS="-ldl  $LIBS"
10190cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h.  */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h.  */
10196
10197/* Override any gcc2 internal prototype to avoid an error.  */
10198#ifdef __cplusplus
10199extern "C"
10200#endif
10201/* We use char because int might match the return type of a gcc2
10202   builtin and then its argument prototype would still apply.  */
10203char dlopen ();
10204int
10205main ()
10206{
10207dlopen ();
10208  ;
10209  return 0;
10210}
10211_ACEOF
10212rm -f conftest.$ac_objext conftest$ac_exeext
10213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214  (eval $ac_link) 2>conftest.er1
10215  ac_status=$?
10216  grep -v '^ *+' conftest.er1 >conftest.err
10217  rm -f conftest.er1
10218  cat conftest.err >&5
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); } &&
10221         { ac_try='test -z "$ac_c_werror_flag"
10222                         || test ! -s conftest.err'
10223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224  (eval $ac_try) 2>&5
10225  ac_status=$?
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); }; } &&
10228         { ac_try='test -s conftest$ac_exeext'
10229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230  (eval $ac_try) 2>&5
10231  ac_status=$?
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); }; }; then
10234  ac_cv_lib_dl_dlopen=yes
10235else
10236  echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239ac_cv_lib_dl_dlopen=no
10240fi
10241rm -f conftest.err conftest.$ac_objext \
10242      conftest$ac_exeext conftest.$ac_ext
10243LIBS=$ac_check_lib_save_LIBS
10244fi
10245echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10246echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10247if test $ac_cv_lib_dl_dlopen = yes; then
10248  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10249else
10250  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10251echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10252if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10253  echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255  ac_check_lib_save_LIBS=$LIBS
10256LIBS="-lsvld  $LIBS"
10257cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h.  */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h.  */
10263
10264/* Override any gcc2 internal prototype to avoid an error.  */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268/* We use char because int might match the return type of a gcc2
10269   builtin and then its argument prototype would still apply.  */
10270char dlopen ();
10271int
10272main ()
10273{
10274dlopen ();
10275  ;
10276  return 0;
10277}
10278_ACEOF
10279rm -f conftest.$ac_objext conftest$ac_exeext
10280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281  (eval $ac_link) 2>conftest.er1
10282  ac_status=$?
10283  grep -v '^ *+' conftest.er1 >conftest.err
10284  rm -f conftest.er1
10285  cat conftest.err >&5
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); } &&
10288         { ac_try='test -z "$ac_c_werror_flag"
10289                         || test ! -s conftest.err'
10290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291  (eval $ac_try) 2>&5
10292  ac_status=$?
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); }; } &&
10295         { ac_try='test -s conftest$ac_exeext'
10296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297  (eval $ac_try) 2>&5
10298  ac_status=$?
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); }; }; then
10301  ac_cv_lib_svld_dlopen=yes
10302else
10303  echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306ac_cv_lib_svld_dlopen=no
10307fi
10308rm -f conftest.err conftest.$ac_objext \
10309      conftest$ac_exeext conftest.$ac_ext
10310LIBS=$ac_check_lib_save_LIBS
10311fi
10312echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10313echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10314if test $ac_cv_lib_svld_dlopen = yes; then
10315  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10316else
10317  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10318echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10319if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10320  echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322  ac_check_lib_save_LIBS=$LIBS
10323LIBS="-ldld  $LIBS"
10324cat >conftest.$ac_ext <<_ACEOF
10325/* confdefs.h.  */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h.  */
10330
10331/* Override any gcc2 internal prototype to avoid an error.  */
10332#ifdef __cplusplus
10333extern "C"
10334#endif
10335/* We use char because int might match the return type of a gcc2
10336   builtin and then its argument prototype would still apply.  */
10337char dld_link ();
10338int
10339main ()
10340{
10341dld_link ();
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348  (eval $ac_link) 2>conftest.er1
10349  ac_status=$?
10350  grep -v '^ *+' conftest.er1 >conftest.err
10351  rm -f conftest.er1
10352  cat conftest.err >&5
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); } &&
10355         { ac_try='test -z "$ac_c_werror_flag"
10356                         || test ! -s conftest.err'
10357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358  (eval $ac_try) 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); }; } &&
10362         { ac_try='test -s conftest$ac_exeext'
10363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364  (eval $ac_try) 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); }; }; then
10368  ac_cv_lib_dld_dld_link=yes
10369else
10370  echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373ac_cv_lib_dld_dld_link=no
10374fi
10375rm -f conftest.err conftest.$ac_objext \
10376      conftest$ac_exeext conftest.$ac_ext
10377LIBS=$ac_check_lib_save_LIBS
10378fi
10379echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10380echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10381if test $ac_cv_lib_dld_dld_link = yes; then
10382  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10383fi
10384
10385
10386fi
10387
10388
10389fi
10390
10391
10392fi
10393
10394
10395fi
10396
10397
10398fi
10399
10400    ;;
10401  esac
10402
10403  if test "x$lt_cv_dlopen" != xno; then
10404    enable_dlopen=yes
10405  else
10406    enable_dlopen=no
10407  fi
10408
10409  case $lt_cv_dlopen in
10410  dlopen)
10411    save_CPPFLAGS="$CPPFLAGS"
10412    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10413
10414    save_LDFLAGS="$LDFLAGS"
10415    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10416
10417    save_LIBS="$LIBS"
10418    LIBS="$lt_cv_dlopen_libs $LIBS"
10419
10420    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10421echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10422if test "${lt_cv_dlopen_self+set}" = set; then
10423  echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425          if test "$cross_compiling" = yes; then :
10426  lt_cv_dlopen_self=cross
10427else
10428  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10429  lt_status=$lt_dlunknown
10430  cat > conftest.$ac_ext <<EOF
10431#line 10431 "configure"
10432#include "confdefs.h"
10433
10434#if HAVE_DLFCN_H
10435#include <dlfcn.h>
10436#endif
10437
10438#include <stdio.h>
10439
10440#ifdef RTLD_GLOBAL
10441#  define LT_DLGLOBAL           RTLD_GLOBAL
10442#else
10443#  ifdef DL_GLOBAL
10444#    define LT_DLGLOBAL         DL_GLOBAL
10445#  else
10446#    define LT_DLGLOBAL         0
10447#  endif
10448#endif
10449
10450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10451   find out it does not work in some platform. */
10452#ifndef LT_DLLAZY_OR_NOW
10453#  ifdef RTLD_LAZY
10454#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10455#  else
10456#    ifdef DL_LAZY
10457#      define LT_DLLAZY_OR_NOW          DL_LAZY
10458#    else
10459#      ifdef RTLD_NOW
10460#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10461#      else
10462#        ifdef DL_NOW
10463#          define LT_DLLAZY_OR_NOW      DL_NOW
10464#        else
10465#          define LT_DLLAZY_OR_NOW      0
10466#        endif
10467#      endif
10468#    endif
10469#  endif
10470#endif
10471
10472#ifdef __cplusplus
10473extern "C" void exit (int);
10474#endif
10475
10476void fnord() { int i=42;}
10477int main ()
10478{
10479  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10480  int status = $lt_dlunknown;
10481
10482  if (self)
10483    {
10484      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10485      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10486      /* dlclose (self); */
10487    }
10488  else
10489    puts (dlerror ());
10490
10491    exit (status);
10492}
10493EOF
10494  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495  (eval $ac_link) 2>&5
10496  ac_status=$?
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10499    (./conftest; exit; ) >&5 2>/dev/null
10500    lt_status=$?
10501    case x$lt_status in
10502      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10503      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10504      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10505    esac
10506  else :
10507    # compilation failed
10508    lt_cv_dlopen_self=no
10509  fi
10510fi
10511rm -fr conftest*
10512
10513
10514fi
10515echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10516echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10517
10518    if test "x$lt_cv_dlopen_self" = xyes; then
10519      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10520      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10521echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10522if test "${lt_cv_dlopen_self_static+set}" = set; then
10523  echo $ECHO_N "(cached) $ECHO_C" >&6
10524else
10525          if test "$cross_compiling" = yes; then :
10526  lt_cv_dlopen_self_static=cross
10527else
10528  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10529  lt_status=$lt_dlunknown
10530  cat > conftest.$ac_ext <<EOF
10531#line 10531 "configure"
10532#include "confdefs.h"
10533
10534#if HAVE_DLFCN_H
10535#include <dlfcn.h>
10536#endif
10537
10538#include <stdio.h>
10539
10540#ifdef RTLD_GLOBAL
10541#  define LT_DLGLOBAL           RTLD_GLOBAL
10542#else
10543#  ifdef DL_GLOBAL
10544#    define LT_DLGLOBAL         DL_GLOBAL
10545#  else
10546#    define LT_DLGLOBAL         0
10547#  endif
10548#endif
10549
10550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10551   find out it does not work in some platform. */
10552#ifndef LT_DLLAZY_OR_NOW
10553#  ifdef RTLD_LAZY
10554#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10555#  else
10556#    ifdef DL_LAZY
10557#      define LT_DLLAZY_OR_NOW          DL_LAZY
10558#    else
10559#      ifdef RTLD_NOW
10560#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10561#      else
10562#        ifdef DL_NOW
10563#          define LT_DLLAZY_OR_NOW      DL_NOW
10564#        else
10565#          define LT_DLLAZY_OR_NOW      0
10566#        endif
10567#      endif
10568#    endif
10569#  endif
10570#endif
10571
10572#ifdef __cplusplus
10573extern "C" void exit (int);
10574#endif
10575
10576void fnord() { int i=42;}
10577int main ()
10578{
10579  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10580  int status = $lt_dlunknown;
10581
10582  if (self)
10583    {
10584      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10585      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10586      /* dlclose (self); */
10587    }
10588  else
10589    puts (dlerror ());
10590
10591    exit (status);
10592}
10593EOF
10594  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595  (eval $ac_link) 2>&5
10596  ac_status=$?
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10599    (./conftest; exit; ) >&5 2>/dev/null
10600    lt_status=$?
10601    case x$lt_status in
10602      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10603      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10604      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10605    esac
10606  else :
10607    # compilation failed
10608    lt_cv_dlopen_self_static=no
10609  fi
10610fi
10611rm -fr conftest*
10612
10613
10614fi
10615echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10616echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10617    fi
10618
10619    CPPFLAGS="$save_CPPFLAGS"
10620    LDFLAGS="$save_LDFLAGS"
10621    LIBS="$save_LIBS"
10622    ;;
10623  esac
10624
10625  case $lt_cv_dlopen_self in
10626  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10627  *) enable_dlopen_self=unknown ;;
10628  esac
10629
10630  case $lt_cv_dlopen_self_static in
10631  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10632  *) enable_dlopen_self_static=unknown ;;
10633  esac
10634fi
10635
10636
10637# Report which library types will actually be built
10638echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10639echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10640echo "$as_me:$LINENO: result: $can_build_shared" >&5
10641echo "${ECHO_T}$can_build_shared" >&6
10642
10643echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10644echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10645test "$can_build_shared" = "no" && enable_shared=no
10646
10647# On AIX, shared libraries and static libraries use the same namespace, and
10648# are all built from PIC.
10649case $host_os in
10650aix3*)
10651  test "$enable_shared" = yes && enable_static=no
10652  if test -n "$RANLIB"; then
10653    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10654    postinstall_cmds='$RANLIB $lib'
10655  fi
10656  ;;
10657
10658aix4* | aix5*)
10659  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10660    test "$enable_shared" = yes && enable_static=no
10661  fi
10662    ;;
10663esac
10664echo "$as_me:$LINENO: result: $enable_shared" >&5
10665echo "${ECHO_T}$enable_shared" >&6
10666
10667echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10668echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10669# Make sure either enable_shared or enable_static is yes.
10670test "$enable_shared" = yes || enable_static=yes
10671echo "$as_me:$LINENO: result: $enable_static" >&5
10672echo "${ECHO_T}$enable_static" >&6
10673
10674# The else clause should only fire when bootstrapping the
10675# libtool distribution, otherwise you forgot to ship ltmain.sh
10676# with your package, and you will get complaints that there are
10677# no rules to generate ltmain.sh.
10678if test -f "$ltmain"; then
10679  # See if we are running on zsh, and set the options which allow our commands through
10680  # without removal of \ escapes.
10681  if test -n "${ZSH_VERSION+set}" ; then
10682    setopt NO_GLOB_SUBST
10683  fi
10684  # Now quote all the things that may contain metacharacters while being
10685  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10686  # variables and quote the copies for generation of the libtool script.
10687  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10688    SED SHELL STRIP \
10689    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10690    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10691    deplibs_check_method reload_flag reload_cmds need_locks \
10692    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10693    lt_cv_sys_global_symbol_to_c_name_address \
10694    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10695    old_postinstall_cmds old_postuninstall_cmds \
10696    compiler \
10697    CC \
10698    LD \
10699    lt_prog_compiler_wl \
10700    lt_prog_compiler_pic \
10701    lt_prog_compiler_static \
10702    lt_prog_compiler_no_builtin_flag \
10703    export_dynamic_flag_spec \
10704    thread_safe_flag_spec \
10705    whole_archive_flag_spec \
10706    enable_shared_with_static_runtimes \
10707    old_archive_cmds \
10708    old_archive_from_new_cmds \
10709    predep_objects \
10710    postdep_objects \
10711    predeps \
10712    postdeps \
10713    compiler_lib_search_path \
10714    archive_cmds \
10715    archive_expsym_cmds \
10716    postinstall_cmds \
10717    postuninstall_cmds \
10718    old_archive_from_expsyms_cmds \
10719    allow_undefined_flag \
10720    no_undefined_flag \
10721    export_symbols_cmds \
10722    hardcode_libdir_flag_spec \
10723    hardcode_libdir_flag_spec_ld \
10724    hardcode_libdir_separator \
10725    hardcode_automatic \
10726    module_cmds \
10727    module_expsym_cmds \
10728    lt_cv_prog_compiler_c_o \
10729    exclude_expsyms \
10730    include_expsyms; do
10731
10732    case $var in
10733    old_archive_cmds | \
10734    old_archive_from_new_cmds | \
10735    archive_cmds | \
10736    archive_expsym_cmds | \
10737    module_cmds | \
10738    module_expsym_cmds | \
10739    old_archive_from_expsyms_cmds | \
10740    export_symbols_cmds | \
10741    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10742    postinstall_cmds | postuninstall_cmds | \
10743    old_postinstall_cmds | old_postuninstall_cmds | \
10744    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10745      # Double-quote double-evaled strings.
10746      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10747      ;;
10748    *)
10749      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10750      ;;
10751    esac
10752  done
10753
10754  case $lt_echo in
10755  *'\$0 --fallback-echo"')
10756    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10757    ;;
10758  esac
10759
10760cfgfile="${ofile}T"
10761  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10762  $rm -f "$cfgfile"
10763  { echo "$as_me:$LINENO: creating $ofile" >&5
10764echo "$as_me: creating $ofile" >&6;}
10765
10766  cat <<__EOF__ >> "$cfgfile"
10767#! $SHELL
10768
10769# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10770# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10771# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10772#
10773# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10774# Free Software Foundation, Inc.
10775#
10776# This file is part of GNU Libtool:
10777# Originally by Gordon Ma