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

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

temporarily committing release candidate

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