source: ThirdParty/Metis/trunk/configure @ 2970

Last change on this file since 2970 was 2970, checked in by tkr, 7 years ago

Re-running the autotools

  • Property svn:executable set to *
File size: 711.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMetis trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMetis trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis trunk to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis trunk:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-metis compile project Metis with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079Optional Packages:
1080  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082  --with-metis-verbosity specify the debug verbosity level for project Metis
1083  --with-metis-checklevel specify the sanity check level for project Metis
1084  --with-coin-instdir     prefix of installation directory for precompiled
1085                          COIN packages
1086  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1087  --with-pic              try to use only PIC/non-PIC objects [default=use
1088                          both]
1089  --with-tags[=TAGS]
1090                          include additional configurations [automatic]
1091
1092Some influential environment variables:
1093  CDEFS       Additional -D flags to be used when compiling C code.
1094  ADD_CFLAGS  Additional C compiler options
1095  DBG_CFLAGS  Debug C compiler options
1096  OPT_CFLAGS  Optimize C compiler options
1097  CC          C compiler command
1098  CFLAGS      C compiler flags
1099  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1100              nonstandard directory <lib dir>
1101  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102              headers in a nonstandard directory <include dir>
1103  MPICC       C MPI Compiler
1104  PKG_CONFIG  path to pkg-config utility
1105  CPP         C preprocessor
1106  CXX         C++ compiler command
1107  CXXFLAGS    C++ compiler flags
1108  CXXCPP      C++ preprocessor
1109  F77         Fortran 77 compiler command
1110  FFLAGS      Fortran 77 compiler flags
1111
1112Use these variables to override the choices made by `configure' or to help
1113it to find libraries and programs with nonstandard names/locations.
1114
1115Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1116_ACEOF
1117fi
1118
1119if test "$ac_init_help" = "recursive"; then
1120  # If there are subdirs, report their specific --help.
1121  ac_popdir=`pwd`
1122  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1123    test -d $ac_dir || continue
1124    ac_builddir=.
1125
1126if test "$ac_dir" != .; then
1127  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1128  # A "../" for each directory in $ac_dir_suffix.
1129  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130else
1131  ac_dir_suffix= ac_top_builddir=
1132fi
1133
1134case $srcdir in
1135  .)  # No --srcdir option.  We are building in place.
1136    ac_srcdir=.
1137    if test -z "$ac_top_builddir"; then
1138       ac_top_srcdir=.
1139    else
1140       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141    fi ;;
1142  [\\/]* | ?:[\\/]* )  # Absolute path.
1143    ac_srcdir=$srcdir$ac_dir_suffix;
1144    ac_top_srcdir=$srcdir ;;
1145  *) # Relative path.
1146    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1147    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148esac
1149
1150# Do not use `cd foo && pwd` to compute absolute paths, because
1151# the directories may not exist.
1152case `pwd` in
1153.) ac_abs_builddir="$ac_dir";;
1154*)
1155  case "$ac_dir" in
1156  .) ac_abs_builddir=`pwd`;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1158  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159  esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_builddir=${ac_top_builddir}.;;
1163*)
1164  case ${ac_top_builddir}. in
1165  .) ac_abs_top_builddir=$ac_abs_builddir;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1167  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_srcdir=$ac_srcdir;;
1172*)
1173  case $ac_srcdir in
1174  .) ac_abs_srcdir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1176  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_top_srcdir=$ac_top_srcdir;;
1181*)
1182  case $ac_top_srcdir in
1183  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1185  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186  esac;;
1187esac
1188
1189    cd $ac_dir
1190    # Check for guested configure; otherwise get Cygnus style configure.
1191    if test -f $ac_srcdir/configure.gnu; then
1192      echo
1193      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1194    elif test -f $ac_srcdir/configure; then
1195      echo
1196      $SHELL $ac_srcdir/configure  --help=recursive
1197    elif test -f $ac_srcdir/configure.ac ||
1198           test -f $ac_srcdir/configure.in; then
1199      echo
1200      $ac_configure --help
1201    else
1202      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203    fi
1204    cd $ac_popdir
1205  done
1206fi
1207
1208test -n "$ac_init_help" && exit 0
1209if $ac_init_version; then
1210  cat <<\_ACEOF
1211ThirdPartyMetis configure trunk
1212generated by GNU Autoconf 2.59
1213
1214Copyright (C) 2003 Free Software Foundation, Inc.
1215This configure script is free software; the Free Software Foundation
1216gives unlimited permission to copy, distribute and modify it.
1217
1218
1219Copyright 2009 International Business Machines and others.
1220All Rights Reserved.
1221This file is part of the open source package Coin which is distributed
1222under the Eclipse Public License.
1223_ACEOF
1224  exit 0
1225fi
1226exec 5>config.log
1227cat >&5 <<_ACEOF
1228This file contains any messages produced by compilers while
1229running configure, to aid debugging if configure makes a mistake.
1230
1231It was created by ThirdPartyMetis $as_me trunk, which was
1232generated by GNU Autoconf 2.59.  Invocation command line was
1233
1234  $ $0 $@
1235
1236_ACEOF
1237{
1238cat <<_ASUNAME
1239## --------- ##
1240## Platform. ##
1241## --------- ##
1242
1243hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248
1249/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1251
1252/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1253/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1254/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1256/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1257/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1258/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1259
1260_ASUNAME
1261
1262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263for as_dir in $PATH
1264do
1265  IFS=$as_save_IFS
1266  test -z "$as_dir" && as_dir=.
1267  echo "PATH: $as_dir"
1268done
1269
1270} >&5
1271
1272cat >&5 <<_ACEOF
1273
1274
1275## ----------- ##
1276## Core tests. ##
1277## ----------- ##
1278
1279_ACEOF
1280
1281
1282# Keep a trace of the command line.
1283# Strip out --no-create and --no-recursion so they do not pile up.
1284# Strip out --silent because we don't want to record it for future runs.
1285# Also quote any args containing shell meta-characters.
1286# Make two passes to allow for proper duplicate-argument suppression.
1287ac_configure_args=
1288ac_configure_args0=
1289ac_configure_args1=
1290ac_sep=
1291ac_must_keep_next=false
1292for ac_pass in 1 2
1293do
1294  for ac_arg
1295  do
1296    case $ac_arg in
1297    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299    | -silent | --silent | --silen | --sile | --sil)
1300      continue ;;
1301    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303    esac
1304    case $ac_pass in
1305    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306    2)
1307      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308      if test $ac_must_keep_next = true; then
1309        ac_must_keep_next=false # Got value, back to normal.
1310      else
1311        case $ac_arg in
1312          *=* | --config-cache | -C | -disable-* | --disable-* \
1313          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315          | -with-* | --with-* | -without-* | --without-* | --x)
1316            case "$ac_configure_args0 " in
1317              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318            esac
1319            ;;
1320          -* ) ac_must_keep_next=true ;;
1321        esac
1322      fi
1323      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324      # Get rid of the leading space.
1325      ac_sep=" "
1326      ;;
1327    esac
1328  done
1329done
1330$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332
1333# When interrupted or exit'd, cleanup temporary files, and complete
1334# config.log.  We remove comments because anyway the quotes in there
1335# would cause problems or look ugly.
1336# WARNING: Be sure not to use single quotes in there, as some shells,
1337# such as our DU 5.0 friend, will then `close' the trap.
1338trap 'exit_status=$?
1339  # Save into config.log some information that might help in debugging.
1340  {
1341    echo
1342
1343    cat <<\_ASBOX
1344## ---------------- ##
1345## Cache variables. ##
1346## ---------------- ##
1347_ASBOX
1348    echo
1349    # The following way of writing the cache mishandles newlines in values,
1350{
1351  (set) 2>&1 |
1352    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353    *ac_space=\ *)
1354      sed -n \
1355        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357      ;;
1358    *)
1359      sed -n \
1360        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361      ;;
1362    esac;
1363}
1364    echo
1365
1366    cat <<\_ASBOX
1367## ----------------- ##
1368## Output variables. ##
1369## ----------------- ##
1370_ASBOX
1371    echo
1372    for ac_var in $ac_subst_vars
1373    do
1374      eval ac_val=$`echo $ac_var`
1375      echo "$ac_var='"'"'$ac_val'"'"'"
1376    done | sort
1377    echo
1378
1379    if test -n "$ac_subst_files"; then
1380      cat <<\_ASBOX
1381## ------------- ##
1382## Output files. ##
1383## ------------- ##
1384_ASBOX
1385      echo
1386      for ac_var in $ac_subst_files
1387      do
1388        eval ac_val=$`echo $ac_var`
1389        echo "$ac_var='"'"'$ac_val'"'"'"
1390      done | sort
1391      echo
1392    fi
1393
1394    if test -s confdefs.h; then
1395      cat <<\_ASBOX
1396## ----------- ##
1397## confdefs.h. ##
1398## ----------- ##
1399_ASBOX
1400      echo
1401      sed "/^$/d" confdefs.h | sort
1402      echo
1403    fi
1404    test "$ac_signal" != 0 &&
1405      echo "$as_me: caught signal $ac_signal"
1406    echo "$as_me: exit $exit_status"
1407  } >&5
1408  rm -f core *.core &&
1409  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410    exit $exit_status
1411     ' 0
1412for ac_signal in 1 2 13 15; do
1413  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414done
1415ac_signal=0
1416
1417# confdefs.h avoids OS command line length limits that DEFS can exceed.
1418rm -rf conftest* confdefs.h
1419# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420echo >confdefs.h
1421
1422# Predefined preprocessor variables.
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_NAME "$PACKAGE_NAME"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_VERSION "$PACKAGE_VERSION"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_STRING "$PACKAGE_STRING"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446_ACEOF
1447
1448
1449# Let the site file select an alternate cache file if it wants to.
1450# Prefer explicitly selected file to automatically selected ones.
1451if test -z "$CONFIG_SITE"; then
1452  if test "x$prefix" != xNONE; then
1453    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454  else
1455    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456  fi
1457fi
1458for ac_site_file in $CONFIG_SITE; do
1459  if test -r "$ac_site_file"; then
1460    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461echo "$as_me: loading site script $ac_site_file" >&6;}
1462    sed 's/^/| /' "$ac_site_file" >&5
1463    . "$ac_site_file"
1464  fi
1465done
1466
1467if test -r "$cache_file"; then
1468  # Some versions of bash will fail to source /dev/null (special
1469  # files actually), so we avoid doing that.
1470  if test -f "$cache_file"; then
1471    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472echo "$as_me: loading cache $cache_file" >&6;}
1473    case $cache_file in
1474      [\\/]* | ?:[\\/]* ) . $cache_file;;
1475      *)                      . ./$cache_file;;
1476    esac
1477  fi
1478else
1479  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480echo "$as_me: creating cache $cache_file" >&6;}
1481  >$cache_file
1482fi
1483
1484# Check that the precious variables saved in the cache have kept the same
1485# value.
1486ac_cache_corrupted=false
1487for ac_var in `(set) 2>&1 |
1488               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490  eval ac_new_set=\$ac_env_${ac_var}_set
1491  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492  eval ac_new_val="\$ac_env_${ac_var}_value"
1493  case $ac_old_set,$ac_new_set in
1494    set,)
1495      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497      ac_cache_corrupted=: ;;
1498    ,set)
1499      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501      ac_cache_corrupted=: ;;
1502    ,);;
1503    *)
1504      if test "x$ac_old_val" != "x$ac_new_val"; then
1505        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1506echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1507        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1508echo "$as_me:   former value:  $ac_old_val" >&2;}
1509        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1510echo "$as_me:   current value: $ac_new_val" >&2;}
1511        ac_cache_corrupted=:
1512      fi;;
1513  esac
1514  # Pass precious variables to config.status.
1515  if test "$ac_new_set" = set; then
1516    case $ac_new_val in
1517    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1518      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1519    *) ac_arg=$ac_var=$ac_new_val ;;
1520    esac
1521    case " $ac_configure_args " in
1522      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1523      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1524    esac
1525  fi
1526done
1527if $ac_cache_corrupted; then
1528  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1529echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1530  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1531echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1532   { (exit 1); exit 1; }; }
1533fi
1534
1535ac_ext=c
1536ac_cpp='$CPP $CPPFLAGS'
1537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540
1541
1542
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# List one file in the package so that the configure script can test
1571# whether the package is actually there
1572
1573
1574# Where should everything be installed by default?  Here, we want it
1575# to be installed directly in 'bin', 'lib', 'include' subdirectories
1576# of the directory where configure is run.  The default would be
1577# /usr/local.
1578
1579
1580
1581# As backup, we make sure we don't loose an FLIBS if it has been set
1582# by the user
1583save_FLIBS="$FLIBS"
1584
1585# A useful makefile conditional that is always false
1586
1587
1588if false; then
1589  ALWAYS_FALSE_TRUE=
1590  ALWAYS_FALSE_FALSE='#'
1591else
1592  ALWAYS_FALSE_TRUE='#'
1593  ALWAYS_FALSE_FALSE=
1594fi
1595
1596
1597# We set the following variable so that we know later in AC_COIN_FINALIZE
1598# that we are in a project main directory
1599coin_projectdir=yes
1600
1601# Set the project's version numbers
1602
1603
1604cat >>confdefs.h <<_ACEOF
1605#define METIS_VERSION "$PACKAGE_VERSION"
1606_ACEOF
1607
1608
1609  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1610  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1611  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1612  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1613  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1614  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1615
1616cat >>confdefs.h <<_ACEOF
1617#define METIS_VERSION_MAJOR $coin_majorver
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define METIS_VERSION_MINOR $coin_minorver
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define METIS_VERSION_RELEASE $coin_releasever
1628_ACEOF
1629
1630
1631  # We use the following variable to have a string with the upper case
1632  # version of the project name
1633  COIN_PRJCT=METIS
1634
1635  # Set the project's SVN revision number. The complicated sed expression
1636  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1637  # as a single number.
1638  # Extract the first word of "svnversion", so it can be a program name with args.
1639set dummy svnversion; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_have_svnversion+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  if test -n "$have_svnversion"; then
1646  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  for ac_exec_ext in '' $ac_executable_extensions; do
1654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655    ac_cv_prog_have_svnversion="yes"
1656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657    break 2
1658  fi
1659done
1660done
1661
1662  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1663fi
1664fi
1665have_svnversion=$ac_cv_prog_have_svnversion
1666if test -n "$have_svnversion"; then
1667  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1668echo "${ECHO_T}$have_svnversion" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674  if test "x$have_svnversion" = xyes; then
1675
1676    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1677    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1678      METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1679
1680cat >>confdefs.h <<_ACEOF
1681#define METIS_SVN_REV $METIS_SVN_REV
1682_ACEOF
1683
1684    fi
1685  fi
1686
1687
1688
1689# Capture libtool library version, if given.
1690
1691
1692
1693
1694#############################################################################
1695#                         Standard build tool stuff                         #
1696#############################################################################
1697
1698# Get the system type
1699ac_aux_dir=
1700for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1701  if test -f $ac_dir/install-sh; then
1702    ac_aux_dir=$ac_dir
1703    ac_install_sh="$ac_aux_dir/install-sh -c"
1704    break
1705  elif 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/shtool; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/shtool install -c"
1712    break
1713  fi
1714done
1715if test -z "$ac_aux_dir"; then
1716  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1717echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1718   { (exit 1); exit 1; }; }
1719fi
1720ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1721ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1722ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1723
1724# Make sure we can run config.sub.
1725$ac_config_sub sun4 >/dev/null 2>&1 ||
1726  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730echo "$as_me:$LINENO: checking build system type" >&5
1731echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732if test "${ac_cv_build+set}" = set; then
1733  echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735  ac_cv_build_alias=$build_alias
1736test -z "$ac_cv_build_alias" &&
1737  ac_cv_build_alias=`$ac_config_guess`
1738test -z "$ac_cv_build_alias" &&
1739  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741   { (exit 1); exit 1; }; }
1742ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745   { (exit 1); exit 1; }; }
1746
1747fi
1748echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749echo "${ECHO_T}$ac_cv_build" >&6
1750build=$ac_cv_build
1751build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756
1757#turn off warnings and pedantic mode since they could make trouble on some platforms,
1758#and we couldn't fix them anyway
1759coin_skip_warn_cflags=yes
1760coin_skip_warn_fflags=yes
1761
1762# Check if user wants to produce debugging code
1763
1764echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1765echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1766
1767# Check whether --enable-debug or --disable-debug was given.
1768if test "${enable_debug+set}" = set; then
1769  enableval="$enable_debug"
1770  case "${enableval}" in
1771   yes) coin_debug_compile=true
1772        if test "${enable_shared+set}" = set; then :; else
1773          enable_shared=no
1774        fi
1775        ;;
1776   no)  coin_debug_compile=false
1777        ;;
1778   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1779echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1780   { (exit 1); exit 1; }; }
1781        ;;
1782esac
1783else
1784  coin_debug_compile=false
1785fi;
1786
1787# Check whether --enable-debug-metis or --disable-debug-metis was given.
1788if test "${enable_debug_metis+set}" = set; then
1789  enableval="$enable_debug_metis"
1790  case "${enableval}" in
1791    yes) coin_debug_compile=true
1792         ;;
1793    no)  coin_debug_compile=false
1794         ;;
1795    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1796echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1797   { (exit 1); exit 1; }; }
1798         ;;
1799 esac
1800else
1801  :
1802fi;
1803
1804 # m4_ifvaln([Metis],
1805
1806if test $coin_debug_compile = true; then
1807  echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809else
1810  echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812fi
1813
1814
1815# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1816if test "${with_metis_verbosity+set}" = set; then
1817  withval="$with_metis_verbosity"
1818  if test "$withval" = yes; then
1819                withval=1
1820              fi
1821              coin_metis_verbosity=$withval
1822else
1823  coin_metis_verbosity=0
1824fi;
1825
1826cat >>confdefs.h <<_ACEOF
1827#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1828_ACEOF
1829
1830
1831
1832# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1833if test "${with_metis_checklevel+set}" = set; then
1834  withval="$with_metis_checklevel"
1835  if test "$withval" = yes; then
1836                withval=1
1837              fi
1838              coin_metis_checklevel=$withval
1839else
1840  coin_metis_checklevel=0
1841fi;
1842
1843cat >>confdefs.h <<_ACEOF
1844#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1845_ACEOF
1846
1847
1848 # m4_ifvaln([Metis],
1849
1850
1851
1852# Get the name of the C compiler
1853
1854
1855  # for backward compatibility
1856  # Check whether --enable-doscompile or --disable-doscompile was given.
1857if test "${enable_doscompile+set}" = set; then
1858  enableval="$enable_doscompile"
1859  enable_doscompile=$enableval
1860else
1861  enable_doscompile=no
1862fi;
1863
1864  # Check whether --enable-msvc or --disable-msvc was given.
1865if test "${enable_msvc+set}" = set; then
1866  enableval="$enable_msvc"
1867  enable_msvc=$enableval
1868else
1869  enable_msvc=no
1870     if test "$enable_doscompile" = msvc ; then
1871       enable_msvc=yes
1872     elif test "$enable_doscompile" != no ; then
1873       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1874echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1875   { (exit 1); exit 1; }; }
1876     fi
1877
1878fi;
1879
1880  if test "$enable_msvc" = yes; then
1881    case $build in
1882      *-cygwin* | *-mingw*) ;;
1883      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1884echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1885   { (exit 1); exit 1; }; } ;;
1886    esac
1887  fi
1888
1889
1890 case $build in
1891  *-mingw*)
1892    if test "${LD+set}" = set; then :; else
1893      LD=link
1894    fi
1895    ;;
1896 esac
1897 if test $enable_msvc = yes ; then
1898   if test "x${LD+set}" = xset; then :; else
1899     LD=link
1900   fi
1901 fi
1902
1903
1904# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1905if test "${enable_static_standardlibs+set}" = set; then
1906  enableval="$enable_static_standardlibs"
1907  case "$enableval" in
1908     no | yes | auto ) ;;
1909     *)
1910       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1911echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1912   { (exit 1); exit 1; }; } ;;
1913   esac
1914   use_static_standardlibs=$enableval
1915else
1916  use_static_standardlibs=no
1917fi;
1918
1919
1920
1921
1922
1923ac_ext=c
1924ac_cpp='$CPP $CPPFLAGS'
1925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928
1929
1930# For consistency, we set the C compiler to the same value of the C++
1931# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1932if test x"$CXX" != x; then
1933  case "$CXX" in
1934    clang* ) ;;
1935    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1936      if test x"$CC" = x; then
1937        CC="$CXX"
1938        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1939echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1940      fi
1941      ;;
1942  esac
1943fi
1944
1945
1946
1947
1948
1949
1950coin_has_cc=yes
1951
1952save_cflags="$CFLAGS"
1953
1954# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1955# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1956# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1957# compiler. In this case, put cc after gcc.
1958
1959case $build in
1960  *-cygwin* | *-mingw*)
1961             if test "$enable_msvc" = yes ; then
1962               comps="icl cl gcc"
1963             else
1964               comps="gcc icl cl"
1965             fi ;;
1966  *-*-solaris*)
1967             # Extract the first word of "cc", so it can be a program name with args.
1968set dummy cc; ac_word=$2
1969echo "$as_me:$LINENO: checking for $ac_word" >&5
1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1972  echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974  if test -n "$sol_cc_compiler"; then
1975  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1976else
1977  ac_prog_rejected=no
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981  IFS=$as_save_IFS
1982  test -z "$as_dir" && as_dir=.
1983  for ac_exec_ext in '' $ac_executable_extensions; do
1984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986       ac_prog_rejected=yes
1987       continue
1988     fi
1989    ac_cv_prog_sol_cc_compiler="cc"
1990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991    break 2
1992  fi
1993done
1994done
1995
1996if test $ac_prog_rejected = yes; then
1997  # We found a bogon in the path, so make sure we never use it.
1998  set dummy $ac_cv_prog_sol_cc_compiler
1999  shift
2000  if test $# != 0; then
2001    # We chose a different compiler from the bogus one.
2002    # However, it has the same basename, so the bogon will be chosen
2003    # first if we set sol_cc_compiler to just the basename; use the full file name.
2004    shift
2005    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2006  fi
2007fi
2008fi
2009fi
2010sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2011if test -n "$sol_cc_compiler"; then
2012  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2013echo "${ECHO_T}$sol_cc_compiler" >&6
2014else
2015  echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019             if test "$sol_cc_compiler" = "cc" ; then
2020               comps="cc xlc gcc pgcc icc"
2021             else
2022               comps="xlc gcc pgcc icc cc"
2023             fi
2024             ;;
2025  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2026  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2027  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2028esac
2029
2030# We delete the cached value, since the test might not have been
2031# performed with our choice of compilers earlier
2032$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2033# AC_MSG_NOTICE([C compiler candidates: $comps])
2034ac_ext=c
2035ac_cpp='$CPP $CPPFLAGS'
2036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039if test -n "$ac_tool_prefix"; then
2040  for ac_prog in $comps
2041  do
2042    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044echo "$as_me:$LINENO: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046if test "${ac_cv_prog_CC+set}" = set; then
2047  echo $ECHO_N "(cached) $ECHO_C" >&6
2048else
2049  if test -n "$CC"; then
2050  ac_cv_prog_CC="$CC" # Let the user override the test.
2051else
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055  IFS=$as_save_IFS
2056  test -z "$as_dir" && as_dir=.
2057  for ac_exec_ext in '' $ac_executable_extensions; do
2058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061    break 2
2062  fi
2063done
2064done
2065
2066fi
2067fi
2068CC=$ac_cv_prog_CC
2069if test -n "$CC"; then
2070  echo "$as_me:$LINENO: result: $CC" >&5
2071echo "${ECHO_T}$CC" >&6
2072else
2073  echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6
2075fi
2076
2077    test -n "$CC" && break
2078  done
2079fi
2080if test -z "$CC"; then
2081  ac_ct_CC=$CC
2082  for ac_prog in $comps
2083do
2084  # Extract the first word of "$ac_prog", so it can be a program name with args.
2085set dummy $ac_prog; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$ac_ct_CC"; then
2092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    ac_cv_prog_ac_ct_CC="$ac_prog"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115  echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119  test -n "$ac_ct_CC" && break
2120done
2121
2122  CC=$ac_ct_CC
2123fi
2124
2125
2126test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: no acceptable C compiler found in \$PATH
2129See \`config.log' for more details." >&2;}
2130   { (exit 1); exit 1; }; }
2131
2132# Provide some information about the compiler.
2133echo "$as_me:$LINENO:" \
2134     "checking for C compiler version" >&5
2135ac_compiler=`set X $ac_compile; echo $2`
2136{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2137  (eval $ac_compiler --version </dev/null >&5) 2>&5
2138  ac_status=$?
2139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140  (exit $ac_status); }
2141{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2142  (eval $ac_compiler -v </dev/null >&5) 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }
2146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2147  (eval $ac_compiler -V </dev/null >&5) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }
2151
2152cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h.  */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h.  */
2158
2159int
2160main ()
2161{
2162
2163  ;
2164  return 0;
2165}
2166_ACEOF
2167ac_clean_files_save=$ac_clean_files
2168ac_clean_files="$ac_clean_files a.out a.exe b.out"
2169# Try to create an executable without -o first, disregard a.out.
2170# It will help us diagnose broken compilers, and finding out an intuition
2171# of exeext.
2172echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2173echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2174ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2175if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2176  (eval $ac_link_default) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }; then
2180  # Find the output, starting from the most likely.  This scheme is
2181# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2182# resort.
2183
2184# Be careful to initialize this variable, since it used to be cached.
2185# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2186ac_cv_exeext=
2187# b.out is created by i960 compilers.
2188for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2189do
2190  test -f "$ac_file" || continue
2191  case $ac_file in
2192    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2193        ;;
2194    conftest.$ac_ext )
2195        # This is the source file.
2196        ;;
2197    [ab].out )
2198        # We found the default executable, but exeext='' is most
2199        # certainly right.
2200        break;;
2201    *.* )
2202        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203        # FIXME: I believe we export ac_cv_exeext for Libtool,
2204        # but it would be cool to find out if it's true.  Does anybody
2205        # maintain Libtool? --akim.
2206        export ac_cv_exeext
2207        break;;
2208    * )
2209        break;;
2210  esac
2211done
2212else
2213  echo "$as_me: failed program was:" >&5
2214sed 's/^/| /' conftest.$ac_ext >&5
2215
2216{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2217See \`config.log' for more details." >&5
2218echo "$as_me: error: C compiler cannot create executables
2219See \`config.log' for more details." >&2;}
2220   { (exit 77); exit 77; }; }
2221fi
2222
2223ac_exeext=$ac_cv_exeext
2224echo "$as_me:$LINENO: result: $ac_file" >&5
2225echo "${ECHO_T}$ac_file" >&6
2226
2227# Check the compiler produces executables we can run.  If not, either
2228# the compiler is broken, or we cross compile.
2229echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2230echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2231# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2232# If not cross compiling, check that we can run a simple program.
2233if test "$cross_compiling" != yes; then
2234  if { ac_try='./$ac_file'
2235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236  (eval $ac_try) 2>&5
2237  ac_status=$?
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); }; }; then
2240    cross_compiling=no
2241  else
2242    if test "$cross_compiling" = maybe; then
2243        cross_compiling=yes
2244    else
2245        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&2;}
2251   { (exit 1); exit 1; }; }
2252    fi
2253  fi
2254fi
2255echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6
2257
2258rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259ac_clean_files=$ac_clean_files_save
2260# Check the compiler produces executables we can run.  If not, either
2261# the compiler is broken, or we cross compile.
2262echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2264echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265echo "${ECHO_T}$cross_compiling" >&6
2266
2267echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2270  (eval $ac_link) 2>&5
2271  ac_status=$?
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); }; then
2274  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276# work properly (i.e., refer to `conftest.exe'), while it won't with
2277# `rm'.
2278for ac_file in conftest.exe conftest conftest.*; do
2279  test -f "$ac_file" || continue
2280  case $ac_file in
2281    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2282    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283          export ac_cv_exeext
2284          break;;
2285    * ) break;;
2286  esac
2287done
2288else
2289  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293   { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest$ac_cv_exeext
2297echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6
2299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
2303echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2305if test "${ac_cv_objext+set}" = set; then
2306  echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308  cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h.  */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h.  */
2314
2315int
2316main ()
2317{
2318
2319  ;
2320  return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
2324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325  (eval $ac_compile) 2>&5
2326  ac_status=$?
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); }; then
2329  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2330  case $ac_file in
2331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2332    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333       break;;
2334  esac
2335done
2336else
2337  echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&5
2342echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&2;}
2344   { (exit 1); exit 1; }; }
2345fi
2346
2347rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348fi
2349echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350echo "${ECHO_T}$ac_cv_objext" >&6
2351OBJEXT=$ac_cv_objext
2352ac_objext=$OBJEXT
2353echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2355if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356  echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358  cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368#ifndef __GNUC__
2369       choke me
2370#endif
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_c_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  ac_compiler_gnu=yes
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403ac_compiler_gnu=no
2404fi
2405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408fi
2409echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411GCC=`test $ac_compiler_gnu = yes && echo yes`
2412ac_test_CFLAGS=${CFLAGS+set}
2413ac_save_CFLAGS=$CFLAGS
2414CFLAGS="-g"
2415echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417if test "${ac_cv_prog_cc_g+set}" = set; then
2418  echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420  cat >conftest.$ac_ext <<_ACEOF
2421/* confdefs.h.  */
2422_ACEOF
2423cat confdefs.h >>conftest.$ac_ext
2424cat >>conftest.$ac_ext <<_ACEOF
2425/* end confdefs.h.  */
2426
2427int
2428main ()
2429{
2430
2431  ;
2432  return 0;
2433}
2434_ACEOF
2435rm -f conftest.$ac_objext
2436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437  (eval $ac_compile) 2>conftest.er1
2438  ac_status=$?
2439  grep -v '^ *+' conftest.er1 >conftest.err
2440  rm -f conftest.er1
2441  cat conftest.err >&5
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); } &&
2444         { ac_try='test -z "$ac_c_werror_flag"
2445                         || test ! -s conftest.err'
2446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447  (eval $ac_try) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; } &&
2451         { ac_try='test -s conftest.$ac_objext'
2452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453  (eval $ac_try) 2>&5
2454  ac_status=$?
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); }; }; then
2457  ac_cv_prog_cc_g=yes
2458else
2459  echo "$as_me: failed program was:" >&5
2460sed 's/^/| /' conftest.$ac_ext >&5
2461
2462ac_cv_prog_cc_g=no
2463fi
2464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465fi
2466echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2467echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2468if test "$ac_test_CFLAGS" = set; then
2469  CFLAGS=$ac_save_CFLAGS
2470elif test $ac_cv_prog_cc_g = yes; then
2471  if test "$GCC" = yes; then
2472    CFLAGS="-g -O2"
2473  else
2474    CFLAGS="-g"
2475  fi
2476else
2477  if test "$GCC" = yes; then
2478    CFLAGS="-O2"
2479  else
2480    CFLAGS=
2481  fi
2482fi
2483echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2484echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2485if test "${ac_cv_prog_cc_stdc+set}" = set; then
2486  echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488  ac_cv_prog_cc_stdc=no
2489ac_save_CC=$CC
2490cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h.  */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h.  */
2496#include <stdarg.h>
2497#include <stdio.h>
2498#include <sys/types.h>
2499#include <sys/stat.h>
2500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2501struct buf { int x; };
2502FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503static char *e (p, i)
2504     char **p;
2505     int i;
2506{
2507  return p[i];
2508}
2509static char *f (char * (*g) (char **, int), char **p, ...)
2510{
2511  char *s;
2512  va_list v;
2513  va_start (v,p);
2514  s = g (p, va_arg (v,int));
2515  va_end (v);
2516  return s;
2517}
2518
2519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2520   function prototypes and stuff, but not '\xHH' hex character constants.
2521   These don't provoke an error unfortunately, instead are silently treated
2522   as 'x'.  The following induces an error, until -std1 is added to get
2523   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2524   array size at least.  It's necessary to write '\x00'==0 to get something
2525   that's true only with -std1.  */
2526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527
2528int test (int i, double x);
2529struct s1 {int (*f) (int a);};
2530struct s2 {int (*f) (double a);};
2531int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532int argc;
2533char **argv;
2534int
2535main ()
2536{
2537return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542# Don't try gcc -ansi; that turns off useful extensions and
2543# breaks some systems' header files.
2544# AIX                   -qlanglvl=ansi
2545# Ultrix and OSF/1      -std1
2546# HP-UX 10.20 and later -Ae
2547# HP-UX older versions  -Aa -D_HPUX_SOURCE
2548# SVR4                  -Xc -D__EXTENSIONS__
2549for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550do
2551  CC="$ac_save_CC $ac_arg"
2552  rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554  (eval $ac_compile) 2>conftest.er1
2555  ac_status=$?
2556  grep -v '^ *+' conftest.er1 >conftest.err
2557  rm -f conftest.er1
2558  cat conftest.err >&5
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); } &&
2561         { ac_try='test -z "$ac_c_werror_flag"
2562                         || test ! -s conftest.err'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; } &&
2568         { ac_try='test -s conftest.$ac_objext'
2569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570  (eval $ac_try) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; }; then
2574  ac_cv_prog_cc_stdc=$ac_arg
2575break
2576else
2577  echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
2580fi
2581rm -f conftest.err conftest.$ac_objext
2582done
2583rm -f conftest.$ac_ext conftest.$ac_objext
2584CC=$ac_save_CC
2585
2586fi
2587
2588case "x$ac_cv_prog_cc_stdc" in
2589  x|xno)
2590    echo "$as_me:$LINENO: result: none needed" >&5
2591echo "${ECHO_T}none needed" >&6 ;;
2592  *)
2593    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2594echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2595    CC="$CC $ac_cv_prog_cc_stdc" ;;
2596esac
2597
2598# Some people use a C++ compiler to compile C.  Since we use `exit',
2599# in C++ we need to declare it.  In case someone uses the same compiler
2600# for both compiling C and C++ we need to have the C++ compiler decide
2601# the declaration of exit, since it's the most demanding environment.
2602cat >conftest.$ac_ext <<_ACEOF
2603#ifndef __cplusplus
2604  choke me
2605#endif
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609  (eval $ac_compile) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616         { ac_try='test -z "$ac_c_werror_flag"
2617                         || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623         { ac_try='test -s conftest.$ac_objext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  for ac_declaration in \
2630   '' \
2631   'extern "C" void std::exit (int) throw (); using std::exit;' \
2632   'extern "C" void std::exit (int); using std::exit;' \
2633   'extern "C" void exit (int) throw ();' \
2634   'extern "C" void exit (int);' \
2635   'void exit (int);'
2636do
2637  cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643$ac_declaration
2644#include <stdlib.h>
2645int
2646main ()
2647{
2648exit (42);
2649  ;
2650  return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext
2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655  (eval $ac_compile) 2>conftest.er1
2656  ac_status=$?
2657  grep -v '^ *+' conftest.er1 >conftest.err
2658  rm -f conftest.er1
2659  cat conftest.err >&5
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); } &&
2662         { ac_try='test -z "$ac_c_werror_flag"
2663                         || test ! -s conftest.err'
2664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665  (eval $ac_try) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); }; } &&
2669         { ac_try='test -s conftest.$ac_objext'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; }; then
2675  :
2676else
2677  echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680continue
2681fi
2682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683  cat >conftest.$ac_ext <<_ACEOF
2684/* confdefs.h.  */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h.  */
2689$ac_declaration
2690int
2691main ()
2692{
2693exit (42);
2694  ;
2695  return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
2699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700  (eval $ac_compile) 2>conftest.er1
2701  ac_status=$?
2702  grep -v '^ *+' conftest.er1 >conftest.err
2703  rm -f conftest.er1
2704  cat conftest.err >&5
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); } &&
2707         { ac_try='test -z "$ac_c_werror_flag"
2708                         || test ! -s conftest.err'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; } &&
2714         { ac_try='test -s conftest.$ac_objext'
2715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716  (eval $ac_try) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }; }; then
2720  break
2721else
2722  echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727done
2728rm -f conftest*
2729if test -n "$ac_declaration"; then
2730  echo '#ifdef __cplusplus' >>confdefs.h
2731  echo $ac_declaration      >>confdefs.h
2732  echo '#endif'             >>confdefs.h
2733fi
2734
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741ac_ext=c
2742ac_cpp='$CPP $CPPFLAGS'
2743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746
2747if test -z "$CC" ; then
2748  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2749echo "$as_me: error: Failed to find a C compiler!" >&2;}
2750   { (exit 1); exit 1; }; }
2751fi
2752# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2753case "$CC" in
2754  clang* ) ;;
2755  cl* | */cl* | CL* | */CL* )
2756    if test "$ac_cv_prog_cc_g" = yes ; then
2757      ac_cv_prog_cc_g=no
2758      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2759echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2760    fi ;;
2761  * )
2762    CYGPATH_W=echo
2763    ;;
2764esac
2765CFLAGS="$save_cflags"
2766
2767# add automake conditional so we can recognize cl compiler in makefile
2768coin_cc_is_cl=false
2769case "$CC" in
2770  clang* ) ;;
2771  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2772    coin_cc_is_cl=true
2773    ;;
2774esac
2775
2776
2777if test $coin_cc_is_cl = true; then
2778  COIN_CC_IS_CL_TRUE=
2779  COIN_CC_IS_CL_FALSE='#'
2780else
2781  COIN_CC_IS_CL_TRUE='#'
2782  COIN_CC_IS_CL_FALSE=
2783fi
2784
2785
2786# Check if a project specific CFLAGS variable has been set
2787if test x$COIN_PRJCT != x; then
2788  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2789  if test x$coin_tmp = xset; then
2790    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2791  fi
2792fi
2793
2794if test x"$CFLAGS" = x; then
2795
2796  coin_add_cflags=
2797  coin_opt_cflags=
2798  coin_dbg_cflags=
2799  coin_warn_cflags=
2800
2801  if test "$GCC" = "yes"; then
2802    case "$CC" in
2803      icc* | */icc*)
2804        ;;
2805      *)
2806        coin_opt_cflags="-O3"
2807        coin_add_cflags="-pipe"
2808        coin_dbg_cflags="-g -O0"
2809        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2810        case $build in
2811          *-darwin*)
2812            ;;
2813          *)
2814            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2815            ;;
2816        esac
2817    esac
2818  fi
2819  if test -z "$coin_opt_cflags"; then
2820    case $build in
2821      *-cygwin* | *-mingw*)
2822        case "$CC" in
2823          clang* ) ;;
2824          cl* | */cl* | CL* | */CL*)
2825            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2826              coin_opt_cflags='-MD -O2'
2827              coin_dbg_cflags='-MDd'
2828            else
2829              coin_opt_cflags='-MT -O2'
2830              coin_dbg_cflags='-MTd'
2831            fi
2832            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2833            ;;
2834          icl* | */icl* | ICL* | */ICL*)
2835            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2836              coin_opt_cflags='-MD -Ox'
2837              coin_dbg_cflags='-MDd -debug'
2838            else
2839              coin_opt_cflags='-MT -Ox'
2840              coin_dbg_cflags='-MTd -debug'
2841            fi
2842            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2843            ;;
2844        esac
2845        ;;
2846      *-linux-*)
2847        case "$CC" in
2848          icc* | */icc*)
2849            coin_opt_cflags="-O3 -ip -mp1"
2850            coin_add_cflags=""
2851            coin_dbg_cflags="-g"
2852            # Check if -i_dynamic is necessary (for new glibc library)
2853            CFLAGS=
2854            cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h.  */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h.  */
2860
2861int
2862main ()
2863{
2864int i=0; i++;
2865  ;
2866  return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext conftest$ac_exeext
2870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2871  (eval $ac_link) 2>conftest.er1
2872  ac_status=$?
2873  grep -v '^ *+' conftest.er1 >conftest.err
2874  rm -f conftest.er1
2875  cat conftest.err >&5
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); } &&
2878         { ac_try='test -z "$ac_c_werror_flag"
2879                         || test ! -s conftest.err'
2880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881  (eval $ac_try) 2>&5
2882  ac_status=$?
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }; } &&
2885         { ac_try='test -s conftest$ac_exeext'
2886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887  (eval $ac_try) 2>&5
2888  ac_status=$?
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); }; }; then
2891  :
2892else
2893  echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896coin_add_cflags="-i_dynamic $coin_add_cflags"
2897fi
2898rm -f conftest.err conftest.$ac_objext \
2899      conftest$ac_exeext conftest.$ac_ext
2900            ;;
2901          pgcc* | */pgcc*)
2902            coin_opt_cflags="-fast"
2903            coin_add_cflags="-Kieee -pc 64"
2904            coin_dbg_cflags="-g"
2905            ;;
2906        esac
2907        ;;
2908      *-ibm-*)
2909        case "$CC" in
2910          xlc* | */xlc* | mpxlc* | */mpxlc*)
2911            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2912            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2913            coin_dbg_cflags="-g"
2914          ;;
2915        esac
2916        ;;
2917      *-hp-*)
2918        coin_opt_cflags="-O"
2919        coin_add_cflags="-Ae"
2920        coin_dbg_cflags="-g"
2921        ;;
2922      *-*-solaris*)
2923        coin_opt_cflags="-xO4"
2924        coin_dbg_cflags="-g"
2925        ;;
2926      *-sgi-*)
2927        coin_opt_cflags="-O -OPT:Olimit=0"
2928        coin_dbg_cflags="-g"
2929        ;;
2930    esac
2931  fi
2932
2933  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2934    coin_dbg_cflags="-g"
2935  fi
2936
2937  if test -z "$coin_opt_cflags"; then
2938    # Try if -O option works if nothing else is set
2939    CFLAGS="-O"
2940    cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946
2947int
2948main ()
2949{
2950int i=0; i++;
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext conftest$ac_exeext
2956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957  (eval $ac_link) 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } &&
2964         { ac_try='test -z "$ac_c_werror_flag"
2965                         || test ! -s conftest.err'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; } &&
2971         { ac_try='test -s conftest$ac_exeext'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; }; then
2977  coin_opt_cflags="-O"
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982fi
2983rm -f conftest.err conftest.$ac_objext \
2984      conftest$ac_exeext conftest.$ac_ext
2985  fi
2986
2987  # if PM doesn't want the warning messages, take them out
2988  if test x"$coin_skip_warn_cflags" = xyes; then
2989    coin_warn_cflags=
2990  fi
2991
2992  if test x${DBG_CFLAGS+set} != xset; then
2993    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2994  fi
2995  if test x${OPT_CFLAGS+set} != xset; then
2996    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2997  fi
2998
2999  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3000  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3001
3002  if test "$coin_debug_compile" = "true"; then
3003    CFLAGS="$DBG_CFLAGS"
3004  else
3005    CFLAGS="$OPT_CFLAGS"
3006  fi
3007
3008else
3009  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3010  if test x${DBG_CFLAGS+set} != xset; then
3011    DBG_CFLAGS="$CFLAGS"
3012  fi
3013  if test x${OPT_CFLAGS+set} != xset; then
3014    OPT_CFLAGS="$CFLAGS"
3015  fi
3016fi
3017
3018# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3019
3020case "$CFLAGS" in
3021  *-mno-cygwin*)
3022    if test x${CPPFLAGS+set} != xset ; then
3023      CPPFLAGS="-mno-cygwin"
3024    else
3025      case "$CPPFLAGS" in
3026        *-mno-cygwin*)
3027          ;;
3028        *)
3029          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3030          ;;
3031      esac
3032    fi ;;
3033esac
3034
3035# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3036if test x$COIN_PRJCT != x; then
3037  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3038fi
3039
3040# Try if CFLAGS works
3041save_CFLAGS="$CFLAGS"
3042cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052int i=0; i++;
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext conftest$ac_exeext
3058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3059  (eval $ac_link) 2>conftest.er1
3060  ac_status=$?
3061  grep -v '^ *+' conftest.er1 >conftest.err
3062  rm -f conftest.er1
3063  cat conftest.err >&5
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); } &&
3066         { ac_try='test -z "$ac_c_werror_flag"
3067                         || test ! -s conftest.err'
3068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069  (eval $ac_try) 2>&5
3070  ac_status=$?
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); }; } &&
3073         { ac_try='test -s conftest$ac_exeext'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; }; then
3079  :
3080else
3081  echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084CFLAGS=
3085fi
3086rm -f conftest.err conftest.$ac_objext \
3087      conftest$ac_exeext conftest.$ac_ext
3088if test -z "$CFLAGS"; then
3089  { 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
3090echo "$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;}
3091  CFLAGS='-O'
3092  cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h.  */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h.  */
3098
3099int
3100main ()
3101{
3102int i=0; i++;
3103  ;
3104  return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext conftest$ac_exeext
3108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109  (eval $ac_link) 2>conftest.er1
3110  ac_status=$?
3111  grep -v '^ *+' conftest.er1 >conftest.err
3112  rm -f conftest.er1
3113  cat conftest.err >&5
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); } &&
3116         { ac_try='test -z "$ac_c_werror_flag"
3117                         || test ! -s conftest.err'
3118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119  (eval $ac_try) 2>&5
3120  ac_status=$?
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); }; } &&
3123         { ac_try='test -s conftest$ac_exeext'
3124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125  (eval $ac_try) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; }; then
3129  :
3130else
3131  echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134CFLAGS=
3135fi
3136rm -f conftest.err conftest.$ac_objext \
3137      conftest$ac_exeext conftest.$ac_ext
3138  if test -z "$CFLAGS"; then
3139    { 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
3140echo "$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;}
3141  fi
3142fi
3143
3144{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3145echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3146
3147
3148if test x"$MPICC" = x; then :; else
3149  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3150echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3151  CC="$MPICC"
3152fi
3153
3154# Correct the LD variable if we are using the MS or Intel-windows compiler
3155case "$CC" in
3156  clang* ) ;;
3157  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3158
3159 case $build in
3160  *-mingw*)
3161    if test "${LD+set}" = set; then :; else
3162      LD=link
3163    fi
3164    ;;
3165 esac
3166 if test $enable_msvc = yes ; then
3167   if test "x${LD+set}" = xset; then :; else
3168     LD=link
3169   fi
3170 fi
3171
3172    ;;
3173esac
3174
3175# check whether to add flags for static linking against standard libraries to LDFLAGS
3176if test x$use_static_standardlibs != xno ; then
3177  case $build in
3178    *-mingw*)
3179      static_standardlib_flag=-static
3180      ;;
3181    *)
3182      static_standardlib_flag=-static-libgcc
3183      ;;
3184  esac
3185  case " $LDFLAGS " in
3186    *" $static_standardlib_flag "* ) ;;
3187    *)
3188    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3189echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3190    coin_save_LDFLAGS="$LDFLAGS"
3191    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3192    cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202int i=0;
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext conftest$ac_exeext
3208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3209  (eval $ac_link) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest$ac_exeext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  echo "$as_me:$LINENO: result: yes" >&5
3230echo "${ECHO_T}yes" >&6
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237       LDFLAGS="$coin_save_LDFLAGS"
3238       if test $use_static_standardlibs = yes ; then
3239         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3240echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3241   { (exit 1); exit 1; }; }
3242       fi
3243
3244fi
3245rm -f conftest.err conftest.$ac_objext \
3246      conftest$ac_exeext conftest.$ac_ext
3247    ;;
3248  esac
3249fi
3250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257
3258
3259# Check if pkg-config is available (to setup addlibs file)
3260
3261
3262# Check whether --enable-pkg-config or --disable-pkg-config was given.
3263if test "${enable_pkg_config+set}" = set; then
3264  enableval="$enable_pkg_config"
3265  use_pkgconfig="$enableval"
3266else
3267  if test x$coin_cc_is_cl = xtrue; then
3268     use_pkgconfig=no
3269   else
3270     use_pkgconfig=yes
3271   fi
3272fi;
3273
3274if test $use_pkgconfig = yes ; then
3275  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3276    if test -n "$ac_tool_prefix"; then
3277  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284  if test -n "$PKG_CONFIG"; then
3285  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292  for ac_exec_ext in '' $ac_executable_extensions; do
3293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299done
3300
3301fi
3302fi
3303PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3304if test -n "$PKG_CONFIG"; then
3305  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3306echo "${ECHO_T}$PKG_CONFIG" >&6
3307else
3308  echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
3312fi
3313if test -z "$ac_cv_prog_PKG_CONFIG"; then
3314  ac_ct_PKG_CONFIG=$PKG_CONFIG
3315  # Extract the first word of "pkg-config", so it can be a program name with args.
3316set dummy pkg-config; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3320  echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322  if test -n "$ac_ct_PKG_CONFIG"; then
3323  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330  for ac_exec_ext in '' $ac_executable_extensions; do
3331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337done
3338
3339fi
3340fi
3341ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3342if test -n "$ac_ct_PKG_CONFIG"; then
3343  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3344echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3345else
3346  echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
3349
3350  PKG_CONFIG=$ac_ct_PKG_CONFIG
3351else
3352  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3353fi
3354
3355  fi
3356  if test -n "$PKG_CONFIG"; then
3357    _pkg_min_version=0.16.0
3358    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3359echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3360    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3361      echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363    else
3364      echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366      PKG_CONFIG=""
3367    fi
3368  fi
3369
3370  # check if pkg-config supports the short-errors flag
3371  if test -n "$PKG_CONFIG" && \
3372    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3373    pkg_short_errors=" --short-errors "
3374  else
3375    pkg_short_errors=""
3376  fi
3377fi
3378
3379
3380
3381if test -n "$PKG_CONFIG"; then
3382  COIN_HAS_PKGCONFIG_TRUE=
3383  COIN_HAS_PKGCONFIG_FALSE='#'
3384else
3385  COIN_HAS_PKGCONFIG_TRUE='#'
3386  COIN_HAS_PKGCONFIG_FALSE=
3387fi
3388
3389
3390
3391# assemble pkg-config search path for installed projects
3392COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3393
3394# 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
3395# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3396# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3397if test "x${prefix}" = xNONE ; then
3398  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3399else
3400  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3401fi
3402
3403
3404# Check whether --with-coin-instdir or --without-coin-instdir was given.
3405if test "${with_coin_instdir+set}" = set; then
3406  withval="$with_coin_instdir"
3407  if test -d "$withval"; then : ; else
3408     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3409echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3410   { (exit 1); exit 1; }; }
3411   fi
3412   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3413
3414fi;
3415
3416
3417
3418# assemble additional pkg-config search paths for uninstalled projects
3419if test x$coin_projectdir = xyes ; then
3420  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3421  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3422  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3423  # 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)
3424  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3425  if test -e ../coin_subdirs.txt ; then
3426    for i in `cat ../coin_subdirs.txt` ; do
3427      if test -d ../$i ; then
3428        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3429      fi
3430      if test -d ../$i/pkgconfig ; then
3431        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3432      fi
3433    done
3434  fi
3435
3436  if test -e ../../coin_subdirs.txt ; then
3437    for i in `cat ../../coin_subdirs.txt` ; do
3438      if test -d ../../$i ; then
3439        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3440      fi
3441      if test -d ../../$i/pkgconfig ; then
3442        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3443      fi
3444    done
3445  fi
3446
3447
3448fi
3449
3450if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3451  { 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
3452echo "$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;}
3453fi
3454
3455
3456
3457# Initialize automake
3458{
3459
3460
3461
3462# START
3463
3464coin_disable_shared=no
3465# Test if force_shared has been set
3466if test "x" = xforce_shared; then
3467  if test x$enable_shared = xno; then
3468    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3469echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3470   { (exit 1); exit 1; }; }
3471  fi
3472  enable_shared=yes;
3473else
3474  # On Cygwin and AIX, building DLLs doesn't work
3475  case $build in
3476    *-cygwin* | *-mingw*)
3477      coin_disable_shared=yes
3478      if test x"$enable_shared" = xyes; then
3479        case "$CXX" in
3480          clang* )
3481            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3482echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3483            ;;
3484          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3485            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
3486echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
3487            ;;
3488          *)
3489            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3490echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3491            ;;
3492        esac
3493      fi
3494    ;;
3495    *-aix*)
3496      coin_disable_shared=yes
3497      platform=AIX
3498      if test x"$enable_shared" = xyes; then
3499        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3500echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3501      fi
3502    ;;
3503  esac
3504fi
3505if test x"$coin_disable_shared" = xyes; then
3506  if test x"$enable_shared" = xyes; then
3507    :
3508  else
3509    # we don't disable shared, because it was not selected anyway
3510    coin_disable_shared=no
3511  fi
3512  enable_shared=no
3513fi
3514# By default, we only want the shared objects to be compiled
3515# Check whether --enable-static or --disable-static was given.
3516if test "${enable_static+set}" = set; then
3517  enableval="$enable_static"
3518  p=${PACKAGE-default}
3519    case $enableval in
3520    yes) enable_static=yes ;;
3521    no) enable_static=no ;;
3522    *)
3523     enable_static=no
3524      # Look at the argument we got.  We use all the common list separators.
3525      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3526      for pkg in $enableval; do
3527        IFS="$lt_save_ifs"
3528        if test "X$pkg" = "X$p"; then
3529          enable_static=yes
3530        fi
3531      done
3532      IFS="$lt_save_ifs"
3533      ;;
3534    esac
3535else
3536  enable_static=no
3537fi;
3538
3539
3540
3541
3542# Initialize automake
3543echo "$as_me:$LINENO: checking for egrep" >&5
3544echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3545if test "${ac_cv_prog_egrep+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3549    then ac_cv_prog_egrep='grep -E'
3550    else ac_cv_prog_egrep='egrep'
3551    fi
3552fi
3553echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3554echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3555 EGREP=$ac_cv_prog_egrep
3556
3557
3558echo "$as_me:$LINENO: checking whether ln -s works" >&5
3559echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3560LN_S=$as_ln_s
3561if test "$LN_S" = "ln -s"; then
3562  echo "$as_me:$LINENO: result: yes" >&5
3563echo "${ECHO_T}yes" >&6
3564else
3565  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3566echo "${ECHO_T}no, using $LN_S" >&6
3567fi
3568
3569am__api_version="1.9"
3570# Find a good install program.  We prefer a C program (faster),
3571# so one script is as good as another.  But avoid the broken or
3572# incompatible versions:
3573# SysV /etc/install, /usr/sbin/install
3574# SunOS /usr/etc/install
3575# IRIX /sbin/install
3576# AIX /bin/install
3577# AmigaOS /C/install, which installs bootblocks on floppy discs
3578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581# OS/2's system install, which has a completely different semantic
3582# ./install, which can be erroneously created by make from ./install.sh.
3583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585if test -z "$INSTALL"; then
3586if test "${ac_cv_path_install+set}" = set; then
3587  echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594  # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in
3596  ./ | .// | /cC/* | \
3597  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599  /usr/ucb/* ) ;;
3600  *)
3601    # OSF1 and SCO ODT 3.0 have their own names for install.
3602    # Don't use installbsd from OSF since it installs stuff as root
3603    # by default.
3604    for ac_prog in ginstall scoinst install; do
3605      for ac_exec_ext in '' $ac_executable_extensions; do
3606        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607          if test $ac_prog = install &&
3608            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609            # AIX install.  It has an incompatible calling convention.
3610            :
3611          elif test $ac_prog = install &&
3612            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613            # program-specific install script used by HP pwplus--don't use.
3614            :
3615          else
3616            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3617            break 3
3618          fi
3619        fi
3620      done
3621    done
3622    ;;
3623esac
3624done
3625
3626
3627fi
3628  if test "${ac_cv_path_install+set}" = set; then
3629    INSTALL=$ac_cv_path_install
3630  else
3631    # As a last resort, use the slow shell script.  We don't cache a
3632    # path for INSTALL within a source directory, because that will
3633    # break other packages using the cache if that directory is
3634    # removed, or if the path is relative.
3635    INSTALL=$ac_install_sh
3636  fi
3637fi
3638echo "$as_me:$LINENO: result: $INSTALL" >&5
3639echo "${ECHO_T}$INSTALL" >&6
3640
3641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642# It thinks the first close brace ends the variable substitution.
3643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3644
3645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3646
3647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3648
3649echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3650echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3651# Just in case
3652sleep 1
3653echo timestamp > conftest.file
3654# Do `set' in a subshell so we don't clobber the current shell's
3655# arguments.  Must try -L first in case configure is actually a
3656# symlink; some systems play weird games with the mod time of symlinks
3657# (eg FreeBSD returns the mod time of the symlink's containing
3658# directory).
3659if (
3660   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3661   if test "$*" = "X"; then
3662      # -L didn't work.
3663      set X `ls -t $srcdir/configure conftest.file`
3664   fi
3665   rm -f conftest.file
3666   if test "$*" != "X $srcdir/configure conftest.file" \
3667      && test "$*" != "X conftest.file $srcdir/configure"; then
3668
3669      # If neither matched, then we have a broken ls.  This can happen
3670      # if, for instance, CONFIG_SHELL is bash and it inherits a
3671      # broken ls alias from the environment.  This has actually
3672      # happened.  Such a system could not be considered "sane".
3673      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3674alias in your environment" >&5
3675echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3676alias in your environment" >&2;}
3677   { (exit 1); exit 1; }; }
3678   fi
3679
3680   test "$2" = conftest.file
3681   )
3682then
3683   # Ok.
3684   :
3685else
3686   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3687Check your system clock" >&5
3688echo "$as_me: error: newly created file is older than distributed files!
3689Check your system clock" >&2;}
3690   { (exit 1); exit 1; }; }
3691fi
3692echo "$as_me:$LINENO: result: yes" >&5
3693echo "${ECHO_T}yes" >&6
3694test "$program_prefix" != NONE &&
3695  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3696# Use a double $ so make ignores it.
3697test "$program_suffix" != NONE &&
3698  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3699# Double any \ or $.  echo might interpret backslashes.
3700# By default was `s,x,x', remove it if useless.
3701cat <<\_ACEOF >conftest.sed
3702s/[\\$]/&&/g;s/;s,x,x,$//
3703_ACEOF
3704program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3705rm conftest.sed
3706
3707# expand $ac_aux_dir to an absolute path
3708am_aux_dir=`cd $ac_aux_dir && pwd`
3709
3710test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3711# Use eval to expand $SHELL
3712if eval "$MISSING --run true"; then
3713  am_missing_run="$MISSING --run "
3714else
3715  am_missing_run=
3716  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3717echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3718fi
3719
3720if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3721  # We used to keeping the `.' as first argument, in order to
3722  # allow $(mkdir_p) to be used without argument.  As in
3723  #   $(mkdir_p) $(somedir)
3724  # where $(somedir) is conditionally defined.  However this is wrong
3725  # for two reasons:
3726  #  1. if the package is installed by a user who cannot write `.'
3727  #     make install will fail,
3728  #  2. the above comment should most certainly read
3729  #     $(mkdir_p) $(DESTDIR)$(somedir)
3730  #     so it does not work when $(somedir) is undefined and
3731  #     $(DESTDIR) is not.
3732  #  To support the latter case, we have to write
3733  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3734  #  so the `.' trick is pointless.
3735  mkdir_p='mkdir -p --'
3736else
3737  # On NextStep and OpenStep, the `mkdir' command does not
3738  # recognize any option.  It will interpret all options as
3739  # directories to create, and then abort because `.' already
3740  # exists.
3741  for d in ./-p ./--version;
3742  do
3743    test -d $d && rmdir $d
3744  done
3745  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3746  if test -f "$ac_aux_dir/mkinstalldirs"; then
3747    mkdir_p='$(mkinstalldirs)'
3748  else
3749    mkdir_p='$(install_sh) -d'
3750  fi
3751fi
3752
3753for ac_prog in gawk mawk nawk awk
3754do
3755  # Extract the first word of "$ac_prog", so it can be a program name with args.
3756set dummy $ac_prog; ac_word=$2
3757echo "$as_me:$LINENO: checking for $ac_word" >&5
3758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759if test "${ac_cv_prog_AWK+set}" = set; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  if test -n "$AWK"; then
3763  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3764else
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768  IFS=$as_save_IFS
3769  test -z "$as_dir" && as_dir=.
3770  for ac_exec_ext in '' $ac_executable_extensions; do
3771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772    ac_cv_prog_AWK="$ac_prog"
3773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774    break 2
3775  fi
3776done
3777done
3778
3779fi
3780fi
3781AWK=$ac_cv_prog_AWK
3782if test -n "$AWK"; then
3783  echo "$as_me:$LINENO: result: $AWK" >&5
3784echo "${ECHO_T}$AWK" >&6
3785else
3786  echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788fi
3789
3790  test -n "$AWK" && break
3791done
3792
3793echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3794echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3795set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3796if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3797  echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799  cat >conftest.make <<\_ACEOF
3800all:
3801        @echo 'ac_maketemp="$(MAKE)"'
3802_ACEOF
3803# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3804eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3805if test -n "$ac_maketemp"; then
3806  eval ac_cv_prog_make_${ac_make}_set=yes
3807else
3808  eval ac_cv_prog_make_${ac_make}_set=no
3809fi
3810rm -f conftest.make
3811fi
3812if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3813  echo "$as_me:$LINENO: result: yes" >&5
3814echo "${ECHO_T}yes" >&6
3815  SET_MAKE=
3816else
3817  echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819  SET_MAKE="MAKE=${MAKE-make}"
3820fi
3821
3822rm -rf .tst 2>/dev/null
3823mkdir .tst 2>/dev/null
3824if test -d .tst; then
3825  am__leading_dot=.
3826else
3827  am__leading_dot=_
3828fi
3829rmdir .tst 2>/dev/null
3830
3831DEPDIR="${am__leading_dot}deps"
3832
3833          ac_config_commands="$ac_config_commands depfiles"
3834
3835
3836am_make=${MAKE-make}
3837cat > confinc << 'END'
3838am__doit:
3839        @echo done
3840.PHONY: am__doit
3841END
3842# If we don't find an include directive, just comment out the code.
3843echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3844echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3845am__include="#"
3846am__quote=
3847_am_result=none
3848# First try GNU make style include.
3849echo "include confinc" > confmf
3850# We grep out `Entering directory' and `Leaving directory'
3851# messages which can occur if `w' ends up in MAKEFLAGS.
3852# In particular we don't look at `^make:' because GNU make might
3853# be invoked under some other name (usually "gmake"), in which
3854# case it prints its new name instead of `make'.
3855if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3856   am__include=include
3857   am__quote=
3858   _am_result=GNU
3859fi
3860# Now try BSD make style include.
3861if test "$am__include" = "#"; then
3862   echo '.include "confinc"' > confmf
3863   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3864      am__include=.include
3865      am__quote="\""
3866      _am_result=BSD
3867   fi
3868fi
3869
3870
3871echo "$as_me:$LINENO: result: $_am_result" >&5
3872echo "${ECHO_T}$_am_result" >&6
3873rm -f confinc confmf
3874
3875# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3876if test "${enable_dependency_tracking+set}" = set; then
3877  enableval="$enable_dependency_tracking"
3878
3879fi;
3880if test "x$enable_dependency_tracking" != xno; then
3881  am_depcomp="$ac_aux_dir/depcomp"
3882  AMDEPBACKSLASH='\'
3883fi
3884
3885
3886if test "x$enable_dependency_tracking" != xno; then
3887  AMDEP_TRUE=
3888  AMDEP_FALSE='#'
3889else
3890  AMDEP_TRUE='#'
3891  AMDEP_FALSE=
3892fi
3893
3894
3895
3896
3897
3898
3899# AC_MSG_NOTICE([Beginning automake initialisation.])
3900# Stuff for automake
3901# test to see if srcdir already configured
3902if test "`cd $srcdir && pwd`" != "`pwd`" &&
3903   test -f $srcdir/config.status; then
3904  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3905echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3906   { (exit 1); exit 1; }; }
3907fi
3908
3909# test whether we have cygpath
3910if test -z "$CYGPATH_W"; then
3911  if (cygpath --version) >/dev/null 2>/dev/null; then
3912    CYGPATH_W='cygpath -w'
3913  else
3914    CYGPATH_W=echo
3915  fi
3916fi
3917
3918
3919# Define the identity of the package.
3920 PACKAGE='thirdpartymetis'
3921 VERSION='trunk'
3922
3923
3924cat >>confdefs.h <<_ACEOF
3925#define PACKAGE "$PACKAGE"
3926_ACEOF
3927
3928
3929cat >>confdefs.h <<_ACEOF
3930#define VERSION "$VERSION"
3931_ACEOF
3932
3933# Some tools Automake needs.
3934
3935ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3936
3937
3938AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3939
3940
3941AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3942
3943
3944AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3945
3946
3947MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3948
3949install_sh=${install_sh-"$am_aux_dir/install-sh"}
3950
3951# Installed binaries are usually stripped using `strip' when the user
3952# run `make install-strip'.  However `strip' might not be the right
3953# tool to use in cross-compilation environments, therefore Automake
3954# will honor the `STRIP' environment variable to overrule this program.
3955if test "$cross_compiling" != no; then
3956  if test -n "$ac_tool_prefix"; then
3957  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3958set dummy ${ac_tool_prefix}strip; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_STRIP+set}" = set; then
3962  echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964  if test -n "$STRIP"; then
3965  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970  IFS=$as_save_IFS
3971  test -z "$as_dir" && as_dir=.
3972  for ac_exec_ext in '' $ac_executable_extensions; do
3973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976    break 2
3977  fi
3978done
3979done
3980
3981fi
3982fi
3983STRIP=$ac_cv_prog_STRIP
3984if test -n "$STRIP"; then
3985  echo "$as_me:$LINENO: result: $STRIP" >&5
3986echo "${ECHO_T}$STRIP" >&6
3987else
3988  echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990fi
3991
3992fi
3993if test -z "$ac_cv_prog_STRIP"; then
3994  ac_ct_STRIP=$STRIP
3995  # Extract the first word of "strip", so it can be a program name with args.
3996set dummy strip; ac_word=$2
3997echo "$as_me:$LINENO: checking for $ac_word" >&5
3998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  if test -n "$ac_ct_STRIP"; then
4003  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008  IFS=$as_save_IFS
4009  test -z "$as_dir" && as_dir=.
4010  for ac_exec_ext in '' $ac_executable_extensions; do
4011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012    ac_cv_prog_ac_ct_STRIP="strip"
4013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014    break 2
4015  fi
4016done
4017done
4018
4019  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4020fi
4021fi
4022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4023if test -n "$ac_ct_STRIP"; then
4024  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4025echo "${ECHO_T}$ac_ct_STRIP" >&6
4026else
4027  echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029fi
4030
4031  STRIP=$ac_ct_STRIP
4032else
4033  STRIP="$ac_cv_prog_STRIP"
4034fi
4035
4036fi
4037INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4038
4039# We need awk for the "check" target.  The system "awk" is bad on
4040# some platforms.
4041# Always define AMTAR for backward compatibility.
4042
4043AMTAR=${AMTAR-"${am_missing_run}tar"}
4044
4045am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4046
4047
4048
4049
4050depcc="$CC"   am_compiler_list=
4051
4052echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4053echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4054if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4055  echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4058  # We make a subdir and do the tests there.  Otherwise we can end up
4059  # making bogus files that we don't know about and never remove.  For
4060  # instance it was reported that on HP-UX the gcc test will end up
4061  # making a dummy file named `D' -- because `-MD' means `put the output
4062  # in D'.
4063  mkdir conftest.dir
4064  # Copy depcomp to subdir because otherwise we won't find it if we're
4065  # using a relative directory.
4066  cp "$am_depcomp" conftest.dir
4067  cd conftest.dir
4068  # We will build objects and dependencies in a subdirectory because
4069  # it helps to detect inapplicable dependency modes.  For instance
4070  # both Tru64's cc and ICC support -MD to output dependencies as a
4071  # side effect of compilation, but ICC will put the dependencies in
4072  # the current directory while Tru64 will put them in the object
4073  # directory.
4074  mkdir sub
4075
4076  am_cv_CC_dependencies_compiler_type=none
4077  if test "$am_compiler_list" = ""; then
4078     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4079  fi
4080  for depmode in $am_compiler_list; do
4081    # Setup a source with many dependencies, because some compilers
4082    # like to wrap large dependency lists on column 80 (with \), and
4083    # we should not choose a depcomp mode which is confused by this.
4084    #
4085    # We need to recreate these files for each test, as the compiler may
4086    # overwrite some of them when testing with obscure command lines.
4087    # This happens at least with the AIX C compiler.
4088    : > sub/conftest.c
4089    for i in 1 2 3 4 5 6; do
4090      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4091      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4092      # Solaris 8's {/usr,}/bin/sh.
4093      touch sub/conftst$i.h
4094    done
4095    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4096
4097    case $depmode in
4098    nosideeffect)
4099      # after this tag, mechanisms are not by side-effect, so they'll
4100      # only be used when explicitly requested
4101      if test "x$enable_dependency_tracking" = xyes; then
4102        continue
4103      else
4104        break
4105      fi
4106      ;;
4107    none) break ;;
4108    esac
4109    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4110    # mode.  It turns out that the SunPro C++ compiler does not properly
4111    # handle `-M -o', and we need to detect this.
4112    if depmode=$depmode \
4113       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4114       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4115       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4116         >/dev/null 2>conftest.err &&
4117       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4118       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4119       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4120      # icc doesn't choke on unknown options, it will just issue warnings
4121      # or remarks (even with -Werror).  So we grep stderr for any message
4122      # that says an option was ignored or not supported.
4123      # When given -MP, icc 7.0 and 7.1 complain thusly:
4124      #   icc: Command line warning: ignoring option '-M'; no argument required
4125      # The diagnosis changed in icc 8.0:
4126      #   icc: Command line remark: option '-MP' not supported
4127      if (grep 'ignoring option' conftest.err ||
4128          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4129        am_cv_CC_dependencies_compiler_type=$depmode
4130        break
4131      fi
4132    fi
4133  done
4134
4135  cd ..
4136  rm -rf conftest.dir
4137else
4138  am_cv_CC_dependencies_compiler_type=none
4139fi
4140
4141fi
4142echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4143echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4144CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4145
4146
4147
4148if
4149  test "x$enable_dependency_tracking" != xno \
4150  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4151  am__fastdepCC_TRUE=
4152  am__fastdepCC_FALSE='#'
4153else
4154  am__fastdepCC_TRUE='#'
4155  am__fastdepCC_FALSE=
4156fi
4157
4158
4159
4160echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4161echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4162    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4163if test "${enable_maintainer_mode+set}" = set; then
4164  enableval="$enable_maintainer_mode"
4165  USE_MAINTAINER_MODE=$enableval
4166else
4167  USE_MAINTAINER_MODE=no
4168fi;
4169  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4170echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4171
4172
4173if test $USE_MAINTAINER_MODE = yes; then
4174  MAINTAINER_MODE_TRUE=
4175  MAINTAINER_MODE_FALSE='#'
4176else
4177  MAINTAINER_MODE_TRUE='#'
4178  MAINTAINER_MODE_FALSE=
4179fi
4180
4181  MAINT=$MAINTAINER_MODE_TRUE
4182
4183
4184
4185coin_have_externals=no
4186if test "$enable_maintainer_mode" = yes; then
4187
4188  # If maintainer mode is chosen, we make sure that the correct versions
4189  # of the tools are used, and that we know where libtool.m4 is (to
4190  # recreate acinclude.m4)
4191
4192
4193  LIBTOOLM4=
4194  # Normally, $HOME
4195  AUTOTOOLS_DFLT=$HOME
4196
4197  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4198echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4199if test "${ac_cv_use_correct_autotools+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  ac_cv_use_correct_autotools=check
4203fi
4204echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4205echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4206
4207  if test $ac_cv_use_correct_autotools = check; then
4208    ac_cv_use_correct_autotools=yes
4209    # Check if we have autoconf
4210    # Extract the first word of "autoconf", so it can be a program name with args.
4211set dummy autoconf; ac_word=$2
4212echo "$as_me:$LINENO: checking for $ac_word" >&5
4213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214if test "${ac_cv_prog_have_autoconf+set}" = set; then
4215  echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217  if test -n "$have_autoconf"; then
4218  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_prog_have_autoconf="yes"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4235fi
4236fi
4237have_autoconf=$ac_cv_prog_have_autoconf
4238if test -n "$have_autoconf"; then
4239  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4240echo "${ECHO_T}$have_autoconf" >&6
4241else
4242  echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244fi
4245
4246    if test $have_autoconf = no; then
4247      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4248echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4249   { (exit 1); exit 1; }; }
4250    fi
4251
4252    # Check whether autoconf is the correct version
4253    correct_version='2.59'
4254    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4255    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4256echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4257    autoconf --version > confauto.out 2>&1
4258    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4259      echo "$as_me:$LINENO: result: yes" >&5
4260echo "${ECHO_T}yes" >&6
4261    else
4262      rm -f confauto.out
4263      echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
4265      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4266echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4267   { (exit 1); exit 1; }; }
4268    fi
4269    rm -f confauto.out
4270
4271    # Check if the executable autoconf is picked up from the correct location
4272    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4273echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4274    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4275    autoconf_dir=`cd $autoconf_dir; pwd`
4276    if test x$AUTOTOOLS_DIR = x; then
4277      want_dir=$AUTOTOOLS_DFLT/bin
4278    else
4279      want_dir=$AUTOTOOLS_DIR/bin
4280    fi
4281    if test $autoconf_dir = `cd $want_dir; pwd`; then
4282      echo "$as_me:$LINENO: result: yes" >&5
4283echo "${ECHO_T}yes" >&6
4284    else
4285      rm -f confauto.out
4286      echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4289echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4290   { (exit 1); exit 1; }; }
4291    fi
4292
4293    # Check if we have automake
4294    # Extract the first word of "automake", so it can be a program name with args.
4295set dummy automake; ac_word=$2
4296echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298if test "${ac_cv_prog_have_automake+set}" = set; then
4299  echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301  if test -n "$have_automake"; then
4302  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307  IFS=$as_save_IFS
4308  test -z "$as_dir" && as_dir=.
4309  for ac_exec_ext in '' $ac_executable_extensions; do
4310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311    ac_cv_prog_have_automake="yes"
4312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313    break 2
4314  fi
4315done
4316done
4317
4318  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4319fi
4320fi
4321have_automake=$ac_cv_prog_have_automake
4322if test -n "$have_automake"; then
4323  echo "$as_me:$LINENO: result: $have_automake" >&5
4324echo "${ECHO_T}$have_automake" >&6
4325else
4326  echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
4328fi
4329
4330    if test $have_automake = no; then
4331      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4332echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4333   { (exit 1); exit 1; }; }
4334    fi
4335
4336    # Check whether automake is the correct version
4337    correct_version='1.9.6'
4338    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4339    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4340echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4341    automake --version > confauto.out 2>&1
4342    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4343      echo "$as_me:$LINENO: result: yes" >&5
4344echo "${ECHO_T}yes" >&6
4345    else
4346      rm -f confauto.out
4347      echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
4349      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4350echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4351   { (exit 1); exit 1; }; }
4352    fi
4353    rm -f confauto.out
4354
4355    # Check if the executable automake is picked up from the correct location
4356    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4357echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4358    automake_dir=`which automake | sed -e 's=/automake=='`
4359    automake_dir=`cd $automake_dir; pwd`
4360    if test x$AUTOTOOLS_DIR = x; then
4361      want_dir=$AUTOTOOLS_DFLT/bin
4362    else
4363      want_dir=$AUTOTOOLS_DIR/bin
4364    fi
4365    if test $automake_dir = `cd $want_dir; pwd`; then
4366      echo "$as_me:$LINENO: result: yes" >&5
4367echo "${ECHO_T}yes" >&6
4368    else
4369      rm -f confauto.out
4370      echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6
4372      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4373echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4374   { (exit 1); exit 1; }; }
4375    fi
4376
4377    # Check if this is the correct version of libtool (with escaped dots)
4378    if test x$AUTOTOOLS_DIR = x; then
4379      want_dir=$AUTOTOOLS_DFLT/share
4380    else
4381      want_dir=$AUTOTOOLS_DIR/share
4382    fi
4383    correct_version='1.5.22'
4384    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4385    if test -r $want_dir/libtool/ltmain.sh; then
4386  have_ltmain=yes
4387  :
4388else
4389  have_ltmain=no
4390  :
4391fi
4392
4393    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4394echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4395    if test $have_ltmain = yes; then
4396    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4397        echo "$as_me:$LINENO: result: yes" >&5
4398echo "${ECHO_T}yes" >&6
4399      else
4400        echo "$as_me:$LINENO: result: no" >&5
4401echo "${ECHO_T}no" >&6
4402        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4403echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4404   { (exit 1); exit 1; }; }
4405      fi
4406    else
4407      echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6
4409      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4410echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4411   { (exit 1); exit 1; }; }
4412    fi
4413  fi
4414
4415  # Check if we can find the libtool file
4416  if test x$AUTOTOOLS_DIR = x; then
4417    want_dir=$AUTOTOOLS_DFLT/share
4418  else
4419    want_dir=$AUTOTOOLS_DIR/share
4420  fi
4421  if test -r $want_dir/aclocal/libtool.m4; then
4422  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4423  :
4424else
4425  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4426echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4427   { (exit 1); exit 1; }; }
4428  :
4429fi
4430
4431
4432  # Check if we have an Dependencies file
4433  if test -r $srcdir/Dependencies; then
4434    coin_have_externals=yes
4435  fi
4436  # Check if subversion is installed and understands https
4437  # Extract the first word of "svn", so it can be a program name with args.
4438set dummy svn; ac_word=$2
4439echo "$as_me:$LINENO: checking for $ac_word" >&5
4440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441if test "${ac_cv_prog_have_svn+set}" = set; then
4442  echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444  if test -n "$have_svn"; then
4445  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452  for ac_exec_ext in '' $ac_executable_extensions; do
4453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454    ac_cv_prog_have_svn="yes"
4455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456    break 2
4457  fi
4458done
4459done
4460
4461  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4462fi
4463fi
4464have_svn=$ac_cv_prog_have_svn
4465if test -n "$have_svn"; then
4466  echo "$as_me:$LINENO: result: $have_svn" >&5
4467echo "${ECHO_T}$have_svn" >&6
4468else
4469  echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6
4471fi
4472
4473  if test x$have_svn = xyes; then
4474    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4475echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4476if test "${ac_cv_svn_understands_https+set}" = set; then
4477  echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479  svn --version > confauto.out 2>&1
4480                    if $EGREP https confauto.out >/dev/null 2>&1; then
4481                      ac_cv_svn_understands_https=yes
4482                    else
4483                      ac_cv_svn_understands_https=no
4484                      have_svn=no
4485                      ac_cv_prog_have_svn=no
4486                    fi
4487                    rm -f confauto.out
4488fi
4489echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4490echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4491  fi
4492
4493  # Find the location of the BuildTools directory
4494  BUILDTOOLSDIR=
4495  if test -r $srcdir/BuildTools/coin.m4; then
4496    BUILDTOOLSDIR=$srcdir/BuildTools
4497  else
4498    if test -r $srcdir/../BuildTools/coin.m4; then
4499      BUILDTOOLSDIR=$srcdir/../BuildTools
4500    else
4501      if test -r $srcdir/../../BuildTools/coin.m4; then
4502        BUILDTOOLSDIR=$srcdir/../../BuildTools
4503      else
4504        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4505echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4506   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4507      fi
4508    fi
4509  fi
4510
4511
4512  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4513  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4514    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4515  fi
4516
4517  # The following variable is set to the name of the directory where
4518  # the autotool scripts are located
4519
4520  AUX_DIR=$ac_aux_dir
4521fi
4522
4523# helpful variable for the base directory of this package
4524abs_source_dir=`cd $srcdir; pwd`
4525
4526
4527# Stuff for example Makefiles
4528if test x$prefix = xNONE; then
4529  full_prefix=$ac_default_prefix
4530else
4531  full_prefix=$prefix
4532fi
4533full_prefix=`cd $full_prefix ; pwd`
4534
4535abs_lib_dir=$full_prefix/lib
4536
4537abs_include_dir=$full_prefix/include
4538
4539abs_bin_dir=$full_prefix/bin
4540
4541
4542
4543if test $coin_have_externals = yes && test x$have_svn = xyes; then
4544  HAVE_EXTERNALS_TRUE=
4545  HAVE_EXTERNALS_FALSE='#'
4546else
4547  HAVE_EXTERNALS_TRUE='#'
4548  HAVE_EXTERNALS_FALSE=
4549fi
4550
4551
4552# AC_MSG_NOTICE([End automake initialisation.])
4553
4554
4555
4556LIBTOOL=
4557if test -r ../libtool; then
4558  coin_config_dir=..
4559  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4560fi
4561if test "x$LIBTOOL" = x; then
4562  if test -r ../../libtool; then
4563    coin_config_dir=../..
4564    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4565  fi
4566fi
4567
4568if test "x$LIBTOOL" = x; then
4569# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4570  # Stuff for libtool
4571  # Check whether --enable-shared or --disable-shared was given.
4572if test "${enable_shared+set}" = set; then
4573  enableval="$enable_shared"
4574  p=${PACKAGE-default}
4575    case $enableval in
4576    yes) enable_shared=yes ;;
4577    no) enable_shared=no ;;
4578    *)
4579      enable_shared=no
4580      # Look at the argument we got.  We use all the common list separators.
4581      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4582      for pkg in $enableval; do
4583        IFS="$lt_save_ifs"
4584        if test "X$pkg" = "X$p"; then
4585          enable_shared=yes
4586        fi
4587      done
4588      IFS="$lt_save_ifs"
4589      ;;
4590    esac
4591else
4592  enable_shared=yes
4593fi;
4594
4595# Check whether --enable-fast-install or --disable-fast-install was given.
4596if test "${enable_fast_install+set}" = set; then
4597  enableval="$enable_fast_install"
4598  p=${PACKAGE-default}
4599    case $enableval in
4600    yes) enable_fast_install=yes ;;
4601    no) enable_fast_install=no ;;
4602    *)
4603      enable_fast_install=no
4604      # Look at the argument we got.  We use all the common list separators.
4605      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4606      for pkg in $enableval; do
4607        IFS="$lt_save_ifs"
4608        if test "X$pkg" = "X$p"; then
4609          enable_fast_install=yes
4610        fi
4611      done
4612      IFS="$lt_save_ifs"
4613      ;;
4614    esac
4615else
4616  enable_fast_install=yes
4617fi;
4618
4619echo "$as_me:$LINENO: checking host system type" >&5
4620echo $ECHO_N "checking host system type... $ECHO_C" >&6
4621if test "${ac_cv_host+set}" = set; then
4622  echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624  ac_cv_host_alias=$host_alias
4625test -z "$ac_cv_host_alias" &&
4626  ac_cv_host_alias=$ac_cv_build_alias
4627ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4628  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4629echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4630   { (exit 1); exit 1; }; }
4631
4632fi
4633echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4634echo "${ECHO_T}$ac_cv_host" >&6
4635host=$ac_cv_host
4636host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4637host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4638host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4639
4640
4641echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4642echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4643if test "${lt_cv_path_SED+set}" = set; then
4644  echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646  # Loop through the user's path and test for sed and gsed.
4647# Then use that list of sed's as ones to test for truncation.
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651  IFS=$as_save_IFS
4652  test -z "$as_dir" && as_dir=.
4653  for lt_ac_prog in sed gsed; do
4654    for ac_exec_ext in '' $ac_executable_extensions; do
4655      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4656        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4657      fi
4658    done
4659  done
4660done
4661lt_ac_max=0
4662lt_ac_count=0
4663# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4664# along with /bin/sed that truncates output.
4665for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4666  test ! -f $lt_ac_sed && continue
4667  cat /dev/null > conftest.in
4668  lt_ac_count=0
4669  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4670  # Check for GNU sed and select it if it is found.
4671  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4672    lt_cv_path_SED=$lt_ac_sed
4673    break
4674  fi
4675  while true; do
4676    cat conftest.in conftest.in >conftest.tmp
4677    mv conftest.tmp conftest.in
4678    cp conftest.in conftest.nl
4679    echo >>conftest.nl
4680    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4681    cmp -s conftest.out conftest.nl || break
4682    # 10000 chars as input seems more than enough
4683    test $lt_ac_count -gt 10 && break
4684    lt_ac_count=`expr $lt_ac_count + 1`
4685    if test $lt_ac_count -gt $lt_ac_max; then
4686      lt_ac_max=$lt_ac_count
4687      lt_cv_path_SED=$lt_ac_sed
4688    fi
4689  done
4690done
4691
4692fi
4693
4694SED=$lt_cv_path_SED
4695echo "$as_me:$LINENO: result: $SED" >&5
4696echo "${ECHO_T}$SED" >&6
4697
4698
4699# Check whether --with-gnu-ld or --without-gnu-ld was given.
4700if test "${with_gnu_ld+set}" = set; then
4701  withval="$with_gnu_ld"
4702  test "$withval" = no || with_gnu_ld=yes
4703else
4704  with_gnu_ld=no
4705fi;
4706ac_prog=ld
4707if test "$GCC" = yes; then
4708  # Check if gcc -print-prog-name=ld gives a path.
4709  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4710echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4711  case $host in
4712  *-*-mingw*)
4713    # gcc leaves a trailing carriage return which upsets mingw
4714    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4715  *)
4716    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4717  esac
4718  case $ac_prog in
4719    # Accept absolute paths.
4720    [\\/]* | ?:[\\/]*)
4721      re_direlt='/[^/][^/]*/\.\./'
4722      # Canonicalize the pathname of ld
4723      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4724      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4725        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4726      done
4727      test -z "$LD" && LD="$ac_prog"
4728      ;;
4729  "")
4730    # If it fails, then pretend we aren't using GCC.
4731    ac_prog=ld
4732    ;;
4733  *)
4734    # If it is relative, then search for the first ld in PATH.
4735    with_gnu_ld=unknown
4736    ;;
4737  esac
4738elif test "$with_gnu_ld" = yes; then
4739  echo "$as_me:$LINENO: checking for GNU ld" >&5
4740echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4741else
4742  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4743echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4744fi
4745if test "${lt_cv_path_LD+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  if test -z "$LD"; then
4749  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4750  for ac_dir in $PATH; do
4751    IFS="$lt_save_ifs"
4752    test -z "$ac_dir" && ac_dir=.
4753    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4754      lt_cv_path_LD="$ac_dir/$ac_prog"
4755      # Check to see if the program is GNU ld.  I'd rather use --version,
4756      # but apparently some variants of GNU ld only accept -v.
4757      # Break only if it was the GNU/non-GNU ld that we prefer.
4758      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4759      *GNU* | *'with BFD'*)
4760        test "$with_gnu_ld" != no && break
4761        ;;
4762      *)
4763        test "$with_gnu_ld" != yes && break
4764        ;;
4765      esac
4766    fi
4767  done
4768  IFS="$lt_save_ifs"
4769else
4770  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4771fi
4772fi
4773
4774LD="$lt_cv_path_LD"
4775if test -n "$LD"; then
4776  echo "$as_me:$LINENO: result: $LD" >&5
4777echo "${ECHO_T}$LD" >&6
4778else
4779  echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781fi
4782test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4783echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4784   { (exit 1); exit 1; }; }
4785echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4786echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4787if test "${lt_cv_prog_gnu_ld+set}" = set; then
4788  echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4791case `$LD -v 2>&1 </dev/null` in
4792*GNU* | *'with BFD'*)
4793  lt_cv_prog_gnu_ld=yes
4794  ;;
4795*)
4796  lt_cv_prog_gnu_ld=no
4797  ;;
4798esac
4799fi
4800echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4801echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4802with_gnu_ld=$lt_cv_prog_gnu_ld
4803
4804
4805echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4806echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4807if test "${lt_cv_ld_reload_flag+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  lt_cv_ld_reload_flag='-r'
4811fi
4812echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4813echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4814reload_flag=$lt_cv_ld_reload_flag
4815case $reload_flag in
4816"" | " "*) ;;
4817*) reload_flag=" $reload_flag" ;;
4818esac
4819reload_cmds='$LD$reload_flag -o $output$reload_objs'
4820case $host_os in
4821  darwin*)
4822    if test "$GCC" = yes; then
4823      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4824    else
4825      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4826    fi
4827    ;;
4828esac
4829
4830echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4831echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4832if test "${lt_cv_path_NM+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835  if test -n "$NM"; then
4836  # Let the user override the test.
4837  lt_cv_path_NM="$NM"
4838else
4839  lt_nm_to_check="${ac_tool_prefix}nm"
4840  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4841    lt_nm_to_check="$lt_nm_to_check nm"
4842  fi
4843  for lt_tmp_nm in $lt_nm_to_check; do
4844    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4845    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4846      IFS="$lt_save_ifs"
4847      test -z "$ac_dir" && ac_dir=.
4848      tmp_nm="$ac_dir/$lt_tmp_nm"
4849      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4850        # Check to see if the nm accepts a BSD-compat flag.
4851        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4852        #   nm: unknown option "B" ignored
4853        # Tru64's nm complains that /dev/null is an invalid object file
4854        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4855        */dev/null* | *'Invalid file or object type'*)
4856          lt_cv_path_NM="$tmp_nm -B"
4857          break
4858          ;;
4859        *)
4860          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4861          */dev/null*)
4862            lt_cv_path_NM="$tmp_nm -p"
4863            break
4864            ;;
4865          *)
4866            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4867            continue # so that we can try to find one that supports BSD flags
4868            ;;
4869          esac
4870          ;;
4871        esac
4872      fi
4873    done
4874    IFS="$lt_save_ifs"
4875  done
4876  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4877fi
4878fi
4879echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4880echo "${ECHO_T}$lt_cv_path_NM" >&6
4881NM="$lt_cv_path_NM"
4882
4883echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4884echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4885if test "${lt_cv_deplibs_check_method+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  lt_cv_file_magic_cmd='$MAGIC_CMD'
4889lt_cv_file_magic_test_file=
4890lt_cv_deplibs_check_method='unknown'
4891# Need to set the preceding variable on all platforms that support
4892# interlibrary dependencies.
4893# 'none' -- dependencies not supported.
4894# `unknown' -- same as none, but documents that we really don't know.
4895# 'pass_all' -- all dependencies passed with no checks.
4896# 'test_compile' -- check by making test program.
4897# 'file_magic [[regex]]' -- check by looking for files in library path
4898# which responds to the $file_magic_cmd with a given extended regex.
4899# If you have `file' or equivalent on your system and you're not sure
4900# whether `pass_all' will *always* work, you probably want this one.
4901
4902case $host_os in
4903aix4* | aix5*)
4904  lt_cv_deplibs_check_method=pass_all
4905  ;;
4906
4907beos*)
4908  lt_cv_deplibs_check_method=pass_all
4909  ;;
4910
4911bsdi[45]*)
4912  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4913  lt_cv_file_magic_cmd='/usr/bin/file -L'
4914  lt_cv_file_magic_test_file=/shlib/libc.so
4915  ;;
4916
4917cygwin*)
4918  # func_win32_libid is a shell function defined in ltmain.sh
4919  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4920  lt_cv_file_magic_cmd='func_win32_libid'
4921  ;;
4922
4923mingw* | pw32*)
4924  # Base MSYS/MinGW do not provide the 'file' command needed by
4925  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4926  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4927  lt_cv_file_magic_cmd='$OBJDUMP -f'
4928  ;;
4929
4930darwin* | rhapsody*)
4931  lt_cv_deplibs_check_method=pass_all
4932  ;;
4933
4934freebsd* | kfreebsd*-gnu | dragonfly*)
4935  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4936    case $host_cpu in
4937    i*86 )
4938      # Not sure whether the presence of OpenBSD here was a mistake.
4939      # Let's accept both of them until this is cleared up.
4940      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4941      lt_cv_file_magic_cmd=/usr/bin/file
4942      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4943      ;;
4944    esac
4945  else
4946    lt_cv_deplibs_check_method=pass_all
4947  fi
4948  ;;
4949
4950gnu*)
4951  lt_cv_deplibs_check_method=pass_all
4952  ;;
4953
4954hpux10.20* | hpux11*)
4955  lt_cv_file_magic_cmd=/usr/bin/file
4956  case $host_cpu in
4957  ia64*)
4958    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4959    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4960    ;;
4961  hppa*64*)
4962    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]'
4963    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4964    ;;
4965  *)
4966    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4967    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4968    ;;
4969  esac
4970  ;;
4971
4972interix3*)
4973  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4974  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4975  ;;
4976
4977irix5* | irix6* | nonstopux*)
4978  case $LD in
4979  *-32|*"-32 ") libmagic=32-bit;;
4980  *-n32|*"-n32 ") libmagic=N32;;
4981  *-64|*"-64 ") libmagic=64-bit;;
4982  *) libmagic=never-match;;
4983  esac
4984  lt_cv_deplibs_check_method=pass_all
4985  ;;
4986
4987# This must be Linux ELF.
4988linux*)
4989  lt_cv_deplibs_check_method=pass_all
4990  ;;
4991
4992netbsd*)
4993  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4994    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4995  else
4996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4997  fi
4998  ;;
4999
5000newos6*)
5001  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5002  lt_cv_file_magic_cmd=/usr/bin/file
5003  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5004  ;;
5005
5006nto-qnx*)
5007  lt_cv_deplibs_check_method=unknown
5008  ;;
5009
5010openbsd*)
5011  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5012    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5013  else
5014    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5015  fi
5016  ;;
5017
5018osf3* | osf4* | osf5*)
5019  lt_cv_deplibs_check_method=pass_all
5020  ;;
5021
5022solaris*)
5023  lt_cv_deplibs_check_method=pass_all
5024  ;;
5025
5026sysv4 | sysv4.3*)
5027  case $host_vendor in
5028  motorola)
5029    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]'
5030    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5031    ;;
5032  ncr)
5033    lt_cv_deplibs_check_method=pass_all
5034    ;;
5035  sequent)
5036    lt_cv_file_magic_cmd='/bin/file'
5037    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5038    ;;
5039  sni)
5040    lt_cv_file_magic_cmd='/bin/file'
5041    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5042    lt_cv_file_magic_test_file=/lib/libc.so
5043    ;;
5044  siemens)
5045    lt_cv_deplibs_check_method=pass_all
5046    ;;
5047  pc)
5048    lt_cv_deplibs_check_method=pass_all
5049    ;;
5050  esac
5051  ;;
5052
5053sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5054  lt_cv_deplibs_check_method=pass_all
5055  ;;
5056esac
5057
5058fi
5059echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5060echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5061file_magic_cmd=$lt_cv_file_magic_cmd
5062deplibs_check_method=$lt_cv_deplibs_check_method
5063test -z "$deplibs_check_method" && deplibs_check_method=unknown
5064
5065
5066
5067
5068# If no C compiler was specified, use CC.
5069LTCC=${LTCC-"$CC"}
5070
5071# If no C compiler flags were specified, use CFLAGS.
5072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5073
5074# Allow CC to be a program name with arguments.
5075compiler=$CC
5076
5077# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5078if test "${enable_libtool_lock+set}" = set; then
5079  enableval="$enable_libtool_lock"
5080
5081fi;
5082test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5083
5084# Some flags need to be propagated to the compiler or linker for good
5085# libtool support.
5086case $host in
5087ia64-*-hpux*)
5088  # Find out which ABI we are using.
5089  echo 'int i;' > conftest.$ac_ext
5090  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091  (eval $ac_compile) 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; then
5095    case `/usr/bin/file conftest.$ac_objext` in
5096    *ELF-32*)
5097      HPUX_IA64_MODE="32"
5098      ;;
5099    *ELF-64*)
5100      HPUX_IA64_MODE="64"
5101      ;;
5102    esac
5103  fi
5104  rm -rf conftest*
5105  ;;
5106*-*-irix6*)
5107  # Find out which ABI we are using.
5108  echo '#line 5108 "configure"' > conftest.$ac_ext
5109  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110  (eval $ac_compile) 2>&5
5111  ac_status=$?
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); }; then
5114   if test "$lt_cv_prog_gnu_ld" = yes; then
5115    case `/usr/bin/file conftest.$ac_objext` in
5116    *32-bit*)
5117      LD="${LD-ld} -melf32bsmip"
5118      ;;
5119    *N32*)
5120      LD="${LD-ld} -melf32bmipn32"
5121      ;;
5122    *64-bit*)
5123      LD="${LD-ld} -melf64bmip"
5124      ;;
5125    esac
5126   else
5127    case `/usr/bin/file conftest.$ac_objext` in
5128    *32-bit*)
5129      LD="${LD-ld} -32"
5130      ;;
5131    *N32*)
5132      LD="${LD-ld} -n32"
5133      ;;
5134    *64-bit*)
5135      LD="${LD-ld} -64"
5136      ;;
5137    esac
5138   fi
5139  fi
5140  rm -rf conftest*
5141  ;;
5142
5143x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5144  # Find out which ABI we are using.
5145  echo 'int i;' > conftest.$ac_ext
5146  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147  (eval $ac_compile) 2>&5
5148  ac_status=$?
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); }; then
5151    case `/usr/bin/file conftest.o` in
5152    *32-bit*)
5153      case $host in
5154        x86_64-*linux*)
5155          LD="${LD-ld} -m elf_i386"
5156          ;;
5157        ppc64-*linux*|powerpc64-*linux*)
5158          LD="${LD-ld} -m elf32ppclinux"
5159          ;;
5160        s390x-*linux*)
5161          LD="${LD-ld} -m elf_s390"
5162          ;;
5163        sparc64-*linux*)
5164          LD="${LD-ld} -m elf32_sparc"
5165          ;;
5166      esac
5167      ;;
5168    *64-bit*)
5169      case $host in
5170        x86_64-*linux*)
5171          LD="${LD-ld} -m elf_x86_64"
5172          ;;
5173        ppc*-*linux*|powerpc*-*linux*)
5174          LD="${LD-ld} -m elf64ppc"
5175          ;;
5176        s390*-*linux*)
5177          LD="${LD-ld} -m elf64_s390"
5178          ;;
5179        sparc*-*linux*)
5180          LD="${LD-ld} -m elf64_sparc"
5181          ;;
5182      esac
5183      ;;
5184    esac
5185  fi
5186  rm -rf conftest*
5187  ;;
5188
5189*-*-sco3.2v5*)
5190  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5191  SAVE_CFLAGS="$CFLAGS"
5192  CFLAGS="$CFLAGS -belf"
5193  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5194echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5195if test "${lt_cv_cc_needs_belf+set}" = set; then
5196  echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198  ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204     cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h.  */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h.  */
5210
5211int
5212main ()
5213{
5214
5215  ;
5216  return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext conftest$ac_exeext
5220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221  (eval $ac_link) 2>conftest.er1
5222  ac_status=$?
5223  grep -v '^ *+' conftest.er1 >conftest.err
5224  rm -f conftest.er1
5225  cat conftest.err >&5
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); } &&
5228         { ac_try='test -z "$ac_c_werror_flag"
5229                         || test ! -s conftest.err'
5230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231  (eval $ac_try) 2>&5
5232  ac_status=$?
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); }; } &&
5235         { ac_try='test -s conftest$ac_exeext'
5236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237  (eval $ac_try) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }; }; then
5241  lt_cv_cc_needs_belf=yes
5242else
5243  echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246lt_cv_cc_needs_belf=no
5247fi
5248rm -f conftest.err conftest.$ac_objext \
5249      conftest$ac_exeext conftest.$ac_ext
5250     ac_ext=c
5251ac_cpp='$CPP $CPPFLAGS'
5252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255
5256fi
5257echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5258echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5259  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5260    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5261    CFLAGS="$SAVE_CFLAGS"
5262  fi
5263  ;;
5264sparc*-*solaris*)
5265  # Find out which ABI we are using.
5266  echo 'int i;' > conftest.$ac_ext
5267  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268  (eval $ac_compile) 2>&5
5269  ac_status=$?
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); }; then
5272    case `/usr/bin/file conftest.o` in
5273    *64-bit*)
5274      case $lt_cv_prog_gnu_ld in
5275      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5276      *)    LD="${LD-ld} -64" ;;
5277      esac
5278      ;;
5279    esac
5280  fi
5281  rm -rf conftest*
5282  ;;
5283
5284
5285esac
5286
5287need_locks="$enable_libtool_lock"
5288
5289
5290ac_ext=c
5291ac_cpp='$CPP $CPPFLAGS'
5292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5296echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5297# On Suns, sometimes $CPP names a directory.
5298if test -n "$CPP" && test -d "$CPP"; then
5299  CPP=
5300fi
5301if test -z "$CPP"; then
5302  if test "${ac_cv_prog_CPP+set}" = set; then
5303  echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305      # Double quotes because CPP needs to be expanded
5306    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5307    do
5308      ac_preproc_ok=false
5309for ac_c_preproc_warn_flag in '' yes
5310do
5311  # Use a header file that comes with gcc, so configuring glibc
5312  # with a fresh cross-compiler works.
5313  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5314  # <limits.h> exists even on freestanding compilers.
5315  # On the NeXT, cc -E runs the code through the compiler's parser,
5316  # not just through cpp. "Syntax error" is here to catch this case.
5317  cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h.  */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h.  */
5323#ifdef __STDC__
5324# include <limits.h>
5325#else
5326# include <assert.h>
5327#endif
5328                     Syntax error
5329_ACEOF
5330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5331  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5332  ac_status=$?
5333  grep -v '^ *+' conftest.er1 >conftest.err
5334  rm -f conftest.er1
5335  cat conftest.err >&5
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); } >/dev/null; then
5338  if test -s conftest.err; then
5339    ac_cpp_err=$ac_c_preproc_warn_flag
5340    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5341  else
5342    ac_cpp_err=
5343  fi
5344else
5345  ac_cpp_err=yes
5346fi
5347if test -z "$ac_cpp_err"; then
5348  :
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353  # Broken: fails on valid input.
5354continue
5355fi
5356rm -f conftest.err conftest.$ac_ext
5357
5358  # OK, works on sane cases.  Now check whether non-existent headers
5359  # can be detected and how.
5360  cat >conftest.$ac_ext <<_ACEOF
5361/* confdefs.h.  */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h.  */
5366#include <ac_nonexistent.h>
5367_ACEOF
5368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370  ac_status=$?
5371  grep -v '^ *+' conftest.er1 >conftest.err
5372  rm -f conftest.er1
5373  cat conftest.err >&5
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); } >/dev/null; then
5376  if test -s conftest.err; then
5377    ac_cpp_err=$ac_c_preproc_warn_flag
5378    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5379  else
5380    ac_cpp_err=
5381  fi
5382else
5383  ac_cpp_err=yes
5384fi
5385if test -z "$ac_cpp_err"; then
5386  # Broken: success on invalid input.
5387continue
5388else
5389  echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392  # Passes both tests.
5393ac_preproc_ok=:
5394break
5395fi
5396rm -f conftest.err conftest.$ac_ext
5397
5398done
5399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400rm -f conftest.err conftest.$ac_ext
5401if $ac_preproc_ok; then
5402  break
5403fi
5404
5405    done
5406    ac_cv_prog_CPP=$CPP
5407
5408fi
5409  CPP=$ac_cv_prog_CPP
5410else
5411  ac_cv_prog_CPP=$CPP
5412fi
5413echo "$as_me:$LINENO: result: $CPP" >&5
5414echo "${ECHO_T}$CPP" >&6
5415ac_preproc_ok=false
5416for ac_c_preproc_warn_flag in '' yes
5417do
5418  # Use a header file that comes with gcc, so configuring glibc
5419  # with a fresh cross-compiler works.
5420  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5421  # <limits.h> exists even on freestanding compilers.
5422  # On the NeXT, cc -E runs the code through the compiler's parser,
5423  # not just through cpp. "Syntax error" is here to catch this case.
5424  cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h.  */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h.  */
5430#ifdef __STDC__
5431# include <limits.h>
5432#else
5433# include <assert.h>
5434#endif
5435                     Syntax error
5436_ACEOF
5437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5438  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5439  ac_status=$?
5440  grep -v '^ *+' conftest.er1 >conftest.err
5441  rm -f conftest.er1
5442  cat conftest.err >&5
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); } >/dev/null; then
5445  if test -s conftest.err; then
5446    ac_cpp_err=$ac_c_preproc_warn_flag
5447    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448  else
5449    ac_cpp_err=
5450  fi
5451else
5452  ac_cpp_err=yes
5453fi
5454if test -z "$ac_cpp_err"; then
5455  :
5456else
5457  echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460  # Broken: fails on valid input.
5461continue
5462fi
5463rm -f conftest.err conftest.$ac_ext
5464
5465  # OK, works on sane cases.  Now check whether non-existent headers
5466  # can be detected and how.
5467  cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473#include <ac_nonexistent.h>
5474_ACEOF
5475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477  ac_status=$?
5478  grep -v '^ *+' conftest.er1 >conftest.err
5479  rm -f conftest.er1
5480  cat conftest.err >&5
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); } >/dev/null; then
5483  if test -s conftest.err; then
5484    ac_cpp_err=$ac_c_preproc_warn_flag
5485    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5486  else
5487    ac_cpp_err=
5488  fi
5489else
5490  ac_cpp_err=yes
5491fi
5492if test -z "$ac_cpp_err"; then
5493  # Broken: success on invalid input.
5494continue
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499  # Passes both tests.
5500ac_preproc_ok=:
5501break
5502fi
5503rm -f conftest.err conftest.$ac_ext
5504
5505done
5506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507rm -f conftest.err conftest.$ac_ext
5508if $ac_preproc_ok; then
5509  :
5510else
5511  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5512See \`config.log' for more details." >&5
5513echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5514See \`config.log' for more details." >&2;}
5515   { (exit 1); exit 1; }; }
5516fi
5517
5518ac_ext=c
5519ac_cpp='$CPP $CPPFLAGS'
5520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523
5524
5525echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5526echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5527if test "${ac_cv_header_stdc+set}" = set; then
5528  echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530  cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h.  */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h.  */
5536#include <stdlib.h>
5537#include <stdarg.h>
5538#include <string.h>
5539#include <float.h>
5540
5541int
5542main ()
5543{
5544
5545  ;
5546  return 0;
5547}
5548_ACEOF
5549rm -f conftest.$ac_objext
5550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551  (eval $ac_compile) 2>conftest.er1
5552  ac_status=$?
5553  grep -v '^ *+' conftest.er1 >conftest.err
5554  rm -f conftest.er1
5555  cat conftest.err >&5
5556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557  (exit $ac_status); } &&
5558         { ac_try='test -z "$ac_c_werror_flag"
5559                         || test ! -s conftest.err'
5560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561  (eval $ac_try) 2>&5
5562  ac_status=$?
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }; } &&
5565         { ac_try='test -s conftest.$ac_objext'
5566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567  (eval $ac_try) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; }; then
5571  ac_cv_header_stdc=yes
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576ac_cv_header_stdc=no
5577fi
5578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5579
5580if test $ac_cv_header_stdc = yes; then
5581  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5582  cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h.  */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h.  */
5588#include <string.h>
5589
5590_ACEOF
5591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5592  $EGREP "memchr" >/dev/null 2>&1; then
5593  :
5594else
5595  ac_cv_header_stdc=no
5596fi
5597rm -f conftest*
5598
5599fi
5600
5601if test $ac_cv_header_stdc = yes; then
5602  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5603  cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h.  */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h.  */
5609#include <stdlib.h>
5610
5611_ACEOF
5612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613  $EGREP "free" >/dev/null 2>&1; then
5614  :
5615else
5616  ac_cv_header_stdc=no
5617fi
5618rm -f conftest*
5619
5620fi
5621
5622if test $ac_cv_header_stdc = yes; then
5623  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5624  if test "$cross_compiling" = yes; then
5625  :
5626else
5627  cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h.  */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h.  */
5633#include <ctype.h>
5634#if ((' ' & 0x0FF) == 0x020)
5635# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5636# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5637#else
5638# define ISLOWER(c) \
5639                   (('a' <= (c) && (c) <= 'i') \
5640                     || ('j' <= (c) && (c) <= 'r') \
5641                     || ('s' <= (c) && (c) <= 'z'))
5642# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5643#endif
5644
5645#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5646int
5647main ()
5648{
5649  int i;
5650  for (i = 0; i < 256; i++)
5651    if (XOR (islower (i), ISLOWER (i))
5652        || toupper (i) != TOUPPER (i))
5653      exit(2);
5654  exit (0);
5655}
5656_ACEOF
5657rm -f conftest$ac_exeext
5658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659  (eval $ac_link) 2>&5
5660  ac_status=$?
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664  (eval $ac_try) 2>&5
5665  ac_status=$?
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); }; }; then
5668  :
5669else
5670  echo "$as_me: program exited with status $ac_status" >&5
5671echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
5674( exit $ac_status )
5675ac_cv_header_stdc=no
5676fi
5677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5678fi
5679fi
5680fi
5681echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5682echo "${ECHO_T}$ac_cv_header_stdc" >&6
5683if test $ac_cv_header_stdc = yes; then
5684
5685cat >>confdefs.h <<\_ACEOF
5686#define STDC_HEADERS 1
5687_ACEOF
5688
5689fi
5690
5691# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5702                  inttypes.h stdint.h unistd.h
5703do
5704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705echo "$as_me:$LINENO: checking for $ac_header" >&5
5706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5707if eval "test \"\${$as_ac_Header+set}\" = set"; then
5708  echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710  cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h.  */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h.  */
5716$ac_includes_default
5717
5718#include <$ac_header>
5719_ACEOF
5720rm -f conftest.$ac_objext
5721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722  (eval $ac_compile) 2>conftest.er1
5723  ac_status=$?
5724  grep -v '^ *+' conftest.er1 >conftest.err
5725  rm -f conftest.er1
5726  cat conftest.err >&5
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); } &&
5729         { ac_try='test -z "$ac_c_werror_flag"
5730                         || test ! -s conftest.err'
5731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732  (eval $ac_try) 2>&5
5733  ac_status=$?
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); }; } &&
5736         { ac_try='test -s conftest.$ac_objext'
5737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738  (eval $ac_try) 2>&5
5739  ac_status=$?
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); }; }; then
5742  eval "$as_ac_Header=yes"
5743else
5744  echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
5747eval "$as_ac_Header=no"
5748fi
5749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5750fi
5751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5753if test `eval echo '${'$as_ac_Header'}'` = yes; then
5754  cat >>confdefs.h <<_ACEOF
5755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5756_ACEOF
5757
5758fi
5759
5760done
5761
5762
5763
5764for ac_header in dlfcn.h
5765do
5766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767if eval "test \"\${$as_ac_Header+set}\" = set"; then
5768  echo "$as_me:$LINENO: checking for $ac_header" >&5
5769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5770if eval "test \"\${$as_ac_Header+set}\" = set"; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772fi
5773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5775else
5776  # Is the header compilable?
5777echo "$as_me:$LINENO: checking $ac_header usability" >&5
5778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5779cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h.  */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h.  */
5785$ac_includes_default
5786#include <$ac_header>
5787_ACEOF
5788rm -f conftest.$ac_objext
5789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790  (eval $ac_compile) 2>conftest.er1
5791  ac_status=$?
5792  grep -v '^ *+' conftest.er1 >conftest.err
5793  rm -f conftest.er1
5794  cat conftest.err >&5
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); } &&
5797         { ac_try='test -z "$ac_c_werror_flag"
5798                         || test ! -s conftest.err'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; } &&
5804         { ac_try='test -s conftest.$ac_objext'
5805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806  (eval $ac_try) 2>&5
5807  ac_status=$?
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); }; }; then
5810  ac_header_compiler=yes
5811else
5812  echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815ac_header_compiler=no
5816fi
5817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5819echo "${ECHO_T}$ac_header_compiler" >&6
5820
5821# Is the header present?
5822echo "$as_me:$LINENO: checking $ac_header presence" >&5
5823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5824cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h.  */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h.  */
5830#include <$ac_header>
5831_ACEOF
5832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5833  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5834  ac_status=$?
5835  grep -v '^ *+' conftest.er1 >conftest.err
5836  rm -f conftest.er1
5837  cat conftest.err >&5
5838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); } >/dev/null; then
5840  if test -s conftest.err; then
5841    ac_cpp_err=$ac_c_preproc_warn_flag
5842    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5843  else
5844    ac_cpp_err=
5845  fi
5846else
5847  ac_cpp_err=yes
5848fi
5849if test -z "$ac_cpp_err"; then
5850  ac_header_preproc=yes
5851else
5852  echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855  ac_header_preproc=no
5856fi
5857rm -f conftest.err conftest.$ac_ext
5858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5859echo "${ECHO_T}$ac_header_preproc" >&6
5860
5861# So?  What about this header?
5862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5863  yes:no: )
5864    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5866    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5868    ac_header_preproc=yes
5869    ;;
5870  no:yes:* )
5871    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5873    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5874echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5875    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5877    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5878echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5879    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5881    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5883    (
5884      cat <<\_ASBOX
5885## --------------------------------------------------------------- ##
5886## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5887## --------------------------------------------------------------- ##
5888_ASBOX
5889    ) |
5890      sed "s/^/$as_me: WARNING:     /" >&2
5891    ;;
5892esac
5893echo "$as_me:$LINENO: checking for $ac_header" >&5
5894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5895if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896  echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898  eval "$as_ac_Header=\$ac_header_preproc"
5899fi
5900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5902
5903fi
5904if test `eval echo '${'$as_ac_Header'}'` = yes; then
5905  cat >>confdefs.h <<_ACEOF
5906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5907_ACEOF
5908
5909fi
5910
5911done
5912
5913ac_ext=cc
5914ac_cpp='$CXXCPP $CPPFLAGS'
5915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5918if test -n "$ac_tool_prefix"; then
5919  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5920  do
5921    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5923echo "$as_me:$LINENO: checking for $ac_word" >&5
5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925if test "${ac_cv_prog_CXX+set}" = set; then
5926  echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928  if test -n "$CXX"; then
5929  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936  for ac_exec_ext in '' $ac_executable_extensions; do
5937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943done
5944
5945fi
5946fi
5947CXX=$ac_cv_prog_CXX
5948if test -n "$CXX"; then
5949  echo "$as_me:$LINENO: result: $CXX" >&5
5950echo "${ECHO_T}$CXX" >&6
5951else
5952  echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954fi
5955
5956    test -n "$CXX" && break
5957  done
5958fi
5959if test -z "$CXX"; then
5960  ac_ct_CXX=$CXX
5961  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5962do
5963  # Extract the first word of "$ac_prog", so it can be a program name with args.
5964set dummy $ac_prog; ac_word=$2
5965echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  if test -n "$ac_ct_CXX"; then
5971  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976  IFS=$as_save_IFS
5977  test -z "$as_dir" && as_dir=.
5978  for ac_exec_ext in '' $ac_executable_extensions; do
5979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980    ac_cv_prog_ac_ct_CXX="$ac_prog"
5981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982    break 2
5983  fi
5984done
5985done
5986
5987fi
5988fi
5989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5990if test -n "$ac_ct_CXX"; then
5991  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5992echo "${ECHO_T}$ac_ct_CXX" >&6
5993else
5994  echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
5996fi
5997
5998  test -n "$ac_ct_CXX" && break
5999done
6000test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6001
6002  CXX=$ac_ct_CXX
6003fi
6004
6005
6006# Provide some information about the compiler.
6007echo "$as_me:$LINENO:" \
6008     "checking for C++ compiler version" >&5
6009ac_compiler=`set X $ac_compile; echo $2`
6010{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6011  (eval $ac_compiler --version </dev/null >&5) 2>&5
6012  ac_status=$?
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); }
6015{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6016  (eval $ac_compiler -v </dev/null >&5) 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }
6020{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6021  (eval $ac_compiler -V </dev/null >&5) 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); }
6025
6026echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6027echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6028if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6029  echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031  cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h.  */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h.  */
6037
6038int
6039main ()
6040{
6041#ifndef __GNUC__
6042       choke me
6043#endif
6044
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext
6050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051  (eval $ac_compile) 2>conftest.er1
6052  ac_status=$?
6053  grep -v '^ *+' conftest.er1 >conftest.err
6054  rm -f conftest.er1
6055  cat conftest.err >&5
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); } &&
6058         { ac_try='test -z "$ac_cxx_werror_flag"
6059                         || test ! -s conftest.err'
6060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061  (eval $ac_try) 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); }; } &&
6065         { ac_try='test -s conftest.$ac_objext'
6066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067  (eval $ac_try) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; }; then
6071  ac_compiler_gnu=yes
6072else
6073  echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076ac_compiler_gnu=no
6077fi
6078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6079ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6080
6081fi
6082echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6083echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6084GXX=`test $ac_compiler_gnu = yes && echo yes`
6085ac_test_CXXFLAGS=${CXXFLAGS+set}
6086ac_save_CXXFLAGS=$CXXFLAGS
6087CXXFLAGS="-g"
6088echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6089echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6090if test "${ac_cv_prog_cxx_g+set}" = set; then
6091  echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093  cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099
6100int
6101main ()
6102{
6103
6104  ;
6105  return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext
6109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110  (eval $ac_compile) 2>conftest.er1
6111  ac_status=$?
6112  grep -v '^ *+' conftest.er1 >conftest.err
6113  rm -f conftest.er1
6114  cat conftest.err >&5
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); } &&
6117         { ac_try='test -z "$ac_cxx_werror_flag"
6118                         || test ! -s conftest.err'
6119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120  (eval $ac_try) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); }; } &&
6124         { ac_try='test -s conftest.$ac_objext'
6125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126  (eval $ac_try) 2>&5
6127  ac_status=$?
6128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); }; }; then
6130  ac_cv_prog_cxx_g=yes
6131else
6132  echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
6135ac_cv_prog_cxx_g=no
6136fi
6137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138fi
6139echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6140echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6141if test "$ac_test_CXXFLAGS" = set; then
6142  CXXFLAGS=$ac_save_CXXFLAGS
6143elif test $ac_cv_prog_cxx_g = yes; then
6144  if test "$GXX" = yes; then
6145    CXXFLAGS="-g -O2"
6146  else
6147    CXXFLAGS="-g"
6148  fi
6149else
6150  if test "$GXX" = yes; then
6151    CXXFLAGS="-O2"
6152  else
6153    CXXFLAGS=
6154  fi
6155fi
6156for ac_declaration in \
6157   '' \
6158   'extern "C" void std::exit (int) throw (); using std::exit;' \
6159   'extern "C" void std::exit (int); using std::exit;' \
6160   'extern "C" void exit (int) throw ();' \
6161   'extern "C" void exit (int);' \
6162   'void exit (int);'
6163do
6164  cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h.  */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h.  */
6170$ac_declaration
6171#include <stdlib.h>
6172int
6173main ()
6174{
6175exit (42);
6176  ;
6177  return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182  (eval $ac_compile) 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } &&
6189         { ac_try='test -z "$ac_cxx_werror_flag"
6190                         || test ! -s conftest.err'
6191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192  (eval $ac_try) 2>&5
6193  ac_status=$?
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); }; } &&
6196         { ac_try='test -s conftest.$ac_objext'
6197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198  (eval $ac_try) 2>&5
6199  ac_status=$?
6200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); }; }; then
6202  :
6203else
6204  echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207continue
6208fi
6209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6210  cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h.  */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h.  */
6216$ac_declaration
6217int
6218main ()
6219{
6220exit (42);
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext
6226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227  (eval $ac_compile) 2>conftest.er1
6228  ac_status=$?
6229  grep -v '^ *+' conftest.er1 >conftest.err
6230  rm -f conftest.er1
6231  cat conftest.err >&5
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } &&
6234         { ac_try='test -z "$ac_cxx_werror_flag"
6235                         || test ! -s conftest.err'
6236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237  (eval $ac_try) 2>&5
6238  ac_status=$?
6239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240  (exit $ac_status); }; } &&
6241         { ac_try='test -s conftest.$ac_objext'
6242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243  (eval $ac_try) 2>&5
6244  ac_status=$?
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); }; }; then
6247  break
6248else
6249  echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252fi
6253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254done
6255rm -f conftest*
6256if test -n "$ac_declaration"; then
6257  echo '#ifdef __cplusplus' >>confdefs.h
6258  echo $ac_declaration      >>confdefs.h
6259  echo '#endif'             >>confdefs.h
6260fi
6261
6262ac_ext=cc
6263ac_cpp='$CXXCPP $CPPFLAGS'
6264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267
6268depcc="$CXX"  am_compiler_list=
6269
6270echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6271echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6272if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6273  echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6276  # We make a subdir and do the tests there.  Otherwise we can end up
6277  # making bogus files that we don't know about and never remove.  For
6278  # instance it was reported that on HP-UX the gcc test will end up
6279  # making a dummy file named `D' -- because `-MD' means `put the output
6280  # in D'.
6281  mkdir conftest.dir
6282  # Copy depcomp to subdir because otherwise we won't find it if we're
6283  # using a relative directory.
6284  cp "$am_depcomp" conftest.dir
6285  cd conftest.dir
6286  # We will build objects and dependencies in a subdirectory because
6287  # it helps to detect inapplicable dependency modes.  For instance
6288  # both Tru64's cc and ICC support -MD to output dependencies as a
6289  # side effect of compilation, but ICC will put the dependencies in
6290  # the current directory while Tru64 will put them in the object
6291  # directory.
6292  mkdir sub
6293
6294  am_cv_CXX_dependencies_compiler_type=none
6295  if test "$am_compiler_list" = ""; then
6296     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6297  fi
6298  for depmode in $am_compiler_list; do
6299    # Setup a source with many dependencies, because some compilers
6300    # like to wrap large dependency lists on column 80 (with \), and
6301    # we should not choose a depcomp mode which is confused by this.
6302    #
6303    # We need to recreate these files for each test, as the compiler may
6304    # overwrite some of them when testing with obscure command lines.
6305    # This happens at least with the AIX C compiler.
6306    : > sub/conftest.c
6307    for i in 1 2 3 4 5 6; do
6308      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6309      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6310      # Solaris 8's {/usr,}/bin/sh.
6311      touch sub/conftst$i.h
6312    done
6313    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6314
6315    case $depmode in
6316    nosideeffect)
6317      # after this tag, mechanisms are not by side-effect, so they'll
6318      # only be used when explicitly requested
6319      if test "x$enable_dependency_tracking" = xyes; then
6320        continue
6321      else
6322        break
6323      fi
6324      ;;
6325    none) break ;;
6326    esac
6327    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6328    # mode.  It turns out that the SunPro C++ compiler does not properly
6329    # handle `-M -o', and we need to detect this.
6330    if depmode=$depmode \
6331       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6332       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6333       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6334         >/dev/null 2>conftest.err &&
6335       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6336       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6337       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6338      # icc doesn't choke on unknown options, it will just issue warnings
6339      # or remarks (even with -Werror).  So we grep stderr for any message
6340      # that says an option was ignored or not supported.
6341      # When given -MP, icc 7.0 and 7.1 complain thusly:
6342      #   icc: Command line warning: ignoring option '-M'; no argument required
6343      # The diagnosis changed in icc 8.0:
6344      #   icc: Command line remark: option '-MP' not supported
6345      if (grep 'ignoring option' conftest.err ||
6346          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6347        am_cv_CXX_dependencies_compiler_type=$depmode
6348        break
6349      fi
6350    fi
6351  done
6352
6353  cd ..
6354  rm -rf conftest.dir
6355else
6356  am_cv_CXX_dependencies_compiler_type=none
6357fi
6358
6359fi
6360echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6361echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6362CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6363
6364
6365
6366if
6367  test "x$enable_dependency_tracking" != xno \
6368  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6369  am__fastdepCXX_TRUE=
6370  am__fastdepCXX_FALSE='#'
6371else
6372  am__fastdepCXX_TRUE='#'
6373  am__fastdepCXX_FALSE=
6374fi
6375
6376
6377
6378
6379if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6380    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6381    (test "X$CXX" != "Xg++"))) ; then
6382  ac_ext=cc
6383ac_cpp='$CXXCPP $CPPFLAGS'
6384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6387echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6388echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6389if test -z "$CXXCPP"; then
6390  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393      # Double quotes because CXXCPP needs to be expanded
6394    for CXXCPP in "$CXX -E" "/lib/cpp"
6395    do
6396      ac_preproc_ok=false
6397for ac_cxx_preproc_warn_flag in '' yes
6398do
6399  # Use a header file that comes with gcc, so configuring glibc
6400  # with a fresh cross-compiler works.
6401  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402  # <limits.h> exists even on freestanding compilers.
6403  # On the NeXT, cc -E runs the code through the compiler's parser,
6404  # not just through cpp. "Syntax error" is here to catch this case.
6405  cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411#ifdef __STDC__
6412# include <limits.h>
6413#else
6414# include <assert.h>
6415#endif
6416                     Syntax error
6417_ACEOF
6418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6419  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6420  ac_status=$?
6421  grep -v '^ *+' conftest.er1 >conftest.err
6422  rm -f conftest.er1
6423  cat conftest.err >&5
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); } >/dev/null; then
6426  if test -s conftest.err; then
6427    ac_cpp_err=$ac_cxx_preproc_warn_flag
6428    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6429  else
6430    ac_cpp_err=
6431  fi
6432else
6433  ac_cpp_err=yes
6434fi
6435if test -z "$ac_cpp_err"; then
6436  :
6437else
6438  echo "$as_me: failed program was:" >&5
6439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441  # Broken: fails on valid input.
6442continue
6443fi
6444rm -f conftest.err conftest.$ac_ext
6445
6446  # OK, works on sane cases.  Now check whether non-existent headers
6447  # can be detected and how.
6448  cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h.  */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h.  */
6454#include <ac_nonexistent.h>
6455_ACEOF
6456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458  ac_status=$?
6459  grep -v '^ *+' conftest.er1 >conftest.err
6460  rm -f conftest.er1
6461  cat conftest.err >&5
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); } >/dev/null; then
6464  if test -s conftest.err; then
6465    ac_cpp_err=$ac_cxx_preproc_warn_flag
6466    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6467  else
6468    ac_cpp_err=
6469  fi
6470else
6471  ac_cpp_err=yes
6472fi
6473if test -z "$ac_cpp_err"; then
6474  # Broken: success on invalid input.
6475continue
6476else
6477  echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480  # Passes both tests.
6481ac_preproc_ok=:
6482break
6483fi
6484rm -f conftest.err conftest.$ac_ext
6485
6486done
6487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6488rm -f conftest.err conftest.$ac_ext
6489if $ac_preproc_ok; then
6490  break
6491fi
6492
6493    done
6494    ac_cv_prog_CXXCPP=$CXXCPP
6495
6496fi
6497  CXXCPP=$ac_cv_prog_CXXCPP
6498else
6499  ac_cv_prog_CXXCPP=$CXXCPP
6500fi
6501echo "$as_me:$LINENO: result: $CXXCPP" >&5
6502echo "${ECHO_T}$CXXCPP" >&6
6503ac_preproc_ok=false
6504for ac_cxx_preproc_warn_flag in '' yes
6505do
6506  # Use a header file that comes with gcc, so configuring glibc
6507  # with a fresh cross-compiler works.
6508  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6509  # <limits.h> exists even on freestanding compilers.
6510  # On the NeXT, cc -E runs the code through the compiler's parser,
6511  # not just through cpp. "Syntax error" is here to catch this case.
6512  cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518#ifdef __STDC__
6519# include <limits.h>
6520#else
6521# include <assert.h>
6522#endif
6523                     Syntax error
6524_ACEOF
6525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6526  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6527  ac_status=$?
6528  grep -v '^ *+' conftest.er1 >conftest.err
6529  rm -f conftest.er1
6530  cat conftest.err >&5
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); } >/dev/null; then
6533  if test -s conftest.err; then
6534    ac_cpp_err=$ac_cxx_preproc_warn_flag
6535    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6536  else
6537    ac_cpp_err=
6538  fi
6539else
6540  ac_cpp_err=yes
6541fi
6542if test -z "$ac_cpp_err"; then
6543  :
6544else
6545  echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548  # Broken: fails on valid input.
6549continue
6550fi
6551rm -f conftest.err conftest.$ac_ext
6552
6553  # OK, works on sane cases.  Now check whether non-existent headers
6554  # can be detected and how.
6555  cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h.  */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h.  */
6561#include <ac_nonexistent.h>
6562_ACEOF
6563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6564  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6565  ac_status=$?
6566  grep -v '^ *+' conftest.er1 >conftest.err
6567  rm -f conftest.er1
6568  cat conftest.err >&5
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); } >/dev/null; then
6571  if test -s conftest.err; then
6572    ac_cpp_err=$ac_cxx_preproc_warn_flag
6573    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6574  else
6575    ac_cpp_err=
6576  fi
6577else
6578  ac_cpp_err=yes
6579fi
6580if test -z "$ac_cpp_err"; then
6581  # Broken: success on invalid input.
6582continue
6583else
6584  echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587  # Passes both tests.
6588ac_preproc_ok=:
6589break
6590fi
6591rm -f conftest.err conftest.$ac_ext
6592
6593done
6594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6595rm -f conftest.err conftest.$ac_ext
6596if $ac_preproc_ok; then
6597  :
6598else
6599  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6600See \`config.log' for more details." >&5
6601echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6602See \`config.log' for more details." >&2;}
6603   { (exit 1); exit 1; }; }
6604fi
6605
6606ac_ext=cc
6607ac_cpp='$CXXCPP $CPPFLAGS'
6608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6611
6612fi
6613
6614
6615ac_ext=f
6616ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6617ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6619if test -n "$ac_tool_prefix"; then
6620  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6621  do
6622    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6624echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6626if test "${ac_cv_prog_F77+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629  if test -n "$F77"; then
6630  ac_cv_prog_F77="$F77" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637  for ac_exec_ext in '' $ac_executable_extensions; do
6638  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644done
6645
6646fi
6647fi
6648F77=$ac_cv_prog_F77
6649if test -n "$F77"; then
6650  echo "$as_me:$LINENO: result: $F77" >&5
6651echo "${ECHO_T}$F77" >&6
6652else
6653  echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6
6655fi
6656
6657    test -n "$F77" && break
6658  done
6659fi
6660if test -z "$F77"; then
6661  ac_ct_F77=$F77
6662  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6663do
6664  # Extract the first word of "$ac_prog", so it can be a program name with args.
6665set dummy $ac_prog; ac_word=$2
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  if test -n "$ac_ct_F77"; then
6672  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679  for ac_exec_ext in '' $ac_executable_extensions; do
6680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681    ac_cv_prog_ac_ct_F77="$ac_prog"
6682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686done
6687
6688fi
6689fi
6690ac_ct_F77=$ac_cv_prog_ac_ct_F77
6691if test -n "$ac_ct_F77"; then
6692  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6693echo "${ECHO_T}$ac_ct_F77" >&6
6694else
6695  echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697fi
6698
6699  test -n "$ac_ct_F77" && break
6700done
6701
6702  F77=$ac_ct_F77
6703fi
6704
6705
6706# Provide some information about the compiler.
6707echo "$as_me:6707:" \
6708     "checking for Fortran 77 compiler version" >&5
6709ac_compiler=`set X $ac_compile; echo $2`
6710{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6711  (eval $ac_compiler --version </dev/null >&5) 2>&5
6712  ac_status=$?
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); }
6715{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6716  (eval $ac_compiler -v </dev/null >&5) 2>&5
6717  ac_status=$?
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); }
6720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6721  (eval $ac_compiler -V </dev/null >&5) 2>&5
6722  ac_status=$?
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); }
6725rm -f a.out
6726
6727# If we don't use `.F' as extension, the preprocessor is not run on the
6728# input file.  (Note that this only needs to work for GNU compilers.)
6729ac_save_ext=$ac_ext
6730ac_ext=F
6731echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6732echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6733if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6734  echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736  cat >conftest.$ac_ext <<_ACEOF
6737      program main
6738#ifndef __GNUC__
6739       choke me
6740#endif
6741
6742      end
6743_ACEOF
6744rm -f conftest.$ac_objext
6745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746  (eval $ac_compile) 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } &&
6753         { ac_try='test -z "$ac_f77_werror_flag"
6754                         || test ! -s conftest.err'
6755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756  (eval $ac_try) 2>&5
6757  ac_status=$?
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); }; } &&
6760         { ac_try='test -s conftest.$ac_objext'
6761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762  (eval $ac_try) 2>&5
6763  ac_status=$?
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); }; }; then
6766  ac_compiler_gnu=yes
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771ac_compiler_gnu=no
6772fi
6773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6775
6776fi
6777echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6778echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6779ac_ext=$ac_save_ext
6780ac_test_FFLAGS=${FFLAGS+set}
6781ac_save_FFLAGS=$FFLAGS
6782FFLAGS=
6783echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6784echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6785if test "${ac_cv_prog_f77_g+set}" = set; then
6786  echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788  FFLAGS=-g
6789cat >conftest.$ac_ext <<_ACEOF
6790      program main
6791
6792      end
6793_ACEOF
6794rm -f conftest.$ac_objext
6795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796  (eval $ac_compile) 2>conftest.er1
6797  ac_status=$?
6798  grep -v '^ *+' conftest.er1 >conftest.err
6799  rm -f conftest.er1
6800  cat conftest.err >&5
6801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); } &&
6803         { ac_try='test -z "$ac_f77_werror_flag"
6804                         || test ! -s conftest.err'
6805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806  (eval $ac_try) 2>&5
6807  ac_status=$?
6808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809  (exit $ac_status); }; } &&
6810         { ac_try='test -s conftest.$ac_objext'
6811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812  (eval $ac_try) 2>&5
6813  ac_status=$?
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); }; }; then
6816  ac_cv_prog_f77_g=yes
6817else
6818  echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
6821ac_cv_prog_f77_g=no
6822fi
6823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824
6825fi
6826echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6827echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6828if test "$ac_test_FFLAGS" = set; then
6829  FFLAGS=$ac_save_FFLAGS
6830elif test $ac_cv_prog_f77_g = yes; then
6831  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6832    FFLAGS="-g -O2"
6833  else
6834    FFLAGS="-g"
6835  fi
6836else
6837  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6838    FFLAGS="-O2"
6839  else
6840    FFLAGS=
6841  fi
6842fi
6843
6844G77=`test $ac_compiler_gnu = yes && echo yes`
6845ac_ext=c
6846ac_cpp='$CPP $CPPFLAGS'
6847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850
6851
6852
6853# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6854
6855# find the maximum length of command line arguments
6856echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6857echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6858if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861    i=0
6862  teststring="ABCD"
6863
6864  case $build_os in
6865  msdosdjgpp*)
6866    # On DJGPP, this test can blow up pretty badly due to problems in libc
6867    # (any single argument exceeding 2000 bytes causes a buffer overrun
6868    # during glob expansion).  Even if it were fixed, the result of this
6869    # check would be larger than it should be.
6870    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6871    ;;
6872
6873  gnu*)
6874    # Under GNU Hurd, this test is not required because there is
6875    # no limit to the length of command line arguments.
6876    # Libtool will interpret -1 as no limit whatsoever
6877    lt_cv_sys_max_cmd_len=-1;
6878    ;;
6879
6880  cygwin* | mingw*)
6881    # On Win9x/ME, this test blows up -- it succeeds, but takes
6882    # about 5 minutes as the teststring grows exponentially.
6883    # Worse, since 9x/ME are not pre-emptively multitasking,
6884    # you end up with a "frozen" computer, even though with patience
6885    # the test eventually succeeds (with a max line length of 256k).
6886    # Instead, let's just punt: use the minimum linelength reported by
6887    # all of the supported platforms: 8192 (on NT/2K/XP).
6888    lt_cv_sys_max_cmd_len=8192;
6889    ;;
6890
6891  amigaos*)
6892    # On AmigaOS with pdksh, this test takes hours, literally.
6893    # So we just punt and use a minimum line length of 8192.
6894    lt_cv_sys_max_cmd_len=8192;
6895    ;;
6896
6897  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6898    # This has been around since 386BSD, at least.  Likely further.
6899    if test -x /sbin/sysctl; then
6900      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6901    elif test -x /usr/sbin/sysctl; then
6902      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6903    else
6904      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6905    fi
6906    # And add a safety zone
6907    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6908    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6909    ;;
6910
6911  interix*)
6912    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6913    lt_cv_sys_max_cmd_len=196608
6914    ;;
6915
6916  osf*)
6917    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6918    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6919    # nice to cause kernel panics so lets avoid the loop below.
6920    # First set a reasonable default.
6921    lt_cv_sys_max_cmd_len=16384
6922    #
6923    if test -x /sbin/sysconfig; then
6924      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6925        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6926      esac
6927    fi
6928    ;;
6929  sco3.2v5*)
6930    lt_cv_sys_max_cmd_len=102400
6931    ;;
6932  sysv5* | sco5v6* | sysv4.2uw2*)
6933    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6934    if test -n "$kargmax"; then
6935      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6936    else
6937      lt_cv_sys_max_cmd_len=32768
6938    fi
6939    ;;
6940  *)
6941    # If test is not a shell built-in, we'll probably end up computing a
6942    # maximum length that is only half of the actual maximum length, but
6943    # we can't tell.
6944    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6945    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6946               = "XX$teststring") >/dev/null 2>&1 &&
6947            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6948            lt_cv_sys_max_cmd_len=$new_result &&
6949            test $i != 17 # 1/2 MB should be enough
6950    do
6951      i=`expr $i + 1`
6952      teststring=$teststring$teststring
6953    done
6954    teststring=
6955    # Add a significant safety factor because C++ compilers can tack on massive
6956    # amounts of additional arguments before passing them to the linker.
6957    # It appears as though 1/2 is a usable value.
6958    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6959    ;;
6960  esac
6961
6962fi
6963
6964if test -n $lt_cv_sys_max_cmd_len ; then
6965  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6966echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6967else
6968  echo "$as_me:$LINENO: result: none" >&5
6969echo "${ECHO_T}none" >&6
6970fi
6971
6972
6973
6974
6975# Check for command to grab the raw symbol name followed by C symbol from nm.
6976echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6977echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6978if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6979  echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981
6982# These are sane defaults that work on at least a few old systems.
6983# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6984
6985# Character class describing NM global symbol codes.
6986symcode='[BCDEGRST]'
6987
6988# Regexp to match symbols that can be accessed directly from C.
6989sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6990
6991# Transform an extracted symbol line into a proper C declaration
6992lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6993
6994# Transform an extracted symbol line into symbol name and symbol address
6995lt_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'"
6996
6997# Define system-specific variables.
6998case $host_os in
6999aix*)
7000  symcode='[BCDT]'
7001  ;;
7002cygwin* | mingw* | pw32*)
7003  symcode='[ABCDGISTW]'
7004  ;;
7005hpux*) # Its linker distinguishes data from code symbols
7006  if test "$host_cpu" = ia64; then
7007    symcode='[ABCDEGRST]'
7008  fi
7009  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7010  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'"
7011  ;;
7012linux*)
7013  if test "$host_cpu" = ia64; then
7014    symcode='[ABCDGIRSTW]'
7015    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7016    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'"
7017  fi
7018  ;;
7019irix* | nonstopux*)
7020  symcode='[BCDEGRST]'
7021  ;;
7022osf*)
7023  symcode='[BCDEGQRST]'
7024  ;;
7025solaris*)
7026  symcode='[BDRT]'
7027  ;;
7028sco3.2v5*)
7029  symcode='[DT]'
7030  ;;
7031sysv4.2uw2*)
7032  symcode='[DT]'
7033  ;;
7034sysv5* | sco5v6* | unixware* | OpenUNIX*)
7035  symcode='[ABDT]'
7036  ;;
7037sysv4)
7038  symcode='[DFNSTU]'
7039  ;;
7040esac
7041
7042# Handle CRLF in mingw tool chain
7043opt_cr=
7044case $build_os in
7045mingw*)
7046  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7047  ;;
7048esac
7049
7050# If we're using GNU nm, then use its standard symbol codes.
7051case `$NM -V 2>&1` in
7052*GNU* | *'with BFD'*)
7053  symcode='[ABCDGIRSTW]' ;;
7054esac
7055
7056# Try without a prefix undercore, then with it.
7057for ac_symprfx in "" "_"; do
7058
7059  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7060  symxfrm="\\1 $ac_symprfx\\2 \\2"
7061
7062  # Write the raw and C identifiers.
7063  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7064
7065  # Check to see that the pipe works correctly.
7066  pipe_works=no
7067
7068  rm -f conftest*
7069  cat > conftest.$ac_ext <<EOF
7070#ifdef __cplusplus
7071extern "C" {
7072#endif
7073char nm_test_var;
7074void nm_test_func(){}
7075#ifdef __cplusplus
7076}
7077#endif
7078int main(){nm_test_var='a';nm_test_func();return(0);}
7079EOF
7080
7081  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082  (eval $ac_compile) 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }; then
7086    # Now try to grab the symbols.
7087    nlist=conftest.nm
7088    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7089  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7090  ac_status=$?
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); } && test -s "$nlist"; then
7093      # Try sorting and uniquifying the output.
7094      if sort "$nlist" | uniq > "$nlist"T; then
7095        mv -f "$nlist"T "$nlist"
7096      else
7097        rm -f "$nlist"T
7098      fi
7099
7100      # Make sure that we snagged all the symbols we need.
7101      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7102        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7103          cat <<EOF > conftest.$ac_ext
7104#ifdef __cplusplus
7105extern "C" {
7106#endif
7107
7108EOF
7109          # Now generate the symbol file.
7110          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7111
7112          cat <<EOF >> conftest.$ac_ext
7113#if defined (__STDC__) && __STDC__
7114# define lt_ptr_t void *
7115#else
7116# define lt_ptr_t char *
7117# define const
7118#endif
7119
7120/* The mapping between symbol names and symbols. */
7121const struct {
7122  const char *name;
7123  lt_ptr_t address;
7124}
7125lt_preloaded_symbols[] =
7126{
7127EOF
7128          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7129          cat <<\EOF >> conftest.$ac_ext
7130  {0, (lt_ptr_t) 0}
7131};
7132
7133#ifdef __cplusplus
7134}
7135#endif
7136EOF
7137          # Now try linking the two files.
7138          mv conftest.$ac_objext conftstm.$ac_objext
7139          lt_save_LIBS="$LIBS"
7140          lt_save_CFLAGS="$CFLAGS"
7141          LIBS="conftstm.$ac_objext"
7142          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7143          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144  (eval $ac_link) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7148            pipe_works=yes
7149          fi
7150          LIBS="$lt_save_LIBS"
7151          CFLAGS="$lt_save_CFLAGS"
7152        else
7153          echo "cannot find nm_test_func in $nlist" >&5
7154        fi
7155      else
7156        echo "cannot find nm_test_var in $nlist" >&5
7157      fi
7158    else
7159      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7160    fi
7161  else
7162    echo "$progname: failed program was:" >&5
7163    cat conftest.$ac_ext >&5
7164  fi
7165  rm -f conftest* conftst*
7166
7167  # Do not use the global_symbol_pipe unless it works.
7168  if test "$pipe_works" = yes; then
7169    break
7170  else
7171    lt_cv_sys_global_symbol_pipe=
7172  fi
7173done
7174
7175fi
7176
7177if test -z "$lt_cv_sys_global_symbol_pipe"; then
7178  lt_cv_sys_global_symbol_to_cdecl=
7179fi
7180if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7181  echo "$as_me:$LINENO: result: failed" >&5
7182echo "${ECHO_T}failed" >&6
7183else
7184  echo "$as_me:$LINENO: result: ok" >&5
7185echo "${ECHO_T}ok" >&6
7186fi
7187
7188echo "$as_me:$LINENO: checking for objdir" >&5
7189echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7190if test "${lt_cv_objdir+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193  rm -f .libs 2>/dev/null
7194mkdir .libs 2>/dev/null
7195if test -d .libs; then
7196  lt_cv_objdir=.libs
7197else
7198  # MS-DOS does not allow filenames that begin with a dot.
7199  lt_cv_objdir=_libs
7200fi
7201rmdir .libs 2>/dev/null
7202fi
7203echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7204echo "${ECHO_T}$lt_cv_objdir" >&6
7205objdir=$lt_cv_objdir
7206
7207
7208
7209
7210
7211case $host_os in
7212aix3*)
7213  # AIX sometimes has problems with the GCC collect2 program.  For some
7214  # reason, if we set the COLLECT_NAMES environment variable, the problems
7215  # vanish in a puff of smoke.
7216  if test "X${COLLECT_NAMES+set}" != Xset; then
7217    COLLECT_NAMES=
7218    export COLLECT_NAMES
7219  fi
7220  ;;
7221esac
7222
7223# Sed substitution that helps us do robust quoting.  It backslashifies
7224# metacharacters that are still active within double-quoted strings.
7225Xsed='sed -e 1s/^X//'
7226sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7227
7228# Same as above, but do not quote variable references.
7229double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7230
7231# Sed substitution to delay expansion of an escaped shell variable in a
7232# double_quote_subst'ed string.
7233delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7234
7235# Sed substitution to avoid accidental globbing in evaled expressions
7236no_glob_subst='s/\*/\\\*/g'
7237
7238# Constants:
7239rm="rm -f"
7240
7241# Global variables:
7242default_ofile=libtool
7243can_build_shared=yes
7244
7245# All known linkers require a `.a' archive for static linking (except MSVC,
7246# which needs '.lib').
7247libext=a
7248ltmain="$ac_aux_dir/ltmain.sh"
7249ofile="$default_ofile"
7250with_gnu_ld="$lt_cv_prog_gnu_ld"
7251
7252if test -n "$ac_tool_prefix"; then
7253  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7254set dummy ${ac_tool_prefix}ar; ac_word=$2
7255echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257if test "${ac_cv_prog_AR+set}" = set; then
7258  echo $ECHO_N "(cached) $ECHO_C" >&6
7259else
7260  if test -n "$AR"; then
7261  ac_cv_prog_AR="$AR" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268  for ac_exec_ext in '' $ac_executable_extensions; do
7269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270    ac_cv_prog_AR="${ac_tool_prefix}ar"
7271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275done
7276
7277fi
7278fi
7279AR=$ac_cv_prog_AR
7280if test -n "$AR"; then
7281  echo "$as_me:$LINENO: result: $AR" >&5
7282echo "${ECHO_T}$AR" >&6
7283else
7284  echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6
7286fi
7287
7288fi
7289if test -z "$ac_cv_prog_AR"; then
7290  ac_ct_AR=$AR
7291  # Extract the first word of "ar", so it can be a program name with args.
7292set dummy ar; ac_word=$2
7293echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7296  echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298  if test -n "$ac_ct_AR"; then
7299  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304  IFS=$as_save_IFS
7305  test -z "$as_dir" && as_dir=.
7306  for ac_exec_ext in '' $ac_executable_extensions; do
7307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308    ac_cv_prog_ac_ct_AR="ar"
7309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310    break 2
7311  fi
7312done
7313done
7314
7315  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7316fi
7317fi
7318ac_ct_AR=$ac_cv_prog_ac_ct_AR
7319if test -n "$ac_ct_AR"; then
7320  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7321echo "${ECHO_T}$ac_ct_AR" >&6
7322else
7323  echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
7325fi
7326
7327  AR=$ac_ct_AR
7328else
7329  AR="$ac_cv_prog_AR"
7330fi
7331
7332if test -n "$ac_tool_prefix"; then
7333  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7334set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7335echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337if test "${ac_cv_prog_RANLIB+set}" = set; then
7338  echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340  if test -n "$RANLIB"; then
7341  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346  IFS=$as_save_IFS
7347  test -z "$as_dir" && as_dir=.
7348  for ac_exec_ext in '' $ac_executable_extensions; do
7349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352    break 2
7353  fi
7354done
7355done
7356
7357fi
7358fi
7359RANLIB=$ac_cv_prog_RANLIB
7360if test -n "$RANLIB"; then
7361  echo "$as_me:$LINENO: result: $RANLIB" >&5
7362echo "${ECHO_T}$RANLIB" >&6
7363else
7364  echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
7366fi
7367
7368fi
7369if test -z "$ac_cv_prog_RANLIB"; then
7370  ac_ct_RANLIB=$RANLIB
7371  # Extract the first word of "ranlib", so it can be a program name with args.
7372set dummy ranlib; ac_word=$2
7373echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7375if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7376  echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378  if test -n "$ac_ct_RANLIB"; then
7379  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7380else
7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384  IFS=$as_save_IFS
7385  test -z "$as_dir" && as_dir=.
7386  for ac_exec_ext in '' $ac_executable_extensions; do
7387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388    ac_cv_prog_ac_ct_RANLIB="ranlib"
7389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390    break 2
7391  fi
7392done
7393done
7394
7395  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7396fi
7397fi
7398ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7399if test -n "$ac_ct_RANLIB"; then
7400  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7401echo "${ECHO_T}$ac_ct_RANLIB" >&6
7402else
7403  echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6
7405fi
7406
7407  RANLIB=$ac_ct_RANLIB
7408else
7409  RANLIB="$ac_cv_prog_RANLIB"
7410fi
7411
7412if test -n "$ac_tool_prefix"; then
7413  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7414set dummy ${ac_tool_prefix}strip; ac_word=$2
7415echo "$as_me:$LINENO: checking for $ac_word" >&5
7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7417if test "${ac_cv_prog_STRIP+set}" = set; then
7418  echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420  if test -n "$STRIP"; then
7421  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7422else
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426  IFS=$as_save_IFS
7427  test -z "$as_dir" && as_dir=.
7428  for ac_exec_ext in '' $ac_executable_extensions; do
7429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432    break 2
7433  fi
7434done
7435done
7436
7437fi
7438fi
7439STRIP=$ac_cv_prog_STRIP
7440if test -n "$STRIP"; then
7441  echo "$as_me:$LINENO: result: $STRIP" >&5
7442echo "${ECHO_T}$STRIP" >&6
7443else
7444  echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6
7446fi
7447
7448fi
7449if test -z "$ac_cv_prog_STRIP"; then
7450  ac_ct_STRIP=$STRIP
7451  # Extract the first word of "strip", so it can be a program name with args.
7452set dummy strip; ac_word=$2
7453echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7456  echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458  if test -n "$ac_ct_STRIP"; then
7459  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466  for ac_exec_ext in '' $ac_executable_extensions; do
7467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_ac_ct_STRIP="strip"
7469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473done
7474
7475  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7476fi
7477fi
7478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7479if test -n "$ac_ct_STRIP"; then
7480  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7481echo "${ECHO_T}$ac_ct_STRIP" >&6
7482else
7483  echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6
7485fi
7486
7487  STRIP=$ac_ct_STRIP
7488else
7489  STRIP="$ac_cv_prog_STRIP"
7490fi
7491
7492
7493old_CC="$CC"
7494old_CFLAGS="$CFLAGS"
7495
7496# Set sane defaults for various variables
7497test -z "$AR" && AR=ar
7498test -z "$AR_FLAGS" && AR_FLAGS=cru
7499test -z "$AS" && AS=as
7500test -z "$CC" && CC=cc
7501test -z "$LTCC" && LTCC=$CC
7502test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7503test -z "$DLLTOOL" && DLLTOOL=dlltool
7504test -z "$LD" && LD=ld
7505test -z "$LN_S" && LN_S="ln -s"
7506test -z "$MAGIC_CMD" && MAGIC_CMD=file
7507test -z "$NM" && NM=nm
7508test -z "$SED" && SED=sed
7509test -z "$OBJDUMP" && OBJDUMP=objdump
7510test -z "$RANLIB" && RANLIB=:
7511test -z "$STRIP" && STRIP=:
7512test -z "$ac_objext" && ac_objext=o
7513
7514# Determine commands to create old-style static archives.
7515old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7516old_postinstall_cmds='chmod 644 $oldlib'
7517old_postuninstall_cmds=
7518
7519if test -n "$RANLIB"; then
7520  case $host_os in
7521  openbsd*)
7522    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7523    ;;
7524  *)
7525    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7526    ;;
7527  esac
7528  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7529fi
7530
7531for cc_temp in $compiler""; do
7532  case $cc_temp in
7533    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7534    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7535    \-*) ;;
7536    *) break;;
7537  esac
7538done
7539cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7540
7541
7542# Only perform the check for file, if the check method requires it
7543case $deplibs_check_method in
7544file_magic*)
7545  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7546    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7547echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7548if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  case $MAGIC_CMD in
7552[\\/*] |  ?:[\\/]*)
7553  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7554  ;;
7555*)
7556  lt_save_MAGIC_CMD="$MAGIC_CMD"
7557  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7559  for ac_dir in $ac_dummy; do
7560    IFS="$lt_save_ifs"
7561    test -z "$ac_dir" && ac_dir=.
7562    if test -f $ac_dir/${ac_tool_prefix}file; then
7563      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7564      if test -n "$file_magic_test_file"; then
7565        case $deplibs_check_method in
7566        "file_magic "*)
7567          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7568          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7570            $EGREP "$file_magic_regex" > /dev/null; then
7571            :
7572          else
7573            cat <<EOF 1>&2
7574
7575*** Warning: the command libtool uses to detect shared libraries,
7576*** $file_magic_cmd, produces output that libtool cannot recognize.
7577*** The result is that libtool may fail to recognize shared libraries
7578*** as such.  This will affect the creation of libtool libraries that
7579*** depend on shared libraries, but programs linked with such libtool
7580*** libraries will work regardless of this problem.  Nevertheless, you
7581*** may want to report the problem to your system manager and/or to
7582*** bug-libtool@gnu.org
7583
7584EOF
7585          fi ;;
7586        esac
7587      fi
7588      break
7589    fi
7590  done
7591  IFS="$lt_save_ifs"
7592  MAGIC_CMD="$lt_save_MAGIC_CMD"
7593  ;;
7594esac
7595fi
7596
7597MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7598if test -n "$MAGIC_CMD"; then
7599  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7600echo "${ECHO_T}$MAGIC_CMD" >&6
7601else
7602  echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6
7604fi
7605
7606if test -z "$lt_cv_path_MAGIC_CMD"; then
7607  if test -n "$ac_tool_prefix"; then
7608    echo "$as_me:$LINENO: checking for file" >&5
7609echo $ECHO_N "checking for file... $ECHO_C" >&6
7610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7611  echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613  case $MAGIC_CMD in
7614[\\/*] |  ?:[\\/]*)
7615  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7616  ;;
7617*)
7618  lt_save_MAGIC_CMD="$MAGIC_CMD"
7619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7621  for ac_dir in $ac_dummy; do
7622    IFS="$lt_save_ifs"
7623    test -z "$ac_dir" && ac_dir=.
7624    if test -f $ac_dir/file; then
7625      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7626      if test -n "$file_magic_test_file"; then
7627        case $deplibs_check_method in
7628        "file_magic "*)
7629          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7630          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7632            $EGREP "$file_magic_regex" > /dev/null; then
7633            :
7634          else
7635            cat <<EOF 1>&2
7636
7637*** Warning: the command libtool uses to detect shared libraries,
7638*** $file_magic_cmd, produces output that libtool cannot recognize.
7639*** The result is that libtool may fail to recognize shared libraries
7640*** as such.  This will affect the creation of libtool libraries that
7641*** depend on shared libraries, but programs linked with such libtool
7642*** libraries will work regardless of this problem.  Nevertheless, you
7643*** may want to report the problem to your system manager and/or to
7644*** bug-libtool@gnu.org
7645
7646EOF
7647          fi ;;
7648        esac
7649      fi
7650      break
7651    fi
7652  done
7653  IFS="$lt_save_ifs"
7654  MAGIC_CMD="$lt_save_MAGIC_CMD"
7655  ;;
7656esac
7657fi
7658
7659MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660if test -n "$MAGIC_CMD"; then
7661  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7662echo "${ECHO_T}$MAGIC_CMD" >&6
7663else
7664  echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
7666fi
7667
7668  else
7669    MAGIC_CMD=:
7670  fi
7671fi
7672
7673  fi
7674  ;;
7675esac
7676
7677enable_dlopen=no
7678enable_win32_dll=no
7679
7680# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7681if test "${enable_libtool_lock+set}" = set; then
7682  enableval="$enable_libtool_lock"
7683
7684fi;
7685test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7686
7687
7688# Check whether --with-pic or --without-pic was given.
7689if test "${with_pic+set}" = set; then
7690  withval="$with_pic"
7691  pic_mode="$withval"
7692else
7693  pic_mode=default
7694fi;
7695test -z "$pic_mode" && pic_mode=default
7696
7697# Use C for the default configuration in the libtool script
7698tagname=
7699lt_save_CC="$CC"
7700ac_ext=c
7701ac_cpp='$CPP $CPPFLAGS'
7702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707# Source file extension for C test sources.
7708ac_ext=c
7709
7710# Object file extension for compiled C test sources.
7711objext=o
7712objext=$objext
7713
7714# Code to be used in simple compile tests
7715lt_simple_compile_test_code="int some_variable = 0;\n"
7716
7717# Code to be used in simple link tests
7718lt_simple_link_test_code='int main(){return(0);}\n'
7719
7720
7721# If no C compiler was specified, use CC.
7722LTCC=${LTCC-"$CC"}
7723
7724# If no C compiler flags were specified, use CFLAGS.
7725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7726
7727# Allow CC to be a program name with arguments.
7728compiler=$CC
7729
7730
7731# save warnings/boilerplate of simple test code
7732ac_outfile=conftest.$ac_objext
7733printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7734eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7735_lt_compiler_boilerplate=`cat conftest.err`
7736$rm conftest*
7737
7738ac_outfile=conftest.$ac_objext
7739printf "$lt_simple_link_test_code" >conftest.$ac_ext
7740eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7741_lt_linker_boilerplate=`cat conftest.err`
7742$rm conftest*
7743
7744
7745## CAVEAT EMPTOR:
7746## There is no encapsulation within the following macros, do not change
7747## the running order or otherwise move them around unless you know exactly
7748## what you are doing...
7749
7750lt_prog_compiler_no_builtin_flag=
7751
7752if test "$GCC" = yes; then
7753  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7754
7755
7756echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7757echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7758if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7759  echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761  lt_cv_prog_compiler_rtti_exceptions=no
7762  ac_outfile=conftest.$ac_objext
7763   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7764   lt_compiler_flag="-fno-rtti -fno-exceptions"
7765   # Insert the option either (1) after the last *FLAGS variable, or
7766   # (2) before a word containing "conftest.", or (3) at the end.
7767   # Note that $ac_compile itself does not contain backslashes and begins
7768   # with a dollar sign (not a hyphen), so the echo should work correctly.
7769   # The option is referenced via a variable to avoid confusing sed.
7770   lt_compile=`echo "$ac_compile" | $SED \
7771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773   -e 's:$: $lt_compiler_flag:'`
7774   (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
7775   (eval "$lt_compile" 2>conftest.err)
7776   ac_status=$?
7777   cat conftest.err >&5
7778   echo "$as_me:7778: \$? = $ac_status" >&5
7779   if (exit $ac_status) && test -s "$ac_outfile"; then
7780     # The compiler can only warn and ignore the option if not recognized
7781     # So say no if there are warnings other than the usual output.
7782     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7785       lt_cv_prog_compiler_rtti_exceptions=yes
7786     fi
7787   fi
7788   $rm conftest*
7789
7790fi
7791echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7792echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7793
7794if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7795    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7796else
7797    :
7798fi
7799
7800fi
7801
7802lt_prog_compiler_wl=
7803lt_prog_compiler_pic=
7804lt_prog_compiler_static=
7805
7806echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7807echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7808
7809  if test "$GCC" = yes; then
7810    lt_prog_compiler_wl='-Wl,'
7811    lt_prog_compiler_static='-static'
7812
7813    case $host_os in
7814      aix*)
7815      # All AIX code is PIC.
7816      if test "$host_cpu" = ia64; then
7817        # AIX 5 now supports IA64 processor
7818        lt_prog_compiler_static='-Bstatic'
7819      fi
7820      ;;
7821
7822    amigaos*)
7823      # FIXME: we need at least 68020 code to build shared libraries, but
7824      # adding the `-m68020' flag to GCC prevents building anything better,
7825      # like `-m68040'.
7826      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7827      ;;
7828
7829    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7830      # PIC is the default for these OSes.
7831      ;;
7832
7833    mingw* | pw32* | os2*)
7834      # This hack is so that the source file can tell whether it is being
7835      # built for inclusion in a dll (and should export symbols for example).
7836      lt_prog_compiler_pic='-DDLL_EXPORT'
7837      ;;
7838
7839    darwin* | rhapsody*)
7840      # PIC is the default on this platform
7841      # Common symbols not allowed in MH_DYLIB files
7842      lt_prog_compiler_pic='-fno-common'
7843      ;;
7844
7845    interix3*)
7846      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7847      # Instead, we relocate shared libraries at runtime.
7848      ;;
7849
7850    msdosdjgpp*)
7851      # Just because we use GCC doesn't mean we suddenly get shared libraries
7852      # on systems that don't support them.
7853      lt_prog_compiler_can_build_shared=no
7854      enable_shared=no
7855      ;;
7856
7857    sysv4*MP*)
7858      if test -d /usr/nec; then
7859        lt_prog_compiler_pic=-Kconform_pic
7860      fi
7861      ;;
7862
7863    hpux*)
7864      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7865      # not for PA HP-UX.
7866      case $host_cpu in
7867      hppa*64*|ia64*)
7868        # +Z the default
7869        ;;
7870      *)
7871        lt_prog_compiler_pic='-fPIC'
7872        ;;
7873      esac
7874      ;;
7875
7876    *)
7877      lt_prog_compiler_pic='-fPIC'
7878      ;;
7879    esac
7880  else
7881    # PORTME Check for flag to pass linker flags through the system compiler.
7882    case $host_os in
7883    aix*)
7884      lt_prog_compiler_wl='-Wl,'
7885      if test "$host_cpu" = ia64; then
7886        # AIX 5 now supports IA64 processor
7887        lt_prog_compiler_static='-Bstatic'
7888      else
7889        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7890      fi
7891      ;;
7892      darwin*)
7893        # PIC is the default on this platform
7894        # Common symbols not allowed in MH_DYLIB files
7895       case $cc_basename in
7896         xlc*)
7897         lt_prog_compiler_pic='-qnocommon'
7898         lt_prog_compiler_wl='-Wl,'
7899         ;;
7900       esac
7901       ;;
7902
7903    mingw* | pw32* | os2*)
7904      # This hack is so that the source file can tell whether it is being
7905      # built for inclusion in a dll (and should export symbols for example).
7906      lt_prog_compiler_pic='-DDLL_EXPORT'
7907      ;;
7908
7909    hpux9* | hpux10* | hpux11*)
7910      lt_prog_compiler_wl='-Wl,'
7911      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7912      # not for PA HP-UX.
7913      case $host_cpu in
7914      hppa*64*|ia64*)
7915        # +Z the default
7916        ;;
7917      *)
7918        lt_prog_compiler_pic='+Z'
7919        ;;
7920      esac
7921      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7922      lt_prog_compiler_static='${wl}-a ${wl}archive'
7923      ;;
7924
7925    irix5* | irix6* | nonstopux*)
7926      lt_prog_compiler_wl='-Wl,'
7927      # PIC (with -KPIC) is the default.
7928      lt_prog_compiler_static='-non_shared'
7929      ;;
7930
7931    newsos6)
7932      lt_prog_compiler_pic='-KPIC'
7933      lt_prog_compiler_static='-Bstatic'
7934      ;;
7935
7936    linux*)
7937      case $cc_basename in
7938      icc* | ecc*)
7939        lt_prog_compiler_wl='-Wl,'
7940        lt_prog_compiler_pic='-KPIC'
7941        lt_prog_compiler_static='-static'
7942        ;;
7943      pgcc* | pgf77* | pgf90* | pgf95*)
7944        # Portland Group compilers (*not* the Pentium gcc compiler,
7945        # which looks to be a dead project)
7946        lt_prog_compiler_wl='-Wl,'
7947        lt_prog_compiler_pic='-fpic'
7948        lt_prog_compiler_static='-Bstatic'
7949        ;;
7950      ccc*)
7951        lt_prog_compiler_wl='-Wl,'
7952        # All Alpha code is PIC.
7953        lt_prog_compiler_static='-non_shared'
7954        ;;
7955      esac
7956      ;;
7957
7958    osf3* | osf4* | osf5*)
7959      lt_prog_compiler_wl='-Wl,'
7960      # All OSF/1 code is PIC.
7961      lt_prog_compiler_static='-non_shared'
7962      ;;
7963
7964    solaris*)
7965      lt_prog_compiler_pic='-KPIC'
7966      lt_prog_compiler_static='-Bstatic'
7967      case $cc_basename in
7968      f77* | f90* | f95*)
7969        lt_prog_compiler_wl='-Qoption ld ';;
7970      *)
7971        lt_prog_compiler_wl='-Wl,';;
7972      esac
7973      ;;
7974
7975    sunos4*)
7976      lt_prog_compiler_wl='-Qoption ld '
7977      lt_prog_compiler_pic='-PIC'
7978      lt_prog_compiler_static='-Bstatic'
7979      ;;
7980
7981    sysv4 | sysv4.2uw2* | sysv4.3*)
7982      lt_prog_compiler_wl='-Wl,'
7983      lt_prog_compiler_pic='-KPIC'
7984      lt_prog_compiler_static='-Bstatic'
7985      ;;
7986
7987    sysv4*MP*)
7988      if test -d /usr/nec ;then
7989        lt_prog_compiler_pic='-Kconform_pic'
7990        lt_prog_compiler_static='-Bstatic'
7991      fi
7992      ;;
7993
7994    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7995      lt_prog_compiler_wl='-Wl,'
7996      lt_prog_compiler_pic='-KPIC'
7997      lt_prog_compiler_static='-Bstatic'
7998      ;;
7999
8000    unicos*)
8001      lt_prog_compiler_wl='-Wl,'
8002      lt_prog_compiler_can_build_shared=no
8003      ;;
8004
8005    uts4*)
8006      lt_prog_compiler_pic='-pic'
8007      lt_prog_compiler_static='-Bstatic'
8008      ;;
8009
8010    *)
8011      lt_prog_compiler_can_build_shared=no
8012      ;;
8013    esac
8014  fi
8015
8016echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8017echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8018
8019#
8020# Check to make sure the PIC flag actually works.
8021#
8022if test -n "$lt_prog_compiler_pic"; then
8023
8024echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8025echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8026if test "${lt_prog_compiler_pic_works+set}" = set; then
8027  echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029  lt_prog_compiler_pic_works=no
8030  ac_outfile=conftest.$ac_objext
8031   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8032   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8033   # Insert the option either (1) after the last *FLAGS variable, or
8034   # (2) before a word containing "conftest.", or (3) at the end.
8035   # Note that $ac_compile itself does not contain backslashes and begins
8036   # with a dollar sign (not a hyphen), so the echo should work correctly.
8037   # The option is referenced via a variable to avoid confusing sed.
8038   lt_compile=`echo "$ac_compile" | $SED \
8039   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041   -e 's:$: $lt_compiler_flag:'`
8042   (eval echo "\"\$as_me:8042: $lt_compile\"" >&5)
8043   (eval "$lt_compile" 2>conftest.err)
8044   ac_status=$?
8045   cat conftest.err >&5
8046   echo "$as_me:8046: \$? = $ac_status" >&5
8047   if (exit $ac_status) && test -s "$ac_outfile"; then
8048     # The compiler can only warn and ignore the option if not recognized
8049     # So say no if there are warnings other than the usual output.
8050     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8051     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8053       lt_prog_compiler_pic_works=yes
8054     fi
8055   fi
8056   $rm conftest*
8057
8058fi
8059echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8060echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8061
8062if test x"$lt_prog_compiler_pic_works" = xyes; then
8063    case $lt_prog_compiler_pic in
8064     "" | " "*) ;;
8065     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8066     esac
8067else
8068    lt_prog_compiler_pic=
8069     lt_prog_compiler_can_build_shared=no
8070fi
8071
8072fi
8073case $host_os in
8074  # For platforms which do not support PIC, -DPIC is meaningless:
8075  *djgpp*)
8076    lt_prog_compiler_pic=
8077    ;;
8078  *)
8079    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8080    ;;
8081esac
8082
8083#
8084# Check to make sure the static flag actually works.
8085#
8086wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8087echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8088echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8089if test "${lt_prog_compiler_static_works+set}" = set; then
8090  echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092  lt_prog_compiler_static_works=no
8093   save_LDFLAGS="$LDFLAGS"
8094   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8095   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8096   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8097     # The linker can only warn and ignore the option if not recognized
8098     # So say no if there are warnings
8099     if test -s conftest.err; then
8100       # Append any errors to the config.log.
8101       cat conftest.err 1>&5
8102       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8103       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8104       if diff conftest.exp conftest.er2 >/dev/null; then
8105         lt_prog_compiler_static_works=yes
8106       fi
8107     else
8108       lt_prog_compiler_static_works=yes
8109     fi
8110   fi
8111   $rm conftest*
8112   LDFLAGS="$save_LDFLAGS"
8113
8114fi
8115echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8116echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8117
8118if test x"$lt_prog_compiler_static_works" = xyes; then
8119    :
8120else
8121    lt_prog_compiler_static=
8122fi
8123
8124
8125echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8126echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8127if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8128  echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130  lt_cv_prog_compiler_c_o=no
8131   $rm -r conftest 2>/dev/null
8132   mkdir conftest
8133   cd conftest
8134   mkdir out
8135   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8136
8137   lt_compiler_flag="-o out/conftest2.$ac_objext"
8138   # Insert the option either (1) after the last *FLAGS variable, or
8139   # (2) before a word containing "conftest.", or (3) at the end.
8140   # Note that $ac_compile itself does not contain backslashes and begins
8141   # with a dollar sign (not a hyphen), so the echo should work correctly.
8142   lt_compile=`echo "$ac_compile" | $SED \
8143   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8145   -e 's:$: $lt_compiler_flag:'`
8146   (eval echo "\"\$as_me:8146: $lt_compile\"" >&5)
8147   (eval "$lt_compile" 2>out/conftest.err)
8148   ac_status=$?
8149   cat out/conftest.err >&5
8150   echo "$as_me:8150: \$? = $ac_status" >&5
8151   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8152   then
8153     # The compiler can only warn and ignore the option if not recognized
8154     # So say no if there are warnings
8155     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8156     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8157     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8158       lt_cv_prog_compiler_c_o=yes
8159     fi
8160   fi
8161   chmod u+w . 2>&5
8162   $rm conftest*
8163   # SGI C++ compiler will create directory out/ii_files/ for
8164   # template instantiation
8165   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8166   $rm out/* && rmdir out
8167   cd ..
8168   rmdir conftest
8169   $rm conftest*
8170
8171fi
8172echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8173echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8174
8175
8176hard_links="nottested"
8177if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8178  # do not overwrite the value of need_locks provided by the user
8179  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8180echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8181  hard_links=yes
8182  $rm conftest*
8183  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8184  touch conftest.a
8185  ln conftest.a conftest.b 2>&5 || hard_links=no
8186  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8187  echo "$as_me:$LINENO: result: $hard_links" >&5
8188echo "${ECHO_T}$hard_links" >&6
8189  if test "$hard_links" = no; then
8190    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8191echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8192    need_locks=warn
8193  fi
8194else
8195  need_locks=no
8196fi
8197
8198echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8199echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8200
8201  runpath_var=
8202  allow_undefined_flag=
8203  enable_shared_with_static_runtimes=no
8204  archive_cmds=
8205  archive_expsym_cmds=
8206  old_archive_From_new_cmds=
8207  old_archive_from_expsyms_cmds=
8208  export_dynamic_flag_spec=
8209  whole_archive_flag_spec=
8210  thread_safe_flag_spec=
8211  hardcode_libdir_flag_spec=
8212  hardcode_libdir_flag_spec_ld=
8213  hardcode_libdir_separator=
8214  hardcode_direct=no
8215  hardcode_minus_L=no
8216  hardcode_shlibpath_var=unsupported
8217  link_all_deplibs=unknown
8218  hardcode_automatic=no
8219  module_cmds=
8220  module_expsym_cmds=
8221  always_export_symbols=no
8222  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8223  # include_expsyms should be a list of space-separated symbols to be *always*
8224  # included in the symbol list
8225  include_expsyms=
8226  # exclude_expsyms can be an extended regexp of symbols to exclude
8227  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8228  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8229  # as well as any symbol that contains `d'.
8230  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8231  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8232  # platforms (ab)use it in PIC code, but their linkers get confused if
8233  # the symbol is explicitly referenced.  Since portable code cannot
8234  # rely on this symbol name, it's probably fine to never include it in
8235  # preloaded symbol tables.
8236  extract_expsyms_cmds=
8237  # Just being paranoid about ensuring that cc_basename is set.
8238  for cc_temp in $compiler""; do
8239  case $cc_temp in
8240    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8241    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8242    \-*) ;;
8243    *) break;;
8244  esac
8245done
8246cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8247
8248  case $host_os in
8249  cygwin* | mingw* | pw32*)
8250    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8251    # When not using gcc, we currently assume that we are using
8252    # Microsoft Visual C++.
8253    if test "$GCC" != yes; then
8254      with_gnu_ld=no
8255    fi
8256    ;;
8257  interix*)
8258    # we just hope/assume this is gcc and not c89 (= MSVC++)
8259    with_gnu_ld=yes
8260    ;;
8261  openbsd*)
8262    with_gnu_ld=no
8263    ;;
8264  esac
8265
8266  ld_shlibs=yes
8267  if test "$with_gnu_ld" = yes; then
8268    # If archive_cmds runs LD, not CC, wlarc should be empty
8269    wlarc='${wl}'
8270
8271    # Set some defaults for GNU ld with shared library support. These
8272    # are reset later if shared libraries are not supported. Putting them
8273    # here allows them to be overridden if necessary.
8274    runpath_var=LD_RUN_PATH
8275    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8276    export_dynamic_flag_spec='${wl}--export-dynamic'
8277    # ancient GNU ld didn't support --whole-archive et. al.
8278    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8279        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8280      else
8281        whole_archive_flag_spec=
8282    fi
8283    supports_anon_versioning=no
8284    case `$LD -v 2>/dev/null` in
8285      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8286      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8287      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8288      *\ 2.11.*) ;; # other 2.11 versions
8289      *) supports_anon_versioning=yes ;;
8290    esac
8291
8292    # See if GNU ld supports shared libraries.
8293    case $host_os in
8294    aix3* | aix4* | aix5*)
8295      # On AIX/PPC, the GNU linker is very broken
8296      if test "$host_cpu" != ia64; then
8297        ld_shlibs=no
8298        cat <<EOF 1>&2
8299
8300*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8301*** to be unable to reliably create shared libraries on AIX.
8302*** Therefore, libtool is disabling shared libraries support.  If you
8303*** really care for shared libraries, you may want to modify your PATH
8304*** so that a non-GNU linker is found, and then restart.
8305
8306EOF
8307      fi
8308      ;;
8309
8310    amigaos*)
8311      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)'
8312      hardcode_libdir_flag_spec='-L$libdir'
8313      hardcode_minus_L=yes
8314
8315      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8316      # that the semantics of dynamic libraries on AmigaOS, at least up
8317      # to version 4, is to share data among multiple programs linked
8318      # with the same dynamic library.  Since this doesn't match the
8319      # behavior of shared libraries on other platforms, we can't use
8320      # them.
8321      ld_shlibs=no
8322      ;;
8323
8324    beos*)
8325      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326        allow_undefined_flag=unsupported
8327        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8328        # support --undefined.  This deserves some investigation.  FIXME
8329        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330      else
8331        ld_shlibs=no
8332      fi
8333      ;;
8334
8335    cygwin* | mingw* | pw32*)
8336      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8337      # as there is no search path for DLLs.
8338      hardcode_libdir_flag_spec='-L$libdir'
8339      allow_undefined_flag=unsupported
8340      always_export_symbols=no
8341      enable_shared_with_static_runtimes=yes
8342      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8343
8344      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8345        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8346        # If the export-symbols file already is a .def file (1st line
8347        # is EXPORTS), use it as is; otherwise, prepend...
8348        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8349          cp $export_symbols $output_objdir/$soname.def;
8350        else
8351          echo EXPORTS > $output_objdir/$soname.def;
8352          cat $export_symbols >> $output_objdir/$soname.def;
8353        fi~
8354        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8355      else
8356        ld_shlibs=no
8357      fi
8358      ;;
8359
8360    interix3*)
8361      hardcode_direct=no
8362      hardcode_shlibpath_var=no
8363      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364      export_dynamic_flag_spec='${wl}-E'
8365      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8366      # Instead, shared libraries are loaded at an image base (0x10000000 by
8367      # default) and relocated if they conflict, which is a slow very memory
8368      # consuming and fragmenting process.  To avoid this, we pick a random,
8369      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8370      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8371      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8372      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'
8373      ;;
8374
8375    linux*)
8376      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8377        tmp_addflag=
8378        case $cc_basename,$host_cpu in
8379        pgcc*)                          # Portland Group C compiler
8380          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'
8381          tmp_addflag=' $pic_flag'
8382          ;;
8383        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8384          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'
8385          tmp_addflag=' $pic_flag -Mnomain' ;;
8386        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8387          tmp_addflag=' -i_dynamic' ;;
8388        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8389          tmp_addflag=' -i_dynamic -nofor_main' ;;
8390        ifc* | ifort*)                  # Intel Fortran compiler
8391          tmp_addflag=' -nofor_main' ;;
8392        esac
8393        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8394
8395        if test $supports_anon_versioning = yes; then
8396          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8397  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8398  $echo "local: *; };" >> $output_objdir/$libname.ver~
8399          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8400        fi
8401      else
8402        ld_shlibs=no
8403      fi
8404      ;;
8405
8406    netbsd*)
8407      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8408        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8409        wlarc=
8410      else
8411        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8412        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8413      fi
8414      ;;
8415
8416    solaris*)
8417      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8418        ld_shlibs=no
8419        cat <<EOF 1>&2
8420
8421*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8422*** create shared libraries on Solaris systems.  Therefore, libtool
8423*** is disabling shared libraries support.  We urge you to upgrade GNU
8424*** binutils to release 2.9.1 or newer.  Another option is to modify
8425*** your PATH or compiler configuration so that the native linker is
8426*** used, and then restart.
8427
8428EOF
8429      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8430        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8431        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8432      else
8433        ld_shlibs=no
8434      fi
8435      ;;
8436
8437    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8438      case `$LD -v 2>&1` in
8439        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8440        ld_shlibs=no
8441        cat <<_LT_EOF 1>&2
8442
8443*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8444*** reliably create shared libraries on SCO systems.  Therefore, libtool
8445*** is disabling shared libraries support.  We urge you to upgrade GNU
8446*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8447*** your PATH or compiler configuration so that the native linker is
8448*** used, and then restart.
8449
8450_LT_EOF
8451        ;;
8452        *)
8453          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8454            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8455            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8456            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8457          else
8458            ld_shlibs=no
8459          fi
8460        ;;
8461      esac
8462      ;;
8463
8464    sunos4*)
8465      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466      wlarc=
8467      hardcode_direct=yes
8468      hardcode_shlibpath_var=no
8469      ;;
8470
8471    *)
8472      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8473        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8475      else
8476        ld_shlibs=no
8477      fi
8478      ;;
8479    esac
8480
8481    if test "$ld_shlibs" = no; then
8482      runpath_var=
8483      hardcode_libdir_flag_spec=
8484      export_dynamic_flag_spec=
8485      whole_archive_flag_spec=
8486    fi
8487  else
8488    # PORTME fill in a description of your system's linker (not GNU ld)
8489    case $host_os in
8490    aix3*)
8491      allow_undefined_flag=unsupported
8492      always_export_symbols=yes
8493      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'
8494      # Note: this linker hardcodes the directories in LIBPATH if there
8495      # are no directories specified by -L.
8496      hardcode_minus_L=yes
8497      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8498        # Neither direct hardcoding nor static linking is supported with a
8499        # broken collect2.
8500        hardcode_direct=unsupported
8501      fi
8502      ;;
8503
8504    aix4* | aix5*)
8505      if test "$host_cpu" = ia64; then
8506        # On IA64, the linker does run time linking by default, so we don't
8507        # have to do anything special.
8508        aix_use_runtimelinking=no
8509        exp_sym_flag='-Bexport'
8510        no_entry_flag=""
8511      else
8512        # If we're using GNU nm, then we don't want the "-C" option.
8513        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8514        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8515          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'
8516        else
8517          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'
8518        fi
8519        aix_use_runtimelinking=no
8520
8521        # Test if we are trying to use run time linking or normal
8522        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8523        # need to do runtime linking.
8524        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8525          for ld_flag in $LDFLAGS; do
8526          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8527            aix_use_runtimelinking=yes
8528            break
8529          fi
8530          done
8531          ;;
8532        esac
8533
8534        exp_sym_flag='-bexport'
8535        no_entry_flag='-bnoentry'
8536      fi
8537
8538      # When large executables or shared objects are built, AIX ld can
8539      # have problems creating the table of contents.  If linking a library
8540      # or program results in "error TOC overflow" add -mminimal-toc to
8541      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8542      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8543
8544      archive_cmds=''
8545      hardcode_direct=yes
8546      hardcode_libdir_separator=':'
8547      link_all_deplibs=yes
8548
8549      if test "$GCC" = yes; then
8550        case $host_os in aix4.[012]|aix4.[012].*)
8551        # We only want to do this on AIX 4.2 and lower, the check
8552        # below for broken collect2 doesn't work under 4.3+
8553          collect2name=`${CC} -print-prog-name=collect2`
8554          if test -f "$collect2name" && \
8555           strings "$collect2name" | grep resolve_lib_name >/dev/null
8556          then
8557          # We have reworked collect2
8558          hardcode_direct=yes
8559          else
8560          # We have old collect2
8561          hardcode_direct=unsupported
8562          # It fails to find uninstalled libraries when the uninstalled
8563          # path is not listed in the libpath.  Setting hardcode_minus_L
8564          # to unsupported forces relinking
8565          hardcode_minus_L=yes
8566          hardcode_libdir_flag_spec='-L$libdir'
8567          hardcode_libdir_separator=
8568          fi
8569          ;;
8570        esac
8571        shared_flag='-shared'
8572        if test "$aix_use_runtimelinking" = yes; then
8573          shared_flag="$shared_flag "'${wl}-G'
8574        fi
8575      else
8576        # not using gcc
8577        if test "$host_cpu" = ia64; then
8578        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8579        # chokes on -Wl,-G. The following line is correct:
8580          shared_flag='-G'
8581        else
8582          if test "$aix_use_runtimelinking" = yes; then
8583            shared_flag='${wl}-G'
8584          else
8585            shared_flag='${wl}-bM:SRE'
8586          fi
8587        fi
8588      fi
8589
8590      # It seems that -bexpall does not export symbols beginning with
8591      # underscore (_), so it is better to generate a list of symbols to export.
8592      always_export_symbols=yes
8593      if test "$aix_use_runtimelinking" = yes; then
8594        # Warning - without using the other runtime loading flags (-brtl),
8595        # -berok will link without error, but may produce a broken library.
8596        allow_undefined_flag='-berok'
8597       # Determine the default libpath from the value encoded in an empty executable.
8598       cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h.  */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h.  */
8604
8605int
8606main ()
8607{
8608
8609  ;
8610  return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615  (eval $ac_link) 2>conftest.er1
8616  ac_status=$?
8617  grep -v '^ *+' conftest.er1 >conftest.err
8618  rm -f conftest.er1
8619  cat conftest.err >&5
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); } &&
8622         { ac_try='test -z "$ac_c_werror_flag"
8623                         || test ! -s conftest.err'
8624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625  (eval $ac_try) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); }; } &&
8629         { ac_try='test -s conftest$ac_exeext'
8630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631  (eval $ac_try) 2>&5
8632  ac_status=$?
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); }; }; then
8635
8636aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8637}'`
8638# Check for a 64-bit object if we didn't find anything.
8639if 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; }
8640}'`; fi
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645fi
8646rm -f conftest.err conftest.$ac_objext \
8647      conftest$ac_exeext conftest.$ac_ext
8648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8649
8650       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651        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"
8652       else
8653        if test "$host_cpu" = ia64; then
8654          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8655          allow_undefined_flag="-z nodefs"
8656          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"
8657        else
8658         # Determine the default libpath from the value encoded in an empty executable.
8659         cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h.  */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h.  */
8665
8666int
8667main ()
8668{
8669
8670  ;
8671  return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext conftest$ac_exeext
8675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676  (eval $ac_link) 2>conftest.er1
8677  ac_status=$?
8678  grep -v '^ *+' conftest.er1 >conftest.err
8679  rm -f conftest.er1
8680  cat conftest.err >&5
8681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682  (exit $ac_status); } &&
8683         { ac_try='test -z "$ac_c_werror_flag"
8684                         || test ! -s conftest.err'
8685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686  (eval $ac_try) 2>&5
8687  ac_status=$?
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); }; } &&
8690         { ac_try='test -s conftest$ac_exeext'
8691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692  (eval $ac_try) 2>&5
8693  ac_status=$?
8694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695  (exit $ac_status); }; }; then
8696
8697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8698}'`
8699# Check for a 64-bit object if we didn't find anything.
8700if 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; }
8701}'`; fi
8702else
8703  echo "$as_me: failed program was:" >&5
8704sed 's/^/| /' conftest.$ac_ext >&5
8705
8706fi
8707rm -f conftest.err conftest.$ac_objext \
8708      conftest$ac_exeext conftest.$ac_ext
8709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8710
8711         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8712          # Warning - without using the other run time loading flags,
8713          # -berok will link without error, but may produce a broken library.
8714          no_undefined_flag=' ${wl}-bernotok'
8715          allow_undefined_flag=' ${wl}-berok'
8716          # Exported symbols can be pulled into shared objects from archives
8717          whole_archive_flag_spec='$convenience'
8718          archive_cmds_need_lc=yes
8719          # This is similar to how AIX traditionally builds its shared libraries.
8720          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'
8721        fi
8722      fi
8723      ;;
8724
8725    amigaos*)
8726      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)'
8727      hardcode_libdir_flag_spec='-L$libdir'
8728      hardcode_minus_L=yes
8729      # see comment about different semantics on the GNU ld section
8730      ld_shlibs=no
8731      ;;
8732
8733    bsdi[45]*)
8734      export_dynamic_flag_spec=-rdynamic
8735      ;;
8736
8737    cygwin* | mingw* | pw32*)
8738      # When not using gcc, we currently assume that we are using
8739      # Microsoft Visual C++.
8740      # hardcode_libdir_flag_spec is actually meaningless, as there is
8741      # no search path for DLLs.
8742      hardcode_libdir_flag_spec=' '
8743      allow_undefined_flag=unsupported
8744      # Tell ltmain to make .lib files, not .a files.
8745      libext=lib
8746      # Tell ltmain to make .dll files, not .so files.
8747      shrext_cmds=".dll"
8748      # FIXME: Setting linknames here is a bad hack.
8749      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8750      # The linker will automatically build a .lib file if we build a DLL.
8751      old_archive_From_new_cmds='true'
8752      # FIXME: Should let the user specify the lib program.
8753      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8754      fix_srcfile_path='`cygpath -w "$srcfile"`'
8755      enable_shared_with_static_runtimes=yes
8756      ;;
8757
8758    darwin* | rhapsody*)
8759      case $host_os in
8760        rhapsody* | darwin1.[012])
8761         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8762         ;;
8763       *) # Darwin 1.3 on
8764         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8765           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8766         else
8767           case ${MACOSX_DEPLOYMENT_TARGET} in
8768             10.[012])
8769               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8770               ;;
8771             10.*)
8772               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8773               ;;
8774           esac
8775         fi
8776         ;;
8777      esac
8778      archive_cmds_need_lc=no
8779      hardcode_direct=no
8780      hardcode_automatic=yes
8781      hardcode_shlibpath_var=unsupported
8782      whole_archive_flag_spec=''
8783      link_all_deplibs=yes
8784    if test "$GCC" = yes ; then
8785        output_verbose_link_cmd='echo'
8786        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8787      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8788      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8789      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}'
8790      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}'
8791    else
8792      case $cc_basename in
8793        xlc*)
8794         output_verbose_link_cmd='echo'
8795         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8796         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8797          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8798         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}'
8799          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}'
8800          ;;
8801       *)
8802         ld_shlibs=no
8803          ;;
8804      esac
8805    fi
8806      ;;
8807
8808    dgux*)
8809      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810      hardcode_libdir_flag_spec='-L$libdir'
8811      hardcode_shlibpath_var=no
8812      ;;
8813
8814    freebsd1*)
8815      ld_shlibs=no
8816      ;;
8817
8818    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8819    # support.  Future versions do this automatically, but an explicit c++rt0.o
8820    # does not break anything, and helps significantly (at the cost of a little
8821    # extra space).
8822    freebsd2.2*)
8823      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8824      hardcode_libdir_flag_spec='-R$libdir'
8825      hardcode_direct=yes
8826      hardcode_shlibpath_var=no
8827      ;;
8828
8829    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8830    freebsd2*)
8831      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8832      hardcode_direct=yes
8833      hardcode_minus_L=yes
8834      hardcode_shlibpath_var=no
8835      ;;
8836
8837    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8838    freebsd* | kfreebsd*-gnu | dragonfly*)
8839      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8840      hardcode_libdir_flag_spec='-R$libdir'
8841      hardcode_direct=yes
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    hpux9*)
8846      if test "$GCC" = yes; then
8847        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'
8848      else
8849        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'
8850      fi
8851      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8852      hardcode_libdir_separator=:
8853      hardcode_direct=yes
8854
8855      # hardcode_minus_L: Not really in the search PATH,
8856      # but as the default location of the library.
8857      hardcode_minus_L=yes
8858      export_dynamic_flag_spec='${wl}-E'
8859      ;;
8860
8861    hpux10*)
8862      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8863        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8864      else
8865        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8866      fi
8867      if test "$with_gnu_ld" = no; then
8868        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8869        hardcode_libdir_separator=:
8870
8871        hardcode_direct=yes
8872        export_dynamic_flag_spec='${wl}-E'
8873
8874        # hardcode_minus_L: Not really in the search PATH,
8875        # but as the default location of the library.
8876        hardcode_minus_L=yes
8877      fi
8878      ;;
8879
8880    hpux11*)
8881      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8882        case $host_cpu in
8883        hppa*64*)
8884          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885          ;;
8886        ia64*)
8887          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8888          ;;
8889        *)
8890          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8891          ;;
8892        esac
8893      else
8894        case $host_cpu in
8895        hppa*64*)
8896          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8897          ;;
8898        ia64*)
8899          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8900          ;;
8901        *)
8902          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8903          ;;
8904        esac
8905      fi
8906      if test "$with_gnu_ld" = no; then
8907        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8908        hardcode_libdir_separator=:
8909
8910        case $host_cpu in
8911        hppa*64*|ia64*)
8912          hardcode_libdir_flag_spec_ld='+b $libdir'
8913          hardcode_direct=no
8914          hardcode_shlibpath_var=no
8915          ;;
8916        *)
8917          hardcode_direct=yes
8918          export_dynamic_flag_spec='${wl}-E'
8919
8920          # hardcode_minus_L: Not really in the search PATH,
8921          # but as the default location of the library.
8922          hardcode_minus_L=yes
8923          ;;
8924        esac
8925      fi
8926      ;;
8927
8928    irix5* | irix6* | nonstopux*)
8929      if test "$GCC" = yes; then
8930        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'
8931      else
8932        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'
8933        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8934      fi
8935      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936      hardcode_libdir_separator=:
8937      link_all_deplibs=yes
8938      ;;
8939
8940    netbsd*)
8941      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8942        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8943      else
8944        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8945      fi
8946      hardcode_libdir_flag_spec='-R$libdir'
8947      hardcode_direct=yes
8948      hardcode_shlibpath_var=no
8949      ;;
8950
8951    newsos6)
8952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953      hardcode_direct=yes
8954      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955      hardcode_libdir_separator=:
8956      hardcode_shlibpath_var=no
8957      ;;
8958
8959    openbsd*)
8960      hardcode_direct=yes
8961      hardcode_shlibpath_var=no
8962      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8963        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8964        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8965        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8966        export_dynamic_flag_spec='${wl}-E'
8967      else
8968       case $host_os in
8969         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8970           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8971           hardcode_libdir_flag_spec='-R$libdir'
8972           ;;
8973         *)
8974           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8975           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8976           ;;
8977       esac
8978      fi
8979      ;;
8980
8981    os2*)
8982      hardcode_libdir_flag_spec='-L$libdir'
8983      hardcode_minus_L=yes
8984      allow_undefined_flag=unsupported
8985      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'
8986      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8987      ;;
8988
8989    osf3*)
8990      if test "$GCC" = yes; then
8991        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8992        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'
8993      else
8994        allow_undefined_flag=' -expect_unresolved \*'
8995        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'
8996      fi
8997      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8998      hardcode_libdir_separator=:
8999      ;;
9000
9001    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9002      if test "$GCC" = yes; then
9003        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9004        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'
9005        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006      else
9007        allow_undefined_flag=' -expect_unresolved \*'
9008        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'
9009        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9010        $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'
9011
9012        # Both c and cxx compiler support -rpath directly
9013        hardcode_libdir_flag_spec='-rpath $libdir'
9014      fi
9015      hardcode_libdir_separator=:
9016      ;;
9017
9018    solaris*)
9019      no_undefined_flag=' -z text'
9020      if test "$GCC" = yes; then
9021        wlarc='${wl}'
9022        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9024          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9025      else
9026        wlarc=''
9027        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9029        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9030      fi
9031      hardcode_libdir_flag_spec='-R$libdir'
9032      hardcode_shlibpath_var=no
9033      case $host_os in
9034      solaris2.[0-5] | solaris2.[0-5].*) ;;
9035      *)
9036        # The compiler driver will combine linker options so we
9037        # cannot just pass the convience library names through
9038        # without $wl, iff we do not link with $LD.
9039        # Luckily, gcc supports the same syntax we need for Sun Studio.
9040        # Supported since Solaris 2.6 (maybe 2.5.1?)
9041        case $wlarc in
9042        '')
9043          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9044        *)
9045          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' ;;
9046        esac ;;
9047      esac
9048      link_all_deplibs=yes
9049      ;;
9050
9051    sunos4*)
9052      if test "x$host_vendor" = xsequent; then
9053        # Use $CC to link under sequent, because it throws in some extra .o
9054        # files that make .init and .fini sections work.
9055        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9056      else
9057        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9058      fi
9059      hardcode_libdir_flag_spec='-L$libdir'
9060      hardcode_direct=yes
9061      hardcode_minus_L=yes
9062      hardcode_shlibpath_var=no
9063      ;;
9064
9065    sysv4)
9066      case $host_vendor in
9067        sni)
9068          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069          hardcode_direct=yes # is this really true???
9070        ;;
9071        siemens)
9072          ## LD is ld it makes a PLAMLIB
9073          ## CC just makes a GrossModule.
9074          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9075          reload_cmds='$CC -r -o $output$reload_objs'
9076          hardcode_direct=no
9077        ;;
9078        motorola)
9079          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9081        ;;
9082      esac
9083      runpath_var='LD_RUN_PATH'
9084      hardcode_shlibpath_var=no
9085      ;;
9086
9087    sysv4.3*)
9088      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089      hardcode_shlibpath_var=no
9090      export_dynamic_flag_spec='-Bexport'
9091      ;;
9092
9093    sysv4*MP*)
9094      if test -d /usr/nec; then
9095        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096        hardcode_shlibpath_var=no
9097        runpath_var=LD_RUN_PATH
9098        hardcode_runpath_var=yes
9099        ld_shlibs=yes
9100      fi
9101      ;;
9102
9103    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9104      no_undefined_flag='${wl}-z,text'
9105      archive_cmds_need_lc=no
9106      hardcode_shlibpath_var=no
9107      runpath_var='LD_RUN_PATH'
9108
9109      if test "$GCC" = yes; then
9110        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9111        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9112      else
9113        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115      fi
9116      ;;
9117
9118    sysv5* | sco3.2v5* | sco5v6*)
9119      # Note: We can NOT use -z defs as we might desire, because we do not
9120      # link with -lc, and that would cause any symbols used from libc to
9121      # always be unresolved, which means just about no library would
9122      # ever link correctly.  If we're not using GNU ld we use -z text
9123      # though, which does catch some bad symbols but isn't as heavy-handed
9124      # as -z defs.
9125      no_undefined_flag='${wl}-z,text'
9126      allow_undefined_flag='${wl}-z,nodefs'
9127      archive_cmds_need_lc=no
9128      hardcode_shlibpath_var=no
9129      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9130      hardcode_libdir_separator=':'
9131      link_all_deplibs=yes
9132      export_dynamic_flag_spec='${wl}-Bexport'
9133      runpath_var='LD_RUN_PATH'
9134
9135      if test "$GCC" = yes; then
9136        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138      else
9139        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9140        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9141      fi
9142      ;;
9143
9144    uts4*)
9145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9146      hardcode_libdir_flag_spec='-L$libdir'
9147      hardcode_shlibpath_var=no
9148      ;;
9149
9150    *)
9151      ld_shlibs=no
9152      ;;
9153    esac
9154  fi
9155
9156echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9157echo "${ECHO_T}$ld_shlibs" >&6
9158test "$ld_shlibs" = no && can_build_shared=no
9159
9160#
9161# Do we need to explicitly link libc?
9162#
9163case "x$archive_cmds_need_lc" in
9164x|xyes)
9165  # Assume -lc should be added
9166  archive_cmds_need_lc=yes
9167
9168  if test "$enable_shared" = yes && test "$GCC" = yes; then
9169    case $archive_cmds in
9170    *'~'*)
9171      # FIXME: we may have to deal with multi-command sequences.
9172      ;;
9173    '$CC '*)
9174      # Test whether the compiler implicitly links with -lc since on some
9175      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9176      # to ld, don't add -lc before -lgcc.
9177      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9178echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9179      $rm conftest*
9180      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9181
9182      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183  (eval $ac_compile) 2>&5
9184  ac_status=$?
9185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186  (exit $ac_status); } 2>conftest.err; then
9187        soname=conftest
9188        lib=conftest
9189        libobjs=conftest.$ac_objext
9190        deplibs=
9191        wl=$lt_prog_compiler_wl
9192        pic_flag=$lt_prog_compiler_pic
9193        compiler_flags=-v
9194        linker_flags=-v
9195        verstring=
9196        output_objdir=.
9197        libname=conftest
9198        lt_save_allow_undefined_flag=$allow_undefined_flag
9199        allow_undefined_flag=
9200        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9201  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9202  ac_status=$?
9203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204  (exit $ac_status); }
9205        then
9206          archive_cmds_need_lc=no
9207        else
9208          archive_cmds_need_lc=yes
9209        fi
9210        allow_undefined_flag=$lt_save_allow_undefined_flag
9211      else
9212        cat conftest.err 1>&5
9213      fi
9214      $rm conftest*
9215      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9216echo "${ECHO_T}$archive_cmds_need_lc" >&6
9217      ;;
9218    esac
9219  fi
9220  ;;
9221esac
9222
9223echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9224echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9225library_names_spec=
9226libname_spec='lib$name'
9227soname_spec=
9228shrext_cmds=".so"
9229postinstall_cmds=
9230postuninstall_cmds=
9231finish_cmds=
9232finish_eval=
9233shlibpath_var=
9234shlibpath_overrides_runpath=unknown
9235version_type=none
9236dynamic_linker="$host_os ld.so"
9237sys_lib_dlsearch_path_spec="/lib /usr/lib"
9238if test "$GCC" = yes; then
9239  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9240  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9241    # if the path contains ";" then we assume it to be the separator
9242    # otherwise default to the standard path separator (i.e. ":") - it is
9243    # assumed that no part of a normal pathname contains ";" but that should
9244    # okay in the real world where ";" in dirpaths is itself problematic.
9245    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9246  else
9247    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9248  fi
9249else
9250  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9251fi
9252need_lib_prefix=unknown
9253hardcode_into_libs=no
9254
9255# when you set need_version to no, make sure it does not cause -set_version
9256# flags to be left without arguments
9257need_version=unknown
9258
9259case $host_os in
9260aix3*)
9261  version_type=linux
9262  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9263  shlibpath_var=LIBPATH
9264
9265  # AIX 3 has no versioning support, so we append a major version to the name.
9266  soname_spec='${libname}${release}${shared_ext}$major'
9267  ;;
9268
9269aix4* | aix5*)
9270  version_type=linux
9271  need_lib_prefix=no
9272  need_version=no
9273  hardcode_into_libs=yes
9274  if test "$host_cpu" = ia64; then
9275    # AIX 5 supports IA64
9276    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9277    shlibpath_var=LD_LIBRARY_PATH
9278  else
9279    # With GCC up to 2.95.x, collect2 would create an import file
9280    # for dependence libraries.  The import file would start with
9281    # the line `#! .'.  This would cause the generated library to
9282    # depend on `.', always an invalid library.  This was fixed in
9283    # development snapshots of GCC prior to 3.0.
9284    case $host_os in
9285      aix4 | aix4.[01] | aix4.[01].*)
9286      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9287           echo ' yes '
9288           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9289        :
9290      else
9291        can_build_shared=no
9292      fi
9293      ;;
9294    esac
9295    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9296    # soname into executable. Probably we can add versioning support to
9297    # collect2, so additional links can be useful in future.
9298    if test "$aix_use_runtimelinking" = yes; then
9299      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9300      # instead of lib<name>.a to let people know that these are not
9301      # typical AIX shared libraries.
9302      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303    else
9304      # We preserve .a as extension for shared libraries through AIX4.2
9305      # and later when we are not doing run time linking.
9306      library_names_spec='${libname}${release}.a $libname.a'
9307      soname_spec='${libname}${release}${shared_ext}$major'
9308    fi
9309    shlibpath_var=LIBPATH
9310  fi
9311  ;;
9312
9313amigaos*)
9314  library_names_spec='$libname.ixlibrary $libname.a'
9315  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9316  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'
9317  ;;
9318
9319beos*)
9320  library_names_spec='${libname}${shared_ext}'
9321  dynamic_linker="$host_os ld.so"
9322  shlibpath_var=LIBRARY_PATH
9323  ;;
9324
9325bsdi[45]*)
9326  version_type=linux
9327  need_version=no
9328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9331  shlibpath_var=LD_LIBRARY_PATH
9332  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9333  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9334  # the default ld.so.conf also contains /usr/contrib/lib and
9335  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9336  # libtool to hard-code these into programs
9337  ;;
9338
9339cygwin* | mingw* | pw32*)
9340  version_type=windows
9341  shrext_cmds=".dll"
9342  need_version=no
9343  need_lib_prefix=no
9344
9345  case $GCC,$host_os in
9346  yes,cygwin* | yes,mingw* | yes,pw32*)
9347    library_names_spec='$libname.dll.a'
9348    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9349    postinstall_cmds='base_file=`basename \${file}`~
9350      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9351      dldir=$destdir/`dirname \$dlpath`~
9352      test -d \$dldir || mkdir -p \$dldir~
9353      $install_prog $dir/$dlname \$dldir/$dlname~
9354      chmod a+x \$dldir/$dlname'
9355    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9356      dlpath=$dir/\$dldll~
9357       $rm \$dlpath'
9358    shlibpath_overrides_runpath=yes
9359
9360    case $host_os in
9361    cygwin*)
9362      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9363      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9364      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9365      ;;
9366    mingw*)
9367      # MinGW DLLs use traditional 'lib' prefix
9368      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9369      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9370      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9371        # It is most probably a Windows format PATH printed by
9372        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9373        # path with ; separators, and with drive letters. We can handle the
9374        # drive letters (cygwin fileutils understands them), so leave them,
9375        # especially as we might pass files found there to a mingw objdump,
9376        # which wouldn't understand a cygwinified path. Ahh.
9377        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9378      else
9379        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9380      fi
9381      ;;
9382    pw32*)
9383      # pw32 DLLs use 'pw' prefix rather than 'lib'
9384      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385      ;;
9386    esac
9387    ;;
9388
9389  *)
9390    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9391    ;;
9392  esac
9393  dynamic_linker='Win32 ld.exe'
9394  # FIXME: first we should search . and the directory the executable is in
9395  shlibpath_var=PATH
9396  ;;
9397
9398darwin* | rhapsody*)
9399  dynamic_linker="$host_os dyld"
9400  version_type=darwin
9401  need_lib_prefix=no
9402  need_version=no
9403  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9404  soname_spec='${libname}${release}${major}$shared_ext'
9405  shlibpath_overrides_runpath=yes
9406  shlibpath_var=DYLD_LIBRARY_PATH
9407  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9408  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9409  if test "$GCC" = yes; then
9410    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"`
9411  else
9412    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9413  fi
9414  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9415  ;;
9416
9417dgux*)
9418  version_type=linux
9419  need_lib_prefix=no
9420  need_version=no
9421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422  soname_spec='${libname}${release}${shared_ext}$major'
9423  shlibpath_var=LD_LIBRARY_PATH
9424  ;;
9425
9426freebsd1*)
9427  dynamic_linker=no
9428  ;;
9429
9430kfreebsd*-gnu)
9431  version_type=linux
9432  need_lib_prefix=no
9433  need_version=no
9434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9435  soname_spec='${libname}${release}${shared_ext}$major'
9436  shlibpath_var=LD_LIBRARY_PATH
9437  shlibpath_overrides_runpath=no
9438  hardcode_into_libs=yes
9439  dynamic_linker='GNU ld.so'
9440  ;;
9441
9442freebsd* | dragonfly*)
9443  # DragonFly does not have aout.  When/if they implement a new
9444  # versioning mechanism, adjust this.
9445  if test -x /usr/bin/objformat; then
9446    objformat=`/usr/bin/objformat`
9447  else
9448    case $host_os in
9449    freebsd[123]*) objformat=aout ;;
9450    *) objformat=elf ;;
9451    esac
9452  fi
9453  version_type=freebsd-$objformat
9454  case $version_type in
9455    freebsd-elf*)
9456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9457      need_version=no
9458      need_lib_prefix=no
9459      ;;
9460    freebsd-*)
9461      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9462      need_version=yes
9463      ;;
9464  esac
9465  shlibpath_var=LD_LIBRARY_PATH
9466  case $host_os in
9467  freebsd2*)
9468    shlibpath_overrides_runpath=yes
9469    ;;
9470  freebsd3.[01]* | freebsdelf3.[01]*)
9471    shlibpath_overrides_runpath=yes
9472    hardcode_into_libs=yes
9473    ;;
9474  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9475  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9476    shlibpath_overrides_runpath=no
9477    hardcode_into_libs=yes
9478    ;;
9479  freebsd*) # from 4.6 on
9480    shlibpath_overrides_runpath=yes
9481    hardcode_into_libs=yes
9482    ;;
9483  esac
9484  ;;
9485
9486gnu*)
9487  version_type=linux
9488  need_lib_prefix=no
9489  need_version=no
9490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9491  soname_spec='${libname}${release}${shared_ext}$major'
9492  shlibpath_var=LD_LIBRARY_PATH
9493  hardcode_into_libs=yes
9494  ;;
9495
9496hpux9* | hpux10* | hpux11*)
9497  # Give a soname corresponding to the major version so that dld.sl refuses to
9498  # link against other versions.
9499  version_type=sunos
9500  need_lib_prefix=no
9501  need_version=no
9502  case $host_cpu in
9503  ia64*)
9504    shrext_cmds='.so'
9505    hardcode_into_libs=yes
9506    dynamic_linker="$host_os dld.so"
9507    shlibpath_var=LD_LIBRARY_PATH
9508    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9509    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510    soname_spec='${libname}${release}${shared_ext}$major'
9511    if test "X$HPUX_IA64_MODE" = X32; then
9512      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9513    else
9514      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9515    fi
9516    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9517    ;;
9518   hppa*64*)
9519     shrext_cmds='.sl'
9520     hardcode_into_libs=yes
9521     dynamic_linker="$host_os dld.sl"
9522     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9523     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525     soname_spec='${libname}${release}${shared_ext}$major'
9526     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9527     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9528     ;;
9529   *)
9530    shrext_cmds='.sl'
9531    dynamic_linker="$host_os dld.sl"
9532    shlibpath_var=SHLIB_PATH
9533    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9534    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535    soname_spec='${libname}${release}${shared_ext}$major'
9536    ;;
9537  esac
9538  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9539  postinstall_cmds='chmod 555 $lib'
9540  ;;
9541
9542interix3*)
9543  version_type=linux
9544  need_lib_prefix=no
9545  need_version=no
9546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9547  soname_spec='${libname}${release}${shared_ext}$major'
9548  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9549  shlibpath_var=LD_LIBRARY_PATH
9550  shlibpath_overrides_runpath=no
9551  hardcode_into_libs=yes
9552  ;;
9553
9554irix5* | irix6* | nonstopux*)
9555  case $host_os in
9556    nonstopux*) version_type=nonstopux ;;
9557    *)
9558        if test "$lt_cv_prog_gnu_ld" = yes; then
9559                version_type=linux
9560        else
9561                version_type=irix
9562        fi ;;
9563  esac
9564  need_lib_prefix=no
9565  need_version=no
9566  soname_spec='${libname}${release}${shared_ext}$major'
9567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9568  case $host_os in
9569  irix5* | nonstopux*)
9570    libsuff= shlibsuff=
9571    ;;
9572  *)
9573    case $LD in # libtool.m4 will add one of these switches to LD
9574    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9575      libsuff= shlibsuff= libmagic=32-bit;;
9576    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9577      libsuff=32 shlibsuff=N32 libmagic=N32;;
9578    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9579      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9580    *) libsuff= shlibsuff= libmagic=never-match;;
9581    esac
9582    ;;
9583  esac
9584  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9585  shlibpath_overrides_runpath=no
9586  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9587  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9588  hardcode_into_libs=yes
9589  ;;
9590
9591# No shared lib support for Linux oldld, aout, or coff.
9592linux*oldld* | linux*aout* | linux*coff*)
9593  dynamic_linker=no
9594  ;;
9595
9596# This must be Linux ELF.
9597linux*)
9598  version_type=linux
9599  need_lib_prefix=no
9600  need_version=no
9601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602  soname_spec='${libname}${release}${shared_ext}$major'
9603  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9604  shlibpath_var=LD_LIBRARY_PATH
9605  shlibpath_overrides_runpath=no
9606  # This implies no fast_install, which is unacceptable.
9607  # Some rework will be needed to allow for fast_install
9608  # before this can be enabled.
9609  hardcode_into_libs=yes
9610
9611  # Append ld.so.conf contents to the search path
9612  if test -f /etc/ld.so.conf; then
9613    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' ' '`
9614    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9615  fi
9616
9617  # We used to test for /lib/ld.so.1 and disable shared libraries on
9618  # powerpc, because MkLinux only supported shared libraries with the
9619  # GNU dynamic linker.  Since this was broken with cross compilers,
9620  # most powerpc-linux boxes support dynamic linking these days and
9621  # people can always --disable-shared, the test was removed, and we
9622  # assume the GNU/Linux dynamic linker is in use.
9623  dynamic_linker='GNU/Linux ld.so'
9624  ;;
9625
9626knetbsd*-gnu)
9627  version_type=linux
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  shlibpath_overrides_runpath=no
9634  hardcode_into_libs=yes
9635  dynamic_linker='GNU ld.so'
9636  ;;
9637
9638netbsd*)
9639  version_type=sunos
9640  need_lib_prefix=no
9641  need_version=no
9642  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9643    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9644    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9645    dynamic_linker='NetBSD (a.out) ld.so'
9646  else
9647    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9648    soname_spec='${libname}${release}${shared_ext}$major'
9649    dynamic_linker='NetBSD ld.elf_so'
9650  fi
9651  shlibpath_var=LD_LIBRARY_PATH
9652  shlibpath_overrides_runpath=yes
9653  hardcode_into_libs=yes
9654  ;;
9655
9656newsos6)
9657  version_type=linux
9658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659  shlibpath_var=LD_LIBRARY_PATH
9660  shlibpath_overrides_runpath=yes
9661  ;;
9662
9663nto-qnx*)
9664  version_type=linux
9665  need_lib_prefix=no
9666  need_version=no
9667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668  soname_spec='${libname}${release}${shared_ext}$major'
9669  shlibpath_var=LD_LIBRARY_PATH
9670  shlibpath_overrides_runpath=yes
9671  ;;
9672
9673openbsd*)
9674  version_type=sunos
9675  sys_lib_dlsearch_path_spec="/usr/lib"
9676  need_lib_prefix=no
9677  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9678  case $host_os in
9679    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9680    *)                         need_version=no  ;;
9681  esac
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9683  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9686    case $host_os in
9687      openbsd2.[89] | openbsd2.[89].*)
9688        shlibpath_overrides_runpath=no
9689        ;;
9690      *)
9691        shlibpath_overrides_runpath=yes
9692        ;;
9693      esac
9694  else
9695    shlibpath_overrides_runpath=yes
9696  fi
9697  ;;
9698
9699os2*)
9700  libname_spec='$name'
9701  shrext_cmds=".dll"
9702  need_lib_prefix=no
9703  library_names_spec='$libname${shared_ext} $libname.a'
9704  dynamic_linker='OS/2 ld.exe'
9705  shlibpath_var=LIBPATH
9706  ;;
9707
9708osf3* | osf4* | osf5*)
9709  version_type=osf
9710  need_lib_prefix=no
9711  need_version=no
9712  soname_spec='${libname}${release}${shared_ext}$major'
9713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714  shlibpath_var=LD_LIBRARY_PATH
9715  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9716  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9717  ;;
9718
9719solaris*)
9720  version_type=linux
9721  need_lib_prefix=no
9722  need_version=no
9723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724  soname_spec='${libname}${release}${shared_ext}$major'
9725  shlibpath_var=LD_LIBRARY_PATH
9726  shlibpath_overrides_runpath=yes
9727  hardcode_into_libs=yes
9728  # ldd complains unless libraries are executable
9729  postinstall_cmds='chmod +x $lib'
9730  ;;
9731
9732sunos4*)
9733  version_type=sunos
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9735  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9736  shlibpath_var=LD_LIBRARY_PATH
9737  shlibpath_overrides_runpath=yes
9738  if test "$with_gnu_ld" = yes; then
9739    need_lib_prefix=no
9740  fi
9741  need_version=yes
9742  ;;
9743
9744sysv4 | sysv4.3*)
9745  version_type=linux
9746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747  soname_spec='${libname}${release}${shared_ext}$major'
9748  shlibpath_var=LD_LIBRARY_PATH
9749  case $host_vendor in
9750    sni)
9751      shlibpath_overrides_runpath=no
9752      need_lib_prefix=no
9753      export_dynamic_flag_spec='${wl}-Blargedynsym'
9754      runpath_var=LD_RUN_PATH
9755      ;;
9756    siemens)
9757      need_lib_prefix=no
9758      ;;
9759    motorola)
9760      need_lib_prefix=no
9761      need_version=no
9762      shlibpath_overrides_runpath=no
9763      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9764      ;;
9765  esac
9766  ;;
9767
9768sysv4*MP*)
9769  if test -d /usr/nec ;then
9770    version_type=linux
9771    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9772    soname_spec='$libname${shared_ext}.$major'
9773    shlibpath_var=LD_LIBRARY_PATH
9774  fi
9775  ;;
9776
9777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9778  version_type=freebsd-elf
9779  need_lib_prefix=no
9780  need_version=no
9781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9782  soname_spec='${libname}${release}${shared_ext}$major'
9783  shlibpath_var=LD_LIBRARY_PATH
9784  hardcode_into_libs=yes
9785  if test "$with_gnu_ld" = yes; then
9786    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9787    shlibpath_overrides_runpath=no
9788  else
9789    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9790    shlibpath_overrides_runpath=yes
9791    case $host_os in
9792      sco3.2v5*)
9793        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9794        ;;
9795    esac
9796  fi
9797  sys_lib_dlsearch_path_spec='/usr/lib'
9798  ;;
9799
9800uts4*)
9801  version_type=linux
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803  soname_spec='${libname}${release}${shared_ext}$major'
9804  shlibpath_var=LD_LIBRARY_PATH
9805  ;;
9806
9807*)
9808  dynamic_linker=no
9809  ;;
9810esac
9811echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9812echo "${ECHO_T}$dynamic_linker" >&6
9813test "$dynamic_linker" = no && can_build_shared=no
9814
9815variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9816if test "$GCC" = yes; then
9817  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9818fi
9819
9820echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9821echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9822hardcode_action=
9823if test -n "$hardcode_libdir_flag_spec" || \
9824   test -n "$runpath_var" || \
9825   test "X$hardcode_automatic" = "Xyes" ; then
9826
9827  # We can hardcode non-existant directories.
9828  if test "$hardcode_direct" != no &&
9829     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9830     # have to relink, otherwise we might link with an installed library
9831     # when we should be linking with a yet-to-be-installed one
9832     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9833     test "$hardcode_minus_L" != no; then
9834    # Linking always hardcodes the temporary library directory.
9835    hardcode_action=relink
9836  else
9837    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9838    hardcode_action=immediate
9839  fi
9840else
9841  # We cannot hardcode anything, or else we can only hardcode existing
9842  # directories.
9843  hardcode_action=unsupported
9844fi
9845echo "$as_me:$LINENO: result: $hardcode_action" >&5
9846echo "${ECHO_T}$hardcode_action" >&6
9847
9848if test "$hardcode_action" = relink; then
9849  # Fast installation is not supported
9850  enable_fast_install=no
9851elif test "$shlibpath_overrides_runpath" = yes ||
9852     test "$enable_shared" = no; then
9853  # Fast installation is not necessary
9854  enable_fast_install=needless
9855fi
9856
9857striplib=
9858old_striplib=
9859echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9860echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9861if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9862  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9863  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9864  echo "$as_me:$LINENO: result: yes" >&5
9865echo "${ECHO_T}yes" >&6
9866else
9867# FIXME - insert some real tests, host_os isn't really good enough
9868  case $host_os in
9869   darwin*)
9870       if test -n "$STRIP" ; then
9871         striplib="$STRIP -x"
9872         echo "$as_me:$LINENO: result: yes" >&5
9873echo "${ECHO_T}yes" >&6
9874       else
9875  echo "$as_me:$LINENO: result: no" >&5
9876echo "${ECHO_T}no" >&6
9877fi
9878       ;;
9879   *)
9880  echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
9882    ;;
9883  esac
9884fi
9885
9886if test "x$enable_dlopen" != xyes; then
9887  enable_dlopen=unknown
9888  enable_dlopen_self=unknown
9889  enable_dlopen_self_static=unknown
9890else
9891  lt_cv_dlopen=no
9892  lt_cv_dlopen_libs=
9893
9894  case $host_os in
9895  beos*)
9896    lt_cv_dlopen="load_add_on"
9897    lt_cv_dlopen_libs=
9898    lt_cv_dlopen_self=yes
9899    ;;
9900
9901  mingw* | pw32*)
9902    lt_cv_dlopen="LoadLibrary"
9903    lt_cv_dlopen_libs=
9904   ;;
9905
9906  cygwin*)
9907    lt_cv_dlopen="dlopen"
9908    lt_cv_dlopen_libs=
9909   ;;
9910
9911  darwin*)
9912  # if libdl is installed we need to link against it
9913    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9914echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9915if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9916  echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918  ac_check_lib_save_LIBS=$LIBS
9919LIBS="-ldl  $LIBS"
9920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h.  */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h.  */
9926
9927/* Override any gcc2 internal prototype to avoid an error.  */
9928#ifdef __cplusplus
9929extern "C"
9930#endif
9931/* We use char because int might match the return type of a gcc2
9932   builtin and then its argument prototype would still apply.  */
9933char dlopen ();
9934int
9935main ()
9936{
9937dlopen ();
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944  (eval $ac_link) 2>conftest.er1
9945  ac_status=$?
9946  grep -v '^ *+' conftest.er1 >conftest.err
9947  rm -f conftest.er1
9948  cat conftest.err >&5
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); } &&
9951         { ac_try='test -z "$ac_c_werror_flag"
9952                         || test ! -s conftest.err'
9953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954  (eval $ac_try) 2>&5
9955  ac_status=$?
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); }; } &&
9958         { ac_try='test -s conftest$ac_exeext'
9959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960  (eval $ac_try) 2>&5
9961  ac_status=$?
9962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963  (exit $ac_status); }; }; then
9964  ac_cv_lib_dl_dlopen=yes
9965else
9966  echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969ac_cv_lib_dl_dlopen=no
9970fi
9971rm -f conftest.err conftest.$ac_objext \
9972      conftest$ac_exeext conftest.$ac_ext
9973LIBS=$ac_check_lib_save_LIBS
9974fi
9975echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9977if test $ac_cv_lib_dl_dlopen = yes; then
9978  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9979else
9980
9981    lt_cv_dlopen="dyld"
9982    lt_cv_dlopen_libs=
9983    lt_cv_dlopen_self=yes
9984
9985fi
9986
9987   ;;
9988
9989  *)
9990    echo "$as_me:$LINENO: checking for shl_load" >&5
9991echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9992if test "${ac_cv_func_shl_load+set}" = set; then
9993  echo $ECHO_N "(cached) $ECHO_C" >&6
9994else
9995  cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h.  */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h.  */
10001/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10002   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10003#define shl_load innocuous_shl_load
10004
10005/* System header to define __stub macros and hopefully few prototypes,
10006    which can conflict with char shl_load (); below.
10007    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008    <limits.h> exists even on freestanding compilers.  */
10009
10010#ifdef __STDC__
10011# include <limits.h>
10012#else
10013# include <assert.h>
10014#endif
10015
10016#undef shl_load
10017
10018/* Override any gcc2 internal prototype to avoid an error.  */
10019#ifdef __cplusplus
10020extern "C"
10021{
10022#endif
10023/* We use char because int might match the return type of a gcc2
10024   builtin and then its argument prototype would still apply.  */
10025char shl_load ();
10026/* The GNU C library defines this for functions which it implements
10027    to always fail with ENOSYS.  Some functions are actually named
10028    something starting with __ and the normal name is an alias.  */
10029#if defined (__stub_shl_load) || defined (__stub___shl_load)
10030choke me
10031#else
10032char (*f) () = shl_load;
10033#endif
10034#ifdef __cplusplus
10035}
10036#endif
10037
10038int
10039main ()
10040{
10041return f != shl_load;
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext conftest$ac_exeext
10047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048  (eval $ac_link) 2>conftest.er1
10049  ac_status=$?
10050  grep -v '^ *+' conftest.er1 >conftest.err
10051  rm -f conftest.er1
10052  cat conftest.err >&5
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); } &&
10055         { ac_try='test -z "$ac_c_werror_flag"
10056                         || test ! -s conftest.err'
10057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058  (eval $ac_try) 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; } &&
10062         { ac_try='test -s conftest$ac_exeext'
10063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064  (eval $ac_try) 2>&5
10065  ac_status=$?
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); }; }; then
10068  ac_cv_func_shl_load=yes
10069else
10070  echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073ac_cv_func_shl_load=no
10074fi
10075rm -f conftest.err conftest.$ac_objext \
10076      conftest$ac_exeext conftest.$ac_ext
10077fi
10078echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10079echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10080if test $ac_cv_func_shl_load = yes; then
10081  lt_cv_dlopen="shl_load"
10082else
10083  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10084echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10085if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10086  echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088  ac_check_lib_save_LIBS=$LIBS
10089LIBS="-ldld  $LIBS"
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h.  */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h.  */
10096
10097/* Override any gcc2 internal prototype to avoid an error.  */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101/* We use char because int might match the return type of a gcc2
10102   builtin and then its argument prototype would still apply.  */
10103char shl_load ();
10104int
10105main ()
10106{
10107shl_load ();
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114  (eval $ac_link) 2>conftest.er1
10115  ac_status=$?
10116  grep -v '^ *+' conftest.er1 >conftest.err
10117  rm -f conftest.er1
10118  cat conftest.err >&5
10119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120  (exit $ac_status); } &&
10121         { ac_try='test -z "$ac_c_werror_flag"
10122                         || test ! -s conftest.err'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; } &&
10128         { ac_try='test -s conftest$ac_exeext'
10129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130  (eval $ac_try) 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; }; then
10134  ac_cv_lib_dld_shl_load=yes
10135else
10136  echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139ac_cv_lib_dld_shl_load=no
10140fi
10141rm -f conftest.err conftest.$ac_objext \
10142      conftest$ac_exeext conftest.$ac_ext
10143LIBS=$ac_check_lib_save_LIBS
10144fi
10145echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10146echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10147if test $ac_cv_lib_dld_shl_load = yes; then
10148  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10149else
10150  echo "$as_me:$LINENO: checking for dlopen" >&5
10151echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10152if test "${ac_cv_func_dlopen+set}" = set; then
10153  echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155  cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h.  */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h.  */
10161/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10163#define dlopen innocuous_dlopen
10164
10165/* System header to define __stub macros and hopefully few prototypes,
10166    which can conflict with char dlopen (); below.
10167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168    <limits.h> exists even on freestanding compilers.  */
10169
10170#ifdef __STDC__
10171# include <limits.h>
10172#else
10173# include <assert.h>
10174#endif
10175
10176#undef dlopen
10177
10178/* Override any gcc2 internal prototype to avoid an error.  */
10179#ifdef __cplusplus
10180extern "C"
10181{
10182#endif
10183/* We use char because int might match the return type of a gcc2
10184   builtin and then its argument prototype would still apply.  */
10185char dlopen ();
10186/* The GNU C library defines this for functions which it implements
10187    to always fail with ENOSYS.  Some functions are actually named
10188    something starting with __ and the normal name is an alias.  */
10189#if defined (__stub_dlopen) || defined (__stub___dlopen)
10190choke me
10191#else
10192char (*f) () = dlopen;
10193#endif
10194#ifdef __cplusplus
10195}
10196#endif
10197
10198int
10199main ()
10200{
10201return f != dlopen;
10202  ;
10203  return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext conftest$ac_exeext
10207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208  (eval $ac_link) 2>conftest.er1
10209  ac_status=$?
10210  grep -v '^ *+' conftest.er1 >conftest.err
10211  rm -f conftest.er1
10212  cat conftest.err >&5
10213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); } &&
10215         { ac_try='test -z "$ac_c_werror_flag"
10216                         || test ! -s conftest.err'
10217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218  (eval $ac_try) 2>&5
10219  ac_status=$?
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); }; } &&
10222         { ac_try='test -s conftest$ac_exeext'
10223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224  (eval $ac_try) 2>&5
10225  ac_status=$?
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); }; }; then
10228  ac_cv_func_dlopen=yes
10229else
10230  echo "$as_me: failed program was:" >&5
10231sed 's/^/| /' conftest.$ac_ext >&5
10232
10233ac_cv_func_dlopen=no
10234fi
10235rm -f conftest.err conftest.$ac_objext \
10236      conftest$ac_exeext conftest.$ac_ext
10237fi
10238echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10239echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10240if test $ac_cv_func_dlopen = yes; then
10241  lt_cv_dlopen="dlopen"
10242else
10243  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10244echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10245if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10246  echo $ECHO_N "(cached) $ECHO_C" >&6
10247else
10248  ac_check_lib_save_LIBS=$LIBS
10249LIBS="-ldl  $LIBS"
10250cat >conftest.$ac_ext <<_ACEOF
10251/* confdefs.h.  */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h.  */
10256
10257/* Override any gcc2 internal prototype to avoid an error.  */
10258#ifdef __cplusplus
10259extern "C"
10260#endif
10261/* We use char because int might match the return type of a gcc2
10262   builtin and then its argument prototype would still apply.  */
10263char dlopen ();
10264int
10265main ()
10266{
10267dlopen ();
10268  ;
10269  return 0;
10270}
10271_ACEOF
10272rm -f conftest.$ac_objext conftest$ac_exeext
10273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10274  (eval $ac_link) 2>conftest.er1
10275  ac_status=$?
10276  grep -v '^ *+' conftest.er1 >conftest.err
10277  rm -f conftest.er1
10278  cat conftest.err >&5
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); } &&
10281         { ac_try='test -z "$ac_c_werror_flag"
10282                         || test ! -s conftest.err'
10283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284  (eval $ac_try) 2>&5
10285  ac_status=$?
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); }; } &&
10288         { ac_try='test -s conftest$ac_exeext'
10289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290  (eval $ac_try) 2>&5
10291  ac_status=$?
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); }; }; then
10294  ac_cv_lib_dl_dlopen=yes
10295else
10296  echo "$as_me: failed program was:" >&5
10297sed 's/^/| /' conftest.$ac_ext >&5
10298
10299ac_cv_lib_dl_dlopen=no
10300fi
10301rm -f conftest.err conftest.$ac_objext \
10302      conftest$ac_exeext conftest.$ac_ext
10303LIBS=$ac_check_lib_save_LIBS
10304fi
10305echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10306echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10307if test $ac_cv_lib_dl_dlopen = yes; then
10308  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10309else
10310  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10311echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10312if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10313  echo $ECHO_N "(cached) $ECHO_C" >&6
10314else
10315  ac_check_lib_save_LIBS=$LIBS
10316LIBS="-lsvld  $LIBS"
10317cat >conftest.$ac_ext <<_ACEOF
10318/* confdefs.h.  */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h.  */
10323
10324/* Override any gcc2 internal prototype to avoid an error.  */
10325#ifdef __cplusplus
10326extern "C"
10327#endif
10328/* We use char because int might match the return type of a gcc2
10329   builtin and then its argument prototype would still apply.  */
10330char dlopen ();
10331int
10332main ()
10333{
10334dlopen ();
10335  ;
10336  return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext conftest$ac_exeext
10340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10341  (eval $ac_link) 2>conftest.er1
10342  ac_status=$?
10343  grep -v '^ *+' conftest.er1 >conftest.err
10344  rm -f conftest.er1
10345  cat conftest.err >&5
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); } &&
10348         { ac_try='test -z "$ac_c_werror_flag"
10349                         || test ! -s conftest.err'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; } &&
10355         { ac_try='test -s conftest$ac_exeext'
10356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357  (eval $ac_try) 2>&5
10358  ac_status=$?
10359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360  (exit $ac_status); }; }; then
10361  ac_cv_lib_svld_dlopen=yes
10362else
10363  echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366ac_cv_lib_svld_dlopen=no
10367fi
10368rm -f conftest.err conftest.$ac_objext \
10369      conftest$ac_exeext conftest.$ac_ext
10370LIBS=$ac_check_lib_save_LIBS
10371fi
10372echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10373echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10374if test $ac_cv_lib_svld_dlopen = yes; then
10375  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10376else
10377  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10378echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10379if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10380  echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382  ac_check_lib_save_LIBS=$LIBS
10383LIBS="-ldld  $LIBS"
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h.  */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h.  */
10390
10391/* Override any gcc2 internal prototype to avoid an error.  */
10392#ifdef __cplusplus
10393extern "C"
10394#endif
10395/* We use char because int might match the return type of a gcc2
10396   builtin and then its argument prototype would still apply.  */
10397char dld_link ();
10398int
10399main ()
10400{
10401dld_link ();
10402  ;
10403  return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext conftest$ac_exeext
10407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408  (eval $ac_link) 2>conftest.er1
10409  ac_status=$?
10410  grep -v '^ *+' conftest.er1 >conftest.err
10411  rm -f conftest.er1
10412  cat conftest.err >&5
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); } &&
10415         { ac_try='test -z "$ac_c_werror_flag"
10416                         || test ! -s conftest.err'
10417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418  (eval $ac_try) 2>&5
10419  ac_status=$?
10420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); }; } &&
10422         { ac_try='test -s conftest$ac_exeext'
10423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424  (eval $ac_try) 2>&5
10425  ac_status=$?
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); }; }; then
10428  ac_cv_lib_dld_dld_link=yes
10429else
10430  echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
10433ac_cv_lib_dld_dld_link=no
10434fi
10435rm -f conftest.err conftest.$ac_objext \
10436      conftest$ac_exeext conftest.$ac_ext
10437LIBS=$ac_check_lib_save_LIBS
10438fi
10439echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10440echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10441if test $ac_cv_lib_dld_dld_link = yes; then
10442  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10443fi
10444
10445
10446fi
10447
10448
10449fi
10450
10451
10452fi
10453
10454
10455fi
10456
10457
10458fi
10459
10460    ;;
10461  esac
10462
10463  if test "x$lt_cv_dlopen" != xno; then
10464    enable_dlopen=yes
10465  else
10466    enable_dlopen=no
10467  fi
10468
10469  case $lt_cv_dlopen in
10470  dlopen)
10471    save_CPPFLAGS="$CPPFLAGS"
10472    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10473
10474    save_LDFLAGS="$LDFLAGS"
10475    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10476
10477    save_LIBS="$LIBS"
10478    LIBS="$lt_cv_dlopen_libs $LIBS"
10479
10480    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10481echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10482if test "${lt_cv_dlopen_self+set}" = set; then
10483  echo $ECHO_N "(cached) $ECHO_C" >&6
10484else
10485          if test "$cross_compiling" = yes; then :
10486  lt_cv_dlopen_self=cross
10487else
10488  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489  lt_status=$lt_dlunknown
10490  cat > conftest.$ac_ext <<EOF
10491#line 10491 "configure"
10492#include "confdefs.h"
10493
10494#if HAVE_DLFCN_H
10495#include <dlfcn.h>
10496#endif
10497
10498#include <stdio.h>
10499
10500#ifdef RTLD_GLOBAL
10501#  define LT_DLGLOBAL           RTLD_GLOBAL
10502#else
10503#  ifdef DL_GLOBAL
10504#    define LT_DLGLOBAL         DL_GLOBAL
10505#  else
10506#    define LT_DLGLOBAL         0
10507#  endif
10508#endif
10509
10510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10511   find out it does not work in some platform. */
10512#ifndef LT_DLLAZY_OR_NOW
10513#  ifdef RTLD_LAZY
10514#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10515#  else
10516#    ifdef DL_LAZY
10517#      define LT_DLLAZY_OR_NOW          DL_LAZY
10518#    else
10519#      ifdef RTLD_NOW
10520#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10521#      else
10522#        ifdef DL_NOW
10523#          define LT_DLLAZY_OR_NOW      DL_NOW
10524#        else
10525#          define LT_DLLAZY_OR_NOW      0
10526#        endif
10527#      endif
10528#    endif
10529#  endif
10530#endif
10531
10532#ifdef __cplusplus
10533extern "C" void exit (int);
10534#endif
10535
10536void fnord() { int i=42;}
10537int main ()
10538{
10539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540  int status = $lt_dlunknown;
10541
10542  if (self)
10543    {
10544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10545      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546      /* dlclose (self); */
10547    }
10548  else
10549    puts (dlerror ());
10550
10551    exit (status);
10552}
10553EOF
10554  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555  (eval $ac_link) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10559    (./conftest; exit; ) >&5 2>/dev/null
10560    lt_status=$?
10561    case x$lt_status in
10562      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10563      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10564      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10565    esac
10566  else :
10567    # compilation failed
10568    lt_cv_dlopen_self=no
10569  fi
10570fi
10571rm -fr conftest*
10572
10573
10574fi
10575echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10576echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10577
10578    if test "x$lt_cv_dlopen_self" = xyes; then
10579      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10580      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10581echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10582if test "${lt_cv_dlopen_self_static+set}" = set; then
10583  echo $ECHO_N "(cached) $ECHO_C" >&6
10584else
10585          if test "$cross_compiling" = yes; then :
10586  lt_cv_dlopen_self_static=cross
10587else
10588  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10589  lt_status=$lt_dlunknown
10590  cat > conftest.$ac_ext <<EOF
10591#line 10591 "configure"
10592#include "confdefs.h"
10593
10594#if HAVE_DLFCN_H
10595#include <dlfcn.h>
10596#endif
10597
10598#include <stdio.h>
10599
10600#ifdef RTLD_GLOBAL
10601#  define LT_DLGLOBAL           RTLD_GLOBAL
10602#else
10603#  ifdef DL_GLOBAL
10604#    define LT_DLGLOBAL         DL_GLOBAL
10605#  else
10606#    define LT_DLGLOBAL         0
10607#  endif
10608#endif
10609
10610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10611   find out it does not work in some platform. */
10612#ifndef LT_DLLAZY_OR_NOW
10613#  ifdef RTLD_LAZY
10614#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10615#  else
10616#    ifdef DL_LAZY
10617#      define LT_DLLAZY_OR_NOW          DL_LAZY
10618#    else
10619#      ifdef RTLD_NOW
10620#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10621#      else
10622#        ifdef DL_NOW
10623#          define LT_DLLAZY_OR_NOW      DL_NOW
10624#        else
10625#          define LT_DLLAZY_OR_NOW      0
10626#        endif
10627#      endif
10628#    endif
10629#  endif
10630#endif
10631
10632#ifdef __cplusplus
10633extern "C" void exit (int);
10634#endif
10635
10636void fnord() { int i=42;}
10637int main ()
10638{
10639  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10640  int status = $lt_dlunknown;
10641
10642  if (self)
10643    {
10644      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10645      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10646      /* dlclose (self); */
10647    }
10648  else
10649    puts (dlerror ());
10650
10651    exit (status);
10652}
10653EOF
10654  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655  (eval $ac_link) 2>&5
10656  ac_status=$?
10657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10659    (./conftest; exit; ) >&5 2>/dev/null
10660    lt_status=$?
10661    case x$lt_status in
10662      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10663      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10664      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10665    esac
10666  else :
10667    # compilation failed
10668    lt_cv_dlopen_self_static=no
10669  fi
10670fi
10671rm -fr conftest*
10672
10673
10674fi
10675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10676echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10677    fi
10678
10679    CPPFLAGS="$save_CPPFLAGS"
10680    LDFLAGS="$save_LDFLAGS"
10681    LIBS="$save_LIBS"
10682    ;;
10683  esac
10684
10685  case $lt_cv_dlopen_self in
10686  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10687  *) enable_dlopen_self=unknown ;;
10688  esac
10689
10690  case $lt_cv_dlopen_self_static in
10691  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10692  *) enable_dlopen_self_static=unknown ;;
10693  esac
10694fi
10695
10696
10697# Report which library types will actually be built
10698echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10699echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10700echo "$as_me:$LINENO: result: $can_build_shared" >&5
10701echo "${ECHO_T}$can_build_shared" >&6
10702
10703echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10704echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10705test "$can_build_shared" = "no" && enable_shared=no
10706
10707# On AIX, shared libraries and static libraries use the same namespace, and
10708# are all built from PIC.
10709case $host_os in
10710aix3*)
10711  test "$enable_shared" = yes && enable_static=no
10712  if test -n "$RANLIB"; then
10713    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10714    postinstall_cmds='$RANLIB $lib'
10715  fi
10716  ;;
10717
10718aix4* | aix5*)
10719  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10720    test "$enable_shared" = yes && enable_static=no
10721  fi
10722    ;;
10723esac
10724echo "$as_me:$LINENO: result: $enable_shared" >&5
10725echo "${ECHO_T}$enable_shared" >&6
10726
10727echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10728echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10729# Make sure either enable_shared or enable_static is yes.
10730test "$enable_shared" = yes || enable_static=yes
10731echo "$as_me:$LINENO: result: $enable_static" >&5
10732echo "${ECHO_T}$enable_static" >&6
10733
10734# The else clause should only fire when bootstrapping the
10735# libtool distribution, otherwise you forgot to ship ltmain.sh
10736# with your package, and you will get complaints that there are
10737# no rules to generate ltmain.sh.
10738if test -f "$ltmain"; then
10739  # See if we are running on zsh, and set the options which allow our commands through
10740  # without removal of \ escapes.
10741  if test -n "${ZSH_VERSION+set}" ; then
10742    setopt NO_GLOB_SUBST
10743  fi
10744  # Now quote all the things that may contain metacharacters while being
10745  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10746  # variables and quote the copies for generation of the libtool script.
10747  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10748    SED SHELL STRIP \
10749    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10750    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10751    deplibs_check_method reload_flag reload_cmds need_locks \
10752    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10753    lt_cv_sys_global_symbol_to_c_name_address \
10754    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10755    old_postinstall_cmds old_postuninstall_cmds \
10756    compiler \
10757    CC \
10758    LD \
10759    lt_prog_compiler_wl \
10760    lt_prog_compiler_pic \
10761    lt_prog_compiler_static \
10762    lt_prog_compiler_no_builtin_flag \
10763    export_dynamic_flag_spec \
10764    thread_safe_flag_spec \
10765    whole_archive_flag_spec \
10766    enable_shared_with_static_runtimes \
10767    old_archive_cmds \
10768    old_archive_from_new_cmds \
10769    predep_objects \
10770    postdep_objects \
10771    predeps \
10772    postdeps \
10773    compiler_lib_search_path \
10774    archive_cmds \