source: ThirdParty/ASL/trunk/configure @ 589

Last change on this file since 589 was 588, checked in by andreasw, 12 years ago

included changes proposed by Lou Hafer for ASL configuration and compilation with MSVC

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