source: ThirdParty/Metis/trunk/configure @ 2222

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

rerun autotools

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