source: ThirdParty/Metis/branches/split/configure @ 1490

Last change on this file since 1490 was 1490, checked in by stefan, 10 years ago

change externals to use split branches; rerun autotools after changing to use BuildTools?/branches/split

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