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

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

restoring BuildTools/ThirdParty/Metis?/stable/1.2

  • Property svn:executable set to *
File size: 710.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMetis 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartyMetis 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis 1.2 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis 1.2:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-metis compile project Metis with debug compiler flags
1064  --enable-doscompile     Under Cygwin, compile so that executables run under
1065                          DOS. Set to mingw to use gcc/g++/ld with
1066                          -mno-cygwin. Set to msvc to use cl/link (or
1067                          icl/link). Default when mentioned: mingw. Default
1068                          when not mentioned: disabled.
1069  --disable-pkg-config    disable use of pkg-config (if available)
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-metis-verbosity specify the debug verbosity level for project Metis
1086  --with-metis-checklevel specify the sanity check level for project Metis
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyMetis configure 1.2
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2009 International Business Machines and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyMetis $as_me 1.2, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define METIS_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define METIS_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define METIS_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define METIS_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=METIS
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define METIS_SVN_REV $METIS_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693
1694
1695
1696
1697#############################################################################
1698#                         Standard build tool stuff                         #
1699#############################################################################
1700
1701# Get the system type
1702ac_aux_dir=
1703for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1704  if test -f $ac_dir/install-sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install-sh -c"
1707    break
1708  elif test -f $ac_dir/install.sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install.sh -c"
1711    break
1712  elif test -f $ac_dir/shtool; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/shtool install -c"
1715    break
1716  fi
1717done
1718if test -z "$ac_aux_dir"; then
1719  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1720echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1721   { (exit 1); exit 1; }; }
1722fi
1723ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740  ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744   { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759
1760#turn off warnings and pedantic mode since they could make trouble on some platforms,
1761#and we couldn't fix them anyway
1762coin_skip_warn_cflags=yes
1763coin_skip_warn_fflags=yes
1764
1765# Check if user wants to produce debugging code
1766
1767echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1768echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1769
1770# Check whether --enable-debug or --disable-debug was given.
1771if test "${enable_debug+set}" = set; then
1772  enableval="$enable_debug"
1773  case "${enableval}" in
1774   yes) coin_debug_compile=true
1775        if test "${enable_shared+set}" = set; then :; else
1776          enable_shared=no
1777        fi
1778        ;;
1779   no)  coin_debug_compile=false
1780        ;;
1781   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1782echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1783   { (exit 1); exit 1; }; }
1784        ;;
1785esac
1786else
1787  coin_debug_compile=false
1788fi;
1789
1790# Check whether --enable-debug-metis or --disable-debug-metis was given.
1791if test "${enable_debug_metis+set}" = set; then
1792  enableval="$enable_debug_metis"
1793  case "${enableval}" in
1794    yes) coin_debug_compile=true
1795         ;;
1796    no)  coin_debug_compile=false
1797         ;;
1798    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1799echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1800   { (exit 1); exit 1; }; }
1801         ;;
1802 esac
1803else
1804  :
1805fi;
1806
1807 # m4_ifvaln([Metis],
1808
1809if test $coin_debug_compile = true; then
1810  echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817
1818# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1819if test "${with_metis_verbosity+set}" = set; then
1820  withval="$with_metis_verbosity"
1821  if test "$withval" = yes; then
1822                withval=1
1823              fi
1824              coin_metis_verbosity=$withval
1825else
1826  coin_metis_verbosity=0
1827fi;
1828
1829cat >>confdefs.h <<_ACEOF
1830#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1831_ACEOF
1832
1833
1834
1835# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1836if test "${with_metis_checklevel+set}" = set; then
1837  withval="$with_metis_checklevel"
1838  if test "$withval" = yes; then
1839                withval=1
1840              fi
1841              coin_metis_checklevel=$withval
1842else
1843  coin_metis_checklevel=0
1844fi;
1845
1846cat >>confdefs.h <<_ACEOF
1847#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1848_ACEOF
1849
1850
1851 # m4_ifvaln([Metis],
1852
1853
1854
1855# Get the name of the C compiler
1856case $build in
1857  *-mingw*)
1858    if test "${LD+set}" = set; then :; else
1859      LD=link
1860    fi
1861    ;;
1862 esac
1863 case $enable_doscompile in
1864   msvc)
1865     if test "x${LD+set}" = xset; then :; else
1866       LD=link
1867     fi
1868     ;;
1869 esac
1870
1871
1872 # Check whether --enable-doscompile or --disable-doscompile was given.
1873if test "${enable_doscompile+set}" = set; then
1874  enableval="$enable_doscompile"
1875  if test "$enable_doscompile" != no; then
1876     case $build in
1877       *-cygwin* | *-mingw*) ;;
1878       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1879echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1880   { (exit 1); exit 1; }; } ;;
1881     esac
1882   fi
1883else
1884  enable_doscompile=no
1885fi;
1886 case "$enable_doscompile" in
1887   mingw)
1888     case $build in
1889       *-mingw*) enable_doscompile=no ;;
1890     esac
1891     ;;
1892   msvc|no) ;;
1893   yes) enable_doscompile=mingw ;;
1894   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1895                    Try configure --help=recursive." >&5
1896echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1897                    Try configure --help=recursive." >&2;}
1898   { (exit 1); exit 1; }; }
1899      ;;
1900  esac
1901  if test "$enable_doscompile" != no ; then
1902    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1903echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1904  fi
1905
1906
1907
1908
1909ac_ext=c
1910ac_cpp='$CPP $CPPFLAGS'
1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916# For consistency, we set the C compiler to the same value of the C++
1917# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1918if test x"$CXX" != x; then
1919  case "$CXX" in
1920    clang* ) ;;
1921    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1922      if test x"$CC" = x; then
1923        CC="$CXX"
1924        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1925echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1926      fi
1927      ;;
1928  esac
1929fi
1930
1931
1932
1933
1934
1935
1936coin_has_cc=yes
1937
1938save_cflags="$CFLAGS"
1939
1940# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1941# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1942# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1943# compiler. In this case, put cc after gcc.
1944
1945case $build in
1946  *-cygwin* | *-mingw*)
1947             if test "$enable_doscompile" = msvc ; then
1948               comps="icl cl"
1949             else
1950               comps="gcc cl"
1951             fi ;;
1952  *-*-solaris*)
1953             # Extract the first word of "cc", so it can be a program name with args.
1954set dummy cc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$sol_cc_compiler"; then
1961  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1962else
1963  ac_prog_rejected=no
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972       ac_prog_rejected=yes
1973       continue
1974     fi
1975    ac_cv_prog_sol_cc_compiler="cc"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981
1982if test $ac_prog_rejected = yes; then
1983  # We found a bogon in the path, so make sure we never use it.
1984  set dummy $ac_cv_prog_sol_cc_compiler
1985  shift
1986  if test $# != 0; then
1987    # We chose a different compiler from the bogus one.
1988    # However, it has the same basename, so the bogon will be chosen
1989    # first if we set sol_cc_compiler to just the basename; use the full file name.
1990    shift
1991    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1992  fi
1993fi
1994fi
1995fi
1996sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1997if test -n "$sol_cc_compiler"; then
1998  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1999echo "${ECHO_T}$sol_cc_compiler" >&6
2000else
2001  echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005             if test "$sol_cc_compiler" = "cc" ; then
2006               comps="cc xlc gcc pgcc icc"
2007             else
2008               comps="xlc gcc pgcc icc cc"
2009             fi
2010             ;;
2011  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2012  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2013  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2014esac
2015
2016# We delete the cached value, since the test might not have been
2017# performed with our choice of compilers earlier
2018$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2019# AC_MSG_NOTICE([C compiler candidates: $comps])
2020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025if test -n "$ac_tool_prefix"; then
2026  for ac_prog in $comps
2027  do
2028    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032if test "${ac_cv_prog_CC+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  if test -n "$CC"; then
2036  ac_cv_prog_CC="$CC" # Let the user override the test.
2037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043  for ac_exec_ext in '' $ac_executable_extensions; do
2044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051
2052fi
2053fi
2054CC=$ac_cv_prog_CC
2055if test -n "$CC"; then
2056  echo "$as_me:$LINENO: result: $CC" >&5
2057echo "${ECHO_T}$CC" >&6
2058else
2059  echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
2063    test -n "$CC" && break
2064  done
2065fi
2066if test -z "$CC"; then
2067  ac_ct_CC=$CC
2068  for ac_prog in $comps
2069do
2070  # Extract the first word of "$ac_prog", so it can be a program name with args.
2071set dummy $ac_prog; ac_word=$2
2072echo "$as_me:$LINENO: checking for $ac_word" >&5
2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075  echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077  if test -n "$ac_ct_CC"; then
2078  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085  for ac_exec_ext in '' $ac_executable_extensions; do
2086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087    ac_cv_prog_ac_ct_CC="$ac_prog"
2088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089    break 2
2090  fi
2091done
2092done
2093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
2098  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6
2100else
2101  echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6
2103fi
2104
2105  test -n "$ac_ct_CC" && break
2106done
2107
2108  CC=$ac_ct_CC
2109fi
2110
2111
2112test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&2;}
2116   { (exit 1); exit 1; }; }
2117
2118# Provide some information about the compiler.
2119echo "$as_me:$LINENO:" \
2120     "checking for C compiler version" >&5
2121ac_compiler=`set X $ac_compile; echo $2`
2122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123  (eval $ac_compiler --version </dev/null >&5) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128  (eval $ac_compiler -v </dev/null >&5) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133  (eval $ac_compiler -V </dev/null >&5) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }
2137
2138cat >conftest.$ac_ext <<_ACEOF
2139/* confdefs.h.  */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h.  */
2144
2145int
2146main ()
2147{
2148
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153ac_clean_files_save=$ac_clean_files
2154ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155# Try to create an executable without -o first, disregard a.out.
2156# It will help us diagnose broken compilers, and finding out an intuition
2157# of exeext.
2158echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162  (eval $ac_link_default) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  # Find the output, starting from the most likely.  This scheme is
2167# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168# resort.
2169
2170# Be careful to initialize this variable, since it used to be cached.
2171# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172ac_cv_exeext=
2173# b.out is created by i960 compilers.
2174for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175do
2176  test -f "$ac_file" || continue
2177  case $ac_file in
2178    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2179        ;;
2180    conftest.$ac_ext )
2181        # This is the source file.
2182        ;;
2183    [ab].out )
2184        # We found the default executable, but exeext='' is most
2185        # certainly right.
2186        break;;
2187    *.* )
2188        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189        # FIXME: I believe we export ac_cv_exeext for Libtool,
2190        # but it would be cool to find out if it's true.  Does anybody
2191        # maintain Libtool? --akim.
2192        export ac_cv_exeext
2193        break;;
2194    * )
2195        break;;
2196  esac
2197done
2198else
2199  echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: C compiler cannot create executables
2205See \`config.log' for more details." >&2;}
2206   { (exit 77); exit 77; }; }
2207fi
2208
2209ac_exeext=$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6
2212
2213# Check the compiler produces executables we can run.  If not, either
2214# the compiler is broken, or we cross compile.
2215echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220  if { ac_try='./$ac_file'
2221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222  (eval $ac_try) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; }; then
2226    cross_compiling=no
2227  else
2228    if test "$cross_compiling" = maybe; then
2229        cross_compiling=yes
2230    else
2231        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238    fi
2239  fi
2240fi
2241echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6
2243
2244rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245ac_clean_files=$ac_clean_files_save
2246# Check the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6
2252
2253echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256  (eval $ac_link) 2>&5
2257  ac_status=$?
2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259  (exit $ac_status); }; then
2260  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2262# work properly (i.e., refer to `conftest.exe'), while it won't with
2263# `rm'.
2264for ac_file in conftest.exe conftest conftest.*; do
2265  test -f "$ac_file" || continue
2266  case $ac_file in
2267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269          export ac_cv_exeext
2270          break;;
2271    * ) break;;
2272  esac
2273done
2274else
2275  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest$ac_cv_exeext
2283echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286rm -f conftest.$ac_ext
2287EXEEXT=$ac_cv_exeext
2288ac_exeext=$EXEEXT
2289echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291if test "${ac_cv_objext+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h.  */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h.  */
2300
2301int
2302main ()
2303{
2304
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309rm -f conftest.o conftest.obj
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311  (eval $ac_compile) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; then
2315  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316  case $ac_file in
2317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319       break;;
2320  esac
2321done
2322else
2323  echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6
2337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
2339echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h.  */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h.  */
2350
2351int
2352main ()
2353{
2354#ifndef __GNUC__
2355       choke me
2356#endif
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>conftest.er1
2365  ac_status=$?
2366  grep -v '^ *+' conftest.er1 >conftest.err
2367  rm -f conftest.er1
2368  cat conftest.err >&5
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); } &&
2371         { ac_try='test -z "$ac_c_werror_flag"
2372                         || test ! -s conftest.err'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; } &&
2378         { ac_try='test -s conftest.$ac_objext'
2379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380  (eval $ac_try) 2>&5
2381  ac_status=$?
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); }; }; then
2384  ac_compiler_gnu=yes
2385else
2386  echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389ac_compiler_gnu=no
2390fi
2391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393
2394fi
2395echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397GCC=`test $ac_compiler_gnu = yes && echo yes`
2398ac_test_CFLAGS=${CFLAGS+set}
2399ac_save_CFLAGS=$CFLAGS
2400CFLAGS="-g"
2401echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403if test "${ac_cv_prog_cc_g+set}" = set; then
2404  echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406  cat >conftest.$ac_ext <<_ACEOF
2407/* confdefs.h.  */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h.  */
2412
2413int
2414main ()
2415{
2416
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423  (eval $ac_compile) 2>conftest.er1
2424  ac_status=$?
2425  grep -v '^ *+' conftest.er1 >conftest.err
2426  rm -f conftest.er1
2427  cat conftest.err >&5
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); } &&
2430         { ac_try='test -z "$ac_c_werror_flag"
2431                         || test ! -s conftest.err'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; } &&
2437         { ac_try='test -s conftest.$ac_objext'
2438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439  (eval $ac_try) 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }; }; then
2443  ac_cv_prog_cc_g=yes
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448ac_cv_prog_cc_g=no
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451fi
2452echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454if test "$ac_test_CFLAGS" = set; then
2455  CFLAGS=$ac_save_CFLAGS
2456elif test $ac_cv_prog_cc_g = yes; then
2457  if test "$GCC" = yes; then
2458    CFLAGS="-g -O2"
2459  else
2460    CFLAGS="-g"
2461  fi
2462else
2463  if test "$GCC" = yes; then
2464    CFLAGS="-O2"
2465  else
2466    CFLAGS=
2467  fi
2468fi
2469echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  ac_cv_prog_cc_stdc=no
2475ac_save_CC=$CC
2476cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h.  */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h.  */
2482#include <stdarg.h>
2483#include <stdio.h>
2484#include <sys/types.h>
2485#include <sys/stat.h>
2486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2487struct buf { int x; };
2488FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489static char *e (p, i)
2490     char **p;
2491     int i;
2492{
2493  return p[i];
2494}
2495static char *f (char * (*g) (char **, int), char **p, ...)
2496{
2497  char *s;
2498  va_list v;
2499  va_start (v,p);
2500  s = g (p, va_arg (v,int));
2501  va_end (v);
2502  return s;
2503}
2504
2505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2506   function prototypes and stuff, but not '\xHH' hex character constants.
2507   These don't provoke an error unfortunately, instead are silently treated
2508   as 'x'.  The following induces an error, until -std1 is added to get
2509   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2510   array size at least.  It's necessary to write '\x00'==0 to get something
2511   that's true only with -std1.  */
2512int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514int test (int i, double x);
2515struct s1 {int (*f) (int a);};
2516struct s2 {int (*f) (double a);};
2517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518int argc;
2519char **argv;
2520int
2521main ()
2522{
2523return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2524  ;
2525  return 0;
2526}
2527_ACEOF
2528# Don't try gcc -ansi; that turns off useful extensions and
2529# breaks some systems' header files.
2530# AIX                   -qlanglvl=ansi
2531# Ultrix and OSF/1      -std1
2532# HP-UX 10.20 and later -Ae
2533# HP-UX older versions  -Aa -D_HPUX_SOURCE
2534# SVR4                  -Xc -D__EXTENSIONS__
2535for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536do
2537  CC="$ac_save_CC $ac_arg"
2538  rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540  (eval $ac_compile) 2>conftest.er1
2541  ac_status=$?
2542  grep -v '^ *+' conftest.er1 >conftest.err
2543  rm -f conftest.er1
2544  cat conftest.err >&5
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); } &&
2547         { ac_try='test -z "$ac_c_werror_flag"
2548                         || test ! -s conftest.err'
2549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550  (eval $ac_try) 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; } &&
2554         { ac_try='test -s conftest.$ac_objext'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; }; then
2560  ac_cv_prog_cc_stdc=$ac_arg
2561break
2562else
2563  echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext
2568done
2569rm -f conftest.$ac_ext conftest.$ac_objext
2570CC=$ac_save_CC
2571
2572fi
2573
2574case "x$ac_cv_prog_cc_stdc" in
2575  x|xno)
2576    echo "$as_me:$LINENO: result: none needed" >&5
2577echo "${ECHO_T}none needed" >&6 ;;
2578  *)
2579    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581    CC="$CC $ac_cv_prog_cc_stdc" ;;
2582esac
2583
2584# Some people use a C++ compiler to compile C.  Since we use `exit',
2585# in C++ we need to declare it.  In case someone uses the same compiler
2586# for both compiling C and C++ we need to have the C++ compiler decide
2587# the declaration of exit, since it's the most demanding environment.
2588cat >conftest.$ac_ext <<_ACEOF
2589#ifndef __cplusplus
2590  choke me
2591#endif
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595  (eval $ac_compile) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest.$ac_objext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  for ac_declaration in \
2616   '' \
2617   'extern "C" void std::exit (int) throw (); using std::exit;' \
2618   'extern "C" void std::exit (int); using std::exit;' \
2619   'extern "C" void exit (int) throw ();' \
2620   'extern "C" void exit (int);' \
2621   'void exit (int);'
2622do
2623  cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h.  */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h.  */
2629$ac_declaration
2630#include <stdlib.h>
2631int
2632main ()
2633{
2634exit (42);
2635  ;
2636  return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641  (eval $ac_compile) 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } &&
2648         { ac_try='test -z "$ac_c_werror_flag"
2649                         || test ! -s conftest.err'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; } &&
2655         { ac_try='test -s conftest.$ac_objext'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; }; then
2661  :
2662else
2663  echo "$as_me: failed program was:" >&5
2664sed 's/^/| /' conftest.$ac_ext >&5
2665
2666continue
2667fi
2668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669  cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675$ac_declaration
2676int
2677main ()
2678{
2679exit (42);
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693         { ac_try='test -z "$ac_c_werror_flag"
2694                         || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700         { ac_try='test -s conftest.$ac_objext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  break
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711fi
2712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713done
2714rm -f conftest*
2715if test -n "$ac_declaration"; then
2716  echo '#ifdef __cplusplus' >>confdefs.h
2717  echo $ac_declaration      >>confdefs.h
2718  echo '#endif'             >>confdefs.h
2719fi
2720
2721else
2722  echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733if test -z "$CC" ; then
2734  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2735echo "$as_me: error: Failed to find a C compiler!" >&2;}
2736   { (exit 1); exit 1; }; }
2737fi
2738# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2739case "$CC" in
2740  clang* ) ;;
2741  cl* | */cl* | CL* | */CL* )
2742    if test "$ac_cv_prog_cc_g" = yes ; then
2743      ac_cv_prog_cc_g=no
2744      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2745echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2746    fi ;;
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            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2860              coin_opt_cflags='-MD -O2'
2861              coin_dbg_cflags='-MDd'
2862            else
2863              coin_opt_cflags='-MT -O2'
2864              coin_dbg_cflags='-MTd'
2865            fi
2866            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2867            ;;
2868          icl* | */icl* | ICL* | */ICL*)
2869            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2870              coin_opt_cflags='-MD -Ox'
2871              coin_dbg_cflags='-MDd -debug'
2872            else
2873              coin_opt_cflags='-MT -Ox'
2874              coin_dbg_cflags='-MTd -debug'
2875            fi
2876            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2877            ;;
2878        esac
2879        ;;
2880      *-linux-*)
2881        case "$CC" in
2882          icc* | */icc*)
2883            coin_opt_cflags="-O3 -ip -mp1"
2884            coin_add_cflags=""
2885            coin_dbg_cflags="-g"
2886            # Check if -i_dynamic is necessary (for new glibc library)
2887            CFLAGS=
2888            cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h.  */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h.  */
2894
2895int
2896main ()
2897{
2898int i=0; i++;
2899  ;
2900  return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905  (eval $ac_link) 2>conftest.er1
2906  ac_status=$?
2907  grep -v '^ *+' conftest.er1 >conftest.err
2908  rm -f conftest.er1
2909  cat conftest.err >&5
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); } &&
2912         { ac_try='test -z "$ac_c_werror_flag"
2913                         || test ! -s conftest.err'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; } &&
2919         { ac_try='test -s conftest$ac_exeext'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; }; then
2925  :
2926else
2927  echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930coin_add_cflags="-i_dynamic $coin_add_cflags"
2931fi
2932rm -f conftest.err conftest.$ac_objext \
2933      conftest$ac_exeext conftest.$ac_ext
2934            ;;
2935          pgcc* | */pgcc*)
2936            coin_opt_cflags="-fast"
2937            coin_add_cflags="-Kieee -pc 64"
2938            coin_dbg_cflags="-g"
2939            ;;
2940        esac
2941        ;;
2942      *-ibm-*)
2943        case "$CC" in
2944          xlc* | */xlc* | mpxlc* | */mpxlc*)
2945            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2946            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2947            coin_dbg_cflags="-g"
2948          ;;
2949        esac
2950        ;;
2951      *-hp-*)
2952        coin_opt_cflags="-O"
2953        coin_add_cflags="-Ae"
2954        coin_dbg_cflags="-g"
2955        ;;
2956      *-*-solaris*)
2957        coin_opt_cflags="-xO4"
2958        coin_dbg_cflags="-g"
2959        ;;
2960      *-sgi-*)
2961        coin_opt_cflags="-O -OPT:Olimit=0"
2962        coin_dbg_cflags="-g"
2963        ;;
2964    esac
2965  fi
2966
2967  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2968    coin_dbg_cflags="-g"
2969  fi
2970
2971  if test -z "$coin_opt_cflags"; then
2972    # Try if -O option works if nothing else is set
2973    CFLAGS="-O"
2974    cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h.  */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984int i=0; i++;
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext conftest$ac_exeext
2990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2991  (eval $ac_link) 2>conftest.er1
2992  ac_status=$?
2993  grep -v '^ *+' conftest.er1 >conftest.err
2994  rm -f conftest.er1
2995  cat conftest.err >&5
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); } &&
2998         { ac_try='test -z "$ac_c_werror_flag"
2999                         || test ! -s conftest.err'
3000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001  (eval $ac_try) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; } &&
3005         { ac_try='test -s conftest$ac_exeext'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; }; then
3011  coin_opt_cflags="-O"
3012else
3013  echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016fi
3017rm -f conftest.err conftest.$ac_objext \
3018      conftest$ac_exeext conftest.$ac_ext
3019  fi
3020
3021  # if PM doesn't want the warning messages, take them out
3022  if test x"$coin_skip_warn_cflags" = xyes; then
3023    coin_warn_cflags=
3024  fi
3025
3026  if test x${DBG_CFLAGS+set} != xset; then
3027    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3028  fi
3029  if test x${OPT_CFLAGS+set} != xset; then
3030    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3031  fi
3032
3033  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3034  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3035
3036  if test "$coin_debug_compile" = "true"; then
3037    CFLAGS="$DBG_CFLAGS"
3038  else
3039    CFLAGS="$OPT_CFLAGS"
3040  fi
3041else
3042  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3043  if test x${DBG_CFLAGS+set} != xset; then
3044    DBG_CFLAGS="$CFLAGS"
3045  fi
3046  if test x${OPT_CFLAGS+set} != xset; then
3047    OPT_CFLAGS="$CFLAGS"
3048  fi
3049fi
3050
3051# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3052
3053case "$CFLAGS" in
3054  *-mno-cygwin*)
3055    if test x${CPPFLAGS+set} != xset ; then
3056      CPPFLAGS="-mno-cygwin"
3057    else
3058      case "$CPPFLAGS" in
3059        *-mno-cygwin*)
3060          ;;
3061        *)
3062          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3063          ;;
3064      esac
3065    fi ;;
3066esac
3067
3068# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3069if test x$COIN_PRJCT != x; then
3070  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3071fi
3072
3073# Try if CFLAGS works
3074save_CFLAGS="$CFLAGS"
3075cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085int i=0; i++;
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext conftest$ac_exeext
3091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092  (eval $ac_link) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest$ac_exeext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  :
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117CFLAGS=
3118fi
3119rm -f conftest.err conftest.$ac_objext \
3120      conftest$ac_exeext conftest.$ac_ext
3121if test -z "$CFLAGS"; then
3122  { 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
3123echo "$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;}
3124  CFLAGS='-O'
3125  cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135int i=0; i++;
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext conftest$ac_exeext
3141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142  (eval $ac_link) 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -z "$ac_c_werror_flag"
3150                         || test ! -s conftest.err'
3151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152  (eval $ac_try) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; } &&
3156         { ac_try='test -s conftest$ac_exeext'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  :
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167CFLAGS=
3168fi
3169rm -f conftest.err conftest.$ac_objext \
3170      conftest$ac_exeext conftest.$ac_ext
3171  if test -z "$CFLAGS"; then
3172    { 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
3173echo "$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;}
3174  fi
3175fi
3176
3177{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3178echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3179
3180
3181if test x"$MPICC" = x; then :; else
3182  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3183echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3184  CC="$MPICC"
3185fi
3186
3187# Correct the LD variable if we are using the MS or Intel-windows compiler
3188case "$CC" in
3189  clang* ) ;;
3190  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3191    case $build in
3192  *-mingw*)
3193    if test "${LD+set}" = set; then :; else
3194      LD=link
3195    fi
3196    ;;
3197 esac
3198 case $enable_doscompile in
3199   msvc)
3200     if test "x${LD+set}" = xset; then :; else
3201       LD=link
3202     fi
3203     ;;
3204 esac
3205
3206    ;;
3207esac
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215
3216
3217# Check if pkg-config is available (to setup addlibs file)
3218
3219
3220# Check whether --enable-pkg-config or --disable-pkg-config was given.
3221if test "${enable_pkg_config+set}" = set; then
3222  enableval="$enable_pkg_config"
3223  use_pkgconfig="$enableval"
3224else
3225  if test x$coin_cc_is_cl = xtrue; then
3226     use_pkgconfig=no
3227   else
3228     use_pkgconfig=yes
3229   fi
3230fi;
3231
3232if test $use_pkgconfig = yes ; then
3233  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3234    if test -n "$ac_tool_prefix"; then
3235  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3236set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3237echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3240  echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242  if test -n "$PKG_CONFIG"; then
3243  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250  for ac_exec_ext in '' $ac_executable_extensions; do
3251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254    break 2
3255  fi
3256done
3257done
3258
3259fi
3260fi
3261PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3262if test -n "$PKG_CONFIG"; then
3263  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3264echo "${ECHO_T}$PKG_CONFIG" >&6
3265else
3266  echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268fi
3269
3270fi
3271if test -z "$ac_cv_prog_PKG_CONFIG"; then
3272  ac_ct_PKG_CONFIG=$PKG_CONFIG
3273  # Extract the first word of "pkg-config", so it can be a program name with args.
3274set dummy pkg-config; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  if test -n "$ac_ct_PKG_CONFIG"; then
3281  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288  for ac_exec_ext in '' $ac_executable_extensions; do
3289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295done
3296
3297fi
3298fi
3299ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3300if test -n "$ac_ct_PKG_CONFIG"; then
3301  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3302echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3303else
3304  echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
3307
3308  PKG_CONFIG=$ac_ct_PKG_CONFIG
3309else
3310  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3311fi
3312
3313  fi
3314  if test -n "$PKG_CONFIG"; then
3315    _pkg_min_version=0.16.0
3316    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3317echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3318    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3319      echo "$as_me:$LINENO: result: yes" >&5
3320echo "${ECHO_T}yes" >&6
3321    else
3322      echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324      PKG_CONFIG=""
3325    fi
3326  fi
3327
3328  # check if pkg-config supports the short-errors flag
3329  if test -n "$PKG_CONFIG" && \
3330    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3331    pkg_short_errors=" --short-errors "
3332  else
3333    pkg_short_errors=""
3334  fi
3335fi
3336
3337
3338
3339if test -n "$PKG_CONFIG"; then
3340  COIN_HAS_PKGCONFIG_TRUE=
3341  COIN_HAS_PKGCONFIG_FALSE='#'
3342else
3343  COIN_HAS_PKGCONFIG_TRUE='#'
3344  COIN_HAS_PKGCONFIG_FALSE=
3345fi
3346
3347
3348
3349# assemble pkg-config search path for installed projects
3350COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3351
3352# 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
3353# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3354# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3355if test "x${prefix}" = xNONE ; then
3356  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3357else
3358  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3359fi
3360
3361
3362# Check whether --with-coin-instdir or --without-coin-instdir was given.
3363if test "${with_coin_instdir+set}" = set; then
3364  withval="$with_coin_instdir"
3365  if test -d "$withval"; then : ; else
3366     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3367echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3368   { (exit 1); exit 1; }; }
3369   fi
3370   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3371
3372fi;
3373
3374
3375
3376# assemble additional pkg-config search paths for uninstalled projects
3377if test x$coin_projectdir = xyes ; then
3378  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3379  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3380  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3381  # 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)
3382  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3383  if test -e ../coin_subdirs.txt ; then
3384    for i in `cat ../coin_subdirs.txt` ; do
3385      if test -d ../$i ; then
3386        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3387      fi
3388      if test -d ../$i/pkgconfig ; then
3389        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3390      fi
3391    done
3392  fi
3393
3394  if test -e ../../coin_subdirs.txt ; then
3395    for i in `cat ../../coin_subdirs.txt` ; do
3396      if test -d ../../$i ; then
3397        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3398      fi
3399      if test -d ../../$i/pkgconfig ; then
3400        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3401      fi
3402    done
3403  fi
3404
3405
3406fi
3407
3408if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3409  { 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
3410echo "$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;}
3411fi
3412
3413
3414
3415# Initialize automake
3416{
3417
3418
3419
3420# START
3421
3422coin_disable_shared=no
3423# Test if force_shared has been set
3424if test "x" = xforce_shared; then
3425  if test x$enable_shared = xno; then
3426    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3427echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3428   { (exit 1); exit 1; }; }
3429  fi
3430  enable_shared=yes;
3431else
3432  # On Cygwin and AIX, building DLLs doesn't work
3433  case $build in
3434    *-cygwin*)
3435      coin_disable_shared=yes
3436      platform=Cygwin
3437    ;;
3438    *-aix*)
3439      coin_disable_shared=yes
3440      platform=AIX
3441    ;;
3442    *-mingw*)
3443      coin_disable_shared=yes
3444      platform="Msys"
3445#      case "$CXX" in
3446#        cl*)
3447#          coin_disable_shared=yes
3448#          platform="Msys with cl"
3449#      ;;
3450#      esac
3451    ;;
3452  esac
3453fi
3454if test x"$coin_disable_shared" = xyes; then
3455  if test x"$enable_shared" = xyes; then
3456    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3457echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3458  else
3459    # we don't disable shared, because it was not selected anyway
3460    coin_disable_shared=no
3461  fi
3462  enable_shared=no
3463fi
3464# By default, we only want the shared objects to be compiled
3465# Check whether --enable-static or --disable-static was given.
3466if test "${enable_static+set}" = set; then
3467  enableval="$enable_static"
3468  p=${PACKAGE-default}
3469    case $enableval in
3470    yes) enable_static=yes ;;
3471    no) enable_static=no ;;
3472    *)
3473     enable_static=no
3474      # Look at the argument we got.  We use all the common list separators.
3475      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3476      for pkg in $enableval; do
3477        IFS="$lt_save_ifs"
3478        if test "X$pkg" = "X$p"; then
3479          enable_static=yes
3480        fi
3481      done
3482      IFS="$lt_save_ifs"
3483      ;;
3484    esac
3485else
3486  enable_static=no
3487fi;
3488
3489
3490
3491
3492# Initialize automake
3493echo "$as_me:$LINENO: checking for egrep" >&5
3494echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3495if test "${ac_cv_prog_egrep+set}" = set; then
3496  echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3499    then ac_cv_prog_egrep='grep -E'
3500    else ac_cv_prog_egrep='egrep'
3501    fi
3502fi
3503echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3504echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3505 EGREP=$ac_cv_prog_egrep
3506
3507
3508echo "$as_me:$LINENO: checking whether ln -s works" >&5
3509echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3510LN_S=$as_ln_s
3511if test "$LN_S" = "ln -s"; then
3512  echo "$as_me:$LINENO: result: yes" >&5
3513echo "${ECHO_T}yes" >&6
3514else
3515  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3516echo "${ECHO_T}no, using $LN_S" >&6
3517fi
3518
3519am__api_version="1.9"
3520# Find a good install program.  We prefer a C program (faster),
3521# so one script is as good as another.  But avoid the broken or
3522# incompatible versions:
3523# SysV /etc/install, /usr/sbin/install
3524# SunOS /usr/etc/install
3525# IRIX /sbin/install
3526# AIX /bin/install
3527# AmigaOS /C/install, which installs bootblocks on floppy discs
3528# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3529# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3530# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3531# OS/2's system install, which has a completely different semantic
3532# ./install, which can be erroneously created by make from ./install.sh.
3533echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3534echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3535if test -z "$INSTALL"; then
3536if test "${ac_cv_path_install+set}" = set; then
3537  echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542  IFS=$as_save_IFS
3543  test -z "$as_dir" && as_dir=.
3544  # Account for people who put trailing slashes in PATH elements.
3545case $as_dir/ in
3546  ./ | .// | /cC/* | \
3547  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3548  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3549  /usr/ucb/* ) ;;
3550  *)
3551    # OSF1 and SCO ODT 3.0 have their own names for install.
3552    # Don't use installbsd from OSF since it installs stuff as root
3553    # by default.
3554    for ac_prog in ginstall scoinst install; do
3555      for ac_exec_ext in '' $ac_executable_extensions; do
3556        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3557          if test $ac_prog = install &&
3558            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559            # AIX install.  It has an incompatible calling convention.
3560            :
3561          elif test $ac_prog = install &&
3562            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3563            # program-specific install script used by HP pwplus--don't use.
3564            :
3565          else
3566            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3567            break 3
3568          fi
3569        fi
3570      done
3571    done
3572    ;;
3573esac
3574done
3575
3576
3577fi
3578  if test "${ac_cv_path_install+set}" = set; then
3579    INSTALL=$ac_cv_path_install
3580  else
3581    # As a last resort, use the slow shell script.  We don't cache a
3582    # path for INSTALL within a source directory, because that will
3583    # break other packages using the cache if that directory is
3584    # removed, or if the path is relative.
3585    INSTALL=$ac_install_sh
3586  fi
3587fi
3588echo "$as_me:$LINENO: result: $INSTALL" >&5
3589echo "${ECHO_T}$INSTALL" >&6
3590
3591# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3592# It thinks the first close brace ends the variable substitution.
3593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3594
3595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3596
3597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3598
3599echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3600echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3601# Just in case
3602sleep 1
3603echo timestamp > conftest.file
3604# Do `set' in a subshell so we don't clobber the current shell's
3605# arguments.  Must try -L first in case configure is actually a
3606# symlink; some systems play weird games with the mod time of symlinks
3607# (eg FreeBSD returns the mod time of the symlink's containing
3608# directory).
3609if (
3610   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3611   if test "$*" = "X"; then
3612      # -L didn't work.
3613      set X `ls -t $srcdir/configure conftest.file`
3614   fi
3615   rm -f conftest.file
3616   if test "$*" != "X $srcdir/configure conftest.file" \
3617      && test "$*" != "X conftest.file $srcdir/configure"; then
3618
3619      # If neither matched, then we have a broken ls.  This can happen
3620      # if, for instance, CONFIG_SHELL is bash and it inherits a
3621      # broken ls alias from the environment.  This has actually
3622      # happened.  Such a system could not be considered "sane".
3623      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3624alias in your environment" >&5
3625echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3626alias in your environment" >&2;}
3627   { (exit 1); exit 1; }; }
3628   fi
3629
3630   test "$2" = conftest.file
3631   )
3632then
3633   # Ok.
3634   :
3635else
3636   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3637Check your system clock" >&5
3638echo "$as_me: error: newly created file is older than distributed files!
3639Check your system clock" >&2;}
3640   { (exit 1); exit 1; }; }
3641fi
3642echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644test "$program_prefix" != NONE &&
3645  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3646# Use a double $ so make ignores it.
3647test "$program_suffix" != NONE &&
3648  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3649# Double any \ or $.  echo might interpret backslashes.
3650# By default was `s,x,x', remove it if useless.
3651cat <<\_ACEOF >conftest.sed
3652s/[\\$]/&&/g;s/;s,x,x,$//
3653_ACEOF
3654program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3655rm conftest.sed
3656
3657# expand $ac_aux_dir to an absolute path
3658am_aux_dir=`cd $ac_aux_dir && pwd`
3659
3660test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3661# Use eval to expand $SHELL
3662if eval "$MISSING --run true"; then
3663  am_missing_run="$MISSING --run "
3664else
3665  am_missing_run=
3666  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3667echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3668fi
3669
3670if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3671  # We used to keeping the `.' as first argument, in order to
3672  # allow $(mkdir_p) to be used without argument.  As in
3673  #   $(mkdir_p) $(somedir)
3674  # where $(somedir) is conditionally defined.  However this is wrong
3675  # for two reasons:
3676  #  1. if the package is installed by a user who cannot write `.'
3677  #     make install will fail,
3678  #  2. the above comment should most certainly read
3679  #     $(mkdir_p) $(DESTDIR)$(somedir)
3680  #     so it does not work when $(somedir) is undefined and
3681  #     $(DESTDIR) is not.
3682  #  To support the latter case, we have to write
3683  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3684  #  so the `.' trick is pointless.
3685  mkdir_p='mkdir -p --'
3686else
3687  # On NextStep and OpenStep, the `mkdir' command does not
3688  # recognize any option.  It will interpret all options as
3689  # directories to create, and then abort because `.' already
3690  # exists.
3691  for d in ./-p ./--version;
3692  do
3693    test -d $d && rmdir $d
3694  done
3695  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3696  if test -f "$ac_aux_dir/mkinstalldirs"; then
3697    mkdir_p='$(mkinstalldirs)'
3698  else
3699    mkdir_p='$(install_sh) -d'
3700  fi
3701fi
3702
3703for ac_prog in gawk mawk nawk awk
3704do
3705  # Extract the first word of "$ac_prog", so it can be a program name with args.
3706set dummy $ac_prog; ac_word=$2
3707echo "$as_me:$LINENO: checking for $ac_word" >&5
3708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709if test "${ac_cv_prog_AWK+set}" = set; then
3710  echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712  if test -n "$AWK"; then
3713  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3714else
3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH
3717do
3718  IFS=$as_save_IFS
3719  test -z "$as_dir" && as_dir=.
3720  for ac_exec_ext in '' $ac_executable_extensions; do
3721  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722    ac_cv_prog_AWK="$ac_prog"
3723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724    break 2
3725  fi
3726done
3727done
3728
3729fi
3730fi
3731AWK=$ac_cv_prog_AWK
3732if test -n "$AWK"; then
3733  echo "$as_me:$LINENO: result: $AWK" >&5
3734echo "${ECHO_T}$AWK" >&6
3735else
3736  echo "$as_me:$LINENO: result: no" >&5
3737echo "${ECHO_T}no" >&6
3738fi
3739
3740  test -n "$AWK" && break
3741done
3742
3743echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3744echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3745set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3746if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  cat >conftest.make <<\_ACEOF
3750all:
3751        @echo 'ac_maketemp="$(MAKE)"'
3752_ACEOF
3753# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3754eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3755if test -n "$ac_maketemp"; then
3756  eval ac_cv_prog_make_${ac_make}_set=yes
3757else
3758  eval ac_cv_prog_make_${ac_make}_set=no
3759fi
3760rm -f conftest.make
3761fi
3762if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3763  echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
3765  SET_MAKE=
3766else
3767  echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769  SET_MAKE="MAKE=${MAKE-make}"
3770fi
3771
3772rm -rf .tst 2>/dev/null
3773mkdir .tst 2>/dev/null
3774if test -d .tst; then
3775  am__leading_dot=.
3776else
3777  am__leading_dot=_
3778fi
3779rmdir .tst 2>/dev/null
3780
3781DEPDIR="${am__leading_dot}deps"
3782
3783          ac_config_commands="$ac_config_commands depfiles"
3784
3785
3786am_make=${MAKE-make}
3787cat > confinc << 'END'
3788am__doit:
3789        @echo done
3790.PHONY: am__doit
3791END
3792# If we don't find an include directive, just comment out the code.
3793echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3794echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3795am__include="#"
3796am__quote=
3797_am_result=none
3798# First try GNU make style include.
3799echo "include confinc" > confmf
3800# We grep out `Entering directory' and `Leaving directory'
3801# messages which can occur if `w' ends up in MAKEFLAGS.
3802# In particular we don't look at `^make:' because GNU make might
3803# be invoked under some other name (usually "gmake"), in which
3804# case it prints its new name instead of `make'.
3805if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3806   am__include=include
3807   am__quote=
3808   _am_result=GNU
3809fi
3810# Now try BSD make style include.
3811if test "$am__include" = "#"; then
3812   echo '.include "confinc"' > confmf
3813   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3814      am__include=.include
3815      am__quote="\""
3816      _am_result=BSD
3817   fi
3818fi
3819
3820
3821echo "$as_me:$LINENO: result: $_am_result" >&5
3822echo "${ECHO_T}$_am_result" >&6
3823rm -f confinc confmf
3824
3825# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3826if test "${enable_dependency_tracking+set}" = set; then
3827  enableval="$enable_dependency_tracking"
3828
3829fi;
3830if test "x$enable_dependency_tracking" != xno; then
3831  am_depcomp="$ac_aux_dir/depcomp"
3832  AMDEPBACKSLASH='\'
3833fi
3834
3835
3836if test "x$enable_dependency_tracking" != xno; then
3837  AMDEP_TRUE=
3838  AMDEP_FALSE='#'
3839else
3840  AMDEP_TRUE='#'
3841  AMDEP_FALSE=
3842fi
3843
3844
3845
3846
3847
3848
3849# AC_MSG_NOTICE([Beginning automake initialisation.])
3850# Stuff for automake
3851# test to see if srcdir already configured
3852if test "`cd $srcdir && pwd`" != "`pwd`" &&
3853   test -f $srcdir/config.status; then
3854  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3855echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3856   { (exit 1); exit 1; }; }
3857fi
3858
3859# test whether we have cygpath
3860if test -z "$CYGPATH_W"; then
3861  if (cygpath --version) >/dev/null 2>/dev/null; then
3862    CYGPATH_W='cygpath -w'
3863  else
3864    CYGPATH_W=echo
3865  fi
3866fi
3867
3868
3869# Define the identity of the package.
3870 PACKAGE='thirdpartymetis'
3871 VERSION='1.2'
3872
3873
3874cat >>confdefs.h <<_ACEOF
3875#define PACKAGE "$PACKAGE"
3876_ACEOF
3877
3878
3879cat >>confdefs.h <<_ACEOF
3880#define VERSION "$VERSION"
3881_ACEOF
3882
3883# Some tools Automake needs.
3884
3885ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3886
3887
3888AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3889
3890
3891AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3892
3893
3894AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3895
3896
3897MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3898
3899install_sh=${install_sh-"$am_aux_dir/install-sh"}
3900
3901# Installed binaries are usually stripped using `strip' when the user
3902# run `make install-strip'.  However `strip' might not be the right
3903# tool to use in cross-compilation environments, therefore Automake
3904# will honor the `STRIP' environment variable to overrule this program.
3905if test "$cross_compiling" != no; then
3906  if test -n "$ac_tool_prefix"; then
3907  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3908set dummy ${ac_tool_prefix}strip; ac_word=$2
3909echo "$as_me:$LINENO: checking for $ac_word" >&5
3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911if test "${ac_cv_prog_STRIP+set}" = set; then
3912  echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914  if test -n "$STRIP"; then
3915  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  for ac_exec_ext in '' $ac_executable_extensions; do
3923  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926    break 2
3927  fi
3928done
3929done
3930
3931fi
3932fi
3933STRIP=$ac_cv_prog_STRIP
3934if test -n "$STRIP"; then
3935  echo "$as_me:$LINENO: result: $STRIP" >&5
3936echo "${ECHO_T}$STRIP" >&6
3937else
3938  echo "$as_me:$LINENO: result: no" >&5
3939echo "${ECHO_T}no" >&6
3940fi
3941
3942fi
3943if test -z "$ac_cv_prog_STRIP"; then
3944  ac_ct_STRIP=$STRIP
3945  # Extract the first word of "strip", so it can be a program name with args.
3946set dummy strip; ac_word=$2
3947echo "$as_me:$LINENO: checking for $ac_word" >&5
3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3950  echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952  if test -n "$ac_ct_STRIP"; then
3953  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960  for ac_exec_ext in '' $ac_executable_extensions; do
3961  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962    ac_cv_prog_ac_ct_STRIP="strip"
3963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964    break 2
3965  fi
3966done
3967done
3968
3969  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3970fi
3971fi
3972ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3973if test -n "$ac_ct_STRIP"; then
3974  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3975echo "${ECHO_T}$ac_ct_STRIP" >&6
3976else
3977  echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
3979fi
3980
3981  STRIP=$ac_ct_STRIP
3982else
3983  STRIP="$ac_cv_prog_STRIP"
3984fi
3985
3986fi
3987INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3988
3989# We need awk for the "check" target.  The system "awk" is bad on
3990# some platforms.
3991# Always define AMTAR for backward compatibility.
3992
3993AMTAR=${AMTAR-"${am_missing_run}tar"}
3994
3995am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3996
3997
3998
3999
4000depcc="$CC"   am_compiler_list=
4001
4002echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4003echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4004if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4008  # We make a subdir and do the tests there.  Otherwise we can end up
4009  # making bogus files that we don't know about and never remove.  For
4010  # instance it was reported that on HP-UX the gcc test will end up
4011  # making a dummy file named `D' -- because `-MD' means `put the output
4012  # in D'.
4013  mkdir conftest.dir
4014  # Copy depcomp to subdir because otherwise we won't find it if we're
4015  # using a relative directory.
4016  cp "$am_depcomp" conftest.dir
4017  cd conftest.dir
4018  # We will build objects and dependencies in a subdirectory because
4019  # it helps to detect inapplicable dependency modes.  For instance
4020  # both Tru64's cc and ICC support -MD to output dependencies as a
4021  # side effect of compilation, but ICC will put the dependencies in
4022  # the current directory while Tru64 will put them in the object
4023  # directory.
4024  mkdir sub
4025
4026  am_cv_CC_dependencies_compiler_type=none
4027  if test "$am_compiler_list" = ""; then
4028     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4029  fi
4030  for depmode in $am_compiler_list; do
4031    # Setup a source with many dependencies, because some compilers
4032    # like to wrap large dependency lists on column 80 (with \), and
4033    # we should not choose a depcomp mode which is confused by this.
4034    #
4035    # We need to recreate these files for each test, as the compiler may
4036    # overwrite some of them when testing with obscure command lines.
4037    # This happens at least with the AIX C compiler.
4038    : > sub/conftest.c
4039    for i in 1 2 3 4 5 6; do
4040      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4041      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4042      # Solaris 8's {/usr,}/bin/sh.
4043      touch sub/conftst$i.h
4044    done
4045    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4046
4047    case $depmode in
4048    nosideeffect)
4049      # after this tag, mechanisms are not by side-effect, so they'll
4050      # only be used when explicitly requested
4051      if test "x$enable_dependency_tracking" = xyes; then
4052        continue
4053      else
4054        break
4055      fi
4056      ;;
4057    none) break ;;
4058    esac
4059    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4060    # mode.  It turns out that the SunPro C++ compiler does not properly
4061    # handle `-M -o', and we need to detect this.
4062    if depmode=$depmode \
4063       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4064       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4065       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4066         >/dev/null 2>conftest.err &&
4067       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4068       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4069       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4070      # icc doesn't choke on unknown options, it will just issue warnings
4071      # or remarks (even with -Werror).  So we grep stderr for any message
4072      # that says an option was ignored or not supported.
4073      # When given -MP, icc 7.0 and 7.1 complain thusly:
4074      #   icc: Command line warning: ignoring option '-M'; no argument required
4075      # The diagnosis changed in icc 8.0:
4076      #   icc: Command line remark: option '-MP' not supported
4077      if (grep 'ignoring option' conftest.err ||
4078          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4079        am_cv_CC_dependencies_compiler_type=$depmode
4080        break
4081      fi
4082    fi
4083  done
4084
4085  cd ..
4086  rm -rf conftest.dir
4087else
4088  am_cv_CC_dependencies_compiler_type=none
4089fi
4090
4091fi
4092echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4093echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4094CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4095
4096
4097
4098if
4099  test "x$enable_dependency_tracking" != xno \
4100  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4101  am__fastdepCC_TRUE=
4102  am__fastdepCC_FALSE='#'
4103else
4104  am__fastdepCC_TRUE='#'
4105  am__fastdepCC_FALSE=
4106fi
4107
4108
4109
4110echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4111echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4112    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4113if test "${enable_maintainer_mode+set}" = set; then
4114  enableval="$enable_maintainer_mode"
4115  USE_MAINTAINER_MODE=$enableval
4116else
4117  USE_MAINTAINER_MODE=no
4118fi;
4119  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4120echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4121
4122
4123if test $USE_MAINTAINER_MODE = yes; then
4124  MAINTAINER_MODE_TRUE=
4125  MAINTAINER_MODE_FALSE='#'
4126else
4127  MAINTAINER_MODE_TRUE='#'
4128  MAINTAINER_MODE_FALSE=
4129fi
4130
4131  MAINT=$MAINTAINER_MODE_TRUE
4132
4133
4134
4135coin_have_externals=no
4136if test "$enable_maintainer_mode" = yes; then
4137
4138  # If maintainer mode is chosen, we make sure that the correct versions
4139  # of the tools are used, and that we know where libtool.m4 is (to
4140  # recreate acinclude.m4)
4141
4142
4143  LIBTOOLM4=
4144  # Normally, $HOME
4145  AUTOTOOLS_DFLT=$HOME
4146
4147  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4148echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4149if test "${ac_cv_use_correct_autotools+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152  ac_cv_use_correct_autotools=check
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4155echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4156
4157  if test $ac_cv_use_correct_autotools = check; then
4158    ac_cv_use_correct_autotools=yes
4159    # Check if we have autoconf
4160    # Extract the first word of "autoconf", so it can be a program name with args.
4161set dummy autoconf; ac_word=$2
4162echo "$as_me:$LINENO: checking for $ac_word" >&5
4163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164if test "${ac_cv_prog_have_autoconf+set}" = set; then
4165  echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167  if test -n "$have_autoconf"; then
4168  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175  for ac_exec_ext in '' $ac_executable_extensions; do
4176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177    ac_cv_prog_have_autoconf="yes"
4178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182done
4183
4184  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4185fi
4186fi
4187have_autoconf=$ac_cv_prog_have_autoconf
4188if test -n "$have_autoconf"; then
4189  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4190echo "${ECHO_T}$have_autoconf" >&6
4191else
4192  echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194fi
4195
4196    if test $have_autoconf = no; then
4197      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4198echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4199   { (exit 1); exit 1; }; }
4200    fi
4201
4202    # Check whether autoconf is the correct version
4203    correct_version='2.59'
4204    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4205    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4206echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4207    autoconf --version > confauto.out 2>&1
4208    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4209      echo "$as_me:$LINENO: result: yes" >&5
4210echo "${ECHO_T}yes" >&6
4211    else
4212      rm -f confauto.out
4213      echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
4215      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4216echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4217   { (exit 1); exit 1; }; }
4218    fi
4219    rm -f confauto.out
4220
4221    # Check if the executable autoconf is picked up from the correct location
4222    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4223echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4224    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4225    autoconf_dir=`cd $autoconf_dir; pwd`
4226    if test x$AUTOTOOLS_DIR = x; then
4227      want_dir=$AUTOTOOLS_DFLT/bin
4228    else
4229      want_dir=$AUTOTOOLS_DIR/bin
4230    fi
4231    if test $autoconf_dir = `cd $want_dir; pwd`; then
4232      echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6
4234    else
4235      rm -f confauto.out
4236      echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4239echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4240   { (exit 1); exit 1; }; }
4241    fi
4242
4243    # Check if we have automake
4244    # Extract the first word of "automake", so it can be a program name with args.
4245set dummy automake; ac_word=$2
4246echo "$as_me:$LINENO: checking for $ac_word" >&5
4247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248if test "${ac_cv_prog_have_automake+set}" = set; then
4249  echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251  if test -n "$have_automake"; then
4252  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259  for ac_exec_ext in '' $ac_executable_extensions; do
4260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261    ac_cv_prog_have_automake="yes"
4262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266done
4267
4268  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4269fi
4270fi
4271have_automake=$ac_cv_prog_have_automake
4272if test -n "$have_automake"; then
4273  echo "$as_me:$LINENO: result: $have_automake" >&5
4274echo "${ECHO_T}$have_automake" >&6
4275else
4276  echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278fi
4279
4280    if test $have_automake = no; then
4281      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4282echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4283   { (exit 1); exit 1; }; }
4284    fi
4285
4286    # Check whether automake is the correct version
4287    correct_version='1.9.6'
4288    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4289    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4290echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4291    automake --version > confauto.out 2>&1
4292    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4293      echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
4295    else
4296      rm -f confauto.out
4297      echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
4299      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4300echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4301   { (exit 1); exit 1; }; }
4302    fi
4303    rm -f confauto.out
4304
4305    # Check if the executable automake is picked up from the correct location
4306    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4307echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4308    automake_dir=`which automake | sed -e 's=/automake=='`
4309    automake_dir=`cd $automake_dir; pwd`
4310    if test x$AUTOTOOLS_DIR = x; then
4311      want_dir=$AUTOTOOLS_DFLT/bin
4312    else
4313      want_dir=$AUTOTOOLS_DIR/bin
4314    fi
4315    if test $automake_dir = `cd $want_dir; pwd`; then
4316      echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318    else
4319      rm -f confauto.out
4320      echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4323echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4324   { (exit 1); exit 1; }; }
4325    fi
4326
4327    # Check if this is the correct version of libtool (with escaped dots)
4328    if test x$AUTOTOOLS_DIR = x; then
4329      want_dir=$AUTOTOOLS_DFLT/share
4330    else
4331      want_dir=$AUTOTOOLS_DIR/share
4332    fi
4333    correct_version='1.5.22'
4334    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4335    if test -r $want_dir/libtool/ltmain.sh; then
4336  have_ltmain=yes
4337  :
4338else
4339  have_ltmain=no
4340  :
4341fi
4342
4343    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4344echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4345    if test $have_ltmain = yes; then
4346    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4347        echo "$as_me:$LINENO: result: yes" >&5
4348echo "${ECHO_T}yes" >&6
4349      else
4350        echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
4352        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4353echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4354   { (exit 1); exit 1; }; }
4355      fi
4356    else
4357      echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4359      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4360echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4361   { (exit 1); exit 1; }; }
4362    fi
4363  fi
4364
4365  # Check if we can find the libtool file
4366  if test x$AUTOTOOLS_DIR = x; then
4367    want_dir=$AUTOTOOLS_DFLT/share
4368  else
4369    want_dir=$AUTOTOOLS_DIR/share
4370  fi
4371  if test -r $want_dir/aclocal/libtool.m4; then
4372  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4373  :
4374else
4375  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4376echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4377   { (exit 1); exit 1; }; }
4378  :
4379fi
4380
4381
4382  # Check if we have an Dependencies file
4383  if test -r $srcdir/Dependencies; then
4384    coin_have_externals=yes
4385  fi
4386  # Check if subversion is installed and understands https
4387  # Extract the first word of "svn", so it can be a program name with args.
4388set dummy svn; ac_word=$2
4389echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391if test "${ac_cv_prog_have_svn+set}" = set; then
4392  echo $ECHO_N "(cached) $ECHO_C" >&6
4393else
4394  if test -n "$have_svn"; then
4395  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400  IFS=$as_save_IFS
4401  test -z "$as_dir" && as_dir=.
4402  for ac_exec_ext in '' $ac_executable_extensions; do
4403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404    ac_cv_prog_have_svn="yes"
4405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406    break 2
4407  fi
4408done
4409done
4410
4411  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4412fi
4413fi
4414have_svn=$ac_cv_prog_have_svn
4415if test -n "$have_svn"; then
4416  echo "$as_me:$LINENO: result: $have_svn" >&5
4417echo "${ECHO_T}$have_svn" >&6
4418else
4419  echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6
4421fi
4422
4423  if test x$have_svn = xyes; then
4424    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4425echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4426if test "${ac_cv_svn_understands_https+set}" = set; then
4427  echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429  svn --version > confauto.out 2>&1
4430                    if $EGREP https confauto.out >/dev/null 2>&1; then
4431                      ac_cv_svn_understands_https=yes
4432                    else
4433                      ac_cv_svn_understands_https=no
4434                      have_svn=no
4435                      ac_cv_prog_have_svn=no
4436                    fi
4437                    rm -f confauto.out
4438fi
4439echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4440echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4441  fi
4442
4443  # Find the location of the BuildTools directory
4444  BUILDTOOLSDIR=
4445  if test -r $srcdir/BuildTools/coin.m4; then
4446    BUILDTOOLSDIR=$srcdir/BuildTools
4447  else
4448    if test -r $srcdir/../BuildTools/coin.m4; then
4449      BUILDTOOLSDIR=$srcdir/../BuildTools
4450    else
4451      if test -r $srcdir/../../BuildTools/coin.m4; then
4452        BUILDTOOLSDIR=$srcdir/../../BuildTools
4453      else
4454        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4455echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4456   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4457      fi
4458    fi
4459  fi
4460
4461
4462  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4463  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4464    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4465  fi
4466
4467  # The following variable is set to the name of the directory where
4468  # the autotool scripts are located
4469
4470  AUX_DIR=$ac_aux_dir
4471fi
4472
4473# helpful variable for the base directory of this package
4474abs_source_dir=`cd $srcdir; pwd`
4475
4476
4477# Stuff for example Makefiles
4478if test x$prefix = xNONE; then
4479  full_prefix=$ac_default_prefix
4480else
4481  full_prefix=$prefix
4482fi
4483full_prefix=`cd $full_prefix ; pwd`
4484
4485abs_lib_dir=$full_prefix/lib
4486
4487abs_include_dir=$full_prefix/include
4488
4489abs_bin_dir=$full_prefix/bin
4490
4491
4492
4493if test $coin_have_externals = yes && test x$have_svn = xyes; then
4494  HAVE_EXTERNALS_TRUE=
4495  HAVE_EXTERNALS_FALSE='#'
4496else
4497  HAVE_EXTERNALS_TRUE='#'
4498  HAVE_EXTERNALS_FALSE=
4499fi
4500
4501
4502# AC_MSG_NOTICE([End automake initialisation.])
4503
4504
4505
4506LIBTOOL=
4507if test -r ../libtool; then
4508  coin_config_dir=..
4509  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4510fi
4511if test "x$LIBTOOL" = x; then
4512  if test -r ../../libtool; then
4513    coin_config_dir=../..
4514    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4515  fi
4516fi
4517
4518if test "x$LIBTOOL" = x; then
4519# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4520  # Stuff for libtool
4521  # Check whether --enable-shared or --disable-shared was given.
4522if test "${enable_shared+set}" = set; then
4523  enableval="$enable_shared"
4524  p=${PACKAGE-default}
4525    case $enableval in
4526    yes) enable_shared=yes ;;
4527    no) enable_shared=no ;;
4528    *)
4529      enable_shared=no
4530      # Look at the argument we got.  We use all the common list separators.
4531      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4532      for pkg in $enableval; do
4533        IFS="$lt_save_ifs"
4534        if test "X$pkg" = "X$p"; then
4535          enable_shared=yes
4536        fi
4537      done
4538      IFS="$lt_save_ifs"
4539      ;;
4540    esac
4541else
4542  enable_shared=yes
4543fi;
4544
4545# Check whether --enable-fast-install or --disable-fast-install was given.
4546if test "${enable_fast_install+set}" = set; then
4547  enableval="$enable_fast_install"
4548  p=${PACKAGE-default}
4549    case $enableval in
4550    yes) enable_fast_install=yes ;;
4551    no) enable_fast_install=no ;;
4552    *)
4553      enable_fast_install=no
4554      # Look at the argument we got.  We use all the common list separators.
4555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4556      for pkg in $enableval; do
4557        IFS="$lt_save_ifs"
4558        if test "X$pkg" = "X$p"; then
4559          enable_fast_install=yes
4560        fi
4561      done
4562      IFS="$lt_save_ifs"
4563      ;;
4564    esac
4565else
4566  enable_fast_install=yes
4567fi;
4568
4569echo "$as_me:$LINENO: checking host system type" >&5
4570echo $ECHO_N "checking host system type... $ECHO_C" >&6
4571if test "${ac_cv_host+set}" = set; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  ac_cv_host_alias=$host_alias
4575test -z "$ac_cv_host_alias" &&
4576  ac_cv_host_alias=$ac_cv_build_alias
4577ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4578  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4579echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4580   { (exit 1); exit 1; }; }
4581
4582fi
4583echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4584echo "${ECHO_T}$ac_cv_host" >&6
4585host=$ac_cv_host
4586host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4587host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4588host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4589
4590
4591echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4592echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4593if test "${lt_cv_path_SED+set}" = set; then
4594  echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596  # Loop through the user's path and test for sed and gsed.
4597# Then use that list of sed's as ones to test for truncation.
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603  for lt_ac_prog in sed gsed; do
4604    for ac_exec_ext in '' $ac_executable_extensions; do
4605      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4606        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4607      fi
4608    done
4609  done
4610done
4611lt_ac_max=0
4612lt_ac_count=0
4613# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4614# along with /bin/sed that truncates output.
4615for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4616  test ! -f $lt_ac_sed && continue
4617  cat /dev/null > conftest.in
4618  lt_ac_count=0
4619  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4620  # Check for GNU sed and select it if it is found.
4621  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4622    lt_cv_path_SED=$lt_ac_sed
4623    break
4624  fi
4625  while true; do
4626    cat conftest.in conftest.in >conftest.tmp
4627    mv conftest.tmp conftest.in
4628    cp conftest.in conftest.nl
4629    echo >>conftest.nl
4630    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4631    cmp -s conftest.out conftest.nl || break
4632    # 10000 chars as input seems more than enough
4633    test $lt_ac_count -gt 10 && break
4634    lt_ac_count=`expr $lt_ac_count + 1`
4635    if test $lt_ac_count -gt $lt_ac_max; then
4636      lt_ac_max=$lt_ac_count
4637      lt_cv_path_SED=$lt_ac_sed
4638    fi
4639  done
4640done
4641
4642fi
4643
4644SED=$lt_cv_path_SED
4645echo "$as_me:$LINENO: result: $SED" >&5
4646echo "${ECHO_T}$SED" >&6
4647
4648
4649# Check whether --with-gnu-ld or --without-gnu-ld was given.
4650if test "${with_gnu_ld+set}" = set; then
4651  withval="$with_gnu_ld"
4652  test "$withval" = no || with_gnu_ld=yes
4653else
4654  with_gnu_ld=no
4655fi;
4656ac_prog=ld
4657if test "$GCC" = yes; then
4658  # Check if gcc -print-prog-name=ld gives a path.
4659  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4660echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4661  case $host in
4662  *-*-mingw*)
4663    # gcc leaves a trailing carriage return which upsets mingw
4664    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4665  *)
4666    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4667  esac
4668  case $ac_prog in
4669    # Accept absolute paths.
4670    [\\/]* | ?:[\\/]*)
4671      re_direlt='/[^/][^/]*/\.\./'
4672      # Canonicalize the pathname of ld
4673      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4674      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4675        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4676      done
4677      test -z "$LD" && LD="$ac_prog"
4678      ;;
4679  "")
4680    # If it fails, then pretend we aren't using GCC.
4681    ac_prog=ld
4682    ;;
4683  *)
4684    # If it is relative, then search for the first ld in PATH.
4685    with_gnu_ld=unknown
4686    ;;
4687  esac
4688elif test "$with_gnu_ld" = yes; then
4689  echo "$as_me:$LINENO: checking for GNU ld" >&5
4690echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4691else
4692  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4693echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4694fi
4695if test "${lt_cv_path_LD+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  if test -z "$LD"; then
4699  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4700  for ac_dir in $PATH; do
4701    IFS="$lt_save_ifs"
4702    test -z "$ac_dir" && ac_dir=.
4703    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4704      lt_cv_path_LD="$ac_dir/$ac_prog"
4705      # Check to see if the program is GNU ld.  I'd rather use --version,
4706      # but apparently some variants of GNU ld only accept -v.
4707      # Break only if it was the GNU/non-GNU ld that we prefer.
4708      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4709      *GNU* | *'with BFD'*)
4710        test "$with_gnu_ld" != no && break
4711        ;;
4712      *)
4713        test "$with_gnu_ld" != yes && break
4714        ;;
4715      esac
4716    fi
4717  done
4718  IFS="$lt_save_ifs"
4719else
4720  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4721fi
4722fi
4723
4724LD="$lt_cv_path_LD"
4725if test -n "$LD"; then
4726  echo "$as_me:$LINENO: result: $LD" >&5
4727echo "${ECHO_T}$LD" >&6
4728else
4729  echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731fi
4732test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4733echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4734   { (exit 1); exit 1; }; }
4735echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4736echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4737if test "${lt_cv_prog_gnu_ld+set}" = set; then
4738  echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4741case `$LD -v 2>&1 </dev/null` in
4742*GNU* | *'with BFD'*)
4743  lt_cv_prog_gnu_ld=yes
4744  ;;
4745*)
4746  lt_cv_prog_gnu_ld=no
4747  ;;
4748esac
4749fi
4750echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4751echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4752with_gnu_ld=$lt_cv_prog_gnu_ld
4753
4754
4755echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4756echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4757if test "${lt_cv_ld_reload_flag+set}" = set; then
4758  echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760  lt_cv_ld_reload_flag='-r'
4761fi
4762echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4763echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4764reload_flag=$lt_cv_ld_reload_flag
4765case $reload_flag in
4766"" | " "*) ;;
4767*) reload_flag=" $reload_flag" ;;
4768esac
4769reload_cmds='$LD$reload_flag -o $output$reload_objs'
4770case $host_os in
4771  darwin*)
4772    if test "$GCC" = yes; then
4773      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4774    else
4775      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776    fi
4777    ;;
4778esac
4779
4780echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4781echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4782if test "${lt_cv_path_NM+set}" = set; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785  if test -n "$NM"; then
4786  # Let the user override the test.
4787  lt_cv_path_NM="$NM"
4788else
4789  lt_nm_to_check="${ac_tool_prefix}nm"
4790  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4791    lt_nm_to_check="$lt_nm_to_check nm"
4792  fi
4793  for lt_tmp_nm in $lt_nm_to_check; do
4794    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4795    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4796      IFS="$lt_save_ifs"
4797      test -z "$ac_dir" && ac_dir=.
4798      tmp_nm="$ac_dir/$lt_tmp_nm"
4799      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4800        # Check to see if the nm accepts a BSD-compat flag.
4801        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4802        #   nm: unknown option "B" ignored
4803        # Tru64's nm complains that /dev/null is an invalid object file
4804        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4805        */dev/null* | *'Invalid file or object type'*)
4806          lt_cv_path_NM="$tmp_nm -B"
4807          break
4808          ;;
4809        *)
4810          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4811          */dev/null*)
4812            lt_cv_path_NM="$tmp_nm -p"
4813            break
4814            ;;
4815          *)
4816            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4817            continue # so that we can try to find one that supports BSD flags
4818            ;;
4819          esac
4820          ;;
4821        esac
4822      fi
4823    done
4824    IFS="$lt_save_ifs"
4825  done
4826  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4827fi
4828fi
4829echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4830echo "${ECHO_T}$lt_cv_path_NM" >&6
4831NM="$lt_cv_path_NM"
4832
4833echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4834echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4835if test "${lt_cv_deplibs_check_method+set}" = set; then
4836  echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838  lt_cv_file_magic_cmd='$MAGIC_CMD'
4839lt_cv_file_magic_test_file=
4840lt_cv_deplibs_check_method='unknown'
4841# Need to set the preceding variable on all platforms that support
4842# interlibrary dependencies.
4843# 'none' -- dependencies not supported.
4844# `unknown' -- same as none, but documents that we really don't know.
4845# 'pass_all' -- all dependencies passed with no checks.
4846# 'test_compile' -- check by making test program.
4847# 'file_magic [[regex]]' -- check by looking for files in library path
4848# which responds to the $file_magic_cmd with a given extended regex.
4849# If you have `file' or equivalent on your system and you're not sure
4850# whether `pass_all' will *always* work, you probably want this one.
4851
4852case $host_os in
4853aix4* | aix5*)
4854  lt_cv_deplibs_check_method=pass_all
4855  ;;
4856
4857beos*)
4858  lt_cv_deplibs_check_method=pass_all
4859  ;;
4860
4861bsdi[45]*)
4862  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4863  lt_cv_file_magic_cmd='/usr/bin/file -L'
4864  lt_cv_file_magic_test_file=/shlib/libc.so
4865  ;;
4866
4867cygwin*)
4868  # func_win32_libid is a shell function defined in ltmain.sh
4869  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4870  lt_cv_file_magic_cmd='func_win32_libid'
4871  ;;
4872
4873mingw* | pw32*)
4874  # Base MSYS/MinGW do not provide the 'file' command needed by
4875  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4876  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4877  lt_cv_file_magic_cmd='$OBJDUMP -f'
4878  ;;
4879
4880darwin* | rhapsody*)
4881  lt_cv_deplibs_check_method=pass_all
4882  ;;
4883
4884freebsd* | kfreebsd*-gnu | dragonfly*)
4885  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4886    case $host_cpu in
4887    i*86 )
4888      # Not sure whether the presence of OpenBSD here was a mistake.
4889      # Let's accept both of them until this is cleared up.
4890      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4891      lt_cv_file_magic_cmd=/usr/bin/file
4892      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4893      ;;
4894    esac
4895  else
4896    lt_cv_deplibs_check_method=pass_all
4897  fi
4898  ;;
4899
4900gnu*)
4901  lt_cv_deplibs_check_method=pass_all
4902  ;;
4903
4904hpux10.20* | hpux11*)
4905  lt_cv_file_magic_cmd=/usr/bin/file
4906  case $host_cpu in
4907  ia64*)
4908    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4909    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4910    ;;
4911  hppa*64*)
4912    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]'
4913    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4914    ;;
4915  *)
4916    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4917    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4918    ;;
4919  esac
4920  ;;
4921
4922interix3*)
4923  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4924  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4925  ;;
4926
4927irix5* | irix6* | nonstopux*)
4928  case $LD in
4929  *-32|*"-32 ") libmagic=32-bit;;
4930  *-n32|*"-n32 ") libmagic=N32;;
4931  *-64|*"-64 ") libmagic=64-bit;;
4932  *) libmagic=never-match;;
4933  esac
4934  lt_cv_deplibs_check_method=pass_all
4935  ;;
4936
4937# This must be Linux ELF.
4938linux*)
4939  lt_cv_deplibs_check_method=pass_all
4940  ;;
4941
4942netbsd*)
4943  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4944    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4945  else
4946    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4947  fi
4948  ;;
4949
4950newos6*)
4951  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4952  lt_cv_file_magic_cmd=/usr/bin/file
4953  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4954  ;;
4955
4956nto-qnx*)
4957  lt_cv_deplibs_check_method=unknown
4958  ;;
4959
4960openbsd*)
4961  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4962    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4963  else
4964    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4965  fi
4966  ;;
4967
4968osf3* | osf4* | osf5*)
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972solaris*)
4973  lt_cv_deplibs_check_method=pass_all
4974  ;;
4975
4976sysv4 | sysv4.3*)
4977  case $host_vendor in
4978  motorola)
4979    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]'
4980    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4981    ;;
4982  ncr)
4983    lt_cv_deplibs_check_method=pass_all
4984    ;;
4985  sequent)
4986    lt_cv_file_magic_cmd='/bin/file'
4987    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4988    ;;
4989  sni)
4990    lt_cv_file_magic_cmd='/bin/file'
4991    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4992    lt_cv_file_magic_test_file=/lib/libc.so
4993    ;;
4994  siemens)
4995    lt_cv_deplibs_check_method=pass_all
4996    ;;
4997  pc)
4998    lt_cv_deplibs_check_method=pass_all
4999    ;;
5000  esac
5001  ;;
5002
5003sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006esac
5007
5008fi
5009echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5010echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5011file_magic_cmd=$lt_cv_file_magic_cmd
5012deplibs_check_method=$lt_cv_deplibs_check_method
5013test -z "$deplibs_check_method" && deplibs_check_method=unknown
5014
5015
5016
5017
5018# If no C compiler was specified, use CC.
5019LTCC=${LTCC-"$CC"}
5020
5021# If no C compiler flags were specified, use CFLAGS.
5022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5023
5024# Allow CC to be a program name with arguments.
5025compiler=$CC
5026
5027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5028if test "${enable_libtool_lock+set}" = set; then
5029  enableval="$enable_libtool_lock"
5030
5031fi;
5032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5033
5034# Some flags need to be propagated to the compiler or linker for good
5035# libtool support.
5036case $host in
5037ia64-*-hpux*)
5038  # Find out which ABI we are using.
5039  echo 'int i;' > conftest.$ac_ext
5040  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041  (eval $ac_compile) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; then
5045    case `/usr/bin/file conftest.$ac_objext` in
5046    *ELF-32*)
5047      HPUX_IA64_MODE="32"
5048      ;;
5049    *ELF-64*)
5050      HPUX_IA64_MODE="64"
5051      ;;
5052    esac
5053  fi
5054  rm -rf conftest*
5055  ;;
5056*-*-irix6*)
5057  # Find out which ABI we are using.
5058  echo '#line 5058 "configure"' > conftest.$ac_ext
5059  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060  (eval $ac_compile) 2>&5
5061  ac_status=$?
5062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063  (exit $ac_status); }; then
5064   if test "$lt_cv_prog_gnu_ld" = yes; then
5065    case `/usr/bin/file conftest.$ac_objext` in
5066    *32-bit*)
5067      LD="${LD-ld} -melf32bsmip"
5068      ;;
5069    *N32*)
5070      LD="${LD-ld} -melf32bmipn32"
5071      ;;
5072    *64-bit*)
5073      LD="${LD-ld} -melf64bmip"
5074      ;;
5075    esac
5076   else
5077    case `/usr/bin/file conftest.$ac_objext` in
5078    *32-bit*)
5079      LD="${LD-ld} -32"
5080      ;;
5081    *N32*)
5082      LD="${LD-ld} -n32"
5083      ;;
5084    *64-bit*)
5085      LD="${LD-ld} -64"
5086      ;;
5087    esac
5088   fi
5089  fi
5090  rm -rf conftest*
5091  ;;
5092
5093x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5094  # Find out which ABI we are using.
5095  echo 'int i;' > conftest.$ac_ext
5096  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5097  (eval $ac_compile) 2>&5
5098  ac_status=$?
5099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100  (exit $ac_status); }; then
5101    case `/usr/bin/file conftest.o` in
5102    *32-bit*)
5103      case $host in
5104        x86_64-*linux*)
5105          LD="${LD-ld} -m elf_i386"
5106          ;;
5107        ppc64-*linux*|powerpc64-*linux*)
5108          LD="${LD-ld} -m elf32ppclinux"
5109          ;;
5110        s390x-*linux*)
5111          LD="${LD-ld} -m elf_s390"
5112          ;;
5113        sparc64-*linux*)
5114          LD="${LD-ld} -m elf32_sparc"
5115          ;;
5116      esac
5117      ;;
5118    *64-bit*)
5119      case $host in
5120        x86_64-*linux*)
5121          LD="${LD-ld} -m elf_x86_64"
5122          ;;
5123        ppc*-*linux*|powerpc*-*linux*)
5124          LD="${LD-ld} -m elf64ppc"
5125          ;;
5126        s390*-*linux*)
5127          LD="${LD-ld} -m elf64_s390"
5128          ;;
5129        sparc*-*linux*)
5130          LD="${LD-ld} -m elf64_sparc"
5131          ;;
5132      esac
5133      ;;
5134    esac
5135  fi
5136  rm -rf conftest*
5137  ;;
5138
5139*-*-sco3.2v5*)
5140  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5141  SAVE_CFLAGS="$CFLAGS"
5142  CFLAGS="$CFLAGS -belf"
5143  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5144echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5145if test "${lt_cv_cc_needs_belf+set}" = set; then
5146  echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148  ac_ext=c
5149ac_cpp='$CPP $CPPFLAGS'
5150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154     cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h.  */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h.  */
5160
5161int
5162main ()
5163{
5164
5165  ;
5166  return 0;
5167}
5168_ACEOF
5169rm -f conftest.$ac_objext conftest$ac_exeext
5170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171  (eval $ac_link) 2>conftest.er1
5172  ac_status=$?
5173  grep -v '^ *+' conftest.er1 >conftest.err
5174  rm -f conftest.er1
5175  cat conftest.err >&5
5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); } &&
5178         { ac_try='test -z "$ac_c_werror_flag"
5179                         || test ! -s conftest.err'
5180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181  (eval $ac_try) 2>&5
5182  ac_status=$?
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); }; } &&
5185         { ac_try='test -s conftest$ac_exeext'
5186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187  (eval $ac_try) 2>&5
5188  ac_status=$?
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); }; }; then
5191  lt_cv_cc_needs_belf=yes
5192else
5193  echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196lt_cv_cc_needs_belf=no
5197fi
5198rm -f conftest.err conftest.$ac_objext \
5199      conftest$ac_exeext conftest.$ac_ext
5200     ac_ext=c
5201ac_cpp='$CPP $CPPFLAGS'
5202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205
5206fi
5207echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5208echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5209  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5210    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5211    CFLAGS="$SAVE_CFLAGS"
5212  fi
5213  ;;
5214sparc*-*solaris*)
5215  # Find out which ABI we are using.
5216  echo 'int i;' > conftest.$ac_ext
5217  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218  (eval $ac_compile) 2>&5
5219  ac_status=$?
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); }; then
5222    case `/usr/bin/file conftest.o` in
5223    *64-bit*)
5224      case $lt_cv_prog_gnu_ld in
5225      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5226      *)    LD="${LD-ld} -64" ;;
5227      esac
5228      ;;
5229    esac
5230  fi
5231  rm -rf conftest*
5232  ;;
5233
5234
5235esac
5236
5237need_locks="$enable_libtool_lock"
5238
5239
5240ac_ext=c
5241ac_cpp='$CPP $CPPFLAGS'
5242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5246echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5247# On Suns, sometimes $CPP names a directory.
5248if test -n "$CPP" && test -d "$CPP"; then
5249  CPP=
5250fi
5251if test -z "$CPP"; then
5252  if test "${ac_cv_prog_CPP+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255      # Double quotes because CPP needs to be expanded
5256    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5257    do
5258      ac_preproc_ok=false
5259for ac_c_preproc_warn_flag in '' yes
5260do
5261  # Use a header file that comes with gcc, so configuring glibc
5262  # with a fresh cross-compiler works.
5263  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264  # <limits.h> exists even on freestanding compilers.
5265  # On the NeXT, cc -E runs the code through the compiler's parser,
5266  # not just through cpp. "Syntax error" is here to catch this case.
5267  cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h.  */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h.  */
5273#ifdef __STDC__
5274# include <limits.h>
5275#else
5276# include <assert.h>
5277#endif
5278                     Syntax error
5279_ACEOF
5280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282  ac_status=$?
5283  grep -v '^ *+' conftest.er1 >conftest.err
5284  rm -f conftest.er1
5285  cat conftest.err >&5
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); } >/dev/null; then
5288  if test -s conftest.err; then
5289    ac_cpp_err=$ac_c_preproc_warn_flag
5290    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5291  else
5292    ac_cpp_err=
5293  fi
5294else
5295  ac_cpp_err=yes
5296fi
5297if test -z "$ac_cpp_err"; then
5298  :
5299else
5300  echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303  # Broken: fails on valid input.
5304continue
5305fi
5306rm -f conftest.err conftest.$ac_ext
5307
5308  # OK, works on sane cases.  Now check whether non-existent headers
5309  # can be detected and how.
5310  cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h.  */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h.  */
5316#include <ac_nonexistent.h>
5317_ACEOF
5318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320  ac_status=$?
5321  grep -v '^ *+' conftest.er1 >conftest.err
5322  rm -f conftest.er1
5323  cat conftest.err >&5
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } >/dev/null; then
5326  if test -s conftest.err; then
5327    ac_cpp_err=$ac_c_preproc_warn_flag
5328    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329  else
5330    ac_cpp_err=
5331  fi
5332else
5333  ac_cpp_err=yes
5334fi
5335if test -z "$ac_cpp_err"; then
5336  # Broken: success on invalid input.
5337continue
5338else
5339  echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342  # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346rm -f conftest.err conftest.$ac_ext
5347
5348done
5349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350rm -f conftest.err conftest.$ac_ext
5351if $ac_preproc_ok; then
5352  break
5353fi
5354
5355    done
5356    ac_cv_prog_CPP=$CPP
5357
5358fi
5359  CPP=$ac_cv_prog_CPP
5360else
5361  ac_cv_prog_CPP=$CPP
5362fi
5363echo "$as_me:$LINENO: result: $CPP" >&5
5364echo "${ECHO_T}$CPP" >&6
5365ac_preproc_ok=false
5366for ac_c_preproc_warn_flag in '' yes
5367do
5368  # Use a header file that comes with gcc, so configuring glibc
5369  # with a fresh cross-compiler works.
5370  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371  # <limits.h> exists even on freestanding compilers.
5372  # On the NeXT, cc -E runs the code through the compiler's parser,
5373  # not just through cpp. "Syntax error" is here to catch this case.
5374  cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h.  */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h.  */
5380#ifdef __STDC__
5381# include <limits.h>
5382#else
5383# include <assert.h>
5384#endif
5385                     Syntax error
5386_ACEOF
5387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } >/dev/null; then
5395  if test -s conftest.err; then
5396    ac_cpp_err=$ac_c_preproc_warn_flag
5397    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398  else
5399    ac_cpp_err=
5400  fi
5401else
5402  ac_cpp_err=yes
5403fi
5404if test -z "$ac_cpp_err"; then
5405  :
5406else
5407  echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410  # Broken: fails on valid input.
5411continue
5412fi
5413rm -f conftest.err conftest.$ac_ext
5414
5415  # OK, works on sane cases.  Now check whether non-existent headers
5416  # can be detected and how.
5417  cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h.  */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h.  */
5423#include <ac_nonexistent.h>
5424_ACEOF
5425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5427  ac_status=$?
5428  grep -v '^ *+' conftest.er1 >conftest.err
5429  rm -f conftest.er1
5430  cat conftest.err >&5
5431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432  (exit $ac_status); } >/dev/null; then
5433  if test -s conftest.err; then
5434    ac_cpp_err=$ac_c_preproc_warn_flag
5435    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5436  else
5437    ac_cpp_err=
5438  fi
5439else
5440  ac_cpp_err=yes
5441fi
5442if test -z "$ac_cpp_err"; then
5443  # Broken: success on invalid input.
5444continue
5445else
5446  echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
5449  # Passes both tests.
5450ac_preproc_ok=:
5451break
5452fi
5453rm -f conftest.err conftest.$ac_ext
5454
5455done
5456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457rm -f conftest.err conftest.$ac_ext
5458if $ac_preproc_ok; then
5459  :
5460else
5461  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5462See \`config.log' for more details." >&5
5463echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5464See \`config.log' for more details." >&2;}
5465   { (exit 1); exit 1; }; }
5466fi
5467
5468ac_ext=c
5469ac_cpp='$CPP $CPPFLAGS'
5470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473
5474
5475echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5476echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5477if test "${ac_cv_header_stdc+set}" = set; then
5478  echo $ECHO_N "(cached) $ECHO_C" >&6
5479else
5480  cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h.  */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h.  */
5486#include <stdlib.h>
5487#include <stdarg.h>
5488#include <string.h>
5489#include <float.h>
5490
5491int
5492main ()
5493{
5494
5495  ;
5496  return 0;
5497}
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501  (eval $ac_compile) 2>conftest.er1
5502  ac_status=$?
5503  grep -v '^ *+' conftest.er1 >conftest.err
5504  rm -f conftest.er1
5505  cat conftest.err >&5
5506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507  (exit $ac_status); } &&
5508         { ac_try='test -z "$ac_c_werror_flag"
5509                         || test ! -s conftest.err'
5510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511  (eval $ac_try) 2>&5
5512  ac_status=$?
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); }; } &&
5515         { ac_try='test -s conftest.$ac_objext'
5516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517  (eval $ac_try) 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }; }; then
5521  ac_cv_header_stdc=yes
5522else
5523  echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526ac_cv_header_stdc=no
5527fi
5528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529
5530if test $ac_cv_header_stdc = yes; then
5531  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5532  cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538#include <string.h>
5539
5540_ACEOF
5541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542  $EGREP "memchr" >/dev/null 2>&1; then
5543  :
5544else
5545  ac_cv_header_stdc=no
5546fi
5547rm -f conftest*
5548
5549fi
5550
5551if test $ac_cv_header_stdc = yes; then
5552  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5553  cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h.  */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h.  */
5559#include <stdlib.h>
5560
5561_ACEOF
5562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5563  $EGREP "free" >/dev/null 2>&1; then
5564  :
5565else
5566  ac_cv_header_stdc=no
5567fi
5568rm -f conftest*
5569
5570fi
5571
5572if test $ac_cv_header_stdc = yes; then
5573  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5574  if test "$cross_compiling" = yes; then
5575  :
5576else
5577  cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h.  */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
5582/* end confdefs.h.  */
5583#include <ctype.h>
5584#if ((' ' & 0x0FF) == 0x020)
5585# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5586# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5587#else
5588# define ISLOWER(c) \
5589                   (('a' <= (c) && (c) <= 'i') \
5590                     || ('j' <= (c) && (c) <= 'r') \
5591                     || ('s' <= (c) && (c) <= 'z'))
5592# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5593#endif
5594
5595#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5596int
5597main ()
5598{
5599  int i;
5600  for (i = 0; i < 256; i++)
5601    if (XOR (islower (i), ISLOWER (i))
5602        || toupper (i) != TOUPPER (i))
5603      exit(2);
5604  exit (0);
5605}
5606_ACEOF
5607rm -f conftest$ac_exeext
5608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609  (eval $ac_link) 2>&5
5610  ac_status=$?
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614  (eval $ac_try) 2>&5
5615  ac_status=$?
5616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617  (exit $ac_status); }; }; then
5618  :
5619else
5620  echo "$as_me: program exited with status $ac_status" >&5
5621echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
5624( exit $ac_status )
5625ac_cv_header_stdc=no
5626fi
5627rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5628fi
5629fi
5630fi
5631echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5632echo "${ECHO_T}$ac_cv_header_stdc" >&6
5633if test $ac_cv_header_stdc = yes; then
5634
5635cat >>confdefs.h <<\_ACEOF
5636#define STDC_HEADERS 1
5637_ACEOF
5638
5639fi
5640
5641# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5652                  inttypes.h stdint.h unistd.h
5653do
5654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5655echo "$as_me:$LINENO: checking for $ac_header" >&5
5656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5657if eval "test \"\${$as_ac_Header+set}\" = set"; then
5658  echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660  cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666$ac_includes_default
5667
5668#include <$ac_header>
5669_ACEOF
5670rm -f conftest.$ac_objext
5671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672  (eval $ac_compile) 2>conftest.er1
5673  ac_status=$?
5674  grep -v '^ *+' conftest.er1 >conftest.err
5675  rm -f conftest.er1
5676  cat conftest.err >&5
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); } &&
5679         { ac_try='test -z "$ac_c_werror_flag"
5680                         || test ! -s conftest.err'
5681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682  (eval $ac_try) 2>&5
5683  ac_status=$?
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); }; } &&
5686         { ac_try='test -s conftest.$ac_objext'
5687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688  (eval $ac_try) 2>&5
5689  ac_status=$?
5690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691  (exit $ac_status); }; }; then
5692  eval "$as_ac_Header=yes"
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697eval "$as_ac_Header=no"
5698fi
5699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700fi
5701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5703if test `eval echo '${'$as_ac_Header'}'` = yes; then
5704  cat >>confdefs.h <<_ACEOF
5705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5706_ACEOF
5707
5708fi
5709
5710done
5711
5712
5713
5714for ac_header in dlfcn.h
5715do
5716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5717if eval "test \"\${$as_ac_Header+set}\" = set"; then
5718  echo "$as_me:$LINENO: checking for $ac_header" >&5
5719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5720if eval "test \"\${$as_ac_Header+set}\" = set"; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722fi
5723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5725else
5726  # Is the header compilable?
5727echo "$as_me:$LINENO: checking $ac_header usability" >&5
5728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5729cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h.  */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h.  */
5735$ac_includes_default
5736#include <$ac_header>
5737_ACEOF
5738rm -f conftest.$ac_objext
5739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740  (eval $ac_compile) 2>conftest.er1
5741  ac_status=$?
5742  grep -v '^ *+' conftest.er1 >conftest.err
5743  rm -f conftest.er1
5744  cat conftest.err >&5
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); } &&
5747         { ac_try='test -z "$ac_c_werror_flag"
5748                         || test ! -s conftest.err'
5749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750  (eval $ac_try) 2>&5
5751  ac_status=$?
5752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753  (exit $ac_status); }; } &&
5754         { ac_try='test -s conftest.$ac_objext'
5755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756  (eval $ac_try) 2>&5
5757  ac_status=$?
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); }; }; then
5760  ac_header_compiler=yes
5761else
5762  echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765ac_header_compiler=no
5766fi
5767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5769echo "${ECHO_T}$ac_header_compiler" >&6
5770
5771# Is the header present?
5772echo "$as_me:$LINENO: checking $ac_header presence" >&5
5773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5774cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h.  */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h.  */
5780#include <$ac_header>
5781_ACEOF
5782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5783  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5784  ac_status=$?
5785  grep -v '^ *+' conftest.er1 >conftest.err
5786  rm -f conftest.er1
5787  cat conftest.err >&5
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); } >/dev/null; then
5790  if test -s conftest.err; then
5791    ac_cpp_err=$ac_c_preproc_warn_flag
5792    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5793  else
5794    ac_cpp_err=
5795  fi
5796else
5797  ac_cpp_err=yes
5798fi
5799if test -z "$ac_cpp_err"; then
5800  ac_header_preproc=yes
5801else
5802  echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805  ac_header_preproc=no
5806fi
5807rm -f conftest.err conftest.$ac_ext
5808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5809echo "${ECHO_T}$ac_header_preproc" >&6
5810
5811# So?  What about this header?
5812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5813  yes:no: )
5814    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5816    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5818    ac_header_preproc=yes
5819    ;;
5820  no:yes:* )
5821    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5823    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5824echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5825    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5827    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5828echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5829    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5831    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5833    (
5834      cat <<\_ASBOX
5835## --------------------------------------------------------------- ##
5836## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5837## --------------------------------------------------------------- ##
5838_ASBOX
5839    ) |
5840      sed "s/^/$as_me: WARNING:     /" >&2
5841    ;;
5842esac
5843echo "$as_me:$LINENO: checking for $ac_header" >&5
5844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5845if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846  echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848  eval "$as_ac_Header=\$ac_header_preproc"
5849fi
5850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5852
5853fi
5854if test `eval echo '${'$as_ac_Header'}'` = yes; then
5855  cat >>confdefs.h <<_ACEOF
5856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5857_ACEOF
5858
5859fi
5860
5861done
5862
5863ac_ext=cc
5864ac_cpp='$CXXCPP $CPPFLAGS'
5865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5868if test -n "$ac_tool_prefix"; then
5869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5870  do
5871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875if test "${ac_cv_prog_CXX+set}" = set; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  if test -n "$CXX"; then
5879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886  for ac_exec_ext in '' $ac_executable_extensions; do
5887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893done
5894
5895fi
5896fi
5897CXX=$ac_cv_prog_CXX
5898if test -n "$CXX"; then
5899  echo "$as_me:$LINENO: result: $CXX" >&5
5900echo "${ECHO_T}$CXX" >&6
5901else
5902  echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906    test -n "$CXX" && break
5907  done
5908fi
5909if test -z "$CXX"; then
5910  ac_ct_CXX=$CXX
5911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5912do
5913  # Extract the first word of "$ac_prog", so it can be a program name with args.
5914set dummy $ac_prog; ac_word=$2
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  if test -n "$ac_ct_CXX"; then
5921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926  IFS=$as_save_IFS
5927  test -z "$as_dir" && as_dir=.
5928  for ac_exec_ext in '' $ac_executable_extensions; do
5929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930    ac_cv_prog_ac_ct_CXX="$ac_prog"
5931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932    break 2
5933  fi
5934done
5935done
5936
5937fi
5938fi
5939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5940if test -n "$ac_ct_CXX"; then
5941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5942echo "${ECHO_T}$ac_ct_CXX" >&6
5943else
5944  echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946fi
5947
5948  test -n "$ac_ct_CXX" && break
5949done
5950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5951
5952  CXX=$ac_ct_CXX
5953fi
5954
5955
5956# Provide some information about the compiler.
5957echo "$as_me:$LINENO:" \
5958     "checking for C++ compiler version" >&5
5959ac_compiler=`set X $ac_compile; echo $2`
5960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5961  (eval $ac_compiler --version </dev/null >&5) 2>&5
5962  ac_status=$?
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); }
5965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5966  (eval $ac_compiler -v </dev/null >&5) 2>&5
5967  ac_status=$?
5968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); }
5970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5971  (eval $ac_compiler -V </dev/null >&5) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }
5975
5976echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5977echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5978if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h.  */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h.  */
5987
5988int
5989main ()
5990{
5991#ifndef __GNUC__
5992       choke me
5993#endif
5994
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext
6000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001  (eval $ac_compile) 2>conftest.er1
6002  ac_status=$?
6003  grep -v '^ *+' conftest.er1 >conftest.err
6004  rm -f conftest.er1
6005  cat conftest.err >&5
6006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007  (exit $ac_status); } &&
6008         { ac_try='test -z "$ac_cxx_werror_flag"
6009                         || test ! -s conftest.err'
6010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011  (eval $ac_try) 2>&5
6012  ac_status=$?
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); }; } &&
6015         { ac_try='test -s conftest.$ac_objext'
6016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017  (eval $ac_try) 2>&5
6018  ac_status=$?
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); }; }; then
6021  ac_compiler_gnu=yes
6022else
6023  echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026ac_compiler_gnu=no
6027fi
6028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6029ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6030
6031fi
6032echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6033echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6034GXX=`test $ac_compiler_gnu = yes && echo yes`
6035ac_test_CXXFLAGS=${CXXFLAGS+set}
6036ac_save_CXXFLAGS=$CXXFLAGS
6037CXXFLAGS="-g"
6038echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6039echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6040if test "${ac_cv_prog_cxx_g+set}" = set; then
6041  echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043  cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h.  */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h.  */
6049
6050int
6051main ()
6052{
6053
6054  ;
6055  return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext
6059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060  (eval $ac_compile) 2>conftest.er1
6061  ac_status=$?
6062  grep -v '^ *+' conftest.er1 >conftest.err
6063  rm -f conftest.er1
6064  cat conftest.err >&5
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); } &&
6067         { ac_try='test -z "$ac_cxx_werror_flag"
6068                         || test ! -s conftest.err'
6069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070  (eval $ac_try) 2>&5
6071  ac_status=$?
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); }; } &&
6074         { ac_try='test -s conftest.$ac_objext'
6075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076  (eval $ac_try) 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); }; }; then
6080  ac_cv_prog_cxx_g=yes
6081else
6082  echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
6084
6085ac_cv_prog_cxx_g=no
6086fi
6087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6090echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6091if test "$ac_test_CXXFLAGS" = set; then
6092  CXXFLAGS=$ac_save_CXXFLAGS
6093elif test $ac_cv_prog_cxx_g = yes; then
6094  if test "$GXX" = yes; then
6095    CXXFLAGS="-g -O2"
6096  else
6097    CXXFLAGS="-g"
6098  fi
6099else
6100  if test "$GXX" = yes; then
6101    CXXFLAGS="-O2"
6102  else
6103    CXXFLAGS=
6104  fi
6105fi
6106for ac_declaration in \
6107   '' \
6108   'extern "C" void std::exit (int) throw (); using std::exit;' \
6109   'extern "C" void std::exit (int); using std::exit;' \
6110   'extern "C" void exit (int) throw ();' \
6111   'extern "C" void exit (int);' \
6112   'void exit (int);'
6113do
6114  cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h.  */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h.  */
6120$ac_declaration
6121#include <stdlib.h>
6122int
6123main ()
6124{
6125exit (42);
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132  (eval $ac_compile) 2>conftest.er1
6133  ac_status=$?
6134  grep -v '^ *+' conftest.er1 >conftest.err
6135  rm -f conftest.er1
6136  cat conftest.err >&5
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); } &&
6139         { ac_try='test -z "$ac_cxx_werror_flag"
6140                         || test ! -s conftest.err'
6141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142  (eval $ac_try) 2>&5
6143  ac_status=$?
6144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145  (exit $ac_status); }; } &&
6146         { ac_try='test -s conftest.$ac_objext'
6147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148  (eval $ac_try) 2>&5
6149  ac_status=$?
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); }; }; then
6152  :
6153else
6154  echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157continue
6158fi
6159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6160  cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h.  */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h.  */
6166$ac_declaration
6167int
6168main ()
6169{
6170exit (42);
6171  ;
6172  return 0;
6173}
6174_ACEOF
6175rm -f conftest.$ac_objext
6176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177  (eval $ac_compile) 2>conftest.er1
6178  ac_status=$?
6179  grep -v '^ *+' conftest.er1 >conftest.err
6180  rm -f conftest.er1
6181  cat conftest.err >&5
6182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183  (exit $ac_status); } &&
6184         { ac_try='test -z "$ac_cxx_werror_flag"
6185                         || test ! -s conftest.err'
6186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187  (eval $ac_try) 2>&5
6188  ac_status=$?
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); }; } &&
6191         { ac_try='test -s conftest.$ac_objext'
6192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193  (eval $ac_try) 2>&5
6194  ac_status=$?
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); }; }; then
6197  break
6198else
6199  echo "$as_me: failed program was:" >&5
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
6202fi
6203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204done
6205rm -f conftest*
6206if test -n "$ac_declaration"; then
6207  echo '#ifdef __cplusplus' >>confdefs.h
6208  echo $ac_declaration      >>confdefs.h
6209  echo '#endif'             >>confdefs.h
6210fi
6211
6212ac_ext=cc
6213ac_cpp='$CXXCPP $CPPFLAGS'
6214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6217
6218depcc="$CXX"  am_compiler_list=
6219
6220echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6221echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6222if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6223  echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6226  # We make a subdir and do the tests there.  Otherwise we can end up
6227  # making bogus files that we don't know about and never remove.  For
6228  # instance it was reported that on HP-UX the gcc test will end up
6229  # making a dummy file named `D' -- because `-MD' means `put the output
6230  # in D'.
6231  mkdir conftest.dir
6232  # Copy depcomp to subdir because otherwise we won't find it if we're
6233  # using a relative directory.
6234  cp "$am_depcomp" conftest.dir
6235  cd conftest.dir
6236  # We will build objects and dependencies in a subdirectory because
6237  # it helps to detect inapplicable dependency modes.  For instance
6238  # both Tru64's cc and ICC support -MD to output dependencies as a
6239  # side effect of compilation, but ICC will put the dependencies in
6240  # the current directory while Tru64 will put them in the object
6241  # directory.
6242  mkdir sub
6243
6244  am_cv_CXX_dependencies_compiler_type=none
6245  if test "$am_compiler_list" = ""; then
6246     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6247  fi
6248  for depmode in $am_compiler_list; do
6249    # Setup a source with many dependencies, because some compilers
6250    # like to wrap large dependency lists on column 80 (with \), and
6251    # we should not choose a depcomp mode which is confused by this.
6252    #
6253    # We need to recreate these files for each test, as the compiler may
6254    # overwrite some of them when testing with obscure command lines.
6255    # This happens at least with the AIX C compiler.
6256    : > sub/conftest.c
6257    for i in 1 2 3 4 5 6; do
6258      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6259      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6260      # Solaris 8's {/usr,}/bin/sh.
6261      touch sub/conftst$i.h
6262    done
6263    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6264
6265    case $depmode in
6266    nosideeffect)
6267      # after this tag, mechanisms are not by side-effect, so they'll
6268      # only be used when explicitly requested
6269      if test "x$enable_dependency_tracking" = xyes; then
6270        continue
6271      else
6272        break
6273      fi
6274      ;;
6275    none) break ;;
6276    esac
6277    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6278    # mode.  It turns out that the SunPro C++ compiler does not properly
6279    # handle `-M -o', and we need to detect this.
6280    if depmode=$depmode \
6281       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6282       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6283       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6284         >/dev/null 2>conftest.err &&
6285       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6286       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6287       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6288      # icc doesn't choke on unknown options, it will just issue warnings
6289      # or remarks (even with -Werror).  So we grep stderr for any message
6290      # that says an option was ignored or not supported.
6291      # When given -MP, icc 7.0 and 7.1 complain thusly:
6292      #   icc: Command line warning: ignoring option '-M'; no argument required
6293      # The diagnosis changed in icc 8.0:
6294      #   icc: Command line remark: option '-MP' not supported
6295      if (grep 'ignoring option' conftest.err ||
6296          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6297        am_cv_CXX_dependencies_compiler_type=$depmode
6298        break
6299      fi
6300    fi
6301  done
6302
6303  cd ..
6304  rm -rf conftest.dir
6305else
6306  am_cv_CXX_dependencies_compiler_type=none
6307fi
6308
6309fi
6310echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6311echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6312CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6313
6314
6315
6316if
6317  test "x$enable_dependency_tracking" != xno \
6318  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6319  am__fastdepCXX_TRUE=
6320  am__fastdepCXX_FALSE='#'
6321else
6322  am__fastdepCXX_TRUE='#'
6323  am__fastdepCXX_FALSE=
6324fi
6325
6326
6327
6328
6329if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6330    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6331    (test "X$CXX" != "Xg++"))) ; then
6332  ac_ext=cc
6333ac_cpp='$CXXCPP $CPPFLAGS'
6334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6338echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6339if test -z "$CXXCPP"; then
6340  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6341  echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343      # Double quotes because CXXCPP needs to be expanded
6344    for CXXCPP in "$CXX -E" "/lib/cpp"
6345    do
6346      ac_preproc_ok=false
6347for ac_cxx_preproc_warn_flag in '' yes
6348do
6349  # Use a header file that comes with gcc, so configuring glibc
6350  # with a fresh cross-compiler works.
6351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352  # <limits.h> exists even on freestanding compilers.
6353  # On the NeXT, cc -E runs the code through the compiler's parser,
6354  # not just through cpp. "Syntax error" is here to catch this case.
6355  cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h.  */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h.  */
6361#ifdef __STDC__
6362# include <limits.h>
6363#else
6364# include <assert.h>
6365#endif
6366                     Syntax error
6367_ACEOF
6368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370  ac_status=$?
6371  grep -v '^ *+' conftest.er1 >conftest.err
6372  rm -f conftest.er1
6373  cat conftest.err >&5
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } >/dev/null; then
6376  if test -s conftest.err; then
6377    ac_cpp_err=$ac_cxx_preproc_warn_flag
6378    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6379  else
6380    ac_cpp_err=
6381  fi
6382else
6383  ac_cpp_err=yes
6384fi
6385if test -z "$ac_cpp_err"; then
6386  :
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391  # Broken: fails on valid input.
6392continue
6393fi
6394rm -f conftest.err conftest.$ac_ext
6395
6396  # OK, works on sane cases.  Now check whether non-existent headers
6397  # can be detected and how.
6398  cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h.  */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h.  */
6404#include <ac_nonexistent.h>
6405_ACEOF
6406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6407  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } >/dev/null; then
6414  if test -s conftest.err; then
6415    ac_cpp_err=$ac_cxx_preproc_warn_flag
6416    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6417  else
6418    ac_cpp_err=
6419  fi
6420else
6421  ac_cpp_err=yes
6422fi
6423if test -z "$ac_cpp_err"; then
6424  # Broken: success on invalid input.
6425continue
6426else
6427  echo "$as_me: failed program was:" >&5
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430  # Passes both tests.
6431ac_preproc_ok=:
6432break
6433fi
6434rm -f conftest.err conftest.$ac_ext
6435
6436done
6437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438rm -f conftest.err conftest.$ac_ext
6439if $ac_preproc_ok; then
6440  break
6441fi
6442
6443    done
6444    ac_cv_prog_CXXCPP=$CXXCPP
6445
6446fi
6447  CXXCPP=$ac_cv_prog_CXXCPP
6448else
6449  ac_cv_prog_CXXCPP=$CXXCPP
6450fi
6451echo "$as_me:$LINENO: result: $CXXCPP" >&5
6452echo "${ECHO_T}$CXXCPP" >&6
6453ac_preproc_ok=false
6454for ac_cxx_preproc_warn_flag in '' yes
6455do
6456  # Use a header file that comes with gcc, so configuring glibc
6457  # with a fresh cross-compiler works.
6458  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459  # <limits.h> exists even on freestanding compilers.
6460  # On the NeXT, cc -E runs the code through the compiler's parser,
6461  # not just through cpp. "Syntax error" is here to catch this case.
6462  cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h.  */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h.  */
6468#ifdef __STDC__
6469# include <limits.h>
6470#else
6471# include <assert.h>
6472#endif
6473                     Syntax error
6474_ACEOF
6475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6476  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477  ac_status=$?
6478  grep -v '^ *+' conftest.er1 >conftest.err
6479  rm -f conftest.er1
6480  cat conftest.err >&5
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); } >/dev/null; then
6483  if test -s conftest.err; then
6484    ac_cpp_err=$ac_cxx_preproc_warn_flag
6485    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6486  else
6487    ac_cpp_err=
6488  fi
6489else
6490  ac_cpp_err=yes
6491fi
6492if test -z "$ac_cpp_err"; then
6493  :
6494else
6495  echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498  # Broken: fails on valid input.
6499continue
6500fi
6501rm -f conftest.err conftest.$ac_ext
6502
6503  # OK, works on sane cases.  Now check whether non-existent headers
6504  # can be detected and how.
6505  cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h.  */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h.  */
6511#include <ac_nonexistent.h>
6512_ACEOF
6513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515  ac_status=$?
6516  grep -v '^ *+' conftest.er1 >conftest.err
6517  rm -f conftest.er1
6518  cat conftest.err >&5
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); } >/dev/null; then
6521  if test -s conftest.err; then
6522    ac_cpp_err=$ac_cxx_preproc_warn_flag
6523    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6524  else
6525    ac_cpp_err=
6526  fi
6527else
6528  ac_cpp_err=yes
6529fi
6530if test -z "$ac_cpp_err"; then
6531  # Broken: success on invalid input.
6532continue
6533else
6534  echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537  # Passes both tests.
6538ac_preproc_ok=:
6539break
6540fi
6541rm -f conftest.err conftest.$ac_ext
6542
6543done
6544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6545rm -f conftest.err conftest.$ac_ext
6546if $ac_preproc_ok; then
6547  :
6548else
6549  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6550See \`config.log' for more details." >&5
6551echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6552See \`config.log' for more details." >&2;}
6553   { (exit 1); exit 1; }; }
6554fi
6555
6556ac_ext=cc
6557ac_cpp='$CXXCPP $CPPFLAGS'
6558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6561
6562fi
6563
6564
6565ac_ext=f
6566ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6567ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6569if test -n "$ac_tool_prefix"; then
6570  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6571  do
6572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576if test "${ac_cv_prog_F77+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  if test -n "$F77"; then
6580  ac_cv_prog_F77="$F77" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587  for ac_exec_ext in '' $ac_executable_extensions; do
6588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594done
6595
6596fi
6597fi
6598F77=$ac_cv_prog_F77
6599if test -n "$F77"; then
6600  echo "$as_me:$LINENO: result: $F77" >&5
6601echo "${ECHO_T}$F77" >&6
6602else
6603  echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605fi
6606
6607    test -n "$F77" && break
6608  done
6609fi
6610if test -z "$F77"; then
6611  ac_ct_F77=$F77
6612  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6613do
6614  # Extract the first word of "$ac_prog", so it can be a program name with args.
6615set dummy $ac_prog; ac_word=$2
6616echo "$as_me:$LINENO: checking for $ac_word" >&5
6617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6618if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6619  echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621  if test -n "$ac_ct_F77"; then
6622  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627  IFS=$as_save_IFS
6628  test -z "$as_dir" && as_dir=.
6629  for ac_exec_ext in '' $ac_executable_extensions; do
6630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631    ac_cv_prog_ac_ct_F77="$ac_prog"
6632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633    break 2
6634  fi
6635done
6636done
6637
6638fi
6639fi
6640ac_ct_F77=$ac_cv_prog_ac_ct_F77
6641if test -n "$ac_ct_F77"; then
6642  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6643echo "${ECHO_T}$ac_ct_F77" >&6
6644else
6645  echo "$as_me:$LINENO: result: no" >&5
6646echo "${ECHO_T}no" >&6
6647fi
6648
6649  test -n "$ac_ct_F77" && break
6650done
6651
6652  F77=$ac_ct_F77
6653fi
6654
6655
6656# Provide some information about the compiler.
6657echo "$as_me:6657:" \
6658     "checking for Fortran 77 compiler version" >&5
6659ac_compiler=`set X $ac_compile; echo $2`
6660{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6661  (eval $ac_compiler --version </dev/null >&5) 2>&5
6662  ac_status=$?
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); }
6665{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6666  (eval $ac_compiler -v </dev/null >&5) 2>&5
6667  ac_status=$?
6668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669  (exit $ac_status); }
6670{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6671  (eval $ac_compiler -V </dev/null >&5) 2>&5
6672  ac_status=$?
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); }
6675rm -f a.out
6676
6677# If we don't use `.F' as extension, the preprocessor is not run on the
6678# input file.  (Note that this only needs to work for GNU compilers.)
6679ac_save_ext=$ac_ext
6680ac_ext=F
6681echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6682echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6683if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6684  echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686  cat >conftest.$ac_ext <<_ACEOF
6687      program main
6688#ifndef __GNUC__
6689       choke me
6690#endif
6691
6692      end
6693_ACEOF
6694rm -f conftest.$ac_objext
6695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696  (eval $ac_compile) 2>conftest.er1
6697  ac_status=$?
6698  grep -v '^ *+' conftest.er1 >conftest.err
6699  rm -f conftest.er1
6700  cat conftest.err >&5
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); } &&
6703         { ac_try='test -z "$ac_f77_werror_flag"
6704                         || test ! -s conftest.err'
6705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706  (eval $ac_try) 2>&5
6707  ac_status=$?
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); }; } &&
6710         { ac_try='test -s conftest.$ac_objext'
6711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712  (eval $ac_try) 2>&5
6713  ac_status=$?
6714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715  (exit $ac_status); }; }; then
6716  ac_compiler_gnu=yes
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721ac_compiler_gnu=no
6722fi
6723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6725
6726fi
6727echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6728echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6729ac_ext=$ac_save_ext
6730ac_test_FFLAGS=${FFLAGS+set}
6731ac_save_FFLAGS=$FFLAGS
6732FFLAGS=
6733echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6734echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6735if test "${ac_cv_prog_f77_g+set}" = set; then
6736  echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738  FFLAGS=-g
6739cat >conftest.$ac_ext <<_ACEOF
6740      program main
6741
6742      end
6743_ACEOF
6744rm -f conftest.$ac_objext
6745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746  (eval $ac_compile) 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } &&
6753         { ac_try='test -z "$ac_f77_werror_flag"
6754                         || test ! -s conftest.err'
6755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756  (eval $ac_try) 2>&5
6757  ac_status=$?
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); }; } &&
6760         { ac_try='test -s conftest.$ac_objext'
6761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762  (eval $ac_try) 2>&5
6763  ac_status=$?
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); }; }; then
6766  ac_cv_prog_f77_g=yes
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771ac_cv_prog_f77_g=no
6772fi
6773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775fi
6776echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6777echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6778if test "$ac_test_FFLAGS" = set; then
6779  FFLAGS=$ac_save_FFLAGS
6780elif test $ac_cv_prog_f77_g = yes; then
6781  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6782    FFLAGS="-g -O2"
6783  else
6784    FFLAGS="-g"
6785  fi
6786else
6787  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6788    FFLAGS="-O2"
6789  else
6790    FFLAGS=
6791  fi
6792fi
6793
6794G77=`test $ac_compiler_gnu = yes && echo yes`
6795ac_ext=c
6796ac_cpp='$CPP $CPPFLAGS'
6797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800
6801
6802
6803# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6804
6805# find the maximum length of command line arguments
6806echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6807echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6808if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6809  echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811    i=0
6812  teststring="ABCD"
6813
6814  case $build_os in
6815  msdosdjgpp*)
6816    # On DJGPP, this test can blow up pretty badly due to problems in libc
6817    # (any single argument exceeding 2000 bytes causes a buffer overrun
6818    # during glob expansion).  Even if it were fixed, the result of this
6819    # check would be larger than it should be.
6820    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6821    ;;
6822
6823  gnu*)
6824    # Under GNU Hurd, this test is not required because there is
6825    # no limit to the length of command line arguments.
6826    # Libtool will interpret -1 as no limit whatsoever
6827    lt_cv_sys_max_cmd_len=-1;
6828    ;;
6829
6830  cygwin* | mingw*)
6831    # On Win9x/ME, this test blows up -- it succeeds, but takes
6832    # about 5 minutes as the teststring grows exponentially.
6833    # Worse, since 9x/ME are not pre-emptively multitasking,
6834    # you end up with a "frozen" computer, even though with patience
6835    # the test eventually succeeds (with a max line length of 256k).
6836    # Instead, let's just punt: use the minimum linelength reported by
6837    # all of the supported platforms: 8192 (on NT/2K/XP).
6838    lt_cv_sys_max_cmd_len=8192;
6839    ;;
6840
6841  amigaos*)
6842    # On AmigaOS with pdksh, this test takes hours, literally.
6843    # So we just punt and use a minimum line length of 8192.
6844    lt_cv_sys_max_cmd_len=8192;
6845    ;;
6846
6847  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6848    # This has been around since 386BSD, at least.  Likely further.
6849    if test -x /sbin/sysctl; then
6850      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6851    elif test -x /usr/sbin/sysctl; then
6852      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6853    else
6854      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6855    fi
6856    # And add a safety zone
6857    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6858    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6859    ;;
6860
6861  interix*)
6862    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6863    lt_cv_sys_max_cmd_len=196608
6864    ;;
6865
6866  osf*)
6867    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6868    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6869    # nice to cause kernel panics so lets avoid the loop below.
6870    # First set a reasonable default.
6871    lt_cv_sys_max_cmd_len=16384
6872    #
6873    if test -x /sbin/sysconfig; then
6874      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6875        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6876      esac
6877    fi
6878    ;;
6879  sco3.2v5*)
6880    lt_cv_sys_max_cmd_len=102400
6881    ;;
6882  sysv5* | sco5v6* | sysv4.2uw2*)
6883    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6884    if test -n "$kargmax"; then
6885      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6886    else
6887      lt_cv_sys_max_cmd_len=32768
6888    fi
6889    ;;
6890  *)
6891    # If test is not a shell built-in, we'll probably end up computing a
6892    # maximum length that is only half of the actual maximum length, but
6893    # we can't tell.
6894    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6895    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6896               = "XX$teststring") >/dev/null 2>&1 &&
6897            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6898            lt_cv_sys_max_cmd_len=$new_result &&
6899            test $i != 17 # 1/2 MB should be enough
6900    do
6901      i=`expr $i + 1`
6902      teststring=$teststring$teststring
6903    done
6904    teststring=
6905    # Add a significant safety factor because C++ compilers can tack on massive
6906    # amounts of additional arguments before passing them to the linker.
6907    # It appears as though 1/2 is a usable value.
6908    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6909    ;;
6910  esac
6911
6912fi
6913
6914if test -n $lt_cv_sys_max_cmd_len ; then
6915  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6916echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6917else
6918  echo "$as_me:$LINENO: result: none" >&5
6919echo "${ECHO_T}none" >&6
6920fi
6921
6922
6923
6924
6925# Check for command to grab the raw symbol name followed by C symbol from nm.
6926echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6927echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6928if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6929  echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931
6932# These are sane defaults that work on at least a few old systems.
6933# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6934
6935# Character class describing NM global symbol codes.
6936symcode='[BCDEGRST]'
6937
6938# Regexp to match symbols that can be accessed directly from C.
6939sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6940
6941# Transform an extracted symbol line into a proper C declaration
6942lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6943
6944# Transform an extracted symbol line into symbol name and symbol address
6945lt_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'"
6946
6947# Define system-specific variables.
6948case $host_os in
6949aix*)
6950  symcode='[BCDT]'
6951  ;;
6952cygwin* | mingw* | pw32*)
6953  symcode='[ABCDGISTW]'
6954  ;;
6955hpux*) # Its linker distinguishes data from code symbols
6956  if test "$host_cpu" = ia64; then
6957    symcode='[ABCDEGRST]'
6958  fi
6959  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6960  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'"
6961  ;;
6962linux*)
6963  if test "$host_cpu" = ia64; then
6964    symcode='[ABCDGIRSTW]'
6965    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6966    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'"
6967  fi
6968  ;;
6969irix* | nonstopux*)
6970  symcode='[BCDEGRST]'
6971  ;;
6972osf*)
6973  symcode='[BCDEGQRST]'
6974  ;;
6975solaris*)
6976  symcode='[BDRT]'
6977  ;;
6978sco3.2v5*)
6979  symcode='[DT]'
6980  ;;
6981sysv4.2uw2*)
6982  symcode='[DT]'
6983  ;;
6984sysv5* | sco5v6* | unixware* | OpenUNIX*)
6985  symcode='[ABDT]'
6986  ;;
6987sysv4)
6988  symcode='[DFNSTU]'
6989  ;;
6990esac
6991
6992# Handle CRLF in mingw tool chain
6993opt_cr=
6994case $build_os in
6995mingw*)
6996  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6997  ;;
6998esac
6999
7000# If we're using GNU nm, then use its standard symbol codes.
7001case `$NM -V 2>&1` in
7002*GNU* | *'with BFD'*)
7003  symcode='[ABCDGIRSTW]' ;;
7004esac
7005
7006# Try without a prefix undercore, then with it.
7007for ac_symprfx in "" "_"; do
7008
7009  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7010  symxfrm="\\1 $ac_symprfx\\2 \\2"
7011
7012  # Write the raw and C identifiers.
7013  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7014
7015  # Check to see that the pipe works correctly.
7016  pipe_works=no
7017
7018  rm -f conftest*
7019  cat > conftest.$ac_ext <<EOF
7020#ifdef __cplusplus
7021extern "C" {
7022#endif
7023char nm_test_var;
7024void nm_test_func(){}
7025#ifdef __cplusplus
7026}
7027#endif
7028int main(){nm_test_var='a';nm_test_func();return(0);}
7029EOF
7030
7031  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032  (eval $ac_compile) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; then
7036    # Now try to grab the symbols.
7037    nlist=conftest.nm
7038    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7039  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7040  ac_status=$?
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); } && test -s "$nlist"; then
7043      # Try sorting and uniquifying the output.
7044      if sort "$nlist" | uniq > "$nlist"T; then
7045        mv -f "$nlist"T "$nlist"
7046      else
7047        rm -f "$nlist"T
7048      fi
7049
7050      # Make sure that we snagged all the symbols we need.
7051      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7052        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7053          cat <<EOF > conftest.$ac_ext
7054#ifdef __cplusplus
7055extern "C" {
7056#endif
7057
7058EOF
7059          # Now generate the symbol file.
7060          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7061
7062          cat <<EOF >> conftest.$ac_ext
7063#if defined (__STDC__) && __STDC__
7064# define lt_ptr_t void *
7065#else
7066# define lt_ptr_t char *
7067# define const
7068#endif
7069
7070/* The mapping between symbol names and symbols. */
7071const struct {
7072  const char *name;
7073  lt_ptr_t address;
7074}
7075lt_preloaded_symbols[] =
7076{
7077EOF
7078          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7079          cat <<\EOF >> conftest.$ac_ext
7080  {0, (lt_ptr_t) 0}
7081};
7082
7083#ifdef __cplusplus
7084}
7085#endif
7086EOF
7087          # Now try linking the two files.
7088          mv conftest.$ac_objext conftstm.$ac_objext
7089          lt_save_LIBS="$LIBS"
7090          lt_save_CFLAGS="$CFLAGS"
7091          LIBS="conftstm.$ac_objext"
7092          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7093          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7094  (eval $ac_link) 2>&5
7095  ac_status=$?
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7098            pipe_works=yes
7099          fi
7100          LIBS="$lt_save_LIBS"
7101          CFLAGS="$lt_save_CFLAGS"
7102        else
7103          echo "cannot find nm_test_func in $nlist" >&5
7104        fi
7105      else
7106        echo "cannot find nm_test_var in $nlist" >&5
7107      fi
7108    else
7109      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7110    fi
7111  else
7112    echo "$progname: failed program was:" >&5
7113    cat conftest.$ac_ext >&5
7114  fi
7115  rm -f conftest* conftst*
7116
7117  # Do not use the global_symbol_pipe unless it works.
7118  if test "$pipe_works" = yes; then
7119    break
7120  else
7121    lt_cv_sys_global_symbol_pipe=
7122  fi
7123done
7124
7125fi
7126
7127if test -z "$lt_cv_sys_global_symbol_pipe"; then
7128  lt_cv_sys_global_symbol_to_cdecl=
7129fi
7130if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7131  echo "$as_me:$LINENO: result: failed" >&5
7132echo "${ECHO_T}failed" >&6
7133else
7134  echo "$as_me:$LINENO: result: ok" >&5
7135echo "${ECHO_T}ok" >&6
7136fi
7137
7138echo "$as_me:$LINENO: checking for objdir" >&5
7139echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7140if test "${lt_cv_objdir+set}" = set; then
7141  echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143  rm -f .libs 2>/dev/null
7144mkdir .libs 2>/dev/null
7145if test -d .libs; then
7146  lt_cv_objdir=.libs
7147else
7148  # MS-DOS does not allow filenames that begin with a dot.
7149  lt_cv_objdir=_libs
7150fi
7151rmdir .libs 2>/dev/null
7152fi
7153echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7154echo "${ECHO_T}$lt_cv_objdir" >&6
7155objdir=$lt_cv_objdir
7156
7157
7158
7159
7160
7161case $host_os in
7162aix3*)
7163  # AIX sometimes has problems with the GCC collect2 program.  For some
7164  # reason, if we set the COLLECT_NAMES environment variable, the problems
7165  # vanish in a puff of smoke.
7166  if test "X${COLLECT_NAMES+set}" != Xset; then
7167    COLLECT_NAMES=
7168    export COLLECT_NAMES
7169  fi
7170  ;;
7171esac
7172
7173# Sed substitution that helps us do robust quoting.  It backslashifies
7174# metacharacters that are still active within double-quoted strings.
7175Xsed='sed -e 1s/^X//'
7176sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7177
7178# Same as above, but do not quote variable references.
7179double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7180
7181# Sed substitution to delay expansion of an escaped shell variable in a
7182# double_quote_subst'ed string.
7183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7184
7185# Sed substitution to avoid accidental globbing in evaled expressions
7186no_glob_subst='s/\*/\\\*/g'
7187
7188# Constants:
7189rm="rm -f"
7190
7191# Global variables:
7192default_ofile=libtool
7193can_build_shared=yes
7194
7195# All known linkers require a `.a' archive for static linking (except MSVC,
7196# which needs '.lib').
7197libext=a
7198ltmain="$ac_aux_dir/ltmain.sh"
7199ofile="$default_ofile"
7200with_gnu_ld="$lt_cv_prog_gnu_ld"
7201
7202if test -n "$ac_tool_prefix"; then
7203  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7204set dummy ${ac_tool_prefix}ar; ac_word=$2
7205echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7207if test "${ac_cv_prog_AR+set}" = set; then
7208  echo $ECHO_N "(cached) $ECHO_C" >&6
7209else
7210  if test -n "$AR"; then
7211  ac_cv_prog_AR="$AR" # Let the user override the test.
7212else
7213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216  IFS=$as_save_IFS
7217  test -z "$as_dir" && as_dir=.
7218  for ac_exec_ext in '' $ac_executable_extensions; do
7219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220    ac_cv_prog_AR="${ac_tool_prefix}ar"
7221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222    break 2
7223  fi
7224done
7225done
7226
7227fi
7228fi
7229AR=$ac_cv_prog_AR
7230if test -n "$AR"; then
7231  echo "$as_me:$LINENO: result: $AR" >&5
7232echo "${ECHO_T}$AR" >&6
7233else
7234  echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6
7236fi
7237
7238fi
7239if test -z "$ac_cv_prog_AR"; then
7240  ac_ct_AR=$AR
7241  # Extract the first word of "ar", so it can be a program name with args.
7242set dummy ar; ac_word=$2
7243echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248  if test -n "$ac_ct_AR"; then
7249  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256  for ac_exec_ext in '' $ac_executable_extensions; do
7257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258    ac_cv_prog_ac_ct_AR="ar"
7259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263done
7264
7265  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7266fi
7267fi
7268ac_ct_AR=$ac_cv_prog_ac_ct_AR
7269if test -n "$ac_ct_AR"; then
7270  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7271echo "${ECHO_T}$ac_ct_AR" >&6
7272else
7273  echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
7275fi
7276
7277  AR=$ac_ct_AR
7278else
7279  AR="$ac_cv_prog_AR"
7280fi
7281
7282if test -n "$ac_tool_prefix"; then
7283  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7284set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7285echo "$as_me:$LINENO: checking for $ac_word" >&5
7286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287if test "${ac_cv_prog_RANLIB+set}" = set; then
7288  echo $ECHO_N "(cached) $ECHO_C" >&6
7289else
7290  if test -n "$RANLIB"; then
7291  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296  IFS=$as_save_IFS
7297  test -z "$as_dir" && as_dir=.
7298  for ac_exec_ext in '' $ac_executable_extensions; do
7299  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302    break 2
7303  fi
7304done
7305done
7306
7307fi
7308fi
7309RANLIB=$ac_cv_prog_RANLIB
7310if test -n "$RANLIB"; then
7311  echo "$as_me:$LINENO: result: $RANLIB" >&5
7312echo "${ECHO_T}$RANLIB" >&6
7313else
7314  echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
7316fi
7317
7318fi
7319if test -z "$ac_cv_prog_RANLIB"; then
7320  ac_ct_RANLIB=$RANLIB
7321  # Extract the first word of "ranlib", so it can be a program name with args.
7322set dummy ranlib; ac_word=$2
7323echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7326  echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328  if test -n "$ac_ct_RANLIB"; then
7329  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338    ac_cv_prog_ac_ct_RANLIB="ranlib"
7339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344
7345  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7346fi
7347fi
7348ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7349if test -n "$ac_ct_RANLIB"; then
7350  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7351echo "${ECHO_T}$ac_ct_RANLIB" >&6
7352else
7353  echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6
7355fi
7356
7357  RANLIB=$ac_ct_RANLIB
7358else
7359  RANLIB="$ac_cv_prog_RANLIB"
7360fi
7361
7362if test -n "$ac_tool_prefix"; then
7363  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7364set dummy ${ac_tool_prefix}strip; ac_word=$2
7365echo "$as_me:$LINENO: checking for $ac_word" >&5
7366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7367if test "${ac_cv_prog_STRIP+set}" = set; then
7368  echo $ECHO_N "(cached) $ECHO_C" >&6
7369else
7370  if test -n "$STRIP"; then
7371  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376  IFS=$as_save_IFS
7377  test -z "$as_dir" && as_dir=.
7378  for ac_exec_ext in '' $ac_executable_extensions; do
7379  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382    break 2
7383  fi
7384done
7385done
7386
7387fi
7388fi
7389STRIP=$ac_cv_prog_STRIP
7390if test -n "$STRIP"; then
7391  echo "$as_me:$LINENO: result: $STRIP" >&5
7392echo "${ECHO_T}$STRIP" >&6
7393else
7394  echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
7396fi
7397
7398fi
7399if test -z "$ac_cv_prog_STRIP"; then
7400  ac_ct_STRIP=$STRIP
7401  # Extract the first word of "strip", so it can be a program name with args.
7402set dummy strip; ac_word=$2
7403echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7405if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408  if test -n "$ac_ct_STRIP"; then
7409  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414  IFS=$as_save_IFS
7415  test -z "$as_dir" && as_dir=.
7416  for ac_exec_ext in '' $ac_executable_extensions; do
7417  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418    ac_cv_prog_ac_ct_STRIP="strip"
7419    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420    break 2
7421  fi
7422done
7423done
7424
7425  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7426fi
7427fi
7428ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7429if test -n "$ac_ct_STRIP"; then
7430  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7431echo "${ECHO_T}$ac_ct_STRIP" >&6
7432else
7433  echo "$as_me:$LINENO: result: no" >&5
7434echo "${ECHO_T}no" >&6
7435fi
7436
7437  STRIP=$ac_ct_STRIP
7438else
7439  STRIP="$ac_cv_prog_STRIP"
7440fi
7441
7442
7443old_CC="$CC"
7444old_CFLAGS="$CFLAGS"
7445
7446# Set sane defaults for various variables
7447test -z "$AR" && AR=ar
7448test -z "$AR_FLAGS" && AR_FLAGS=cru
7449test -z "$AS" && AS=as
7450test -z "$CC" && CC=cc
7451test -z "$LTCC" && LTCC=$CC
7452test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7453test -z "$DLLTOOL" && DLLTOOL=dlltool
7454test -z "$LD" && LD=ld
7455test -z "$LN_S" && LN_S="ln -s"
7456test -z "$MAGIC_CMD" && MAGIC_CMD=file
7457test -z "$NM" && NM=nm
7458test -z "$SED" && SED=sed
7459test -z "$OBJDUMP" && OBJDUMP=objdump
7460test -z "$RANLIB" && RANLIB=:
7461test -z "$STRIP" && STRIP=:
7462test -z "$ac_objext" && ac_objext=o
7463
7464# Determine commands to create old-style static archives.
7465old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7466old_postinstall_cmds='chmod 644 $oldlib'
7467old_postuninstall_cmds=
7468
7469if test -n "$RANLIB"; then
7470  case $host_os in
7471  openbsd*)
7472    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7473    ;;
7474  *)
7475    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7476    ;;
7477  esac
7478  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7479fi
7480
7481for cc_temp in $compiler""; do
7482  case $cc_temp in
7483    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7484    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7485    \-*) ;;
7486    *) break;;
7487  esac
7488done
7489cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7490
7491
7492# Only perform the check for file, if the check method requires it
7493case $deplibs_check_method in
7494file_magic*)
7495  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7496    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7497echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7498if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7499  echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501  case $MAGIC_CMD in
7502[\\/*] |  ?:[\\/]*)
7503  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7504  ;;
7505*)
7506  lt_save_MAGIC_CMD="$MAGIC_CMD"
7507  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7508  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7509  for ac_dir in $ac_dummy; do
7510    IFS="$lt_save_ifs"
7511    test -z "$ac_dir" && ac_dir=.
7512    if test -f $ac_dir/${ac_tool_prefix}file; then
7513      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7514      if test -n "$file_magic_test_file"; then
7515        case $deplibs_check_method in
7516        "file_magic "*)
7517          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7518          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7520            $EGREP "$file_magic_regex" > /dev/null; then
7521            :
7522          else
7523            cat <<EOF 1>&2
7524
7525*** Warning: the command libtool uses to detect shared libraries,
7526*** $file_magic_cmd, produces output that libtool cannot recognize.
7527*** The result is that libtool may fail to recognize shared libraries
7528*** as such.  This will affect the creation of libtool libraries that
7529*** depend on shared libraries, but programs linked with such libtool
7530*** libraries will work regardless of this problem.  Nevertheless, you
7531*** may want to report the problem to your system manager and/or to
7532*** bug-libtool@gnu.org
7533
7534EOF
7535          fi ;;
7536        esac
7537      fi
7538      break
7539    fi
7540  done
7541  IFS="$lt_save_ifs"
7542  MAGIC_CMD="$lt_save_MAGIC_CMD"
7543  ;;
7544esac
7545fi
7546
7547MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548if test -n "$MAGIC_CMD"; then
7549  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7550echo "${ECHO_T}$MAGIC_CMD" >&6
7551else
7552  echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6
7554fi
7555
7556if test -z "$lt_cv_path_MAGIC_CMD"; then
7557  if test -n "$ac_tool_prefix"; then
7558    echo "$as_me:$LINENO: checking for file" >&5
7559echo $ECHO_N "checking for file... $ECHO_C" >&6
7560if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7561  echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563  case $MAGIC_CMD in
7564[\\/*] |  ?:[\\/]*)
7565  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7566  ;;
7567*)
7568  lt_save_MAGIC_CMD="$MAGIC_CMD"
7569  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7570  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7571  for ac_dir in $ac_dummy; do
7572    IFS="$lt_save_ifs"
7573    test -z "$ac_dir" && ac_dir=.
7574    if test -f $ac_dir/file; then
7575      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7576      if test -n "$file_magic_test_file"; then
7577        case $deplibs_check_method in
7578        "file_magic "*)
7579          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7580          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7581          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7582            $EGREP "$file_magic_regex" > /dev/null; then
7583            :
7584          else
7585            cat <<EOF 1>&2
7586
7587*** Warning: the command libtool uses to detect shared libraries,
7588*** $file_magic_cmd, produces output that libtool cannot recognize.
7589*** The result is that libtool may fail to recognize shared libraries
7590*** as such.  This will affect the creation of libtool libraries that
7591*** depend on shared libraries, but programs linked with such libtool
7592*** libraries will work regardless of this problem.  Nevertheless, you
7593*** may want to report the problem to your system manager and/or to
7594*** bug-libtool@gnu.org
7595
7596EOF
7597          fi ;;
7598        esac
7599      fi
7600      break
7601    fi
7602  done
7603  IFS="$lt_save_ifs"
7604  MAGIC_CMD="$lt_save_MAGIC_CMD"
7605  ;;
7606esac
7607fi
7608
7609MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7610if test -n "$MAGIC_CMD"; then
7611  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7612echo "${ECHO_T}$MAGIC_CMD" >&6
7613else
7614  echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6
7616fi
7617
7618  else
7619    MAGIC_CMD=:
7620  fi
7621fi
7622
7623  fi
7624  ;;
7625esac
7626
7627enable_dlopen=no
7628enable_win32_dll=no
7629
7630# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7631if test "${enable_libtool_lock+set}" = set; then
7632  enableval="$enable_libtool_lock"
7633
7634fi;
7635test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7636
7637
7638# Check whether --with-pic or --without-pic was given.
7639if test "${with_pic+set}" = set; then
7640  withval="$with_pic"
7641  pic_mode="$withval"
7642else
7643  pic_mode=default
7644fi;
7645test -z "$pic_mode" && pic_mode=default
7646
7647# Use C for the default configuration in the libtool script
7648tagname=
7649lt_save_CC="$CC"
7650ac_ext=c
7651ac_cpp='$CPP $CPPFLAGS'
7652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656
7657# Source file extension for C test sources.
7658ac_ext=c
7659
7660# Object file extension for compiled C test sources.
7661objext=o
7662objext=$objext
7663
7664# Code to be used in simple compile tests
7665lt_simple_compile_test_code="int some_variable = 0;\n"
7666
7667# Code to be used in simple link tests
7668lt_simple_link_test_code='int main(){return(0);}\n'
7669
7670
7671# If no C compiler was specified, use CC.
7672LTCC=${LTCC-"$CC"}
7673
7674# If no C compiler flags were specified, use CFLAGS.
7675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7676
7677# Allow CC to be a program name with arguments.
7678compiler=$CC
7679
7680
7681# save warnings/boilerplate of simple test code
7682ac_outfile=conftest.$ac_objext
7683printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685_lt_compiler_boilerplate=`cat conftest.err`
7686$rm conftest*
7687
7688ac_outfile=conftest.$ac_objext
7689printf "$lt_simple_link_test_code" >conftest.$ac_ext
7690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7691_lt_linker_boilerplate=`cat conftest.err`
7692$rm conftest*
7693
7694
7695## CAVEAT EMPTOR:
7696## There is no encapsulation within the following macros, do not change
7697## the running order or otherwise move them around unless you know exactly
7698## what you are doing...
7699
7700lt_prog_compiler_no_builtin_flag=
7701
7702if test "$GCC" = yes; then
7703  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7704
7705
7706echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7707echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7708if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  lt_cv_prog_compiler_rtti_exceptions=no
7712  ac_outfile=conftest.$ac_objext
7713   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7714   lt_compiler_flag="-fno-rtti -fno-exceptions"
7715   # Insert the option either (1) after the last *FLAGS variable, or
7716   # (2) before a word containing "conftest.", or (3) at the end.
7717   # Note that $ac_compile itself does not contain backslashes and begins
7718   # with a dollar sign (not a hyphen), so the echo should work correctly.
7719   # The option is referenced via a variable to avoid confusing sed.
7720   lt_compile=`echo "$ac_compile" | $SED \
7721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7723   -e 's:$: $lt_compiler_flag:'`
7724   (eval echo "\"\$as_me:7724: $lt_compile\"" >&5)
7725   (eval "$lt_compile" 2>conftest.err)
7726   ac_status=$?
7727   cat conftest.err >&5
7728   echo "$as_me:7728: \$? = $ac_status" >&5
7729   if (exit $ac_status) && test -s "$ac_outfile"; then
7730     # The compiler can only warn and ignore the option if not recognized
7731     # So say no if there are warnings other than the usual output.
7732     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7733     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7734     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7735       lt_cv_prog_compiler_rtti_exceptions=yes
7736     fi
7737   fi
7738   $rm conftest*
7739
7740fi
7741echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7742echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7743
7744if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7745    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7746else
7747    :
7748fi
7749
7750fi
7751
7752lt_prog_compiler_wl=
7753lt_prog_compiler_pic=
7754lt_prog_compiler_static=
7755
7756echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7757echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7758
7759  if test "$GCC" = yes; then
7760    lt_prog_compiler_wl='-Wl,'
7761    lt_prog_compiler_static='-static'
7762
7763    case $host_os in
7764      aix*)
7765      # All AIX code is PIC.
7766      if test "$host_cpu" = ia64; then
7767        # AIX 5 now supports IA64 processor
7768        lt_prog_compiler_static='-Bstatic'
7769      fi
7770      ;;
7771
7772    amigaos*)
7773      # FIXME: we need at least 68020 code to build shared libraries, but
7774      # adding the `-m68020' flag to GCC prevents building anything better,
7775      # like `-m68040'.
7776      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7777      ;;
7778
7779    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7780      # PIC is the default for these OSes.
7781      ;;
7782
7783    mingw* | pw32* | os2*)
7784      # This hack is so that the source file can tell whether it is being
7785      # built for inclusion in a dll (and should export symbols for example).
7786      lt_prog_compiler_pic='-DDLL_EXPORT'
7787      ;;
7788
7789    darwin* | rhapsody*)
7790      # PIC is the default on this platform
7791      # Common symbols not allowed in MH_DYLIB files
7792      lt_prog_compiler_pic='-fno-common'
7793      ;;
7794
7795    interix3*)
7796      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7797      # Instead, we relocate shared libraries at runtime.
7798      ;;
7799
7800    msdosdjgpp*)
7801      # Just because we use GCC doesn't mean we suddenly get shared libraries
7802      # on systems that don't support them.
7803      lt_prog_compiler_can_build_shared=no
7804      enable_shared=no
7805      ;;
7806
7807    sysv4*MP*)
7808      if test -d /usr/nec; then
7809        lt_prog_compiler_pic=-Kconform_pic
7810      fi
7811      ;;
7812
7813    hpux*)
7814      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7815      # not for PA HP-UX.
7816      case $host_cpu in
7817      hppa*64*|ia64*)
7818        # +Z the default
7819        ;;
7820      *)
7821        lt_prog_compiler_pic='-fPIC'
7822        ;;
7823      esac
7824      ;;
7825
7826    *)
7827      lt_prog_compiler_pic='-fPIC'
7828      ;;
7829    esac
7830  else
7831    # PORTME Check for flag to pass linker flags through the system compiler.
7832    case $host_os in
7833    aix*)
7834      lt_prog_compiler_wl='-Wl,'
7835      if test "$host_cpu" = ia64; then
7836        # AIX 5 now supports IA64 processor
7837        lt_prog_compiler_static='-Bstatic'
7838      else
7839        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7840      fi
7841      ;;
7842      darwin*)
7843        # PIC is the default on this platform
7844        # Common symbols not allowed in MH_DYLIB files
7845       case $cc_basename in
7846         xlc*)
7847         lt_prog_compiler_pic='-qnocommon'
7848         lt_prog_compiler_wl='-Wl,'
7849         ;;
7850       esac
7851       ;;
7852
7853    mingw* | pw32* | os2*)
7854      # This hack is so that the source file can tell whether it is being
7855      # built for inclusion in a dll (and should export symbols for example).
7856      lt_prog_compiler_pic='-DDLL_EXPORT'
7857      ;;
7858
7859    hpux9* | hpux10* | hpux11*)
7860      lt_prog_compiler_wl='-Wl,'
7861      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7862      # not for PA HP-UX.
7863      case $host_cpu in
7864      hppa*64*|ia64*)
7865        # +Z the default
7866        ;;
7867      *)
7868        lt_prog_compiler_pic='+Z'
7869        ;;
7870      esac
7871      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7872      lt_prog_compiler_static='${wl}-a ${wl}archive'
7873      ;;
7874
7875    irix5* | irix6* | nonstopux*)
7876      lt_prog_compiler_wl='-Wl,'
7877      # PIC (with -KPIC) is the default.
7878      lt_prog_compiler_static='-non_shared'
7879      ;;
7880
7881    newsos6)
7882      lt_prog_compiler_pic='-KPIC'
7883      lt_prog_compiler_static='-Bstatic'
7884      ;;
7885
7886    linux*)
7887      case $cc_basename in
7888      icc* | ecc*)
7889        lt_prog_compiler_wl='-Wl,'
7890        lt_prog_compiler_pic='-KPIC'
7891        lt_prog_compiler_static='-static'
7892        ;;
7893      pgcc* | pgf77* | pgf90* | pgf95*)
7894        # Portland Group compilers (*not* the Pentium gcc compiler,
7895        # which looks to be a dead project)
7896        lt_prog_compiler_wl='-Wl,'
7897        lt_prog_compiler_pic='-fpic'
7898        lt_prog_compiler_static='-Bstatic'
7899        ;;
7900      ccc*)
7901        lt_prog_compiler_wl='-Wl,'
7902        # All Alpha code is PIC.
7903        lt_prog_compiler_static='-non_shared'
7904        ;;
7905      esac
7906      ;;
7907
7908    osf3* | osf4* | osf5*)
7909      lt_prog_compiler_wl='-Wl,'
7910      # All OSF/1 code is PIC.
7911      lt_prog_compiler_static='-non_shared'
7912      ;;
7913
7914    solaris*)
7915      lt_prog_compiler_pic='-KPIC'
7916      lt_prog_compiler_static='-Bstatic'
7917      case $cc_basename in
7918      f77* | f90* | f95*)
7919        lt_prog_compiler_wl='-Qoption ld ';;
7920      *)
7921        lt_prog_compiler_wl='-Wl,';;
7922      esac
7923      ;;
7924
7925    sunos4*)
7926      lt_prog_compiler_wl='-Qoption ld '
7927      lt_prog_compiler_pic='-PIC'
7928      lt_prog_compiler_static='-Bstatic'
7929      ;;
7930
7931    sysv4 | sysv4.2uw2* | sysv4.3*)
7932      lt_prog_compiler_wl='-Wl,'
7933      lt_prog_compiler_pic='-KPIC'
7934      lt_prog_compiler_static='-Bstatic'
7935      ;;
7936
7937    sysv4*MP*)
7938      if test -d /usr/nec ;then
7939        lt_prog_compiler_pic='-Kconform_pic'
7940        lt_prog_compiler_static='-Bstatic'
7941      fi
7942      ;;
7943
7944    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7945      lt_prog_compiler_wl='-Wl,'
7946      lt_prog_compiler_pic='-KPIC'
7947      lt_prog_compiler_static='-Bstatic'
7948      ;;
7949
7950    unicos*)
7951      lt_prog_compiler_wl='-Wl,'
7952      lt_prog_compiler_can_build_shared=no
7953      ;;
7954
7955    uts4*)
7956      lt_prog_compiler_pic='-pic'
7957      lt_prog_compiler_static='-Bstatic'
7958      ;;
7959
7960    *)
7961      lt_prog_compiler_can_build_shared=no
7962      ;;
7963    esac
7964  fi
7965
7966echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7967echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7968
7969#
7970# Check to make sure the PIC flag actually works.
7971#
7972if test -n "$lt_prog_compiler_pic"; then
7973
7974echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7975echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7976if test "${lt_prog_compiler_pic_works+set}" = set; then
7977  echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979  lt_prog_compiler_pic_works=no
7980  ac_outfile=conftest.$ac_objext
7981   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7982   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7983   # Insert the option either (1) after the last *FLAGS variable, or
7984   # (2) before a word containing "conftest.", or (3) at the end.
7985   # Note that $ac_compile itself does not contain backslashes and begins
7986   # with a dollar sign (not a hyphen), so the echo should work correctly.
7987   # The option is referenced via a variable to avoid confusing sed.
7988   lt_compile=`echo "$ac_compile" | $SED \
7989   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991   -e 's:$: $lt_compiler_flag:'`
7992   (eval echo "\"\$as_me:7992: $lt_compile\"" >&5)
7993   (eval "$lt_compile" 2>conftest.err)
7994   ac_status=$?
7995   cat conftest.err >&5
7996   echo "$as_me:7996: \$? = $ac_status" >&5
7997   if (exit $ac_status) && test -s "$ac_outfile"; then
7998     # The compiler can only warn and ignore the option if not recognized
7999     # So say no if there are warnings other than the usual output.
8000     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8001     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8003       lt_prog_compiler_pic_works=yes
8004     fi
8005   fi
8006   $rm conftest*
8007
8008fi
8009echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8010echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8011
8012if test x"$lt_prog_compiler_pic_works" = xyes; then
8013    case $lt_prog_compiler_pic in
8014     "" | " "*) ;;
8015     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8016     esac
8017else
8018    lt_prog_compiler_pic=
8019     lt_prog_compiler_can_build_shared=no
8020fi
8021
8022fi
8023case $host_os in
8024  # For platforms which do not support PIC, -DPIC is meaningless:
8025  *djgpp*)
8026    lt_prog_compiler_pic=
8027    ;;
8028  *)
8029    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8030    ;;
8031esac
8032
8033#
8034# Check to make sure the static flag actually works.
8035#
8036wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8037echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8038echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8039if test "${lt_prog_compiler_static_works+set}" = set; then
8040  echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042  lt_prog_compiler_static_works=no
8043   save_LDFLAGS="$LDFLAGS"
8044   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8045   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8046   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8047     # The linker can only warn and ignore the option if not recognized
8048     # So say no if there are warnings
8049     if test -s conftest.err; then
8050       # Append any errors to the config.log.
8051       cat conftest.err 1>&5
8052       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8053       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8054       if diff conftest.exp conftest.er2 >/dev/null; then
8055         lt_prog_compiler_static_works=yes
8056       fi
8057     else
8058       lt_prog_compiler_static_works=yes
8059     fi
8060   fi
8061   $rm conftest*
8062   LDFLAGS="$save_LDFLAGS"
8063
8064fi
8065echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8066echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8067
8068if test x"$lt_prog_compiler_static_works" = xyes; then
8069    :
8070else
8071    lt_prog_compiler_static=
8072fi
8073
8074
8075echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8076echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8077if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8078  echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080  lt_cv_prog_compiler_c_o=no
8081   $rm -r conftest 2>/dev/null
8082   mkdir conftest
8083   cd conftest
8084   mkdir out
8085   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8086
8087   lt_compiler_flag="-o out/conftest2.$ac_objext"
8088   # Insert the option either (1) after the last *FLAGS variable, or
8089   # (2) before a word containing "conftest.", or (3) at the end.
8090   # Note that $ac_compile itself does not contain backslashes and begins
8091   # with a dollar sign (not a hyphen), so the echo should work correctly.
8092   lt_compile=`echo "$ac_compile" | $SED \
8093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095   -e 's:$: $lt_compiler_flag:'`
8096   (eval echo "\"\$as_me:8096: $lt_compile\"" >&5)
8097   (eval "$lt_compile" 2>out/conftest.err)
8098   ac_status=$?
8099   cat out/conftest.err >&5
8100   echo "$as_me:8100: \$? = $ac_status" >&5
8101   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8102   then
8103     # The compiler can only warn and ignore the option if not recognized
8104     # So say no if there are warnings
8105     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8106     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8107     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8108       lt_cv_prog_compiler_c_o=yes
8109     fi
8110   fi
8111   chmod u+w . 2>&5
8112   $rm conftest*
8113   # SGI C++ compiler will create directory out/ii_files/ for
8114   # template instantiation
8115   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8116   $rm out/* && rmdir out
8117   cd ..
8118   rmdir conftest
8119   $rm conftest*
8120
8121fi
8122echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8123echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8124
8125
8126hard_links="nottested"
8127if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8128  # do not overwrite the value of need_locks provided by the user
8129  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8130echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8131  hard_links=yes
8132  $rm conftest*
8133  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8134  touch conftest.a
8135  ln conftest.a conftest.b 2>&5 || hard_links=no
8136  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137  echo "$as_me:$LINENO: result: $hard_links" >&5
8138echo "${ECHO_T}$hard_links" >&6
8139  if test "$hard_links" = no; then
8140    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8141echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8142    need_locks=warn
8143  fi
8144else
8145  need_locks=no
8146fi
8147
8148echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8149echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8150
8151  runpath_var=
8152  allow_undefined_flag=
8153  enable_shared_with_static_runtimes=no
8154  archive_cmds=
8155  archive_expsym_cmds=
8156  old_archive_From_new_cmds=
8157  old_archive_from_expsyms_cmds=
8158  export_dynamic_flag_spec=
8159  whole_archive_flag_spec=
8160  thread_safe_flag_spec=
8161  hardcode_libdir_flag_spec=
8162  hardcode_libdir_flag_spec_ld=
8163  hardcode_libdir_separator=
8164  hardcode_direct=no
8165  hardcode_minus_L=no
8166  hardcode_shlibpath_var=unsupported
8167  link_all_deplibs=unknown
8168  hardcode_automatic=no
8169  module_cmds=
8170  module_expsym_cmds=
8171  always_export_symbols=no
8172  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8173  # include_expsyms should be a list of space-separated symbols to be *always*
8174  # included in the symbol list
8175  include_expsyms=
8176  # exclude_expsyms can be an extended regexp of symbols to exclude
8177  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8178  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8179  # as well as any symbol that contains `d'.
8180  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8181  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8182  # platforms (ab)use it in PIC code, but their linkers get confused if
8183  # the symbol is explicitly referenced.  Since portable code cannot
8184  # rely on this symbol name, it's probably fine to never include it in
8185  # preloaded symbol tables.
8186  extract_expsyms_cmds=
8187  # Just being paranoid about ensuring that cc_basename is set.
8188  for cc_temp in $compiler""; do
8189  case $cc_temp in
8190    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8191    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8192    \-*) ;;
8193    *) break;;
8194  esac
8195done
8196cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8197
8198  case $host_os in
8199  cygwin* | mingw* | pw32*)
8200    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8201    # When not using gcc, we currently assume that we are using
8202    # Microsoft Visual C++.
8203    if test "$GCC" != yes; then
8204      with_gnu_ld=no
8205    fi
8206    ;;
8207  interix*)
8208    # we just hope/assume this is gcc and not c89 (= MSVC++)
8209    with_gnu_ld=yes
8210    ;;
8211  openbsd*)
8212    with_gnu_ld=no
8213    ;;
8214  esac
8215
8216  ld_shlibs=yes
8217  if test "$with_gnu_ld" = yes; then
8218    # If archive_cmds runs LD, not CC, wlarc should be empty
8219    wlarc='${wl}'
8220
8221    # Set some defaults for GNU ld with shared library support. These
8222    # are reset later if shared libraries are not supported. Putting them
8223    # here allows them to be overridden if necessary.
8224    runpath_var=LD_RUN_PATH
8225    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8226    export_dynamic_flag_spec='${wl}--export-dynamic'
8227    # ancient GNU ld didn't support --whole-archive et. al.
8228    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8229        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8230      else
8231        whole_archive_flag_spec=
8232    fi
8233    supports_anon_versioning=no
8234    case `$LD -v 2>/dev/null` in
8235      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8236      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8237      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8238      *\ 2.11.*) ;; # other 2.11 versions
8239      *) supports_anon_versioning=yes ;;
8240    esac
8241
8242    # See if GNU ld supports shared libraries.
8243    case $host_os in
8244    aix3* | aix4* | aix5*)
8245      # On AIX/PPC, the GNU linker is very broken
8246      if test "$host_cpu" != ia64; then
8247        ld_shlibs=no
8248        cat <<EOF 1>&2
8249
8250*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8251*** to be unable to reliably create shared libraries on AIX.
8252*** Therefore, libtool is disabling shared libraries support.  If you
8253*** really care for shared libraries, you may want to modify your PATH
8254*** so that a non-GNU linker is found, and then restart.
8255
8256EOF
8257      fi
8258      ;;
8259
8260    amigaos*)
8261      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)'
8262      hardcode_libdir_flag_spec='-L$libdir'
8263      hardcode_minus_L=yes
8264
8265      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8266      # that the semantics of dynamic libraries on AmigaOS, at least up
8267      # to version 4, is to share data among multiple programs linked
8268      # with the same dynamic library.  Since this doesn't match the
8269      # behavior of shared libraries on other platforms, we can't use
8270      # them.
8271      ld_shlibs=no
8272      ;;
8273
8274    beos*)
8275      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276        allow_undefined_flag=unsupported
8277        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8278        # support --undefined.  This deserves some investigation.  FIXME
8279        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280      else
8281        ld_shlibs=no
8282      fi
8283      ;;
8284
8285    cygwin* | mingw* | pw32*)
8286      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8287      # as there is no search path for DLLs.
8288      hardcode_libdir_flag_spec='-L$libdir'
8289      allow_undefined_flag=unsupported
8290      always_export_symbols=no
8291      enable_shared_with_static_runtimes=yes
8292      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8293
8294      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8295        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8296        # If the export-symbols file already is a .def file (1st line
8297        # is EXPORTS), use it as is; otherwise, prepend...
8298        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8299          cp $export_symbols $output_objdir/$soname.def;
8300        else
8301          echo EXPORTS > $output_objdir/$soname.def;
8302          cat $export_symbols >> $output_objdir/$soname.def;
8303        fi~
8304        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8305      else
8306        ld_shlibs=no
8307      fi
8308      ;;
8309
8310    interix3*)
8311      hardcode_direct=no
8312      hardcode_shlibpath_var=no
8313      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8314      export_dynamic_flag_spec='${wl}-E'
8315      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8316      # Instead, shared libraries are loaded at an image base (0x10000000 by
8317      # default) and relocated if they conflict, which is a slow very memory
8318      # consuming and fragmenting process.  To avoid this, we pick a random,
8319      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8320      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8321      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8322      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'
8323      ;;
8324
8325    linux*)
8326      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8327        tmp_addflag=
8328        case $cc_basename,$host_cpu in
8329        pgcc*)                          # Portland Group C compiler
8330          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'
8331          tmp_addflag=' $pic_flag'
8332          ;;
8333        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8334          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'
8335          tmp_addflag=' $pic_flag -Mnomain' ;;
8336        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8337          tmp_addflag=' -i_dynamic' ;;
8338        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8339          tmp_addflag=' -i_dynamic -nofor_main' ;;
8340        ifc* | ifort*)                  # Intel Fortran compiler
8341          tmp_addflag=' -nofor_main' ;;
8342        esac
8343        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344
8345        if test $supports_anon_versioning = yes; then
8346          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8347  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8348  $echo "local: *; };" >> $output_objdir/$libname.ver~
8349          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8350        fi
8351      else
8352        ld_shlibs=no
8353      fi
8354      ;;
8355
8356    netbsd*)
8357      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8358        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8359        wlarc=
8360      else
8361        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8362        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8363      fi
8364      ;;
8365
8366    solaris*)
8367      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8368        ld_shlibs=no
8369        cat <<EOF 1>&2
8370
8371*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8372*** create shared libraries on Solaris systems.  Therefore, libtool
8373*** is disabling shared libraries support.  We urge you to upgrade GNU
8374*** binutils to release 2.9.1 or newer.  Another option is to modify
8375*** your PATH or compiler configuration so that the native linker is
8376*** used, and then restart.
8377
8378EOF
8379      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8380        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382      else
8383        ld_shlibs=no
8384      fi
8385      ;;
8386
8387    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8388      case `$LD -v 2>&1` in
8389        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8390        ld_shlibs=no
8391        cat <<_LT_EOF 1>&2
8392
8393*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8394*** reliably create shared libraries on SCO systems.  Therefore, libtool
8395*** is disabling shared libraries support.  We urge you to upgrade GNU
8396*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8397*** your PATH or compiler configuration so that the native linker is
8398*** used, and then restart.
8399
8400_LT_EOF
8401        ;;
8402        *)
8403          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8404            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8405            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8406            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8407          else
8408            ld_shlibs=no
8409          fi
8410        ;;
8411      esac
8412      ;;
8413
8414    sunos4*)
8415      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8416      wlarc=
8417      hardcode_direct=yes
8418      hardcode_shlibpath_var=no
8419      ;;
8420
8421    *)
8422      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8423        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425      else
8426        ld_shlibs=no
8427      fi
8428      ;;
8429    esac
8430
8431    if test "$ld_shlibs" = no; then
8432      runpath_var=
8433      hardcode_libdir_flag_spec=
8434      export_dynamic_flag_spec=
8435      whole_archive_flag_spec=
8436    fi
8437  else
8438    # PORTME fill in a description of your system's linker (not GNU ld)
8439    case $host_os in
8440    aix3*)
8441      allow_undefined_flag=unsupported
8442      always_export_symbols=yes
8443      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'
8444      # Note: this linker hardcodes the directories in LIBPATH if there
8445      # are no directories specified by -L.
8446      hardcode_minus_L=yes
8447      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8448        # Neither direct hardcoding nor static linking is supported with a
8449        # broken collect2.
8450        hardcode_direct=unsupported
8451      fi
8452      ;;
8453
8454    aix4* | aix5*)
8455      if test "$host_cpu" = ia64; then
8456        # On IA64, the linker does run time linking by default, so we don't
8457        # have to do anything special.
8458        aix_use_runtimelinking=no
8459        exp_sym_flag='-Bexport'
8460        no_entry_flag=""
8461      else
8462        # If we're using GNU nm, then we don't want the "-C" option.
8463        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8464        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8465          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'
8466        else
8467          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'
8468        fi
8469        aix_use_runtimelinking=no
8470
8471        # Test if we are trying to use run time linking or normal
8472        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8473        # need to do runtime linking.
8474        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8475          for ld_flag in $LDFLAGS; do
8476          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8477            aix_use_runtimelinking=yes
8478            break
8479          fi
8480          done
8481          ;;
8482        esac
8483
8484        exp_sym_flag='-bexport'
8485        no_entry_flag='-bnoentry'
8486      fi
8487
8488      # When large executables or shared objects are built, AIX ld can
8489      # have problems creating the table of contents.  If linking a library
8490      # or program results in "error TOC overflow" add -mminimal-toc to
8491      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8492      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8493
8494      archive_cmds=''
8495      hardcode_direct=yes
8496      hardcode_libdir_separator=':'
8497      link_all_deplibs=yes
8498
8499      if test "$GCC" = yes; then
8500        case $host_os in aix4.[012]|aix4.[012].*)
8501        # We only want to do this on AIX 4.2 and lower, the check
8502        # below for broken collect2 doesn't work under 4.3+
8503          collect2name=`${CC} -print-prog-name=collect2`
8504          if test -f "$collect2name" && \
8505           strings "$collect2name" | grep resolve_lib_name >/dev/null
8506          then
8507          # We have reworked collect2
8508          hardcode_direct=yes
8509          else
8510          # We have old collect2
8511          hardcode_direct=unsupported
8512          # It fails to find uninstalled libraries when the uninstalled
8513          # path is not listed in the libpath.  Setting hardcode_minus_L
8514          # to unsupported forces relinking
8515          hardcode_minus_L=yes
8516          hardcode_libdir_flag_spec='-L$libdir'
8517          hardcode_libdir_separator=
8518          fi
8519          ;;
8520        esac
8521        shared_flag='-shared'
8522        if test "$aix_use_runtimelinking" = yes; then
8523          shared_flag="$shared_flag "'${wl}-G'
8524        fi
8525      else
8526        # not using gcc
8527        if test "$host_cpu" = ia64; then
8528        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8529        # chokes on -Wl,-G. The following line is correct:
8530          shared_flag='-G'
8531        else
8532          if test "$aix_use_runtimelinking" = yes; then
8533            shared_flag='${wl}-G'
8534          else
8535            shared_flag='${wl}-bM:SRE'
8536          fi
8537        fi
8538      fi
8539
8540      # It seems that -bexpall does not export symbols beginning with
8541      # underscore (_), so it is better to generate a list of symbols to export.
8542      always_export_symbols=yes
8543      if test "$aix_use_runtimelinking" = yes; then
8544        # Warning - without using the other runtime loading flags (-brtl),
8545        # -berok will link without error, but may produce a broken library.
8546        allow_undefined_flag='-berok'
8547       # Determine the default libpath from the value encoded in an empty executable.
8548       cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h.  */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h.  */
8554
8555int
8556main ()
8557{
8558
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext conftest$ac_exeext
8564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565  (eval $ac_link) 2>conftest.er1
8566  ac_status=$?
8567  grep -v '^ *+' conftest.er1 >conftest.err
8568  rm -f conftest.er1
8569  cat conftest.err >&5
8570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571  (exit $ac_status); } &&
8572         { ac_try='test -z "$ac_c_werror_flag"
8573                         || test ! -s conftest.err'
8574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575  (eval $ac_try) 2>&5
8576  ac_status=$?
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); }; } &&
8579         { ac_try='test -s conftest$ac_exeext'
8580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581  (eval $ac_try) 2>&5
8582  ac_status=$?
8583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); }; }; then
8585
8586aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8587}'`
8588# Check for a 64-bit object if we didn't find anything.
8589if 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; }
8590}'`; fi
8591else
8592  echo "$as_me: failed program was:" >&5
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
8595fi
8596rm -f conftest.err conftest.$ac_objext \
8597      conftest$ac_exeext conftest.$ac_ext
8598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8599
8600       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8601        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"
8602       else
8603        if test "$host_cpu" = ia64; then
8604          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8605          allow_undefined_flag="-z nodefs"
8606          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"
8607        else
8608         # Determine the default libpath from the value encoded in an empty executable.
8609         cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h.  */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h.  */
8615
8616int
8617main ()
8618{
8619
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624rm -f conftest.$ac_objext conftest$ac_exeext
8625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626  (eval $ac_link) 2>conftest.er1
8627  ac_status=$?
8628  grep -v '^ *+' conftest.er1 >conftest.err
8629  rm -f conftest.er1
8630  cat conftest.err >&5
8631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); } &&
8633         { ac_try='test -z "$ac_c_werror_flag"
8634                         || test ! -s conftest.err'
8635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636  (eval $ac_try) 2>&5
8637  ac_status=$?
8638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639  (exit $ac_status); }; } &&
8640         { ac_try='test -s conftest$ac_exeext'
8641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642  (eval $ac_try) 2>&5
8643  ac_status=$?
8644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645  (exit $ac_status); }; }; then
8646
8647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8648}'`
8649# Check for a 64-bit object if we didn't find anything.
8650if 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; }
8651}'`; fi
8652else
8653  echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
8656fi
8657rm -f conftest.err conftest.$ac_objext \
8658      conftest$ac_exeext conftest.$ac_ext
8659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8660
8661         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8662          # Warning - without using the other run time loading flags,
8663          # -berok will link without error, but may produce a broken library.
8664          no_undefined_flag=' ${wl}-bernotok'
8665          allow_undefined_flag=' ${wl}-berok'
8666          # Exported symbols can be pulled into shared objects from archives
8667          whole_archive_flag_spec='$convenience'
8668          archive_cmds_need_lc=yes
8669          # This is similar to how AIX traditionally builds its shared libraries.
8670          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'
8671        fi
8672      fi
8673      ;;
8674
8675    amigaos*)
8676      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)'
8677      hardcode_libdir_flag_spec='-L$libdir'
8678      hardcode_minus_L=yes
8679      # see comment about different semantics on the GNU ld section
8680      ld_shlibs=no
8681      ;;
8682
8683    bsdi[45]*)
8684      export_dynamic_flag_spec=-rdynamic
8685      ;;
8686
8687    cygwin* | mingw* | pw32*)
8688      # When not using gcc, we currently assume that we are using
8689      # Microsoft Visual C++.
8690      # hardcode_libdir_flag_spec is actually meaningless, as there is
8691      # no search path for DLLs.
8692      hardcode_libdir_flag_spec=' '
8693      allow_undefined_flag=unsupported
8694      # Tell ltmain to make .lib files, not .a files.
8695      libext=lib
8696      # Tell ltmain to make .dll files, not .so files.
8697      shrext_cmds=".dll"
8698      # FIXME: Setting linknames here is a bad hack.
8699      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700      # The linker will automatically build a .lib file if we build a DLL.
8701      old_archive_From_new_cmds='true'
8702      # FIXME: Should let the user specify the lib program.
8703      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8704      fix_srcfile_path='`cygpath -w "$srcfile"`'
8705      enable_shared_with_static_runtimes=yes
8706      ;;
8707
8708    darwin* | rhapsody*)
8709      case $host_os in
8710        rhapsody* | darwin1.[012])
8711         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8712         ;;
8713       *) # Darwin 1.3 on
8714         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8715           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8716         else
8717           case ${MACOSX_DEPLOYMENT_TARGET} in
8718             10.[012])
8719               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8720               ;;
8721             10.*)
8722               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8723               ;;
8724           esac
8725         fi
8726         ;;
8727      esac
8728      archive_cmds_need_lc=no
8729      hardcode_direct=no
8730      hardcode_automatic=yes
8731      hardcode_shlibpath_var=unsupported
8732      whole_archive_flag_spec=''
8733      link_all_deplibs=yes
8734    if test "$GCC" = yes ; then
8735        output_verbose_link_cmd='echo'
8736        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8737      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8738      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8739      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}'
8740      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}'
8741    else
8742      case $cc_basename in
8743        xlc*)
8744         output_verbose_link_cmd='echo'
8745         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8746         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8747          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8748         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}'
8749          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}'
8750          ;;
8751       *)
8752         ld_shlibs=no
8753          ;;
8754      esac
8755    fi
8756      ;;
8757
8758    dgux*)
8759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760      hardcode_libdir_flag_spec='-L$libdir'
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    freebsd1*)
8765      ld_shlibs=no
8766      ;;
8767
8768    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8769    # support.  Future versions do this automatically, but an explicit c++rt0.o
8770    # does not break anything, and helps significantly (at the cost of a little
8771    # extra space).
8772    freebsd2.2*)
8773      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8774      hardcode_libdir_flag_spec='-R$libdir'
8775      hardcode_direct=yes
8776      hardcode_shlibpath_var=no
8777      ;;
8778
8779    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8780    freebsd2*)
8781      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782      hardcode_direct=yes
8783      hardcode_minus_L=yes
8784      hardcode_shlibpath_var=no
8785      ;;
8786
8787    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8788    freebsd* | kfreebsd*-gnu | dragonfly*)
8789      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8790      hardcode_libdir_flag_spec='-R$libdir'
8791      hardcode_direct=yes
8792      hardcode_shlibpath_var=no
8793      ;;
8794
8795    hpux9*)
8796      if test "$GCC" = yes; then
8797        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'
8798      else
8799        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'
8800      fi
8801      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802      hardcode_libdir_separator=:
8803      hardcode_direct=yes
8804
8805      # hardcode_minus_L: Not really in the search PATH,
8806      # but as the default location of the library.
8807      hardcode_minus_L=yes
8808      export_dynamic_flag_spec='${wl}-E'
8809      ;;
8810
8811    hpux10*)
8812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8813        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8814      else
8815        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8816      fi
8817      if test "$with_gnu_ld" = no; then
8818        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8819        hardcode_libdir_separator=:
8820
8821        hardcode_direct=yes
8822        export_dynamic_flag_spec='${wl}-E'
8823
8824        # hardcode_minus_L: Not really in the search PATH,
8825        # but as the default location of the library.
8826        hardcode_minus_L=yes
8827      fi
8828      ;;
8829
8830    hpux11*)
8831      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832        case $host_cpu in
8833        hppa*64*)
8834          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835          ;;
8836        ia64*)
8837          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838          ;;
8839        *)
8840          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841          ;;
8842        esac
8843      else
8844        case $host_cpu in
8845        hppa*64*)
8846          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847          ;;
8848        ia64*)
8849          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8850          ;;
8851        *)
8852          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8853          ;;
8854        esac
8855      fi
8856      if test "$with_gnu_ld" = no; then
8857        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8858        hardcode_libdir_separator=:
8859
8860        case $host_cpu in
8861        hppa*64*|ia64*)
8862          hardcode_libdir_flag_spec_ld='+b $libdir'
8863          hardcode_direct=no
8864          hardcode_shlibpath_var=no
8865          ;;
8866        *)
8867          hardcode_direct=yes
8868          export_dynamic_flag_spec='${wl}-E'
8869
8870          # hardcode_minus_L: Not really in the search PATH,
8871          # but as the default location of the library.
8872          hardcode_minus_L=yes
8873          ;;
8874        esac
8875      fi
8876      ;;
8877
8878    irix5* | irix6* | nonstopux*)
8879      if test "$GCC" = yes; then
8880        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'
8881      else
8882        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'
8883        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8884      fi
8885      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886      hardcode_libdir_separator=:
8887      link_all_deplibs=yes
8888      ;;
8889
8890    netbsd*)
8891      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8892        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8893      else
8894        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8895      fi
8896      hardcode_libdir_flag_spec='-R$libdir'
8897      hardcode_direct=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    newsos6)
8902      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903      hardcode_direct=yes
8904      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905      hardcode_libdir_separator=:
8906      hardcode_shlibpath_var=no
8907      ;;
8908
8909    openbsd*)
8910      hardcode_direct=yes
8911      hardcode_shlibpath_var=no
8912      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8913        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8915        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916        export_dynamic_flag_spec='${wl}-E'
8917      else
8918       case $host_os in
8919         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8920           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8921           hardcode_libdir_flag_spec='-R$libdir'
8922           ;;
8923         *)
8924           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8926           ;;
8927       esac
8928      fi
8929      ;;
8930
8931    os2*)
8932      hardcode_libdir_flag_spec='-L$libdir'
8933      hardcode_minus_L=yes
8934      allow_undefined_flag=unsupported
8935      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'
8936      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8937      ;;
8938
8939    osf3*)
8940      if test "$GCC" = yes; then
8941        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8942        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'
8943      else
8944        allow_undefined_flag=' -expect_unresolved \*'
8945        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'
8946      fi
8947      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8948      hardcode_libdir_separator=:
8949      ;;
8950
8951    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8952      if test "$GCC" = yes; then
8953        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8954        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8955        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956      else
8957        allow_undefined_flag=' -expect_unresolved \*'
8958        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'
8959        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8960        $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'
8961
8962        # Both c and cxx compiler support -rpath directly
8963        hardcode_libdir_flag_spec='-rpath $libdir'
8964      fi
8965      hardcode_libdir_separator=:
8966      ;;
8967
8968    solaris*)
8969      no_undefined_flag=' -z text'
8970      if test "$GCC" = yes; then
8971        wlarc='${wl}'
8972        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8974          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8975      else
8976        wlarc=''
8977        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8979        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8980      fi
8981      hardcode_libdir_flag_spec='-R$libdir'
8982      hardcode_shlibpath_var=no
8983      case $host_os in
8984      solaris2.[0-5] | solaris2.[0-5].*) ;;
8985      *)
8986        # The compiler driver will combine linker options so we
8987        # cannot just pass the convience library names through
8988        # without $wl, iff we do not link with $LD.
8989        # Luckily, gcc supports the same syntax we need for Sun Studio.
8990        # Supported since Solaris 2.6 (maybe 2.5.1?)
8991        case $wlarc in
8992        '')
8993          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8994        *)
8995          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' ;;
8996        esac ;;
8997      esac
8998      link_all_deplibs=yes
8999      ;;
9000
9001    sunos4*)
9002      if test "x$host_vendor" = xsequent; then
9003        # Use $CC to link under sequent, because it throws in some extra .o
9004        # files that make .init and .fini sections work.
9005        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9006      else
9007        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9008      fi
9009      hardcode_libdir_flag_spec='-L$libdir'
9010      hardcode_direct=yes
9011      hardcode_minus_L=yes
9012      hardcode_shlibpath_var=no
9013      ;;
9014
9015    sysv4)
9016      case $host_vendor in
9017        sni)
9018          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019          hardcode_direct=yes # is this really true???
9020        ;;
9021        siemens)
9022          ## LD is ld it makes a PLAMLIB
9023          ## CC just makes a GrossModule.
9024          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9025          reload_cmds='$CC -r -o $output$reload_objs'
9026          hardcode_direct=no
9027        ;;
9028        motorola)
9029          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9031        ;;
9032      esac
9033      runpath_var='LD_RUN_PATH'
9034      hardcode_shlibpath_var=no
9035      ;;
9036
9037    sysv4.3*)
9038      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039      hardcode_shlibpath_var=no
9040      export_dynamic_flag_spec='-Bexport'
9041      ;;
9042
9043    sysv4*MP*)
9044      if test -d /usr/nec; then
9045        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046        hardcode_shlibpath_var=no
9047        runpath_var=LD_RUN_PATH
9048        hardcode_runpath_var=yes
9049        ld_shlibs=yes
9050      fi
9051      ;;
9052
9053    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9054      no_undefined_flag='${wl}-z,text'
9055      archive_cmds_need_lc=no
9056      hardcode_shlibpath_var=no
9057      runpath_var='LD_RUN_PATH'
9058
9059      if test "$GCC" = yes; then
9060        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062      else
9063        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065      fi
9066      ;;
9067
9068    sysv5* | sco3.2v5* | sco5v6*)
9069      # Note: We can NOT use -z defs as we might desire, because we do not
9070      # link with -lc, and that would cause any symbols used from libc to
9071      # always be unresolved, which means just about no library would
9072      # ever link correctly.  If we're not using GNU ld we use -z text
9073      # though, which does catch some bad symbols but isn't as heavy-handed
9074      # as -z defs.
9075      no_undefined_flag='${wl}-z,text'
9076      allow_undefined_flag='${wl}-z,nodefs'
9077      archive_cmds_need_lc=no
9078      hardcode_shlibpath_var=no
9079      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9080      hardcode_libdir_separator=':'
9081      link_all_deplibs=yes
9082      export_dynamic_flag_spec='${wl}-Bexport'
9083      runpath_var='LD_RUN_PATH'
9084
9085      if test "$GCC" = yes; then
9086        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088      else
9089        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091      fi
9092      ;;
9093
9094    uts4*)
9095      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096      hardcode_libdir_flag_spec='-L$libdir'
9097      hardcode_shlibpath_var=no
9098      ;;
9099
9100    *)
9101      ld_shlibs=no
9102      ;;
9103    esac
9104  fi
9105
9106echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107echo "${ECHO_T}$ld_shlibs" >&6
9108test "$ld_shlibs" = no && can_build_shared=no
9109
9110#
9111# Do we need to explicitly link libc?
9112#
9113case "x$archive_cmds_need_lc" in
9114x|xyes)
9115  # Assume -lc should be added
9116  archive_cmds_need_lc=yes
9117
9118  if test "$enable_shared" = yes && test "$GCC" = yes; then
9119    case $archive_cmds in
9120    *'~'*)
9121      # FIXME: we may have to deal with multi-command sequences.
9122      ;;
9123    '$CC '*)
9124      # Test whether the compiler implicitly links with -lc since on some
9125      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9126      # to ld, don't add -lc before -lgcc.
9127      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9128echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9129      $rm conftest*
9130      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9131
9132      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133  (eval $ac_compile) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); } 2>conftest.err; then
9137        soname=conftest
9138        lib=conftest
9139        libobjs=conftest.$ac_objext
9140        deplibs=
9141        wl=$lt_prog_compiler_wl
9142        pic_flag=$lt_prog_compiler_pic
9143        compiler_flags=-v
9144        linker_flags=-v
9145        verstring=
9146        output_objdir=.
9147        libname=conftest
9148        lt_save_allow_undefined_flag=$allow_undefined_flag
9149        allow_undefined_flag=
9150        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9151  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9152  ac_status=$?
9153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154  (exit $ac_status); }
9155        then
9156          archive_cmds_need_lc=no
9157        else
9158          archive_cmds_need_lc=yes
9159        fi
9160        allow_undefined_flag=$lt_save_allow_undefined_flag
9161      else
9162        cat conftest.err 1>&5
9163      fi
9164      $rm conftest*
9165      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9166echo "${ECHO_T}$archive_cmds_need_lc" >&6
9167      ;;
9168    esac
9169  fi
9170  ;;
9171esac
9172
9173echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9174echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9175library_names_spec=
9176libname_spec='lib$name'
9177soname_spec=
9178shrext_cmds=".so"
9179postinstall_cmds=
9180postuninstall_cmds=
9181finish_cmds=
9182finish_eval=
9183shlibpath_var=
9184shlibpath_overrides_runpath=unknown
9185version_type=none
9186dynamic_linker="$host_os ld.so"
9187sys_lib_dlsearch_path_spec="/lib /usr/lib"
9188if test "$GCC" = yes; then
9189  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9190  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9191    # if the path contains ";" then we assume it to be the separator
9192    # otherwise default to the standard path separator (i.e. ":") - it is
9193    # assumed that no part of a normal pathname contains ";" but that should
9194    # okay in the real world where ";" in dirpaths is itself problematic.
9195    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9196  else
9197    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9198  fi
9199else
9200  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9201fi
9202need_lib_prefix=unknown
9203hardcode_into_libs=no
9204
9205# when you set need_version to no, make sure it does not cause -set_version
9206# flags to be left without arguments
9207need_version=unknown
9208
9209case $host_os in
9210aix3*)
9211  version_type=linux
9212  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9213  shlibpath_var=LIBPATH
9214
9215  # AIX 3 has no versioning support, so we append a major version to the name.
9216  soname_spec='${libname}${release}${shared_ext}$major'
9217  ;;
9218
9219aix4* | aix5*)
9220  version_type=linux
9221  need_lib_prefix=no
9222  need_version=no
9223  hardcode_into_libs=yes
9224  if test "$host_cpu" = ia64; then
9225    # AIX 5 supports IA64
9226    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9227    shlibpath_var=LD_LIBRARY_PATH
9228  else
9229    # With GCC up to 2.95.x, collect2 would create an import file
9230    # for dependence libraries.  The import file would start with
9231    # the line `#! .'.  This would cause the generated library to
9232    # depend on `.', always an invalid library.  This was fixed in
9233    # development snapshots of GCC prior to 3.0.
9234    case $host_os in
9235      aix4 | aix4.[01] | aix4.[01].*)
9236      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9237           echo ' yes '
9238           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9239        :
9240      else
9241        can_build_shared=no
9242      fi
9243      ;;
9244    esac
9245    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9246    # soname into executable. Probably we can add versioning support to
9247    # collect2, so additional links can be useful in future.
9248    if test "$aix_use_runtimelinking" = yes; then
9249      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9250      # instead of lib<name>.a to let people know that these are not
9251      # typical AIX shared libraries.
9252      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253    else
9254      # We preserve .a as extension for shared libraries through AIX4.2
9255      # and later when we are not doing run time linking.
9256      library_names_spec='${libname}${release}.a $libname.a'
9257      soname_spec='${libname}${release}${shared_ext}$major'
9258    fi
9259    shlibpath_var=LIBPATH
9260  fi
9261  ;;
9262
9263amigaos*)
9264  library_names_spec='$libname.ixlibrary $libname.a'
9265  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9266  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'
9267  ;;
9268
9269beos*)
9270  library_names_spec='${libname}${shared_ext}'
9271  dynamic_linker="$host_os ld.so"
9272  shlibpath_var=LIBRARY_PATH
9273  ;;
9274
9275bsdi[45]*)
9276  version_type=linux
9277  need_version=no
9278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279  soname_spec='${libname}${release}${shared_ext}$major'
9280  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9281  shlibpath_var=LD_LIBRARY_PATH
9282  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9283  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9284  # the default ld.so.conf also contains /usr/contrib/lib and
9285  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9286  # libtool to hard-code these into programs
9287  ;;
9288
9289cygwin* | mingw* | pw32*)
9290  version_type=windows
9291  shrext_cmds=".dll"
9292  need_version=no
9293  need_lib_prefix=no
9294
9295  case $GCC,$host_os in
9296  yes,cygwin* | yes,mingw* | yes,pw32*)
9297    library_names_spec='$libname.dll.a'
9298    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9299    postinstall_cmds='base_file=`basename \${file}`~
9300      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9301      dldir=$destdir/`dirname \$dlpath`~
9302      test -d \$dldir || mkdir -p \$dldir~
9303      $install_prog $dir/$dlname \$dldir/$dlname~
9304      chmod a+x \$dldir/$dlname'
9305    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9306      dlpath=$dir/\$dldll~
9307       $rm \$dlpath'
9308    shlibpath_overrides_runpath=yes
9309
9310    case $host_os in
9311    cygwin*)
9312      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9313      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9314      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9315      ;;
9316    mingw*)
9317      # MinGW DLLs use traditional 'lib' prefix
9318      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9319      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9320      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9321        # It is most probably a Windows format PATH printed by
9322        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9323        # path with ; separators, and with drive letters. We can handle the
9324        # drive letters (cygwin fileutils understands them), so leave them,
9325        # especially as we might pass files found there to a mingw objdump,
9326        # which wouldn't understand a cygwinified path. Ahh.
9327        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9328      else
9329        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9330      fi
9331      ;;
9332    pw32*)
9333      # pw32 DLLs use 'pw' prefix rather than 'lib'
9334      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335      ;;
9336    esac
9337    ;;
9338
9339  *)
9340    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9341    ;;
9342  esac
9343  dynamic_linker='Win32 ld.exe'
9344  # FIXME: first we should search . and the directory the executable is in
9345  shlibpath_var=PATH
9346  ;;
9347
9348darwin* | rhapsody*)
9349  dynamic_linker="$host_os dyld"
9350  version_type=darwin
9351  need_lib_prefix=no
9352  need_version=no
9353  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9354  soname_spec='${libname}${release}${major}$shared_ext'
9355  shlibpath_overrides_runpath=yes
9356  shlibpath_var=DYLD_LIBRARY_PATH
9357  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9358  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9359  if test "$GCC" = yes; then
9360    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"`
9361  else
9362    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9363  fi
9364  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9365  ;;
9366
9367dgux*)
9368  version_type=linux
9369  need_lib_prefix=no
9370  need_version=no
9371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9372  soname_spec='${libname}${release}${shared_ext}$major'
9373  shlibpath_var=LD_LIBRARY_PATH
9374  ;;
9375
9376freebsd1*)
9377  dynamic_linker=no
9378  ;;
9379
9380kfreebsd*-gnu)
9381  version_type=linux
9382  need_lib_prefix=no
9383  need_version=no
9384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9385  soname_spec='${libname}${release}${shared_ext}$major'
9386  shlibpath_var=LD_LIBRARY_PATH
9387  shlibpath_overrides_runpath=no
9388  hardcode_into_libs=yes
9389  dynamic_linker='GNU ld.so'
9390  ;;
9391
9392freebsd* | dragonfly*)
9393  # DragonFly does not have aout.  When/if they implement a new
9394  # versioning mechanism, adjust this.
9395  if test -x /usr/bin/objformat; then
9396    objformat=`/usr/bin/objformat`
9397  else
9398    case $host_os in
9399    freebsd[123]*) objformat=aout ;;
9400    *) objformat=elf ;;
9401    esac
9402  fi
9403  version_type=freebsd-$objformat
9404  case $version_type in
9405    freebsd-elf*)
9406      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9407      need_version=no
9408      need_lib_prefix=no
9409      ;;
9410    freebsd-*)
9411      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9412      need_version=yes
9413      ;;
9414  esac
9415  shlibpath_var=LD_LIBRARY_PATH
9416  case $host_os in
9417  freebsd2*)
9418    shlibpath_overrides_runpath=yes
9419    ;;
9420  freebsd3.[01]* | freebsdelf3.[01]*)
9421    shlibpath_overrides_runpath=yes
9422    hardcode_into_libs=yes
9423    ;;
9424  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9425  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9426    shlibpath_overrides_runpath=no
9427    hardcode_into_libs=yes
9428    ;;
9429  freebsd*) # from 4.6 on
9430    shlibpath_overrides_runpath=yes
9431    hardcode_into_libs=yes
9432    ;;
9433  esac
9434  ;;
9435
9436gnu*)
9437  version_type=linux
9438  need_lib_prefix=no
9439  need_version=no
9440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  shlibpath_var=LD_LIBRARY_PATH
9443  hardcode_into_libs=yes
9444  ;;
9445
9446hpux9* | hpux10* | hpux11*)
9447  # Give a soname corresponding to the major version so that dld.sl refuses to
9448  # link against other versions.
9449  version_type=sunos
9450  need_lib_prefix=no
9451  need_version=no
9452  case $host_cpu in
9453  ia64*)
9454    shrext_cmds='.so'
9455    hardcode_into_libs=yes
9456    dynamic_linker="$host_os dld.so"
9457    shlibpath_var=LD_LIBRARY_PATH
9458    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460    soname_spec='${libname}${release}${shared_ext}$major'
9461    if test "X$HPUX_IA64_MODE" = X32; then
9462      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9463    else
9464      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9465    fi
9466    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467    ;;
9468   hppa*64*)
9469     shrext_cmds='.sl'
9470     hardcode_into_libs=yes
9471     dynamic_linker="$host_os dld.sl"
9472     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9478     ;;
9479   *)
9480    shrext_cmds='.sl'
9481    dynamic_linker="$host_os dld.sl"
9482    shlibpath_var=SHLIB_PATH
9483    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9484    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485    soname_spec='${libname}${release}${shared_ext}$major'
9486    ;;
9487  esac
9488  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9489  postinstall_cmds='chmod 555 $lib'
9490  ;;
9491
9492interix3*)
9493  version_type=linux
9494  need_lib_prefix=no
9495  need_version=no
9496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497  soname_spec='${libname}${release}${shared_ext}$major'
9498  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  shlibpath_overrides_runpath=no
9501  hardcode_into_libs=yes
9502  ;;
9503
9504irix5* | irix6* | nonstopux*)
9505  case $host_os in
9506    nonstopux*) version_type=nonstopux ;;
9507    *)
9508        if test "$lt_cv_prog_gnu_ld" = yes; then
9509                version_type=linux
9510        else
9511                version_type=irix
9512        fi ;;
9513  esac
9514  need_lib_prefix=no
9515  need_version=no
9516  soname_spec='${libname}${release}${shared_ext}$major'
9517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9518  case $host_os in
9519  irix5* | nonstopux*)
9520    libsuff= shlibsuff=
9521    ;;
9522  *)
9523    case $LD in # libtool.m4 will add one of these switches to LD
9524    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9525      libsuff= shlibsuff= libmagic=32-bit;;
9526    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9527      libsuff=32 shlibsuff=N32 libmagic=N32;;
9528    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9529      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9530    *) libsuff= shlibsuff= libmagic=never-match;;
9531    esac
9532    ;;
9533  esac
9534  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9535  shlibpath_overrides_runpath=no
9536  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9537  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9538  hardcode_into_libs=yes
9539  ;;
9540
9541# No shared lib support for Linux oldld, aout, or coff.
9542linux*oldld* | linux*aout* | linux*coff*)
9543  dynamic_linker=no
9544  ;;
9545
9546# This must be Linux ELF.
9547linux*)
9548  version_type=linux
9549  need_lib_prefix=no
9550  need_version=no
9551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552  soname_spec='${libname}${release}${shared_ext}$major'
9553  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9554  shlibpath_var=LD_LIBRARY_PATH
9555  shlibpath_overrides_runpath=no
9556  # This implies no fast_install, which is unacceptable.
9557  # Some rework will be needed to allow for fast_install
9558  # before this can be enabled.
9559  hardcode_into_libs=yes
9560
9561  # Append ld.so.conf contents to the search path
9562  if test -f /etc/ld.so.conf; then
9563    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' ' '`
9564    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9565  fi
9566
9567  # We used to test for /lib/ld.so.1 and disable shared libraries on
9568  # powerpc, because MkLinux only supported shared libraries with the
9569  # GNU dynamic linker.  Since this was broken with cross compilers,
9570  # most powerpc-linux boxes support dynamic linking these days and
9571  # people can always --disable-shared, the test was removed, and we
9572  # assume the GNU/Linux dynamic linker is in use.
9573  dynamic_linker='GNU/Linux ld.so'
9574  ;;
9575
9576knetbsd*-gnu)
9577  version_type=linux
9578  need_lib_prefix=no
9579  need_version=no
9580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9581  soname_spec='${libname}${release}${shared_ext}$major'
9582  shlibpath_var=LD_LIBRARY_PATH
9583  shlibpath_overrides_runpath=no
9584  hardcode_into_libs=yes
9585  dynamic_linker='GNU ld.so'
9586  ;;
9587
9588netbsd*)
9589  version_type=sunos
9590  need_lib_prefix=no
9591  need_version=no
9592  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9594    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9595    dynamic_linker='NetBSD (a.out) ld.so'
9596  else
9597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9598    soname_spec='${libname}${release}${shared_ext}$major'
9599    dynamic_linker='NetBSD ld.elf_so'
9600  fi
9601  shlibpath_var=LD_LIBRARY_PATH
9602  shlibpath_overrides_runpath=yes
9603  hardcode_into_libs=yes
9604  ;;
9605
9606newsos6)
9607  version_type=linux
9608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609  shlibpath_var=LD_LIBRARY_PATH
9610  shlibpath_overrides_runpath=yes
9611  ;;
9612
9613nto-qnx*)
9614  version_type=linux
9615  need_lib_prefix=no
9616  need_version=no
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618  soname_spec='${libname}${release}${shared_ext}$major'
9619  shlibpath_var=LD_LIBRARY_PATH
9620  shlibpath_overrides_runpath=yes
9621  ;;
9622
9623openbsd*)
9624  version_type=sunos
9625  sys_lib_dlsearch_path_spec="/usr/lib"
9626  need_lib_prefix=no
9627  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9628  case $host_os in
9629    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9630    *)                         need_version=no  ;;
9631  esac
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9633  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9634  shlibpath_var=LD_LIBRARY_PATH
9635  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9636    case $host_os in
9637      openbsd2.[89] | openbsd2.[89].*)
9638        shlibpath_overrides_runpath=no
9639        ;;
9640      *)
9641        shlibpath_overrides_runpath=yes
9642        ;;
9643      esac
9644  else
9645    shlibpath_overrides_runpath=yes
9646  fi
9647  ;;
9648
9649os2*)
9650  libname_spec='$name'
9651  shrext_cmds=".dll"
9652  need_lib_prefix=no
9653  library_names_spec='$libname${shared_ext} $libname.a'
9654  dynamic_linker='OS/2 ld.exe'
9655  shlibpath_var=LIBPATH
9656  ;;
9657
9658osf3* | osf4* | osf5*)
9659  version_type=osf
9660  need_lib_prefix=no
9661  need_version=no
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664  shlibpath_var=LD_LIBRARY_PATH
9665  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9666  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9667  ;;
9668
9669solaris*)
9670  version_type=linux
9671  need_lib_prefix=no
9672  need_version=no
9673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674  soname_spec='${libname}${release}${shared_ext}$major'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=yes
9677  hardcode_into_libs=yes
9678  # ldd complains unless libraries are executable
9679  postinstall_cmds='chmod +x $lib'
9680  ;;
9681
9682sunos4*)
9683  version_type=sunos
9684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9685  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9686  shlibpath_var=LD_LIBRARY_PATH
9687  shlibpath_overrides_runpath=yes
9688  if test "$with_gnu_ld" = yes; then
9689    need_lib_prefix=no
9690  fi
9691  need_version=yes
9692  ;;
9693
9694sysv4 | sysv4.3*)
9695  version_type=linux
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697  soname_spec='${libname}${release}${shared_ext}$major'
9698  shlibpath_var=LD_LIBRARY_PATH
9699  case $host_vendor in
9700    sni)
9701      shlibpath_overrides_runpath=no
9702      need_lib_prefix=no
9703      export_dynamic_flag_spec='${wl}-Blargedynsym'
9704      runpath_var=LD_RUN_PATH
9705      ;;
9706    siemens)
9707      need_lib_prefix=no
9708      ;;
9709    motorola)
9710      need_lib_prefix=no
9711      need_version=no
9712      shlibpath_overrides_runpath=no
9713      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9714      ;;
9715  esac
9716  ;;
9717
9718sysv4*MP*)
9719  if test -d /usr/nec ;then
9720    version_type=linux
9721    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9722    soname_spec='$libname${shared_ext}.$major'
9723    shlibpath_var=LD_LIBRARY_PATH
9724  fi
9725  ;;
9726
9727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9728  version_type=freebsd-elf
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  hardcode_into_libs=yes
9735  if test "$with_gnu_ld" = yes; then
9736    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9737    shlibpath_overrides_runpath=no
9738  else
9739    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9740    shlibpath_overrides_runpath=yes
9741    case $host_os in
9742      sco3.2v5*)
9743        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9744        ;;
9745    esac
9746  fi
9747  sys_lib_dlsearch_path_spec='/usr/lib'
9748  ;;
9749
9750uts4*)
9751  version_type=linux
9752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753  soname_spec='${libname}${release}${shared_ext}$major'
9754  shlibpath_var=LD_LIBRARY_PATH
9755  ;;
9756
9757*)
9758  dynamic_linker=no
9759  ;;
9760esac
9761echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9762echo "${ECHO_T}$dynamic_linker" >&6
9763test "$dynamic_linker" = no && can_build_shared=no
9764
9765variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9766if test "$GCC" = yes; then
9767  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9768fi
9769
9770echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9771echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9772hardcode_action=
9773if test -n "$hardcode_libdir_flag_spec" || \
9774   test -n "$runpath_var" || \
9775   test "X$hardcode_automatic" = "Xyes" ; then
9776
9777  # We can hardcode non-existant directories.
9778  if test "$hardcode_direct" != no &&
9779     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9780     # have to relink, otherwise we might link with an installed library
9781     # when we should be linking with a yet-to-be-installed one
9782     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9783     test "$hardcode_minus_L" != no; then
9784    # Linking always hardcodes the temporary library directory.
9785    hardcode_action=relink
9786  else
9787    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9788    hardcode_action=immediate
9789  fi
9790else
9791  # We cannot hardcode anything, or else we can only hardcode existing
9792  # directories.
9793  hardcode_action=unsupported
9794fi
9795echo "$as_me:$LINENO: result: $hardcode_action" >&5
9796echo "${ECHO_T}$hardcode_action" >&6
9797
9798if test "$hardcode_action" = relink; then
9799  # Fast installation is not supported
9800  enable_fast_install=no
9801elif test "$shlibpath_overrides_runpath" = yes ||
9802     test "$enable_shared" = no; then
9803  # Fast installation is not necessary
9804  enable_fast_install=needless
9805fi
9806
9807striplib=
9808old_striplib=
9809echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9810echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9811if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9812  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9813  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9814  echo "$as_me:$LINENO: result: yes" >&5
9815echo "${ECHO_T}yes" >&6
9816else
9817# FIXME - insert some real tests, host_os isn't really good enough
9818  case $host_os in
9819   darwin*)
9820       if test -n "$STRIP" ; then
9821         striplib="$STRIP -x"
9822         echo "$as_me:$LINENO: result: yes" >&5
9823echo "${ECHO_T}yes" >&6
9824       else
9825  echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
9827fi
9828       ;;
9829   *)
9830  echo "$as_me:$LINENO: result: no" >&5
9831echo "${ECHO_T}no" >&6
9832    ;;
9833  esac
9834fi
9835
9836if test "x$enable_dlopen" != xyes; then
9837  enable_dlopen=unknown
9838  enable_dlopen_self=unknown
9839  enable_dlopen_self_static=unknown
9840else
9841  lt_cv_dlopen=no
9842  lt_cv_dlopen_libs=
9843
9844  case $host_os in
9845  beos*)
9846    lt_cv_dlopen="load_add_on"
9847    lt_cv_dlopen_libs=
9848    lt_cv_dlopen_self=yes
9849    ;;
9850
9851  mingw* | pw32*)
9852    lt_cv_dlopen="LoadLibrary"
9853    lt_cv_dlopen_libs=
9854   ;;
9855
9856  cygwin*)
9857    lt_cv_dlopen="dlopen"
9858    lt_cv_dlopen_libs=
9859   ;;
9860
9861  darwin*)
9862  # if libdl is installed we need to link against it
9863    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9865if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866  echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868  ac_check_lib_save_LIBS=$LIBS
9869LIBS="-ldl  $LIBS"
9870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876
9877/* Override any gcc2 internal prototype to avoid an error.  */
9878#ifdef __cplusplus
9879extern "C"
9880#endif
9881/* We use char because int might match the return type of a gcc2
9882   builtin and then its argument prototype would still apply.  */
9883char dlopen ();
9884int
9885main ()
9886{
9887dlopen ();
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894  (eval $ac_link) 2>conftest.er1
9895  ac_status=$?
9896  grep -v '^ *+' conftest.er1 >conftest.err
9897  rm -f conftest.er1
9898  cat conftest.err >&5
9899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); } &&
9901         { ac_try='test -z "$ac_c_werror_flag"
9902                         || test ! -s conftest.err'
9903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904  (eval $ac_try) 2>&5
9905  ac_status=$?
9906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907  (exit $ac_status); }; } &&
9908         { ac_try='test -s conftest$ac_exeext'
9909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910  (eval $ac_try) 2>&5
9911  ac_status=$?
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); }; }; then
9914  ac_cv_lib_dl_dlopen=yes
9915else
9916  echo "$as_me: failed program was:" >&5
9917sed 's/^/| /' conftest.$ac_ext >&5
9918
9919ac_cv_lib_dl_dlopen=no
9920fi
9921rm -f conftest.err conftest.$ac_objext \
9922      conftest$ac_exeext conftest.$ac_ext
9923LIBS=$ac_check_lib_save_LIBS
9924fi
9925echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9926echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9927if test $ac_cv_lib_dl_dlopen = yes; then
9928  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9929else
9930
9931    lt_cv_dlopen="dyld"
9932    lt_cv_dlopen_libs=
9933    lt_cv_dlopen_self=yes
9934
9935fi
9936
9937   ;;
9938
9939  *)
9940    echo "$as_me:$LINENO: checking for shl_load" >&5
9941echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9942if test "${ac_cv_func_shl_load+set}" = set; then
9943  echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945  cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h.  */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h.  */
9951/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9952   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9953#define shl_load innocuous_shl_load
9954
9955/* System header to define __stub macros and hopefully few prototypes,
9956    which can conflict with char shl_load (); below.
9957    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9958    <limits.h> exists even on freestanding compilers.  */
9959
9960#ifdef __STDC__
9961# include <limits.h>
9962#else
9963# include <assert.h>
9964#endif
9965
9966#undef shl_load
9967
9968/* Override any gcc2 internal prototype to avoid an error.  */
9969#ifdef __cplusplus
9970extern "C"
9971{
9972#endif
9973/* We use char because int might match the return type of a gcc2
9974   builtin and then its argument prototype would still apply.  */
9975char shl_load ();
9976/* The GNU C library defines this for functions which it implements
9977    to always fail with ENOSYS.  Some functions are actually named
9978    something starting with __ and the normal name is an alias.  */
9979#if defined (__stub_shl_load) || defined (__stub___shl_load)
9980choke me
9981#else
9982char (*f) () = shl_load;
9983#endif
9984#ifdef __cplusplus
9985}
9986#endif
9987
9988int
9989main ()
9990{
9991return f != shl_load;
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998  (eval $ac_link) 2>conftest.er1
9999  ac_status=$?
10000  grep -v '^ *+' conftest.er1 >conftest.err
10001  rm -f conftest.er1
10002  cat conftest.err >&5
10003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004  (exit $ac_status); } &&
10005         { ac_try='test -z "$ac_c_werror_flag"
10006                         || test ! -s conftest.err'
10007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008  (eval $ac_try) 2>&5
10009  ac_status=$?
10010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011  (exit $ac_status); }; } &&
10012         { ac_try='test -s conftest$ac_exeext'
10013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014  (eval $ac_try) 2>&5
10015  ac_status=$?
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); }; }; then
10018  ac_cv_func_shl_load=yes
10019else
10020  echo "$as_me: failed program was:" >&5
10021sed 's/^/| /' conftest.$ac_ext >&5
10022
10023ac_cv_func_shl_load=no
10024fi
10025rm -f conftest.err conftest.$ac_objext \
10026      conftest$ac_exeext conftest.$ac_ext
10027fi
10028echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10029echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10030if test $ac_cv_func_shl_load = yes; then
10031  lt_cv_dlopen="shl_load"
10032else
10033  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10034echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10035if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10036  echo $ECHO_N "(cached) $ECHO_C" >&6
10037else
10038  ac_check_lib_save_LIBS=$LIBS
10039LIBS="-ldld  $LIBS"
10040cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h.  */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h.  */
10046
10047/* Override any gcc2 internal prototype to avoid an error.  */
10048#ifdef __cplusplus
10049extern "C"
10050#endif
10051/* We use char because int might match the return type of a gcc2
10052   builtin and then its argument prototype would still apply.  */
10053char shl_load ();
10054int
10055main ()
10056{
10057shl_load ();
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
10063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064  (eval $ac_link) 2>conftest.er1
10065  ac_status=$?
10066  grep -v '^ *+' conftest.er1 >conftest.err
10067  rm -f conftest.er1
10068  cat conftest.err >&5
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); } &&
10071         { ac_try='test -z "$ac_c_werror_flag"
10072                         || test ! -s conftest.err'
10073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074  (eval $ac_try) 2>&5
10075  ac_status=$?
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); }; } &&
10078         { ac_try='test -s conftest$ac_exeext'
10079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080  (eval $ac_try) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); }; }; then
10084  ac_cv_lib_dld_shl_load=yes
10085else
10086  echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089ac_cv_lib_dld_shl_load=no
10090fi
10091rm -f conftest.err conftest.$ac_objext \
10092      conftest$ac_exeext conftest.$ac_ext
10093LIBS=$ac_check_lib_save_LIBS
10094fi
10095echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10096echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10097if test $ac_cv_lib_dld_shl_load = yes; then
10098  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10099else
10100  echo "$as_me:$LINENO: checking for dlopen" >&5
10101echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10102if test "${ac_cv_func_dlopen+set}" = set; then
10103  echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105  cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h.  */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h.  */
10111/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10112   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10113#define dlopen innocuous_dlopen
10114
10115/* System header to define __stub macros and hopefully few prototypes,
10116    which can conflict with char dlopen (); below.
10117    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118    <limits.h> exists even on freestanding compilers.  */
10119
10120#ifdef __STDC__
10121# include <limits.h>
10122#else
10123# include <assert.h>
10124#endif
10125
10126#undef dlopen
10127
10128/* Override any gcc2 internal prototype to avoid an error.  */
10129#ifdef __cplusplus
10130extern "C"
10131{
10132#endif
10133/* We use char because int might match the return type of a gcc2
10134   builtin and then its argument prototype would still apply.  */
10135char dlopen ();
10136/* The GNU C library defines this for functions which it implements
10137    to always fail with ENOSYS.  Some functions are actually named
10138    something starting with __ and the normal name is an alias.  */
10139#if defined (__stub_dlopen) || defined (__stub___dlopen)
10140choke me
10141#else
10142char (*f) () = dlopen;
10143#endif
10144#ifdef __cplusplus
10145}
10146#endif
10147
10148int
10149main ()
10150{
10151return f != dlopen;
10152  ;
10153  return 0;
10154}
10155_ACEOF
10156rm -f conftest.$ac_objext conftest$ac_exeext
10157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158  (eval $ac_link) 2>conftest.er1
10159  ac_status=$?
10160  grep -v '^ *+' conftest.er1 >conftest.err
10161  rm -f conftest.er1
10162  cat conftest.err >&5
10163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164  (exit $ac_status); } &&
10165         { ac_try='test -z "$ac_c_werror_flag"
10166                         || test ! -s conftest.err'
10167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168  (eval $ac_try) 2>&5
10169  ac_status=$?
10170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); }; } &&
10172         { ac_try='test -s conftest$ac_exeext'
10173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174  (eval $ac_try) 2>&5
10175  ac_status=$?
10176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); }; }; then
10178  ac_cv_func_dlopen=yes
10179else
10180  echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183ac_cv_func_dlopen=no
10184fi
10185rm -f conftest.err conftest.$ac_objext \
10186      conftest$ac_exeext conftest.$ac_ext
10187fi
10188echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10189echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10190if test $ac_cv_func_dlopen = yes; then
10191  lt_cv_dlopen="dlopen"
10192else
10193  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10194echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10195if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10196  echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198  ac_check_lib_save_LIBS=$LIBS
10199LIBS="-ldl  $LIBS"
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h.  */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h.  */
10206
10207/* Override any gcc2 internal prototype to avoid an error.  */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211/* We use char because int might match the return type of a gcc2
10212   builtin and then its argument prototype would still apply.  */
10213char dlopen ();
10214int
10215main ()
10216{
10217dlopen ();
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224  (eval $ac_link) 2>conftest.er1
10225  ac_status=$?
10226  grep -v '^ *+' conftest.er1 >conftest.err
10227  rm -f conftest.er1
10228  cat conftest.err >&5
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); } &&
10231         { ac_try='test -z "$ac_c_werror_flag"
10232                         || test ! -s conftest.err'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; } &&
10238         { ac_try='test -s conftest$ac_exeext'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; }; then
10244  ac_cv_lib_dl_dlopen=yes
10245else
10246  echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249ac_cv_lib_dl_dlopen=no
10250fi
10251rm -f conftest.err conftest.$ac_objext \
10252      conftest$ac_exeext conftest.$ac_ext
10253LIBS=$ac_check_lib_save_LIBS
10254fi
10255echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10256echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10257if test $ac_cv_lib_dl_dlopen = yes; then
10258  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10259else
10260  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10261echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10262if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10263  echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265  ac_check_lib_save_LIBS=$LIBS
10266LIBS="-lsvld  $LIBS"
10267cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h.  */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h.  */
10273
10274/* Override any gcc2 internal prototype to avoid an error.  */
10275#ifdef __cplusplus
10276extern "C"
10277#endif
10278/* We use char because int might match the return type of a gcc2
10279   builtin and then its argument prototype would still apply.  */
10280char dlopen ();
10281int
10282main ()
10283{
10284dlopen ();
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext conftest$ac_exeext
10290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291  (eval $ac_link) 2>conftest.er1
10292  ac_status=$?
10293  grep -v '^ *+' conftest.er1 >conftest.err
10294  rm -f conftest.er1
10295  cat conftest.err >&5
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); } &&
10298         { ac_try='test -z "$ac_c_werror_flag"
10299                         || test ! -s conftest.err'
10300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301  (eval $ac_try) 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); }; } &&
10305         { ac_try='test -s conftest$ac_exeext'
10306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307  (eval $ac_try) 2>&5
10308  ac_status=$?
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); }; }; then
10311  ac_cv_lib_svld_dlopen=yes
10312else
10313  echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316ac_cv_lib_svld_dlopen=no
10317fi
10318rm -f conftest.err conftest.$ac_objext \
10319      conftest$ac_exeext conftest.$ac_ext
10320LIBS=$ac_check_lib_save_LIBS
10321fi
10322echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10323echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10324if test $ac_cv_lib_svld_dlopen = yes; then
10325  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10326else
10327  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10328echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10329if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10330  echo $ECHO_N "(cached) $ECHO_C" >&6
10331else
10332  ac_check_lib_save_LIBS=$LIBS
10333LIBS="-ldld  $LIBS"
10334cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h.  */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h.  */
10340
10341/* Override any gcc2 internal prototype to avoid an error.  */
10342#ifdef __cplusplus
10343extern "C"
10344#endif
10345/* We use char because int might match the return type of a gcc2
10346   builtin and then its argument prototype would still apply.  */
10347char dld_link ();
10348int
10349main ()
10350{
10351dld_link ();
10352  ;
10353  return 0;
10354}
10355_ACEOF
10356rm -f conftest.$ac_objext conftest$ac_exeext
10357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358  (eval $ac_link) 2>conftest.er1
10359  ac_status=$?
10360  grep -v '^ *+' conftest.er1 >conftest.err
10361  rm -f conftest.er1
10362  cat conftest.err >&5
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); } &&
10365         { ac_try='test -z "$ac_c_werror_flag"
10366                         || test ! -s conftest.err'
10367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368  (eval $ac_try) 2>&5
10369  ac_status=$?
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); }; } &&
10372         { ac_try='test -s conftest$ac_exeext'
10373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374  (eval $ac_try) 2>&5
10375  ac_status=$?
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); }; }; then
10378  ac_cv_lib_dld_dld_link=yes
10379else
10380  echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383ac_cv_lib_dld_dld_link=no
10384fi
10385rm -f conftest.err conftest.$ac_objext \
10386      conftest$ac_exeext conftest.$ac_ext
10387LIBS=$ac_check_lib_save_LIBS
10388fi
10389echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10390echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10391if test $ac_cv_lib_dld_dld_link = yes; then
10392  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10393fi
10394
10395
10396fi
10397
10398
10399fi
10400
10401
10402fi
10403
10404
10405fi
10406
10407
10408fi
10409
10410    ;;
10411  esac
10412
10413  if test "x$lt_cv_dlopen" != xno; then
10414    enable_dlopen=yes
10415  else
10416    enable_dlopen=no
10417  fi
10418
10419  case $lt_cv_dlopen in
10420  dlopen)
10421    save_CPPFLAGS="$CPPFLAGS"
10422    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10423
10424    save_LDFLAGS="$LDFLAGS"
10425    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10426
10427    save_LIBS="$LIBS"
10428    LIBS="$lt_cv_dlopen_libs $LIBS"
10429
10430    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10431echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10432if test "${lt_cv_dlopen_self+set}" = set; then
10433  echo $ECHO_N "(cached) $ECHO_C" >&6
10434else
10435          if test "$cross_compiling" = yes; then :
10436  lt_cv_dlopen_self=cross
10437else
10438  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10439  lt_status=$lt_dlunknown
10440  cat > conftest.$ac_ext <<EOF
10441#line 10441 "configure"
10442#include "confdefs.h"
10443
10444#if HAVE_DLFCN_H
10445#include <dlfcn.h>
10446#endif
10447
10448#include <stdio.h>
10449
10450#ifdef RTLD_GLOBAL
10451#  define LT_DLGLOBAL           RTLD_GLOBAL
10452#else
10453#  ifdef DL_GLOBAL
10454#    define LT_DLGLOBAL         DL_GLOBAL
10455#  else
10456#    define LT_DLGLOBAL         0
10457#  endif
10458#endif
10459
10460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10461   find out it does not work in some platform. */
10462#ifndef LT_DLLAZY_OR_NOW
10463#  ifdef RTLD_LAZY
10464#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10465#  else
10466#    ifdef DL_LAZY
10467#      define LT_DLLAZY_OR_NOW          DL_LAZY
10468#    else
10469#      ifdef RTLD_NOW
10470#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10471#      else
10472#        ifdef DL_NOW
10473#          define LT_DLLAZY_OR_NOW      DL_NOW
10474#        else
10475#          define LT_DLLAZY_OR_NOW      0
10476#        endif
10477#      endif
10478#    endif
10479#  endif
10480#endif
10481
10482#ifdef __cplusplus
10483extern "C" void exit (int);
10484#endif
10485
10486void fnord() { int i=42;}
10487int main ()
10488{
10489  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10490  int status = $lt_dlunknown;
10491
10492  if (self)
10493    {
10494      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10495      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10496      /* dlclose (self); */
10497    }
10498  else
10499    puts (dlerror ());
10500
10501    exit (status);
10502}
10503EOF
10504  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10505  (eval $ac_link) 2>&5
10506  ac_status=$?
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10509    (./conftest; exit; ) >&5 2>/dev/null
10510    lt_status=$?
10511    case x$lt_status in
10512      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10513      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10514      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10515    esac
10516  else :
10517    # compilation failed
10518    lt_cv_dlopen_self=no
10519  fi
10520fi
10521rm -fr conftest*
10522
10523
10524fi
10525echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10526echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10527
10528    if test "x$lt_cv_dlopen_self" = xyes; then
10529      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10530      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10531echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10532if test "${lt_cv_dlopen_self_static+set}" = set; then
10533  echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535          if test "$cross_compiling" = yes; then :
10536  lt_cv_dlopen_self_static=cross
10537else
10538  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10539  lt_status=$lt_dlunknown
10540  cat > conftest.$ac_ext <<EOF
10541#line 10541 "configure"
10542#include "confdefs.h"
10543
10544#if HAVE_DLFCN_H
10545#include <dlfcn.h>
10546#endif
10547
10548#include <stdio.h>
10549
10550#ifdef RTLD_GLOBAL
10551#  define LT_DLGLOBAL           RTLD_GLOBAL
10552#else
10553#  ifdef DL_GLOBAL
10554#    define LT_DLGLOBAL         DL_GLOBAL
10555#  else
10556#    define LT_DLGLOBAL         0
10557#  endif
10558#endif
10559
10560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10561   find out it does not work in some platform. */
10562#ifndef LT_DLLAZY_OR_NOW
10563#  ifdef RTLD_LAZY
10564#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10565#  else
10566#    ifdef DL_LAZY
10567#      define LT_DLLAZY_OR_NOW          DL_LAZY
10568#    else
10569#      ifdef RTLD_NOW
10570#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10571#      else
10572#        ifdef DL_NOW
10573#          define LT_DLLAZY_OR_NOW      DL_NOW
10574#        else
10575#          define LT_DLLAZY_OR_NOW      0
10576#        endif
10577#      endif
10578#    endif
10579#  endif
10580#endif
10581
10582#ifdef __cplusplus
10583extern "C" void exit (int);
10584#endif
10585
10586void fnord() { int i=42;}
10587int main ()
10588{
10589  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10590  int status = $lt_dlunknown;
10591
10592  if (self)
10593    {
10594      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10595      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10596      /* dlclose (self); */
10597    }
10598  else
10599    puts (dlerror ());
10600
10601    exit (status);
10602}
10603EOF
10604  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605  (eval $ac_link) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10609    (./conftest; exit; ) >&5 2>/dev/null
10610    lt_status=$?
10611    case x$lt_status in
10612      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10613      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10614      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10615    esac
10616  else :
10617    # compilation failed
10618    lt_cv_dlopen_self_static=no
10619  fi
10620fi
10621rm -fr conftest*
10622
10623
10624fi
10625echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10626echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10627    fi
10628
10629    CPPFLAGS="$save_CPPFLAGS"
10630    LDFLAGS="$save_LDFLAGS"
10631    LIBS="$save_LIBS"
10632    ;;
10633  esac
10634
10635  case $lt_cv_dlopen_self in
10636  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10637  *) enable_dlopen_self=unknown ;;
10638  esac
10639
10640  case $lt_cv_dlopen_self_static in
10641  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10642  *) enable_dlopen_self_static=unknown ;;
10643  esac
10644fi
10645
10646
10647# Report which library types will actually be built
10648echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10649echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10650echo "$as_me:$LINENO: result: $can_build_shared" >&5
10651echo "${ECHO_T}$can_build_shared" >&6
10652
10653echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10654echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10655test "$can_build_shared" = "no" && enable_shared=no
10656
10657# On AIX, shared libraries and static libraries use the same namespace, and
10658# are all built from PIC.
10659case $host_os in
10660aix3*)
10661  test "$enable_shared" = yes && enable_static=no
10662  if test -n "$RANLIB"; then
10663    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10664    postinstall_cmds='$RANLIB $lib'
10665  fi
10666  ;;
10667
10668aix4* | aix5*)
10669  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10670    test "$enable_shared" = yes && enable_static=no
10671  fi
10672    ;;
10673esac
10674echo "$as_me:$LINENO: result: $enable_shared" >&5
10675echo "${ECHO_T}$enable_shared" >&6
10676
10677echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10678echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10679# Make sure either enable_shared or enable_static is yes.
10680test "$enable_shared" = yes || enable_static=yes
10681echo "$as_me:$LINENO: result: $enable_static" >&5
10682echo "${ECHO_T}$enable_static" >&6
10683
10684# The else clause should only fire when bootstrapping the
10685# libtool distribution, otherwise you forgot to ship ltmain.sh
10686# with your package, and you will get complaints that there are
10687# no rules to generate ltmain.sh.
10688if test -f "$ltmain"; then
10689  # See if we are running on zsh, and set the options which allow our commands through
10690  # without removal of \ escapes.
10691  if test -n "${ZSH_VERSION+set}" ; then
10692    setopt NO_GLOB_SUBST
10693  fi
10694  # Now quote all the things that may contain metacharacters while being
10695  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10696  # variables and quote the copies for generation of the libtool script.
10697  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10698    SED SHELL STRIP \
10699    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10700    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10701    deplibs_check_method reload_flag reload_cmds need_locks \
10702    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10703    lt_cv_sys_global_symbol_to_c_name_address \
10704    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10705    old_postinstall_cmds old_postuninstall_cmds \
10706    compiler \
10707    CC \
10708    LD \
10709    lt_prog_compiler_wl \
10710    lt_prog_compiler_pic \
10711    lt_prog_compiler_static \
10712    lt_prog_compiler_no_builtin_flag \
10713    export_dynamic_flag_spec \
10714    thread_safe_flag_spec \
10715    whole_archive_flag_spec \
10716    enable_shared_with_static_runtimes \
10717    old_archive_cmds \
10718    old_archive_from_new_cmds \
10719    predep_objects \
10720    postdep_objects \
10721    predeps \
10722    postdeps \
10723    compiler_lib_search_path \
10724    archive_cmds \
10725    archive_expsym_cmds \
10726    postinstall_cmds \
10727    postuninstall_cmds \
10728    old_archive_from_expsyms_cmds \
10729    allow_undefined_flag \
10730    no_undefined_flag \
10731    export_symbols_cmds \
10732    hardcode_libdir_flag_spec \
10733    hardcode_libdir_flag_spec_ld \
10734    hardcode_libdir_separator \
10735    hardcode_automatic \
10736    module_cmds \
10737    module_expsym_cmds \
10738    lt_cv_prog_compiler_c_o \
10739    exclude_expsyms \
10740    include_expsyms; do
10741
10742    case $var in
10743    old_archive_cmds | \
10744    old_archive_from_new_cmds | \
10745    archive_cmds | \
10746    archive_expsym_cmds | \
10747    module_cmds | \
10748    module_expsym_cmds | \
10749    old_archive_from_expsyms_cmds | \
10750    export_symbols_cmds | \
10751    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10752    postinstall_cmds | postuninstall_cmds | \
10753    old_postinstall_cmds | old_postuninstall_cmds | \
10754    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10755      # Double-quote double-evaled strings.
10756      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10757      ;;
10758    *)
10759      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10760      ;;
10761    esac
10762  done
10763
10764  case $lt_echo in
10765  *'\$0 --fallback-echo"')
10766    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10767    ;;
10768  esac
10769
10770cfgfile="${ofile}T"
10771  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10772  $rm -f "$cfgfile"
10773  { echo "$as_me:$LINENO: creating $ofile" >&5
10774echo "$as_me: creating $o