source: ThirdParty/FilterSQP/trunk/configure @ 809

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

reran autotools with latest BuildTools?/trunk

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