source: ThirdParty/Glpk/trunk/configure @ 1472

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

update to use glpk 4.43

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