source: ThirdParty/Metis/stable/1.3/configure @ 3736

Last change on this file since 3736 was 3736, checked in by stefan, 3 years ago

temporarily committing release candidate

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