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

Last change on this file since 2132 was 2132, checked in by stefan, 11 years ago

temporarily committing release candidate

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