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

Last change on this file since 3049 was 3049, checked in by stefan, 6 years ago

sync with trunk

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