source: ThirdParty/Glpk/branches/BSPsplit/configure @ 1437

Last change on this file since 1437 was 1437, checked in by stefan, 10 years ago

rerun autotools

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