source: ThirdParty/FilterSQP/trunk/configure @ 205

Last change on this file since 205 was 205, checked in by andreasw, 13 years ago

reran autotools

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