source: ThirdParty/ASL/trunk/configure @ 1004

Last change on this file since 1004 was 1004, checked in by lou, 12 years ago

Fix a problem where compile_*_ASL scripts would not receive executable
permission when regenerated by config.status.

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