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

Last change on this file since 2988 was 2988, checked in by tkr, 6 years ago

Re-running the autotools

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