source: ThirdParty/Metis/trunk/configure @ 2682

Last change on this file since 2682 was 2682, checked in by stefan, 9 years ago

rerun autotools

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