source: ThirdParty/Metis/stable/1.1/configure @ 2134

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

restoring BuildTools/ThirdParty/Metis?/stable/1.1

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