source: ThirdParty/FilterSQP/trunk/configure @ 331

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

reran autotools (use compile_f2c script)

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