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

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

temporarily committing release candidate

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