source: ThirdParty/ASL/stable/1.2/configure @ 2848

Last change on this file since 2848 was 2848, checked in by stefan, 7 years ago

temporarily committing release candidate

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