source: ThirdParty/ASL/trunk/configure @ 3284

Last change on this file since 3284 was 3284, checked in by tkr, 5 years ago

temporarily committing stable candidate

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