source: ThirdParty/Glpk/trunk/configure @ 1411

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

revert my recent changes related to BSPsplit after copying them into branches

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