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

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

rerun autotools; generate addlibs files from .pc files; remove empty README's

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