source: ThirdParty/ASL/stable/1.0/configure @ 907

Last change on this file since 907 was 907, checked in by andreasw, 12 years ago

temporarily committing release candidate to stable

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