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

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

restoring BuildTools/ThirdParty?/ASL/stable/1.2

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