source: ThirdParty/FilterSQP/trunk/configure @ 448

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

reran autotools with latest BuildTools?/trunk

File size: 726.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyFilterSQP 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyFilterSQP 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-filtersqp
1075                          compile this project (FilterSQP) with debug options
1076  --enable-doscompile     Under Cygwin, compile so that executables run under
1077                          DOS. Set to mingw to use gcc/g++/ld with
1078                          -mno-cygwin. Set to msvc to use cl/link. Default
1079                          when mentioned: mingw. Default when not mentioned:
1080                          disabled.
1081  --disable-dependency-tracking  speeds up one-time build
1082  --enable-dependency-tracking   do not reject slow dependency extractors
1083  --enable-maintainer-mode  enable make rules and dependencies not useful
1084                          (and sometimes confusing) to the casual installer
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --enable-shared[=PKGS]
1088                          build shared libraries [default=yes]
1089  --enable-fast-install[=PKGS]
1090                          optimize for fast installation [default=yes]
1091  --disable-libtool-lock  avoid locking (might break parallel builds)
1092
1093Optional Packages:
1094  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1095  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1096  --with-filtersqp-verbosity
1097                          specify the debug verbosity level for project
1098                          FilterSQP
1099  --with-filtersqp-checklevel
1100                          specify the sanity check level for project FilterSQP
1101  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1102  --with-pic              try to use only PIC/non-PIC objects [default=use
1103                          both]
1104  --with-tags[=TAGS]
1105                          include additional configurations [automatic]
1106
1107Some influential environment variables:
1108  CDEFS       Additional -D flags to be used when compiling C code.
1109  ADD_CFLAGS  Additional C compiler options
1110  DBG_CFLAGS  Debug C compiler options
1111  OPT_CFLAGS  Optimize C compiler options
1112  CC          C compiler command
1113  CFLAGS      C compiler flags
1114  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1115              nonstandard directory <lib dir>
1116  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1117              headers in a nonstandard directory <include dir>
1118  MPICC       C MPI Compiler
1119  ADD_FFLAGS  Additional Fortran compiler options
1120  DBG_FFLAGS  Debug Fortran compiler options
1121  OPT_FFLAGS  Optimize Fortran compiler options
1122  F77         Fortran 77 compiler command
1123  FFLAGS      Fortran 77 compiler flags
1124  MPIF77      Fortran MPI Compiler
1125  CPP         C preprocessor
1126  CXX         C++ compiler command
1127  CXXFLAGS    C++ compiler flags
1128  CXXCPP      C++ preprocessor
1129
1130Use these variables to override the choices made by `configure' or to help
1131it to find libraries and programs with nonstandard names/locations.
1132
1133Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1134_ACEOF
1135fi
1136
1137if test "$ac_init_help" = "recursive"; then
1138  # If there are subdirs, report their specific --help.
1139  ac_popdir=`pwd`
1140  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1141    test -d $ac_dir || continue
1142    ac_builddir=.
1143
1144if test "$ac_dir" != .; then
1145  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1146  # A "../" for each directory in $ac_dir_suffix.
1147  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1148else
1149  ac_dir_suffix= ac_top_builddir=
1150fi
1151
1152case $srcdir in
1153  .)  # No --srcdir option.  We are building in place.
1154    ac_srcdir=.
1155    if test -z "$ac_top_builddir"; then
1156       ac_top_srcdir=.
1157    else
1158       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1159    fi ;;
1160  [\\/]* | ?:[\\/]* )  # Absolute path.
1161    ac_srcdir=$srcdir$ac_dir_suffix;
1162    ac_top_srcdir=$srcdir ;;
1163  *) # Relative path.
1164    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1165    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1166esac
1167
1168# Do not use `cd foo && pwd` to compute absolute paths, because
1169# the directories may not exist.
1170case `pwd` in
1171.) ac_abs_builddir="$ac_dir";;
1172*)
1173  case "$ac_dir" in
1174  .) ac_abs_builddir=`pwd`;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1176  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_top_builddir=${ac_top_builddir}.;;
1181*)
1182  case ${ac_top_builddir}. in
1183  .) ac_abs_top_builddir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1185  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_srcdir=$ac_srcdir;;
1190*)
1191  case $ac_srcdir in
1192  .) ac_abs_srcdir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1194  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_top_srcdir=$ac_top_srcdir;;
1199*)
1200  case $ac_top_srcdir in
1201  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1203  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1204  esac;;
1205esac
1206
1207    cd $ac_dir
1208    # Check for guested configure; otherwise get Cygnus style configure.
1209    if test -f $ac_srcdir/configure.gnu; then
1210      echo
1211      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1212    elif test -f $ac_srcdir/configure; then
1213      echo
1214      $SHELL $ac_srcdir/configure  --help=recursive
1215    elif test -f $ac_srcdir/configure.ac ||
1216           test -f $ac_srcdir/configure.in; then
1217      echo
1218      $ac_configure --help
1219    else
1220      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1221    fi
1222    cd $ac_popdir
1223  done
1224fi
1225
1226test -n "$ac_init_help" && exit 0
1227if $ac_init_version; then
1228  cat <<\_ACEOF
1229ThirdPartyFilterSQP configure 0.0
1230generated by GNU Autoconf 2.59
1231
1232Copyright (C) 2003 Free Software Foundation, Inc.
1233This configure script is free software; the Free Software Foundation
1234gives unlimited permission to copy, distribute and modify it.
1235
1236
1237Copyright 2006 International Business Machines and others.
1238All Rights Reserved.
1239This file is part of the open source package Coin which is distributed
1240under the Common Public License.
1241_ACEOF
1242  exit 0
1243fi
1244exec 5>config.log
1245cat >&5 <<_ACEOF
1246This file contains any messages produced by compilers while
1247running configure, to aid debugging if configure makes a mistake.
1248
1249It was created by ThirdPartyFilterSQP $as_me 0.0, which was
1250generated by GNU Autoconf 2.59.  Invocation command line was
1251
1252  $ $0 $@
1253
1254_ACEOF
1255{
1256cat <<_ASUNAME
1257## --------- ##
1258## Platform. ##
1259## --------- ##
1260
1261hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1262uname -m = `(uname -m) 2>/dev/null || echo unknown`
1263uname -r = `(uname -r) 2>/dev/null || echo unknown`
1264uname -s = `(uname -s) 2>/dev/null || echo unknown`
1265uname -v = `(uname -v) 2>/dev/null || echo unknown`
1266
1267/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1268/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1269
1270/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1271/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1272/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1273hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1274/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1275/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1276/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1277
1278_ASUNAME
1279
1280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1281for as_dir in $PATH
1282do
1283  IFS=$as_save_IFS
1284  test -z "$as_dir" && as_dir=.
1285  echo "PATH: $as_dir"
1286done
1287
1288} >&5
1289
1290cat >&5 <<_ACEOF
1291
1292
1293## ----------- ##
1294## Core tests. ##
1295## ----------- ##
1296
1297_ACEOF
1298
1299
1300# Keep a trace of the command line.
1301# Strip out --no-create and --no-recursion so they do not pile up.
1302# Strip out --silent because we don't want to record it for future runs.
1303# Also quote any args containing shell meta-characters.
1304# Make two passes to allow for proper duplicate-argument suppression.
1305ac_configure_args=
1306ac_configure_args0=
1307ac_configure_args1=
1308ac_sep=
1309ac_must_keep_next=false
1310for ac_pass in 1 2
1311do
1312  for ac_arg
1313  do
1314    case $ac_arg in
1315    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1316    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317    | -silent | --silent | --silen | --sile | --sil)
1318      continue ;;
1319    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1321    esac
1322    case $ac_pass in
1323    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1324    2)
1325      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1326      if test $ac_must_keep_next = true; then
1327        ac_must_keep_next=false # Got value, back to normal.
1328      else
1329        case $ac_arg in
1330          *=* | --config-cache | -C | -disable-* | --disable-* \
1331          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1332          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1333          | -with-* | --with-* | -without-* | --without-* | --x)
1334            case "$ac_configure_args0 " in
1335              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1336            esac
1337            ;;
1338          -* ) ac_must_keep_next=true ;;
1339        esac
1340      fi
1341      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1342      # Get rid of the leading space.
1343      ac_sep=" "
1344      ;;
1345    esac
1346  done
1347done
1348$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1349$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1350
1351# When interrupted or exit'd, cleanup temporary files, and complete
1352# config.log.  We remove comments because anyway the quotes in there
1353# would cause problems or look ugly.
1354# WARNING: Be sure not to use single quotes in there, as some shells,
1355# such as our DU 5.0 friend, will then `close' the trap.
1356trap 'exit_status=$?
1357  # Save into config.log some information that might help in debugging.
1358  {
1359    echo
1360
1361    cat <<\_ASBOX
1362## ---------------- ##
1363## Cache variables. ##
1364## ---------------- ##
1365_ASBOX
1366    echo
1367    # The following way of writing the cache mishandles newlines in values,
1368{
1369  (set) 2>&1 |
1370    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1371    *ac_space=\ *)
1372      sed -n \
1373        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1374          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1375      ;;
1376    *)
1377      sed -n \
1378        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1379      ;;
1380    esac;
1381}
1382    echo
1383
1384    cat <<\_ASBOX
1385## ----------------- ##
1386## Output variables. ##
1387## ----------------- ##
1388_ASBOX
1389    echo
1390    for ac_var in $ac_subst_vars
1391    do
1392      eval ac_val=$`echo $ac_var`
1393      echo "$ac_var='"'"'$ac_val'"'"'"
1394    done | sort
1395    echo
1396
1397    if test -n "$ac_subst_files"; then
1398      cat <<\_ASBOX
1399## ------------- ##
1400## Output files. ##
1401## ------------- ##
1402_ASBOX
1403      echo
1404      for ac_var in $ac_subst_files
1405      do
1406        eval ac_val=$`echo $ac_var`
1407        echo "$ac_var='"'"'$ac_val'"'"'"
1408      done | sort
1409      echo
1410    fi
1411
1412    if test -s confdefs.h; then
1413      cat <<\_ASBOX
1414## ----------- ##
1415## confdefs.h. ##
1416## ----------- ##
1417_ASBOX
1418      echo
1419      sed "/^$/d" confdefs.h | sort
1420      echo
1421    fi
1422    test "$ac_signal" != 0 &&
1423      echo "$as_me: caught signal $ac_signal"
1424    echo "$as_me: exit $exit_status"
1425  } >&5
1426  rm -f core *.core &&
1427  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1428    exit $exit_status
1429     ' 0
1430for ac_signal in 1 2 13 15; do
1431  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1432done
1433ac_signal=0
1434
1435# confdefs.h avoids OS command line length limits that DEFS can exceed.
1436rm -rf conftest* confdefs.h
1437# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1438echo >confdefs.h
1439
1440# Predefined preprocessor variables.
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_NAME "$PACKAGE_NAME"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_VERSION "$PACKAGE_VERSION"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_STRING "$PACKAGE_STRING"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1464_ACEOF
1465
1466
1467# Let the site file select an alternate cache file if it wants to.
1468# Prefer explicitly selected file to automatically selected ones.
1469if test -z "$CONFIG_SITE"; then
1470  if test "x$prefix" != xNONE; then
1471    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1472  else
1473    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1474  fi
1475fi
1476for ac_site_file in $CONFIG_SITE; do
1477  if test -r "$ac_site_file"; then
1478    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1479echo "$as_me: loading site script $ac_site_file" >&6;}
1480    sed 's/^/| /' "$ac_site_file" >&5
1481    . "$ac_site_file"
1482  fi
1483done
1484
1485if test -r "$cache_file"; then
1486  # Some versions of bash will fail to source /dev/null (special
1487  # files actually), so we avoid doing that.
1488  if test -f "$cache_file"; then
1489    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1490echo "$as_me: loading cache $cache_file" >&6;}
1491    case $cache_file in
1492      [\\/]* | ?:[\\/]* ) . $cache_file;;
1493      *)                      . ./$cache_file;;
1494    esac
1495  fi
1496else
1497  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1498echo "$as_me: creating cache $cache_file" >&6;}
1499  >$cache_file
1500fi
1501
1502# Check that the precious variables saved in the cache have kept the same
1503# value.
1504ac_cache_corrupted=false
1505for ac_var in `(set) 2>&1 |
1506               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1507  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1508  eval ac_new_set=\$ac_env_${ac_var}_set
1509  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1510  eval ac_new_val="\$ac_env_${ac_var}_value"
1511  case $ac_old_set,$ac_new_set in
1512    set,)
1513      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1514echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1515      ac_cache_corrupted=: ;;
1516    ,set)
1517      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1518echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1519      ac_cache_corrupted=: ;;
1520    ,);;
1521    *)
1522      if test "x$ac_old_val" != "x$ac_new_val"; then
1523        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1524echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1525        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1526echo "$as_me:   former value:  $ac_old_val" >&2;}
1527        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1528echo "$as_me:   current value: $ac_new_val" >&2;}
1529        ac_cache_corrupted=:
1530      fi;;
1531  esac
1532  # Pass precious variables to config.status.
1533  if test "$ac_new_set" = set; then
1534    case $ac_new_val in
1535    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1536      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1537    *) ac_arg=$ac_var=$ac_new_val ;;
1538    esac
1539    case " $ac_configure_args " in
1540      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1541      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1542    esac
1543  fi
1544done
1545if $ac_cache_corrupted; then
1546  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1547echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1548  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1549echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1550   { (exit 1); exit 1; }; }
1551fi
1552
1553ac_ext=c
1554ac_cpp='$CPP $CPPFLAGS'
1555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1557ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588# List one file in the package so that the configure script can test
1589# whether the package is actually there
1590
1591
1592# Where should everything be installed by default?  Here, we want it
1593# to be installed directly in 'bin', 'lib', 'include' subdirectories
1594# of the directory where configure is run.  The default would be
1595# /usr/local.
1596
1597
1598# Initialize the ADDLIBS variable
1599ADDLIBS="-lm $LIBS"
1600
1601
1602# Initialize the FADDLIBS variable (which is to be used with a fortran
1603# compiler and will not include FLIBS)
1604FADDLIBS="$LIBS"
1605
1606
1607# A useful makefile conditional that is always false
1608
1609
1610if false; then
1611  ALWAYS_FALSE_TRUE=
1612  ALWAYS_FALSE_FALSE='#'
1613else
1614  ALWAYS_FALSE_TRUE='#'
1615  ALWAYS_FALSE_FALSE=
1616fi
1617
1618
1619# We set the following variable so that we know later in AC_COIN_FINALIZE
1620# that we are in a project main directory
1621coin_projectdir=yes
1622
1623
1624#############################################################################
1625#                         Standard build tool stuff                         #
1626#############################################################################
1627
1628# Get the system type
1629ac_aux_dir=
1630for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1631  if test -f $ac_dir/install-sh; then
1632    ac_aux_dir=$ac_dir
1633    ac_install_sh="$ac_aux_dir/install-sh -c"
1634    break
1635  elif test -f $ac_dir/install.sh; then
1636    ac_aux_dir=$ac_dir
1637    ac_install_sh="$ac_aux_dir/install.sh -c"
1638    break
1639  elif test -f $ac_dir/shtool; then
1640    ac_aux_dir=$ac_dir
1641    ac_install_sh="$ac_aux_dir/shtool install -c"
1642    break
1643  fi
1644done
1645if test -z "$ac_aux_dir"; then
1646  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1647echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1648   { (exit 1); exit 1; }; }
1649fi
1650ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1651ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1652ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653
1654# Make sure we can run config.sub.
1655$ac_config_sub sun4 >/dev/null 2>&1 ||
1656  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1657echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1658   { (exit 1); exit 1; }; }
1659
1660echo "$as_me:$LINENO: checking build system type" >&5
1661echo $ECHO_N "checking build system type... $ECHO_C" >&6
1662if test "${ac_cv_build+set}" = set; then
1663  echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665  ac_cv_build_alias=$build_alias
1666test -z "$ac_cv_build_alias" &&
1667  ac_cv_build_alias=`$ac_config_guess`
1668test -z "$ac_cv_build_alias" &&
1669  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1670echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1671   { (exit 1); exit 1; }; }
1672ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1673  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1674echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1675   { (exit 1); exit 1; }; }
1676
1677fi
1678echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1679echo "${ECHO_T}$ac_cv_build" >&6
1680build=$ac_cv_build
1681build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684
1685
1686
1687# Check if user wants to produce debugging code
1688
1689echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1690echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1691
1692# Check whether --enable-debug or --disable-debug was given.
1693if test "${enable_debug+set}" = set; then
1694  enableval="$enable_debug"
1695  case "${enableval}" in
1696   yes) coin_debug_compile=true
1697        if test "${enable_shared+set}" = set; then :; else
1698          enable_shared=no
1699        fi
1700        ;;
1701   no)  coin_debug_compile=false
1702        ;;
1703   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1704echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1705   { (exit 1); exit 1; }; }
1706        ;;
1707esac
1708else
1709  coin_debug_compile=false
1710fi;
1711
1712# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1713if test "${enable_debug_filtersqp+set}" = set; then
1714  enableval="$enable_debug_filtersqp"
1715  case "${enableval}" in
1716    yes) coin_debug_compile=true
1717         enable_shared=no
1718         ;;
1719    no)  coin_debug_compile=false
1720         ;;
1721    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1722echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1723   { (exit 1); exit 1; }; }
1724         ;;
1725 esac
1726else
1727  :
1728fi;
1729
1730 # m4_ifvaln([FilterSQP],
1731
1732if test $coin_debug_compile = true; then
1733  echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
1735else
1736  echo "$as_me:$LINENO: result: no" >&5
1737echo "${ECHO_T}no" >&6
1738fi
1739
1740
1741# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1742if test "${with_filtersqp_verbosity+set}" = set; then
1743  withval="$with_filtersqp_verbosity"
1744  if test "$withval" = yes; then
1745                withval=1
1746              fi
1747              coin_filtersqp_verbosity=$withval
1748else
1749  coin_filtersqp_verbosity=0
1750fi;
1751
1752cat >>confdefs.h <<_ACEOF
1753#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1754_ACEOF
1755
1756
1757
1758# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1759if test "${with_filtersqp_checklevel+set}" = set; then
1760  withval="$with_filtersqp_checklevel"
1761  if test "$withval" = yes; then
1762                withval=1
1763              fi
1764              coin_filtersqp_checklevel=$withval
1765else
1766  coin_filtersqp_checklevel=0
1767fi;
1768
1769cat >>confdefs.h <<_ACEOF
1770#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1771_ACEOF
1772
1773
1774# We use the following variable to have a string with the upper case
1775# version of the project name
1776COIN_PRJCT=FILTERSQP
1777
1778
1779 # m4_ifvaln([FilterSQP],
1780
1781
1782
1783# Get the name of the Fortran compiler and appropriate compiler options
1784case $build in
1785  *-mingw*)
1786    if test "${LD+set}" = set; then :; else
1787      LD=link
1788    fi
1789    ;;
1790 esac
1791 case $enable_doscompile in
1792   msvc)
1793     if test "x${LD+set}" = xset; then :; else
1794       LD=link
1795     fi
1796     ;;
1797 esac
1798
1799
1800 # Check whether --enable-doscompile or --disable-doscompile was given.
1801if test "${enable_doscompile+set}" = set; then
1802  enableval="$enable_doscompile"
1803  if test "$enable_doscompile" != no; then
1804     case $build in
1805       *-cygwin*) ;;
1806       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1807echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1808   { (exit 1); exit 1; }; } ;;
1809     esac
1810   fi
1811else
1812  enable_doscompile=no
1813fi;
1814 case "$enable_doscompile" in
1815   msvc|mingw|no) ;;
1816   yes) enable_doscompile=mingw ;;
1817   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1818                    Try configure --help=recursive." >&5
1819echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1820                    Try configure --help=recursive." >&2;}
1821   { (exit 1); exit 1; }; }
1822      ;;
1823  esac
1824  if test "$enable_doscompile" != no ; then
1825    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1826echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1827  fi
1828
1829
1830
1831
1832ac_ext=c
1833ac_cpp='$CPP $CPPFLAGS'
1834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837
1838
1839# For consistency, we set the C compiler to the same value of the C++
1840# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1841if test x"$CXX" != x; then
1842  case "$CXX" in
1843    cl* | */cl* | CL* | */CL*)
1844      if test x"$CC" = x; then
1845        CC="$CXX"
1846        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1847echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1848      fi
1849      ;;
1850  esac
1851fi
1852
1853
1854
1855
1856
1857
1858coin_has_cc=yes
1859
1860save_cflags="$CFLAGS"
1861# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1862# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1863# is likely to be a non-functional shell. But many installations will have
1864# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1865case $build in
1866  *-cygwin* | *-mingw*)
1867             if test "$enable_doscompile" = msvc ; then
1868               comps="cl"
1869             else
1870               comps="gcc cl"
1871             fi ;;
1872  sparc-sun-solaris*)
1873             comps="cc xlc gcc pgcc icc" ;;
1874  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1875  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1876esac
1877
1878# We delete the cached value, since the test might not have been
1879# performed with our choice of compilers earlier
1880$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1881# AC_MSG_NOTICE([C compiler candidates: $comps])
1882ac_ext=c
1883ac_cpp='$CPP $CPPFLAGS'
1884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887if test -n "$ac_tool_prefix"; then
1888  for ac_prog in $comps
1889  do
1890    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_CC+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test -n "$CC"; then
1898  ac_cv_prog_CC="$CC" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  test -z "$as_dir" && as_dir=.
1905  for ac_exec_ext in '' $ac_executable_extensions; do
1906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909    break 2
1910  fi
1911done
1912done
1913
1914fi
1915fi
1916CC=$ac_cv_prog_CC
1917if test -n "$CC"; then
1918  echo "$as_me:$LINENO: result: $CC" >&5
1919echo "${ECHO_T}$CC" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925    test -n "$CC" && break
1926  done
1927fi
1928if test -z "$CC"; then
1929  ac_ct_CC=$CC
1930  for ac_prog in $comps
1931do
1932  # Extract the first word of "$ac_prog", so it can be a program name with args.
1933set dummy $ac_prog; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937  echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939  if test -n "$ac_ct_CC"; then
1940  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945  IFS=$as_save_IFS
1946  test -z "$as_dir" && as_dir=.
1947  for ac_exec_ext in '' $ac_executable_extensions; do
1948  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949    ac_cv_prog_ac_ct_CC="$ac_prog"
1950    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951    break 2
1952  fi
1953done
1954done
1955
1956fi
1957fi
1958ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959if test -n "$ac_ct_CC"; then
1960  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961echo "${ECHO_T}$ac_ct_CC" >&6
1962else
1963  echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965fi
1966
1967  test -n "$ac_ct_CC" && break
1968done
1969
1970  CC=$ac_ct_CC
1971fi
1972
1973
1974test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: no acceptable C compiler found in \$PATH
1977See \`config.log' for more details." >&2;}
1978   { (exit 1); exit 1; }; }
1979
1980# Provide some information about the compiler.
1981echo "$as_me:$LINENO:" \
1982     "checking for C compiler version" >&5
1983ac_compiler=`set X $ac_compile; echo $2`
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1985  (eval $ac_compiler --version </dev/null >&5) 2>&5
1986  ac_status=$?
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); }
1989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1990  (eval $ac_compiler -v </dev/null >&5) 2>&5
1991  ac_status=$?
1992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993  (exit $ac_status); }
1994{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1995  (eval $ac_compiler -V </dev/null >&5) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }
1999
2000cat >conftest.$ac_ext <<_ACEOF
2001/* confdefs.h.  */
2002_ACEOF
2003cat confdefs.h >>conftest.$ac_ext
2004cat >>conftest.$ac_ext <<_ACEOF
2005/* end confdefs.h.  */
2006
2007int
2008main ()
2009{
2010
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015ac_clean_files_save=$ac_clean_files
2016ac_clean_files="$ac_clean_files a.out a.exe b.out"
2017# Try to create an executable without -o first, disregard a.out.
2018# It will help us diagnose broken compilers, and finding out an intuition
2019# of exeext.
2020echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2021echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2022ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2023if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2024  (eval $ac_link_default) 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }; then
2028  # Find the output, starting from the most likely.  This scheme is
2029# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2030# resort.
2031
2032# Be careful to initialize this variable, since it used to be cached.
2033# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2034ac_cv_exeext=
2035# b.out is created by i960 compilers.
2036for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2037do
2038  test -f "$ac_file" || continue
2039  case $ac_file in
2040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2041        ;;
2042    conftest.$ac_ext )
2043        # This is the source file.
2044        ;;
2045    [ab].out )
2046        # We found the default executable, but exeext='' is most
2047        # certainly right.
2048        break;;
2049    *.* )
2050        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051        # FIXME: I believe we export ac_cv_exeext for Libtool,
2052        # but it would be cool to find out if it's true.  Does anybody
2053        # maintain Libtool? --akim.
2054        export ac_cv_exeext
2055        break;;
2056    * )
2057        break;;
2058  esac
2059done
2060else
2061  echo "$as_me: failed program was:" >&5
2062sed 's/^/| /' conftest.$ac_ext >&5
2063
2064{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: C compiler cannot create executables
2067See \`config.log' for more details." >&2;}
2068   { (exit 77); exit 77; }; }
2069fi
2070
2071ac_exeext=$ac_cv_exeext
2072echo "$as_me:$LINENO: result: $ac_file" >&5
2073echo "${ECHO_T}$ac_file" >&6
2074
2075# Check the compiler produces executables we can run.  If not, either
2076# the compiler is broken, or we cross compile.
2077echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2078echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2079# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2080# If not cross compiling, check that we can run a simple program.
2081if test "$cross_compiling" != yes; then
2082  if { ac_try='./$ac_file'
2083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084  (eval $ac_try) 2>&5
2085  ac_status=$?
2086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087  (exit $ac_status); }; }; then
2088    cross_compiling=no
2089  else
2090    if test "$cross_compiling" = maybe; then
2091        cross_compiling=yes
2092    else
2093        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2094If you meant to cross compile, use \`--host'.
2095See \`config.log' for more details." >&5
2096echo "$as_me: error: cannot run C compiled programs.
2097If you meant to cross compile, use \`--host'.
2098See \`config.log' for more details." >&2;}
2099   { (exit 1); exit 1; }; }
2100    fi
2101  fi
2102fi
2103echo "$as_me:$LINENO: result: yes" >&5
2104echo "${ECHO_T}yes" >&6
2105
2106rm -f a.out a.exe conftest$ac_cv_exeext b.out
2107ac_clean_files=$ac_clean_files_save
2108# Check the compiler produces executables we can run.  If not, either
2109# the compiler is broken, or we cross compile.
2110echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2111echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2112echo "$as_me:$LINENO: result: $cross_compiling" >&5
2113echo "${ECHO_T}$cross_compiling" >&6
2114
2115echo "$as_me:$LINENO: checking for suffix of executables" >&5
2116echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2118  (eval $ac_link) 2>&5
2119  ac_status=$?
2120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121  (exit $ac_status); }; then
2122  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2123# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2124# work properly (i.e., refer to `conftest.exe'), while it won't with
2125# `rm'.
2126for ac_file in conftest.exe conftest conftest.*; do
2127  test -f "$ac_file" || continue
2128  case $ac_file in
2129    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2130    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2131          export ac_cv_exeext
2132          break;;
2133    * ) break;;
2134  esac
2135done
2136else
2137  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2138See \`config.log' for more details." >&5
2139echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2140See \`config.log' for more details." >&2;}
2141   { (exit 1); exit 1; }; }
2142fi
2143
2144rm -f conftest$ac_cv_exeext
2145echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2146echo "${ECHO_T}$ac_cv_exeext" >&6
2147
2148rm -f conftest.$ac_ext
2149EXEEXT=$ac_cv_exeext
2150ac_exeext=$EXEEXT
2151echo "$as_me:$LINENO: checking for suffix of object files" >&5
2152echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2153if test "${ac_cv_objext+set}" = set; then
2154  echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156  cat >conftest.$ac_ext <<_ACEOF
2157/* confdefs.h.  */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h.  */
2162
2163int
2164main ()
2165{
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171rm -f conftest.o conftest.obj
2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173  (eval $ac_compile) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178  case $ac_file in
2179    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2180    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2181       break;;
2182  esac
2183done
2184else
2185  echo "$as_me: failed program was:" >&5
2186sed 's/^/| /' conftest.$ac_ext >&5
2187
2188{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: cannot compute suffix of object files: cannot compile
2191See \`config.log' for more details." >&2;}
2192   { (exit 1); exit 1; }; }
2193fi
2194
2195rm -f conftest.$ac_cv_objext conftest.$ac_ext
2196fi
2197echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2198echo "${ECHO_T}$ac_cv_objext" >&6
2199OBJEXT=$ac_cv_objext
2200ac_objext=$OBJEXT
2201echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2202echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2203if test "${ac_cv_c_compiler_gnu+set}" = set; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  cat >conftest.$ac_ext <<_ACEOF
2207/* confdefs.h.  */
2208_ACEOF
2209cat confdefs.h >>conftest.$ac_ext
2210cat >>conftest.$ac_ext <<_ACEOF
2211/* end confdefs.h.  */
2212
2213int
2214main ()
2215{
2216#ifndef __GNUC__
2217       choke me
2218#endif
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226  (eval $ac_compile) 2>conftest.er1
2227  ac_status=$?
2228  grep -v '^ *+' conftest.er1 >conftest.err
2229  rm -f conftest.er1
2230  cat conftest.err >&5
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); } &&
2233         { ac_try='test -z "$ac_c_werror_flag"
2234                         || test ! -s conftest.err'
2235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236  (eval $ac_try) 2>&5
2237  ac_status=$?
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); }; } &&
2240         { ac_try='test -s conftest.$ac_objext'
2241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242  (eval $ac_try) 2>&5
2243  ac_status=$?
2244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245  (exit $ac_status); }; }; then
2246  ac_compiler_gnu=yes
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251ac_compiler_gnu=no
2252fi
2253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255
2256fi
2257echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2258echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2259GCC=`test $ac_compiler_gnu = yes && echo yes`
2260ac_test_CFLAGS=${CFLAGS+set}
2261ac_save_CFLAGS=$CFLAGS
2262CFLAGS="-g"
2263echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2264echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2265if test "${ac_cv_prog_cc_g+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h.  */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h.  */
2274
2275int
2276main ()
2277{
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285  (eval $ac_compile) 2>conftest.er1
2286  ac_status=$?
2287  grep -v '^ *+' conftest.er1 >conftest.err
2288  rm -f conftest.er1
2289  cat conftest.err >&5
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); } &&
2292         { ac_try='test -z "$ac_c_werror_flag"
2293                         || test ! -s conftest.err'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; } &&
2299         { ac_try='test -s conftest.$ac_objext'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; }; then
2305  ac_cv_prog_cc_g=yes
2306else
2307  echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310ac_cv_prog_cc_g=no
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313fi
2314echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2315echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2316if test "$ac_test_CFLAGS" = set; then
2317  CFLAGS=$ac_save_CFLAGS
2318elif test $ac_cv_prog_cc_g = yes; then
2319  if test "$GCC" = yes; then
2320    CFLAGS="-g -O2"
2321  else
2322    CFLAGS="-g"
2323  fi
2324else
2325  if test "$GCC" = yes; then
2326    CFLAGS="-O2"
2327  else
2328    CFLAGS=
2329  fi
2330fi
2331echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2332echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2333if test "${ac_cv_prog_cc_stdc+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  ac_cv_prog_cc_stdc=no
2337ac_save_CC=$CC
2338cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h.  */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h.  */
2344#include <stdarg.h>
2345#include <stdio.h>
2346#include <sys/types.h>
2347#include <sys/stat.h>
2348/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2349struct buf { int x; };
2350FILE * (*rcsopen) (struct buf *, struct stat *, int);
2351static char *e (p, i)
2352     char **p;
2353     int i;
2354{
2355  return p[i];
2356}
2357static char *f (char * (*g) (char **, int), char **p, ...)
2358{
2359  char *s;
2360  va_list v;
2361  va_start (v,p);
2362  s = g (p, va_arg (v,int));
2363  va_end (v);
2364  return s;
2365}
2366
2367/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2368   function prototypes and stuff, but not '\xHH' hex character constants.
2369   These don't provoke an error unfortunately, instead are silently treated
2370   as 'x'.  The following induces an error, until -std1 is added to get
2371   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2372   array size at least.  It's necessary to write '\x00'==0 to get something
2373   that's true only with -std1.  */
2374int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2375
2376int test (int i, double x);
2377struct s1 {int (*f) (int a);};
2378struct s2 {int (*f) (double a);};
2379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2380int argc;
2381char **argv;
2382int
2383main ()
2384{
2385return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390# Don't try gcc -ansi; that turns off useful extensions and
2391# breaks some systems' header files.
2392# AIX                   -qlanglvl=ansi
2393# Ultrix and OSF/1      -std1
2394# HP-UX 10.20 and later -Ae
2395# HP-UX older versions  -Aa -D_HPUX_SOURCE
2396# SVR4                  -Xc -D__EXTENSIONS__
2397for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398do
2399  CC="$ac_save_CC $ac_arg"
2400  rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>conftest.er1
2403  ac_status=$?
2404  grep -v '^ *+' conftest.er1 >conftest.err
2405  rm -f conftest.er1
2406  cat conftest.err >&5
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); } &&
2409         { ac_try='test -z "$ac_c_werror_flag"
2410                         || test ! -s conftest.err'
2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412  (eval $ac_try) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; } &&
2416         { ac_try='test -s conftest.$ac_objext'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; }; then
2422  ac_cv_prog_cc_stdc=$ac_arg
2423break
2424else
2425  echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
2427
2428fi
2429rm -f conftest.err conftest.$ac_objext
2430done
2431rm -f conftest.$ac_ext conftest.$ac_objext
2432CC=$ac_save_CC
2433
2434fi
2435
2436case "x$ac_cv_prog_cc_stdc" in
2437  x|xno)
2438    echo "$as_me:$LINENO: result: none needed" >&5
2439echo "${ECHO_T}none needed" >&6 ;;
2440  *)
2441    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2442echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2443    CC="$CC $ac_cv_prog_cc_stdc" ;;
2444esac
2445
2446# Some people use a C++ compiler to compile C.  Since we use `exit',
2447# in C++ we need to declare it.  In case someone uses the same compiler
2448# for both compiling C and C++ we need to have the C++ compiler decide
2449# the declaration of exit, since it's the most demanding environment.
2450cat >conftest.$ac_ext <<_ACEOF
2451#ifndef __cplusplus
2452  choke me
2453#endif
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457  (eval $ac_compile) 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } &&
2464         { ac_try='test -z "$ac_c_werror_flag"
2465                         || test ! -s conftest.err'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; } &&
2471         { ac_try='test -s conftest.$ac_objext'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; }; then
2477  for ac_declaration in \
2478   '' \
2479   'extern "C" void std::exit (int) throw (); using std::exit;' \
2480   'extern "C" void std::exit (int); using std::exit;' \
2481   'extern "C" void exit (int) throw ();' \
2482   'extern "C" void exit (int);' \
2483   'void exit (int);'
2484do
2485  cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h.  */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h.  */
2491$ac_declaration
2492#include <stdlib.h>
2493int
2494main ()
2495{
2496exit (42);
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501rm -f conftest.$ac_objext
2502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503  (eval $ac_compile) 2>conftest.er1
2504  ac_status=$?
2505  grep -v '^ *+' conftest.er1 >conftest.err
2506  rm -f conftest.er1
2507  cat conftest.err >&5
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); } &&
2510         { ac_try='test -z "$ac_c_werror_flag"
2511                         || test ! -s conftest.err'
2512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513  (eval $ac_try) 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); }; } &&
2517         { ac_try='test -s conftest.$ac_objext'
2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519  (eval $ac_try) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; }; then
2523  :
2524else
2525  echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528continue
2529fi
2530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531  cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h.  */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h.  */
2537$ac_declaration
2538int
2539main ()
2540{
2541exit (42);
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548  (eval $ac_compile) 2>conftest.er1
2549  ac_status=$?
2550  grep -v '^ *+' conftest.er1 >conftest.err
2551  rm -f conftest.er1
2552  cat conftest.err >&5
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); } &&
2555         { ac_try='test -z "$ac_c_werror_flag"
2556                         || test ! -s conftest.err'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; } &&
2562         { ac_try='test -s conftest.$ac_objext'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; }; then
2568  break
2569else
2570  echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573fi
2574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575done
2576rm -f conftest*
2577if test -n "$ac_declaration"; then
2578  echo '#ifdef __cplusplus' >>confdefs.h
2579  echo $ac_declaration      >>confdefs.h
2580  echo '#endif'             >>confdefs.h
2581fi
2582
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587fi
2588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589ac_ext=c
2590ac_cpp='$CPP $CPPFLAGS'
2591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595if test -z "$CC" ; then
2596  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2597echo "$as_me: error: Failed to find a C compiler!" >&2;}
2598   { (exit 1); exit 1; }; }
2599fi
2600# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2601case "$CC" in
2602  cl* | */cl* | CL* | */CL* )
2603    if test "$ac_cv_prog_cc_g" = yes ; then
2604      ac_cv_prog_cc_g=no
2605      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2606echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2607    fi ;;
2608esac
2609CFLAGS="$save_cflags"
2610
2611# Check if a project specific CFLAGS variable has been set
2612if test x$COIN_PRJCT != x; then
2613  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2614  if test x$coin_tmp = xset; then
2615    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2616  fi
2617fi
2618
2619if test x"$CFLAGS" = x; then
2620
2621  coin_add_cflags=
2622  coin_opt_cflags=
2623  coin_dbg_cflags=
2624  coin_warn_cflags=
2625
2626  if test "$GCC" = "yes"; then
2627    case "$CC" in
2628      icc* | */icc*)
2629        ;;
2630      *)
2631        coin_opt_cflags="-O3 -fomit-frame-pointer"
2632        coin_add_cflags="-pipe"
2633        coin_dbg_cflags="-g"
2634        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2635        case $enable_doscompile in
2636          mingw)
2637            CFLAGS="-mno-cygwin"
2638            cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h.  */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h.  */
2644
2645int
2646main ()
2647{
2648int i=0; i++;
2649  ;
2650  return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext conftest$ac_exeext
2654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2655  (eval $ac_link) 2>conftest.er1
2656  ac_status=$?
2657  grep -v '^ *+' conftest.er1 >conftest.err
2658  rm -f conftest.er1
2659  cat conftest.err >&5
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); } &&
2662         { ac_try='test -z "$ac_c_werror_flag"
2663                         || test ! -s conftest.err'
2664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665  (eval $ac_try) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); }; } &&
2669         { ac_try='test -s conftest$ac_exeext'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; }; then
2675  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2676else
2677  echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680fi
2681rm -f conftest.err conftest.$ac_objext \
2682      conftest$ac_exeext conftest.$ac_ext
2683            CFLAGS=
2684          ;;
2685        esac
2686    esac
2687  fi
2688  if test -z "$coin_opt_cflags"; then
2689    case $build in
2690      *-cygwin* | *-mingw*)
2691        case "$CC" in
2692          cl* | */cl* | CL* | */CL*)
2693            coin_opt_cflags='-MT -O2'
2694            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2695            coin_dbg_cflags='-MTd'
2696            ;;
2697        esac
2698        ;;
2699      *-linux-*)
2700        case "$CC" in
2701          icc* | */icc*)
2702            coin_opt_cflags="-O3 -ip"
2703            coin_add_cflags=""
2704            coin_dbg_cflags="-g"
2705            # Check if -i_dynamic is necessary (for new glibc library)
2706            CFLAGS=
2707            cat >conftest.$ac_ext <<_ACEOF
2708/* confdefs.h.  */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h.  */
2713
2714int
2715main ()
2716{
2717int i=0; i++;
2718  ;
2719  return 0;
2720}
2721_ACEOF
2722rm -f conftest.$ac_objext conftest$ac_exeext
2723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2724  (eval $ac_link) 2>conftest.er1
2725  ac_status=$?
2726  grep -v '^ *+' conftest.er1 >conftest.err
2727  rm -f conftest.er1
2728  cat conftest.err >&5
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); } &&
2731         { ac_try='test -z "$ac_c_werror_flag"
2732                         || test ! -s conftest.err'
2733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734  (eval $ac_try) 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }; } &&
2738         { ac_try='test -s conftest$ac_exeext'
2739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740  (eval $ac_try) 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }; }; then
2744  :
2745else
2746  echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749coin_add_cflags="-i_dynamic $coin_add_cflags"
2750fi
2751rm -f conftest.err conftest.$ac_objext \
2752      conftest$ac_exeext conftest.$ac_ext
2753            ;;
2754          pgcc* | */pgcc*)
2755            coin_opt_cflags="-fast"
2756            coin_add_cflags="-Kieee -pc 64"
2757            coin_dbg_cflags="-g"
2758            ;;
2759        esac
2760        ;;
2761      *-ibm-*)
2762        case "$CC" in
2763          xlc* | */xlc* | mpxlc* | */mpxlc*)
2764            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2765            coin_add_cflags="-bmaxdata:0x80000000"
2766            coin_dbg_cflags="-g"
2767          ;;
2768        esac
2769        ;;
2770      *-hp-*)
2771        coin_opt_cflags="-O"
2772        coin_add_cflags="-Ae"
2773        coin_dbg_cflags="-g"
2774        ;;
2775      *-sun-*)
2776        coin_opt_cflags="-xO4"
2777        coin_dbg_cflags="-g"
2778        ;;
2779      *-sgi-*)
2780        coin_opt_cflags="-O -OPT:Olimit=0"
2781        coin_dbg_cflags="-g"
2782        ;;
2783    esac
2784  fi
2785
2786  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2787    coin_dbg_cflags="-g"
2788  fi
2789
2790  if test -z "$coin_opt_cflags"; then
2791    # Try if -O option works if nothing else is set
2792    CFLAGS="-O"
2793    cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803int i=0; i++;
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext conftest$ac_exeext
2809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2810  (eval $ac_link) 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } &&
2817         { ac_try='test -z "$ac_c_werror_flag"
2818                         || test ! -s conftest.err'
2819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820  (eval $ac_try) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }; } &&
2824         { ac_try='test -s conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  coin_opt_cflags="-O"
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835fi
2836rm -f conftest.err conftest.$ac_objext \
2837      conftest$ac_exeext conftest.$ac_ext
2838  fi
2839
2840  # if PM doesn't want the warning messages, take them out
2841  if test x"$coin_skip_warn_cflags" = xyes; then
2842    coin_warn_cflags=
2843  fi
2844
2845  if test x${DBG_CFLAGS+set} != xset; then
2846    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2847  fi
2848  if test x${OPT_CFLAGS+set} != xset; then
2849    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2850  fi
2851
2852  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2853  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2854
2855  if test "$coin_debug_compile" = "true"; then
2856    CFLAGS="$DBG_CFLAGS"
2857  else
2858    CFLAGS="$OPT_CFLAGS"
2859  fi
2860else
2861  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2862  if test x${DBG_CFLAGS+set} != xset; then
2863    DBG_CFLAGS="$CFLAGS"
2864  fi
2865  if test x${OPT_CFLAGS+set} != xset; then
2866    OPT_CFLAGS="$CFLAGS"
2867  fi
2868fi
2869
2870# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2871
2872case "$CFLAGS" in
2873  *-mno-cygwin*)
2874    if test x${CPPFLAGS+set} != xset ; then
2875      CPPFLAGS="-mno-cygwin"
2876    else
2877      case "$CPPFLAGS" in
2878        *-mno-cygwin*)
2879          ;;
2880        *)
2881          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2882          ;;
2883      esac
2884    fi ;;
2885esac
2886
2887# Try if CFLAGS works
2888save_CFLAGS="$CFLAGS"
2889cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h.  */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h.  */
2895
2896int
2897main ()
2898{
2899int i=0; i++;
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext conftest$ac_exeext
2905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906  (eval $ac_link) 2>conftest.er1
2907  ac_status=$?
2908  grep -v '^ *+' conftest.er1 >conftest.err
2909  rm -f conftest.er1
2910  cat conftest.err >&5
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); } &&
2913         { ac_try='test -z "$ac_c_werror_flag"
2914                         || test ! -s conftest.err'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; } &&
2920         { ac_try='test -s conftest$ac_exeext'
2921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922  (eval $ac_try) 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }; }; then
2926  :
2927else
2928  echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931CFLAGS=
2932fi
2933rm -f conftest.err conftest.$ac_objext \
2934      conftest$ac_exeext conftest.$ac_ext
2935if test -z "$CFLAGS"; then
2936  { 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
2937echo "$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;}
2938  CFLAGS='-O'
2939  cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949int i=0; i++;
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext conftest$ac_exeext
2955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2956  (eval $ac_link) 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } &&
2963         { ac_try='test -z "$ac_c_werror_flag"
2964                         || test ! -s conftest.err'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; } &&
2970         { ac_try='test -s conftest$ac_exeext'
2971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972  (eval $ac_try) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  :
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981CFLAGS=
2982fi
2983rm -f conftest.err conftest.$ac_objext \
2984      conftest$ac_exeext conftest.$ac_ext
2985  if test -z "$CFLAGS"; then
2986    { 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
2987echo "$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;}
2988  fi
2989fi
2990
2991{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2992echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2993
2994
2995if test x"$MPICC" = x; then :; else
2996  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2997echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2998  CC="$MPICC"
2999fi
3000
3001# Correct ADDLIBS initialization if we are using the MS compiler
3002case "$CC" in
3003  cl* | */cl* | CL* | */CL*)
3004    ADDLIBS=
3005    case $build in
3006  *-mingw*)
3007    if test "${LD+set}" = set; then :; else
3008      LD=link
3009    fi
3010    ;;
3011 esac
3012 case $enable_doscompile in
3013   msvc)
3014     if test "x${LD+set}" = xset; then :; else
3015       LD=link
3016     fi
3017     ;;
3018 esac
3019
3020    ;;
3021esac
3022
3023ac_ext=c
3024ac_cpp='$CPP $CPPFLAGS'
3025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028
3029
3030case $build in
3031  *-cygwin* | *-mingw*)
3032     if test "$enable_doscompile" = msvc ; then
3033       coin_f77_comps="ifort fl32 compile_f2c"
3034     else
3035       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3036     fi ;;
3037  sparc-sun-solaris*)
3038     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3039  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3040 esac
3041
3042
3043
3044
3045
3046
3047ac_ext=f
3048ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3049ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3051
3052
3053
3054
3055
3056
3057coin_has_f77=yes
3058
3059save_fflags="$FFLAGS"
3060
3061# We delete the cached value, since the test might not have been
3062# performed with our choice of compilers earlier
3063$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3064
3065# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3066# coin_f77_comps to see if there's a program that matches one of the names.
3067# If there's no such program, F77 = unavailable. If we match the name,
3068# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3069# compiler.
3070# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3071
3072
3073{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3074echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3075for ac_prog in $coin_f77_comps
3076do
3077  # Extract the first word of "$ac_prog", so it can be a program name with args.
3078set dummy $ac_prog; ac_word=$2
3079echo "$as_me:$LINENO: checking for $ac_word" >&5
3080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081if test "${ac_cv_prog_F77+set}" = set; then
3082  echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084  if test -n "$F77"; then
3085  ac_cv_prog_F77="$F77" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090  IFS=$as_save_IFS
3091  test -z "$as_dir" && as_dir=.
3092  for ac_exec_ext in '' $ac_executable_extensions; do
3093  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094    ac_cv_prog_F77="$ac_prog"
3095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099done
3100
3101fi
3102fi
3103F77=$ac_cv_prog_F77
3104if test -n "$F77"; then
3105  echo "$as_me:$LINENO: result: $F77" >&5
3106echo "${ECHO_T}$F77" >&6
3107else
3108  echo "$as_me:$LINENO: result: no" >&5
3109echo "${ECHO_T}no" >&6
3110fi
3111
3112  test -n "$F77" && break
3113done
3114test -n "$F77" || F77="unavailable"
3115
3116
3117if test "$F77" != "unavailable" ; then
3118  ac_ext=f
3119ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3120ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3122if test -n "$ac_tool_prefix"; then
3123  for ac_prog in $coin_f77_comps
3124  do
3125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127echo "$as_me:$LINENO: checking for $ac_word" >&5
3128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3129if test "${ac_cv_prog_F77+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  if test -n "$F77"; then
3133  ac_cv_prog_F77="$F77" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138  IFS=$as_save_IFS
3139  test -z "$as_dir" && as_dir=.
3140  for ac_exec_ext in '' $ac_executable_extensions; do
3141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144    break 2
3145  fi
3146done
3147done
3148
3149fi
3150fi
3151F77=$ac_cv_prog_F77
3152if test -n "$F77"; then
3153  echo "$as_me:$LINENO: result: $F77" >&5
3154echo "${ECHO_T}$F77" >&6
3155else
3156  echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158fi
3159
3160    test -n "$F77" && break
3161  done
3162fi
3163if test -z "$F77"; then
3164  ac_ct_F77=$F77
3165  for ac_prog in $coin_f77_comps
3166do
3167  # Extract the first word of "$ac_prog", so it can be a program name with args.
3168set dummy $ac_prog; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  if test -n "$ac_ct_F77"; then
3175  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182  for ac_exec_ext in '' $ac_executable_extensions; do
3183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_ac_ct_F77="$ac_prog"
3185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189done
3190
3191fi
3192fi
3193ac_ct_F77=$ac_cv_prog_ac_ct_F77
3194if test -n "$ac_ct_F77"; then
3195  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3196echo "${ECHO_T}$ac_ct_F77" >&6
3197else
3198  echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200fi
3201
3202  test -n "$ac_ct_F77" && break
3203done
3204
3205  F77=$ac_ct_F77
3206fi
3207
3208
3209# Provide some information about the compiler.
3210echo "$as_me:3210:" \
3211     "checking for Fortran 77 compiler version" >&5
3212ac_compiler=`set X $ac_compile; echo $2`
3213{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3214  (eval $ac_compiler --version </dev/null >&5) 2>&5
3215  ac_status=$?
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); }
3218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3219  (eval $ac_compiler -v </dev/null >&5) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }
3223{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3224  (eval $ac_compiler -V </dev/null >&5) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }
3228rm -f a.out
3229
3230# If we don't use `.F' as extension, the preprocessor is not run on the
3231# input file.  (Note that this only needs to work for GNU compilers.)
3232ac_save_ext=$ac_ext
3233ac_ext=F
3234echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3235echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3236if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  cat >conftest.$ac_ext <<_ACEOF
3240      program main
3241#ifndef __GNUC__
3242       choke me
3243#endif
3244
3245      end
3246_ACEOF
3247rm -f conftest.$ac_objext
3248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249  (eval $ac_compile) 2>conftest.er1
3250  ac_status=$?
3251  grep -v '^ *+' conftest.er1 >conftest.err
3252  rm -f conftest.er1
3253  cat conftest.err >&5
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); } &&
3256         { ac_try='test -z "$ac_f77_werror_flag"
3257                         || test ! -s conftest.err'
3258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259  (eval $ac_try) 2>&5
3260  ac_status=$?
3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262  (exit $ac_status); }; } &&
3263         { ac_try='test -s conftest.$ac_objext'
3264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265  (eval $ac_try) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }; }; then
3269  ac_compiler_gnu=yes
3270else
3271  echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274ac_compiler_gnu=no
3275fi
3276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3278
3279fi
3280echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3281echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3282ac_ext=$ac_save_ext
3283ac_test_FFLAGS=${FFLAGS+set}
3284ac_save_FFLAGS=$FFLAGS
3285FFLAGS=
3286echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3287echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3288if test "${ac_cv_prog_f77_g+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291  FFLAGS=-g
3292cat >conftest.$ac_ext <<_ACEOF
3293      program main
3294
3295      end
3296_ACEOF
3297rm -f conftest.$ac_objext
3298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3299  (eval $ac_compile) 2>conftest.er1
3300  ac_status=$?
3301  grep -v '^ *+' conftest.er1 >conftest.err
3302  rm -f conftest.er1
3303  cat conftest.err >&5
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); } &&
3306         { ac_try='test -z "$ac_f77_werror_flag"
3307                         || test ! -s conftest.err'
3308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309  (eval $ac_try) 2>&5
3310  ac_status=$?
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); }; } &&
3313         { ac_try='test -s conftest.$ac_objext'
3314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315  (eval $ac_try) 2>&5
3316  ac_status=$?
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); }; }; then
3319  ac_cv_prog_f77_g=yes
3320else
3321  echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324ac_cv_prog_f77_g=no
3325fi
3326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3327
3328fi
3329echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3330echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3331if test "$ac_test_FFLAGS" = set; then
3332  FFLAGS=$ac_save_FFLAGS
3333elif test $ac_cv_prog_f77_g = yes; then
3334  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3335    FFLAGS="-g -O2"
3336  else
3337    FFLAGS="-g"
3338  fi
3339else
3340  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3341    FFLAGS="-O2"
3342  else
3343    FFLAGS=
3344  fi
3345fi
3346
3347G77=`test $ac_compiler_gnu = yes && echo yes`
3348ac_ext=f
3349ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3350ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3352
3353else
3354  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3355echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3356fi
3357
3358FFLAGS="$save_fflags"
3359
3360# Check if a project specific FFLAGS variable has been set
3361if test x$COIN_PRJCT != x; then
3362  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3363  if test x$coin_tmp = xset; then
3364    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3365  fi
3366fi
3367
3368if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3369
3370  coin_add_fflags=
3371  coin_opt_fflags=
3372  coin_dbg_fflags=
3373  coin_warn_fflags=
3374
3375  if test "$G77" = "yes"; then
3376    coin_opt_fflags="-O3 -fomit-frame-pointer"
3377    coin_add_fflags="-pipe"
3378    coin_dbg_fflags="-g"
3379    case $enable_doscompile in
3380      mingw)
3381        FFLAGS="-mno-cygwin"
3382        cat >conftest.$ac_ext <<_ACEOF
3383      program main
3384      write(*,*) 'Hello world'
3385      end
3386_ACEOF
3387rm -f conftest.$ac_objext conftest$ac_exeext
3388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3389  (eval $ac_link) 2>conftest.er1
3390  ac_status=$?
3391  grep -v '^ *+' conftest.er1 >conftest.err
3392  rm -f conftest.er1
3393  cat conftest.err >&5
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); } &&
3396         { ac_try='test -z "$ac_f77_werror_flag"
3397                         || test ! -s conftest.err'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; } &&
3403         { ac_try='test -s conftest$ac_exeext'
3404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405  (eval $ac_try) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }; }; then
3409  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3410else
3411  echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414fi
3415rm -f conftest.err conftest.$ac_objext \
3416      conftest$ac_exeext conftest.$ac_ext
3417        FFLAGS=
3418      ;;
3419    esac
3420  else
3421    case $build in
3422      *-cygwin* | *-mingw*)
3423        case $F77 in
3424          ifort* | */ifort* | IFORT* | */IFORT* )
3425            coin_opt_fflags='-O3'
3426            coin_add_fflags='-fpp -nologo -MT'
3427            coin_dbg_fflags='-debug'
3428          ;;
3429          compile_f2c*)
3430            coin_opt_fflags='-MT -O2'
3431            coin_add_fflags='-nologo -wd4996'
3432            coin_dbg_fflags='-MTd'
3433          ;;
3434        esac
3435        ;;
3436      *-linux-*)
3437        case $F77 in
3438          ifc* | */ifc* | ifort* | */ifort*)
3439            coin_opt_fflags="-O3 -ip"
3440            coin_add_fflags="-cm -w90 -w95"
3441            coin_dbg_fflags="-g -CA -CB -CS"
3442            # Check if -i_dynamic is necessary (for new glibc library)
3443            FFLAGS=
3444            cat >conftest.$ac_ext <<_ACEOF
3445      program main
3446      write(*,*) 'Hello world'
3447      end
3448_ACEOF
3449rm -f conftest.$ac_objext conftest$ac_exeext
3450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451  (eval $ac_link) 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } &&
3458         { ac_try='test -z "$ac_f77_werror_flag"
3459                         || test ! -s conftest.err'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; } &&
3465         { ac_try='test -s conftest$ac_exeext'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; }; then
3471  :
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476coin_add_fflags="-i_dynamic $coin_add_fflags"
3477fi
3478rm -f conftest.err conftest.$ac_objext \
3479      conftest$ac_exeext conftest.$ac_ext
3480            ;;
3481          pgf77* | */pgf77* | pgf90* | */pgf90*)
3482            coin_opt_fflags="-fast"
3483            coin_add_fflags="-Kieee -pc 64"
3484            coin_dbg_fflags="-g"
3485          ;;
3486        esac
3487        ;;
3488      *-ibm-*)
3489        case "$F77" in
3490          xlf* | */xlf* | mpxlf* | */mpxlf* )
3491            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3492            coin_add_fflags="-bmaxdata:0x80000000"
3493            coin_dbg_fflags="-g -C"
3494            ;;
3495        esac
3496        ;;
3497      *-hp-*)
3498        coin_opt_fflags="+O3"
3499        coin_add_fflags="+U77"
3500        coin_dbg_fflags="-C -g"
3501        ;;
3502      *-sun-*)
3503        coin_opt_fflags="-O4"
3504        coin_dbg_fflags="-g"
3505        ;;
3506      *-sgi-*)
3507        coin_opt_fflags="-O5 -OPT:Olimit=0"
3508        coin_dbg_fflags="-g"
3509        ;;
3510    esac
3511  fi
3512
3513  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3514    coin_dbg_fflags="-g"
3515  fi
3516
3517  if test -z "$coin_opt_fflags"; then
3518    # Try if -O option works if nothing else is set
3519    FFLAGS=-O
3520    cat >conftest.$ac_ext <<_ACEOF
3521      program main
3522      integer i
3523      end
3524_ACEOF
3525rm -f conftest.$ac_objext conftest$ac_exeext
3526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3527  (eval $ac_link) 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } &&
3534         { ac_try='test -z "$ac_f77_werror_flag"
3535                         || test ! -s conftest.err'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; } &&
3541         { ac_try='test -s conftest$ac_exeext'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  coin_opt_fflags="-O"
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552fi
3553rm -f conftest.err conftest.$ac_objext \
3554      conftest$ac_exeext conftest.$ac_ext
3555  fi
3556
3557  # if PM doesn't want the warning messages, take them out
3558  if test x"$coin_skip_warn_fflags" = xyes; then
3559    coin_warn_fflags=
3560  fi
3561
3562  if test x${DBG_FFLAGS+set} != xset; then
3563    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3564  fi
3565  if test x${OPT_FFLAGS+set} != xset; then
3566    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3567  fi
3568
3569  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3570  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3571
3572  if test "$coin_debug_compile" = "true"; then
3573    FFLAGS="$DBG_FFLAGS"
3574  else
3575    FFLAGS="$OPT_FFLAGS"
3576  fi
3577else
3578  FFLAGS="$FFLAGS $ADD_FFLAGS"
3579  if test x${DBG_FFLAGS+set} != xset; then
3580    DBG_FFLAGS="$FFLAGS"
3581  fi
3582  if test x${OPT_FFLAGS+set} != xset; then
3583    OPT_FFLAGS="$FFLAGS"
3584  fi
3585fi
3586
3587# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3588case "$FFLAGS" in
3589  *-mno-cygwin*)
3590    if test x${CPPFLAGS+set} != xset ; then
3591      CPPFLAGS="-mno-cygwin"
3592    else
3593      case "$CPPFLAGS" in
3594        *-mno-cygwin*)
3595          ;;
3596        *)
3597          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3598          ;;
3599      esac
3600    fi ;;
3601esac
3602
3603# Try if FFLAGS works
3604if test "$F77" != "unavailable" ; then
3605  cat >conftest.$ac_ext <<_ACEOF
3606      program main
3607      integer i
3608      end
3609_ACEOF
3610rm -f conftest.$ac_objext conftest$ac_exeext
3611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3612  (eval $ac_link) 2>conftest.er1
3613  ac_status=$?
3614  grep -v '^ *+' conftest.er1 >conftest.err
3615  rm -f conftest.er1
3616  cat conftest.err >&5
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); } &&
3619         { ac_try='test -z "$ac_f77_werror_flag"
3620                         || test ! -s conftest.err'
3621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622  (eval $ac_try) 2>&5
3623  ac_status=$?
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); }; } &&
3626         { ac_try='test -s conftest$ac_exeext'
3627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628  (eval $ac_try) 2>&5
3629  ac_status=$?
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); }; }; then
3632  :
3633else
3634  echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637FFLAGS=
3638fi
3639rm -f conftest.err conftest.$ac_objext \
3640      conftest$ac_exeext conftest.$ac_ext
3641  if test -z "$FFLAGS"; then
3642    { 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
3643echo "$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;}
3644    FFLAGS='-O'
3645    cat >conftest.$ac_ext <<_ACEOF
3646      program main
3647      integer i
3648      end
3649_ACEOF
3650rm -f conftest.$ac_objext conftest$ac_exeext
3651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3652  (eval $ac_link) 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } &&
3659         { ac_try='test -z "$ac_f77_werror_flag"
3660                         || test ! -s conftest.err'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; } &&
3666         { ac_try='test -s conftest$ac_exeext'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; }; then
3672  :
3673else
3674  echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677FFLAGS=
3678fi
3679rm -f conftest.err conftest.$ac_objext \
3680      conftest$ac_exeext conftest.$ac_ext
3681    if test -z "$FFLAGS"; then
3682      { 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
3683echo "$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;}
3684    fi
3685  fi
3686fi
3687
3688{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3689echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3690
3691
3692if test x"$MPIF77" = x; then :; else
3693  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3694echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3695  F77="$MPIF77"
3696fi
3697
3698case "$F77" in
3699  ifort* | */ifort* | IFORT* | */IFORT*)
3700    case $build in
3701  *-mingw*)
3702    if test "${LD+set}" = set; then :; else
3703      LD=link
3704    fi
3705    ;;
3706 esac
3707 case $enable_doscompile in
3708   msvc)
3709     if test "x${LD+set}" = xset; then :; else
3710       LD=link
3711     fi
3712     ;;
3713 esac
3714
3715    ;;
3716esac
3717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724
3725
3726# Initialize automake
3727echo "$as_me:$LINENO: checking for egrep" >&5
3728echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3729if test "${ac_cv_prog_egrep+set}" = set; then
3730  echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3733    then ac_cv_prog_egrep='grep -E'
3734    else ac_cv_prog_egrep='egrep'
3735    fi
3736fi
3737echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3738echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3739 EGREP=$ac_cv_prog_egrep
3740
3741
3742am__api_version="1.9"
3743# Find a good install program.  We prefer a C program (faster),
3744# so one script is as good as another.  But avoid the broken or
3745# incompatible versions:
3746# SysV /etc/install, /usr/sbin/install
3747# SunOS /usr/etc/install
3748# IRIX /sbin/install
3749# AIX /bin/install
3750# AmigaOS /C/install, which installs bootblocks on floppy discs
3751# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3752# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3753# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3754# OS/2's system install, which has a completely different semantic
3755# ./install, which can be erroneously created by make from ./install.sh.
3756echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3757echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3758if test -z "$INSTALL"; then
3759if test "${ac_cv_path_install+set}" = set; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765  IFS=$as_save_IFS
3766  test -z "$as_dir" && as_dir=.
3767  # Account for people who put trailing slashes in PATH elements.
3768case $as_dir/ in
3769  ./ | .// | /cC/* | \
3770  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3771  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3772  /usr/ucb/* ) ;;
3773  *)
3774    # OSF1 and SCO ODT 3.0 have their own names for install.
3775    # Don't use installbsd from OSF since it installs stuff as root
3776    # by default.
3777    for ac_prog in ginstall scoinst install; do
3778      for ac_exec_ext in '' $ac_executable_extensions; do
3779        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3780          if test $ac_prog = install &&
3781            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3782            # AIX install.  It has an incompatible calling convention.
3783            :
3784          elif test $ac_prog = install &&
3785            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3786            # program-specific install script used by HP pwplus--don't use.
3787            :
3788          else
3789            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3790            break 3
3791          fi
3792        fi
3793      done
3794    done
3795    ;;
3796esac
3797done
3798
3799
3800fi
3801  if test "${ac_cv_path_install+set}" = set; then
3802    INSTALL=$ac_cv_path_install
3803  else
3804    # As a last resort, use the slow shell script.  We don't cache a
3805    # path for INSTALL within a source directory, because that will
3806    # break other packages using the cache if that directory is
3807    # removed, or if the path is relative.
3808    INSTALL=$ac_install_sh
3809  fi
3810fi
3811echo "$as_me:$LINENO: result: $INSTALL" >&5
3812echo "${ECHO_T}$INSTALL" >&6
3813
3814# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3815# It thinks the first close brace ends the variable substitution.
3816test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3817
3818test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3819
3820test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3821
3822echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3823echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3824# Just in case
3825sleep 1
3826echo timestamp > conftest.file
3827# Do `set' in a subshell so we don't clobber the current shell's
3828# arguments.  Must try -L first in case configure is actually a
3829# symlink; some systems play weird games with the mod time of symlinks
3830# (eg FreeBSD returns the mod time of the symlink's containing
3831# directory).
3832if (
3833   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3834   if test "$*" = "X"; then
3835      # -L didn't work.
3836      set X `ls -t $srcdir/configure conftest.file`
3837   fi
3838   rm -f conftest.file
3839   if test "$*" != "X $srcdir/configure conftest.file" \
3840      && test "$*" != "X conftest.file $srcdir/configure"; then
3841
3842      # If neither matched, then we have a broken ls.  This can happen
3843      # if, for instance, CONFIG_SHELL is bash and it inherits a
3844      # broken ls alias from the environment.  This has actually
3845      # happened.  Such a system could not be considered "sane".
3846      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3847alias in your environment" >&5
3848echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3849alias in your environment" >&2;}
3850   { (exit 1); exit 1; }; }
3851   fi
3852
3853   test "$2" = conftest.file
3854   )
3855then
3856   # Ok.
3857   :
3858else
3859   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3860Check your system clock" >&5
3861echo "$as_me: error: newly created file is older than distributed files!
3862Check your system clock" >&2;}
3863   { (exit 1); exit 1; }; }
3864fi
3865echo "$as_me:$LINENO: result: yes" >&5
3866echo "${ECHO_T}yes" >&6
3867test "$program_prefix" != NONE &&
3868  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3869# Use a double $ so make ignores it.
3870test "$program_suffix" != NONE &&
3871  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3872# Double any \ or $.  echo might interpret backslashes.
3873# By default was `s,x,x', remove it if useless.
3874cat <<\_ACEOF >conftest.sed
3875s/[\\$]/&&/g;s/;s,x,x,$//
3876_ACEOF
3877program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3878rm conftest.sed
3879
3880# expand $ac_aux_dir to an absolute path
3881am_aux_dir=`cd $ac_aux_dir && pwd`
3882
3883test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3884# Use eval to expand $SHELL
3885if eval "$MISSING --run true"; then
3886  am_missing_run="$MISSING --run "
3887else
3888  am_missing_run=
3889  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3890echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3891fi
3892
3893if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3894  # We used to keeping the `.' as first argument, in order to
3895  # allow $(mkdir_p) to be used without argument.  As in
3896  #   $(mkdir_p) $(somedir)
3897  # where $(somedir) is conditionally defined.  However this is wrong
3898  # for two reasons:
3899  #  1. if the package is installed by a user who cannot write `.'
3900  #     make install will fail,
3901  #  2. the above comment should most certainly read
3902  #     $(mkdir_p) $(DESTDIR)$(somedir)
3903  #     so it does not work when $(somedir) is undefined and
3904  #     $(DESTDIR) is not.
3905  #  To support the latter case, we have to write
3906  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3907  #  so the `.' trick is pointless.
3908  mkdir_p='mkdir -p --'
3909else
3910  # On NextStep and OpenStep, the `mkdir' command does not
3911  # recognize any option.  It will interpret all options as
3912  # directories to create, and then abort because `.' already
3913  # exists.
3914  for d in ./-p ./--version;
3915  do
3916    test -d $d && rmdir $d
3917  done
3918  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3919  if test -f "$ac_aux_dir/mkinstalldirs"; then
3920    mkdir_p='$(mkinstalldirs)'
3921  else
3922    mkdir_p='$(install_sh) -d'
3923  fi
3924fi
3925
3926for ac_prog in gawk mawk nawk awk
3927do
3928  # Extract the first word of "$ac_prog", so it can be a program name with args.
3929set dummy $ac_prog; ac_word=$2
3930echo "$as_me:$LINENO: checking for $ac_word" >&5
3931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932if test "${ac_cv_prog_AWK+set}" = set; then
3933  echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935  if test -n "$AWK"; then
3936  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941  IFS=$as_save_IFS
3942  test -z "$as_dir" && as_dir=.
3943  for ac_exec_ext in '' $ac_executable_extensions; do
3944  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945    ac_cv_prog_AWK="$ac_prog"
3946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947    break 2
3948  fi
3949done
3950done
3951
3952fi
3953fi
3954AWK=$ac_cv_prog_AWK
3955if test -n "$AWK"; then
3956  echo "$as_me:$LINENO: result: $AWK" >&5
3957echo "${ECHO_T}$AWK" >&6
3958else
3959  echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961fi
3962
3963  test -n "$AWK" && break
3964done
3965
3966echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3967echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3968set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3969if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3970  echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972  cat >conftest.make <<\_ACEOF
3973all:
3974        @echo 'ac_maketemp="$(MAKE)"'
3975_ACEOF
3976# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3977eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3978if test -n "$ac_maketemp"; then
3979  eval ac_cv_prog_make_${ac_make}_set=yes
3980else
3981  eval ac_cv_prog_make_${ac_make}_set=no
3982fi
3983rm -f conftest.make
3984fi
3985if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3986  echo "$as_me:$LINENO: result: yes" >&5
3987echo "${ECHO_T}yes" >&6
3988  SET_MAKE=
3989else
3990  echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6
3992  SET_MAKE="MAKE=${MAKE-make}"
3993fi
3994
3995rm -rf .tst 2>/dev/null
3996mkdir .tst 2>/dev/null
3997if test -d .tst; then
3998  am__leading_dot=.
3999else
4000  am__leading_dot=_
4001fi
4002rmdir .tst 2>/dev/null
4003
4004DEPDIR="${am__leading_dot}deps"
4005
4006          ac_config_commands="$ac_config_commands depfiles"
4007
4008
4009am_make=${MAKE-make}
4010cat > confinc << 'END'
4011am__doit:
4012        @echo done
4013.PHONY: am__doit
4014END
4015# If we don't find an include directive, just comment out the code.
4016echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4017echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4018am__include="#"
4019am__quote=
4020_am_result=none
4021# First try GNU make style include.
4022echo "include confinc" > confmf
4023# We grep out `Entering directory' and `Leaving directory'
4024# messages which can occur if `w' ends up in MAKEFLAGS.
4025# In particular we don't look at `^make:' because GNU make might
4026# be invoked under some other name (usually "gmake"), in which
4027# case it prints its new name instead of `make'.
4028if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4029   am__include=include
4030   am__quote=
4031   _am_result=GNU
4032fi
4033# Now try BSD make style include.
4034if test "$am__include" = "#"; then
4035   echo '.include "confinc"' > confmf
4036   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4037      am__include=.include
4038      am__quote="\""
4039      _am_result=BSD
4040   fi
4041fi
4042
4043
4044echo "$as_me:$LINENO: result: $_am_result" >&5
4045echo "${ECHO_T}$_am_result" >&6
4046rm -f confinc confmf
4047
4048# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4049if test "${enable_dependency_tracking+set}" = set; then
4050  enableval="$enable_dependency_tracking"
4051
4052fi;
4053if test "x$enable_dependency_tracking" != xno; then
4054  am_depcomp="$ac_aux_dir/depcomp"
4055  AMDEPBACKSLASH='\'
4056fi
4057
4058
4059if test "x$enable_dependency_tracking" != xno; then
4060  AMDEP_TRUE=
4061  AMDEP_FALSE='#'
4062else
4063  AMDEP_TRUE='#'
4064  AMDEP_FALSE=
4065fi
4066
4067
4068
4069
4070
4071# AC_MSG_NOTICE([Beginning automake initialisation.])
4072# Stuff for automake
4073# test to see if srcdir already configured
4074if test "`cd $srcdir && pwd`" != "`pwd`" &&
4075   test -f $srcdir/config.status; then
4076  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4077echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4078   { (exit 1); exit 1; }; }
4079fi
4080
4081# test whether we have cygpath
4082if test -z "$CYGPATH_W"; then
4083  if (cygpath --version) >/dev/null 2>/dev/null; then
4084    CYGPATH_W='cygpath -w'
4085  else
4086    CYGPATH_W=echo
4087  fi
4088fi
4089
4090
4091# Define the identity of the package.
4092 PACKAGE='thirdpartyfiltersqp'
4093 VERSION='0.0'
4094
4095
4096cat >>confdefs.h <<_ACEOF
4097#define PACKAGE "$PACKAGE"
4098_ACEOF
4099
4100
4101cat >>confdefs.h <<_ACEOF
4102#define VERSION "$VERSION"
4103_ACEOF
4104
4105# Some tools Automake needs.
4106
4107ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4108
4109
4110AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4111
4112
4113AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4114
4115
4116AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4117
4118
4119MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4120
4121install_sh=${install_sh-"$am_aux_dir/install-sh"}
4122
4123# Installed binaries are usually stripped using `strip' when the user
4124# run `make install-strip'.  However `strip' might not be the right
4125# tool to use in cross-compilation environments, therefore Automake
4126# will honor the `STRIP' environment variable to overrule this program.
4127if test "$cross_compiling" != no; then
4128  if test -n "$ac_tool_prefix"; then
4129  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4130set dummy ${ac_tool_prefix}strip; ac_word=$2
4131echo "$as_me:$LINENO: checking for $ac_word" >&5
4132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133if test "${ac_cv_prog_STRIP+set}" = set; then
4134  echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136  if test -n "$STRIP"; then
4137  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144  for ac_exec_ext in '' $ac_executable_extensions; do
4145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148    break 2
4149  fi
4150done
4151done
4152
4153fi
4154fi
4155STRIP=$ac_cv_prog_STRIP
4156if test -n "$STRIP"; then
4157  echo "$as_me:$LINENO: result: $STRIP" >&5
4158echo "${ECHO_T}$STRIP" >&6
4159else
4160  echo "$as_me:$LINENO: result: no" >&5
4161echo "${ECHO_T}no" >&6
4162fi
4163
4164fi
4165if test -z "$ac_cv_prog_STRIP"; then
4166  ac_ct_STRIP=$STRIP
4167  # Extract the first word of "strip", so it can be a program name with args.
4168set dummy strip; ac_word=$2
4169echo "$as_me:$LINENO: checking for $ac_word" >&5
4170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  if test -n "$ac_ct_STRIP"; then
4175  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180  IFS=$as_save_IFS
4181  test -z "$as_dir" && as_dir=.
4182  for ac_exec_ext in '' $ac_executable_extensions; do
4183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184    ac_cv_prog_ac_ct_STRIP="strip"
4185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186    break 2
4187  fi
4188done
4189done
4190
4191  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4192fi
4193fi
4194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4195if test -n "$ac_ct_STRIP"; then
4196  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4197echo "${ECHO_T}$ac_ct_STRIP" >&6
4198else
4199  echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6
4201fi
4202
4203  STRIP=$ac_ct_STRIP
4204else
4205  STRIP="$ac_cv_prog_STRIP"
4206fi
4207
4208fi
4209INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4210
4211# We need awk for the "check" target.  The system "awk" is bad on
4212# some platforms.
4213# Always define AMTAR for backward compatibility.
4214
4215AMTAR=${AMTAR-"${am_missing_run}tar"}
4216
4217am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4218
4219
4220
4221
4222depcc="$CC"   am_compiler_list=
4223
4224echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4225echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4226if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4230  # We make a subdir and do the tests there.  Otherwise we can end up
4231  # making bogus files that we don't know about and never remove.  For
4232  # instance it was reported that on HP-UX the gcc test will end up
4233  # making a dummy file named `D' -- because `-MD' means `put the output
4234  # in D'.
4235  mkdir conftest.dir
4236  # Copy depcomp to subdir because otherwise we won't find it if we're
4237  # using a relative directory.
4238  cp "$am_depcomp" conftest.dir
4239  cd conftest.dir
4240  # We will build objects and dependencies in a subdirectory because
4241  # it helps to detect inapplicable dependency modes.  For instance
4242  # both Tru64's cc and ICC support -MD to output dependencies as a
4243  # side effect of compilation, but ICC will put the dependencies in
4244  # the current directory while Tru64 will put them in the object
4245  # directory.
4246  mkdir sub
4247
4248  am_cv_CC_dependencies_compiler_type=none
4249  if test "$am_compiler_list" = ""; then
4250     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4251  fi
4252  for depmode in $am_compiler_list; do
4253    # Setup a source with many dependencies, because some compilers
4254    # like to wrap large dependency lists on column 80 (with \), and
4255    # we should not choose a depcomp mode which is confused by this.
4256    #
4257    # We need to recreate these files for each test, as the compiler may
4258    # overwrite some of them when testing with obscure command lines.
4259    # This happens at least with the AIX C compiler.
4260    : > sub/conftest.c
4261    for i in 1 2 3 4 5 6; do
4262      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264      # Solaris 8's {/usr,}/bin/sh.
4265      touch sub/conftst$i.h
4266    done
4267    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269    case $depmode in
4270    nosideeffect)
4271      # after this tag, mechanisms are not by side-effect, so they'll
4272      # only be used when explicitly requested
4273      if test "x$enable_dependency_tracking" = xyes; then
4274        continue
4275      else
4276        break
4277      fi
4278      ;;
4279    none) break ;;
4280    esac
4281    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4282    # mode.  It turns out that the SunPro C++ compiler does not properly
4283    # handle `-M -o', and we need to detect this.
4284    if depmode=$depmode \
4285       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4286       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4287       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4288         >/dev/null 2>conftest.err &&
4289       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4290       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4291       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4292      # icc doesn't choke on unknown options, it will just issue warnings
4293      # or remarks (even with -Werror).  So we grep stderr for any message
4294      # that says an option was ignored or not supported.
4295      # When given -MP, icc 7.0 and 7.1 complain thusly:
4296      #   icc: Command line warning: ignoring option '-M'; no argument required
4297      # The diagnosis changed in icc 8.0:
4298      #   icc: Command line remark: option '-MP' not supported
4299      if (grep 'ignoring option' conftest.err ||
4300          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4301        am_cv_CC_dependencies_compiler_type=$depmode
4302        break
4303      fi
4304    fi
4305  done
4306
4307  cd ..
4308  rm -rf conftest.dir
4309else
4310  am_cv_CC_dependencies_compiler_type=none
4311fi
4312
4313fi
4314echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4315echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4316CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4317
4318
4319
4320if
4321  test "x$enable_dependency_tracking" != xno \
4322  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4323  am__fastdepCC_TRUE=
4324  am__fastdepCC_FALSE='#'
4325else
4326  am__fastdepCC_TRUE='#'
4327  am__fastdepCC_FALSE=
4328fi
4329
4330
4331
4332echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4333echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4334    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4335if test "${enable_maintainer_mode+set}" = set; then
4336  enableval="$enable_maintainer_mode"
4337  USE_MAINTAINER_MODE=$enableval
4338else
4339  USE_MAINTAINER_MODE=no
4340fi;
4341  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4342echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4343
4344
4345if test $USE_MAINTAINER_MODE = yes; then
4346  MAINTAINER_MODE_TRUE=
4347  MAINTAINER_MODE_FALSE='#'
4348else
4349  MAINTAINER_MODE_TRUE='#'
4350  MAINTAINER_MODE_FALSE=
4351fi
4352
4353  MAINT=$MAINTAINER_MODE_TRUE
4354
4355
4356
4357coin_have_externals=no
4358if test "$enable_maintainer_mode" = yes; then
4359
4360  # If maintainer mode is chosen, we make sure that the correct versions
4361  # of the tools are used, and that we know where libtool.m4 is (to
4362  # recreate acinclude.m4)
4363
4364
4365  LIBTOOLM4=
4366  # Normally, $HOME
4367  AUTOTOOLS_DFLT=$HOME
4368
4369  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4370echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4371if test "${ac_cv_use_correct_autotools+set}" = set; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374  ac_cv_use_correct_autotools=check
4375fi
4376echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4377echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4378
4379  if test $ac_cv_use_correct_autotools = check; then
4380    ac_cv_use_correct_autotools=yes
4381    # Check if we have autoconf
4382    # Extract the first word of "autoconf", so it can be a program name with args.
4383set dummy autoconf; ac_word=$2
4384echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386if test "${ac_cv_prog_have_autoconf+set}" = set; then
4387  echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389  if test -n "$have_autoconf"; then
4390  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397  for ac_exec_ext in '' $ac_executable_extensions; do
4398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399    ac_cv_prog_have_autoconf="yes"
4400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404done
4405
4406  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4407fi
4408fi
4409have_autoconf=$ac_cv_prog_have_autoconf
4410if test -n "$have_autoconf"; then
4411  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4412echo "${ECHO_T}$have_autoconf" >&6
4413else
4414  echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6
4416fi
4417
4418    if test $have_autoconf = no; then
4419      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4420echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4421   { (exit 1); exit 1; }; }
4422    fi
4423
4424    # Check whether autoconf is the correct version
4425    correct_version='2.59'
4426    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4427    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4428echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4429    autoconf --version > confauto.out 2>&1
4430    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4431      echo "$as_me:$LINENO: result: yes" >&5
4432echo "${ECHO_T}yes" >&6
4433    else
4434      rm -f confauto.out
4435      echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4438echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4439   { (exit 1); exit 1; }; }
4440    fi
4441    rm -f confauto.out
4442
4443    # Check if the executable autoconf is picked up from the correct location
4444    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4445echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4446    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4447    autoconf_dir=`cd $autoconf_dir; pwd`
4448    if test x$AUTOTOOLS_DIR = x; then
4449      want_dir=$AUTOTOOLS_DFLT/bin
4450    else
4451      want_dir=$AUTOTOOLS_DIR/bin
4452    fi
4453    if test $autoconf_dir = `cd $want_dir; pwd`; then
4454      echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456    else
4457      rm -f confauto.out
4458      echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4461echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4462   { (exit 1); exit 1; }; }
4463    fi
4464
4465    # Check if we have automake
4466    # Extract the first word of "automake", so it can be a program name with args.
4467set dummy automake; ac_word=$2
4468echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470if test "${ac_cv_prog_have_automake+set}" = set; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  if test -n "$have_automake"; then
4474  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481  for ac_exec_ext in '' $ac_executable_extensions; do
4482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483    ac_cv_prog_have_automake="yes"
4484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485    break 2
4486  fi
4487done
4488done
4489
4490  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4491fi
4492fi
4493have_automake=$ac_cv_prog_have_automake
4494if test -n "$have_automake"; then
4495  echo "$as_me:$LINENO: result: $have_automake" >&5
4496echo "${ECHO_T}$have_automake" >&6
4497else
4498  echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500fi
4501
4502    if test $have_automake = no; then
4503      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4504echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4505   { (exit 1); exit 1; }; }
4506    fi
4507
4508    # Check whether automake is the correct version
4509    correct_version='1.9.6'
4510    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4511    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4512echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4513    automake --version > confauto.out 2>&1
4514    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4515      echo "$as_me:$LINENO: result: yes" >&5
4516echo "${ECHO_T}yes" >&6
4517    else
4518      rm -f confauto.out
4519      echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
4521      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4522echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4523   { (exit 1); exit 1; }; }
4524    fi
4525    rm -f confauto.out
4526
4527    # Check if the executable automake is picked up from the correct location
4528    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4529echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4530    automake_dir=`which automake | sed -e 's=/automake=='`
4531    automake_dir=`cd $automake_dir; pwd`
4532    if test x$AUTOTOOLS_DIR = x; then
4533      want_dir=$AUTOTOOLS_DFLT/bin
4534    else
4535      want_dir=$AUTOTOOLS_DIR/bin
4536    fi
4537    if test $automake_dir = `cd $want_dir; pwd`; then
4538      echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
4540    else
4541      rm -f confauto.out
4542      echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4545echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4546   { (exit 1); exit 1; }; }
4547    fi
4548
4549    # Check if this is the correct version of libtool (with escaped dots)
4550    if test x$AUTOTOOLS_DIR = x; then
4551      want_dir=$AUTOTOOLS_DFLT/share
4552    else
4553      want_dir=$AUTOTOOLS_DIR/share
4554    fi
4555    correct_version='1.5.22'
4556    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4557    if test -r $want_dir/libtool/ltmain.sh; then
4558  have_ltmain=yes
4559  :
4560else
4561  have_ltmain=no
4562  :
4563fi
4564
4565    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4566echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4567    if test $have_ltmain = yes; then
4568    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4569        echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571      else
4572        echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4575echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4576   { (exit 1); exit 1; }; }
4577      fi
4578    else
4579      echo "$as_me:$LINENO: result: no" >&5
4580echo "${ECHO_T}no" >&6
4581      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4582echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4583   { (exit 1); exit 1; }; }
4584    fi
4585  fi
4586
4587  # Check if we can find the libtool file
4588  if test x$AUTOTOOLS_DIR = x; then
4589    want_dir=$AUTOTOOLS_DFLT/share
4590  else
4591    want_dir=$AUTOTOOLS_DIR/share
4592  fi
4593  if test -r $want_dir/aclocal/libtool.m4; then
4594  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4595  :
4596else
4597  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4598echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4599   { (exit 1); exit 1; }; }
4600  :
4601fi
4602
4603
4604  # Check if we have an Externals file
4605  if test -r $srcdir/Externals; then
4606    coin_have_externals=yes
4607  fi
4608  # Check if subversion is installed and understands https
4609  # Extract the first word of "svn", so it can be a program name with args.
4610set dummy svn; ac_word=$2
4611echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4613if test "${ac_cv_prog_have_svn+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  if test -n "$have_svn"; then
4617  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624  for ac_exec_ext in '' $ac_executable_extensions; do
4625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626    ac_cv_prog_have_svn="yes"
4627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631done
4632
4633  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4634fi
4635fi
4636have_svn=$ac_cv_prog_have_svn
4637if test -n "$have_svn"; then
4638  echo "$as_me:$LINENO: result: $have_svn" >&5
4639echo "${ECHO_T}$have_svn" >&6
4640else
4641  echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643fi
4644
4645  if test x$have_svn = xyes; then
4646    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4647echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4648if test "${ac_cv_svn_understands_https+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  svn --version > confauto.out 2>&1
4652                    if $EGREP https confauto.out >/dev/null 2>&1; then
4653                      ac_cv_svn_understands_https=yes
4654                    else
4655                      ac_cv_svn_understands_https=no
4656                      have_svn=no
4657                      ac_cv_prog_have_svn=no
4658                    fi
4659                    rm -f confauto.out
4660fi
4661echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4662echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4663  fi
4664
4665  # Find the location of the BuildTools directory
4666  BUILDTOOLSDIR=
4667  if test -r $srcdir/BuildTools/coin.m4; then
4668    BUILDTOOLSDIR=$srcdir/BuildTools
4669  else
4670    if test -r $srcdir/../BuildTools/coin.m4; then
4671      BUILDTOOLSDIR=$srcdir/../BuildTools
4672    else
4673      if test -r $srcdir/../../BuildTools/coin.m4; then
4674        BUILDTOOLSDIR=$srcdir/../../BuildTools
4675      else
4676        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4677echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4678   { (exit 1); exit 1; }; }
4679      fi
4680    fi
4681  fi
4682
4683
4684  # The following variable is set to the name of the directory where
4685  # the autotool scripts are located
4686
4687  AUX_DIR=$ac_aux_dir
4688fi
4689
4690# helpful variable for the base directory of this package
4691abs_source_dir=`cd $srcdir; pwd`
4692
4693
4694# Stuff for example Makefiles
4695if test x$prefix = xNONE; then
4696  full_prefix=$ac_default_prefix
4697else
4698  full_prefix=$prefix
4699fi
4700full_prefix=`cd $full_prefix ; pwd`
4701
4702abs_lib_dir=$full_prefix/lib
4703
4704abs_include_dir=$full_prefix/include
4705
4706abs_bin_dir=$full_prefix/bin
4707
4708
4709
4710if test $coin_have_externals = yes && test x$have_svn = xyes; then
4711  HAVE_EXTERNALS_TRUE=
4712  HAVE_EXTERNALS_FALSE='#'
4713else
4714  HAVE_EXTERNALS_TRUE='#'
4715  HAVE_EXTERNALS_FALSE=
4716fi
4717
4718
4719# AC_MSG_NOTICE([End automake initialisation.])
4720
4721
4722
4723# Initialize automake
4724{
4725
4726
4727
4728# START
4729
4730# On Cygwin, building DLLs doesn't work
4731case $build in
4732  *-cygwin*)
4733    coin_disable_shared=yes
4734    platform=Cygwin
4735  ;;
4736  *-mingw*)
4737    coin_disable_shared=yes
4738    platform="Msys"
4739#    case "$CXX" in
4740#      cl*)
4741#        coin_disable_shared=yes
4742#        platform="Msys with cl"
4743#    ;;
4744#    esac
4745  ;;
4746esac
4747if test x"$coin_disable_shared" = xyes; then
4748  if test x"$enable_shared" = xyes; then
4749    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4750echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4751  fi
4752  enable_shared=no
4753fi
4754# By default, we only want the shared objects to be compiled
4755# Check whether --enable-static or --disable-static was given.
4756if test "${enable_static+set}" = set; then
4757  enableval="$enable_static"
4758  p=${PACKAGE-default}
4759    case $enableval in
4760    yes) enable_static=yes ;;
4761    no) enable_static=no ;;
4762    *)
4763     enable_static=no
4764      # Look at the argument we got.  We use all the common list separators.
4765      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4766      for pkg in $enableval; do
4767        IFS="$lt_save_ifs"
4768        if test "X$pkg" = "X$p"; then
4769          enable_static=yes
4770        fi
4771      done
4772      IFS="$lt_save_ifs"
4773      ;;
4774    esac
4775else
4776  enable_static=no
4777fi;
4778
4779
4780
4781
4782# Initialize automake
4783
4784
4785# AC_MSG_NOTICE([Beginning automake initialisation.])
4786# Stuff for automake
4787# test to see if srcdir already configured
4788if test "`cd $srcdir && pwd`" != "`pwd`" &&
4789   test -f $srcdir/config.status; then
4790  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4791echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4792   { (exit 1); exit 1; }; }
4793fi
4794
4795# test whether we have cygpath
4796if test -z "$CYGPATH_W"; then
4797  if (cygpath --version) >/dev/null 2>/dev/null; then
4798    CYGPATH_W='cygpath -w'
4799  else
4800    CYGPATH_W=echo
4801  fi
4802fi
4803
4804
4805# Define the identity of the package.
4806 PACKAGE='thirdpartyfiltersqp'
4807 VERSION='0.0'
4808
4809
4810cat >>confdefs.h <<_ACEOF
4811#define PACKAGE "$PACKAGE"
4812_ACEOF
4813
4814
4815cat >>confdefs.h <<_ACEOF
4816#define VERSION "$VERSION"
4817_ACEOF
4818
4819# Some tools Automake needs.
4820
4821ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4822
4823
4824AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4825
4826
4827AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4828
4829
4830AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4831
4832
4833MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4834
4835install_sh=${install_sh-"$am_aux_dir/install-sh"}
4836
4837# Installed binaries are usually stripped using `strip' when the user
4838# run `make install-strip'.  However `strip' might not be the right
4839# tool to use in cross-compilation environments, therefore Automake
4840# will honor the `STRIP' environment variable to overrule this program.
4841if test "$cross_compiling" != no; then
4842  if test -n "$ac_tool_prefix"; then
4843  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4844set dummy ${ac_tool_prefix}strip; ac_word=$2
4845echo "$as_me:$LINENO: checking for $ac_word" >&5
4846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847if test "${ac_cv_prog_STRIP+set}" = set; then
4848  echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850  if test -n "$STRIP"; then
4851  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4852else
4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856  IFS=$as_save_IFS
4857  test -z "$as_dir" && as_dir=.
4858  for ac_exec_ext in '' $ac_executable_extensions; do
4859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862    break 2
4863  fi
4864done
4865done
4866
4867fi
4868fi
4869STRIP=$ac_cv_prog_STRIP
4870if test -n "$STRIP"; then
4871  echo "$as_me:$LINENO: result: $STRIP" >&5
4872echo "${ECHO_T}$STRIP" >&6
4873else
4874  echo "$as_me:$LINENO: result: no" >&5
4875echo "${ECHO_T}no" >&6
4876fi
4877
4878fi
4879if test -z "$ac_cv_prog_STRIP"; then
4880  ac_ct_STRIP=$STRIP
4881  # Extract the first word of "strip", so it can be a program name with args.
4882set dummy strip; ac_word=$2
4883echo "$as_me:$LINENO: checking for $ac_word" >&5
4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  if test -n "$ac_ct_STRIP"; then
4889  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4890else
4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894  IFS=$as_save_IFS
4895  test -z "$as_dir" && as_dir=.
4896  for ac_exec_ext in '' $ac_executable_extensions; do
4897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898    ac_cv_prog_ac_ct_STRIP="strip"
4899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900    break 2
4901  fi
4902done
4903done
4904
4905  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4906fi
4907fi
4908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4909if test -n "$ac_ct_STRIP"; then
4910  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4911echo "${ECHO_T}$ac_ct_STRIP" >&6
4912else
4913  echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915fi
4916
4917  STRIP=$ac_ct_STRIP
4918else
4919  STRIP="$ac_cv_prog_STRIP"
4920fi
4921
4922fi
4923INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4924
4925# We need awk for the "check" target.  The system "awk" is bad on
4926# some platforms.
4927# Always define AMTAR for backward compatibility.
4928
4929AMTAR=${AMTAR-"${am_missing_run}tar"}
4930
4931am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4932
4933
4934
4935
4936depcc="$CC"   am_compiler_list=
4937
4938echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4939echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4940if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4941  echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944  # We make a subdir and do the tests there.  Otherwise we can end up
4945  # making bogus files that we don't know about and never remove.  For
4946  # instance it was reported that on HP-UX the gcc test will end up
4947  # making a dummy file named `D' -- because `-MD' means `put the output
4948  # in D'.
4949  mkdir conftest.dir
4950  # Copy depcomp to subdir because otherwise we won't find it if we're
4951  # using a relative directory.
4952  cp "$am_depcomp" conftest.dir
4953  cd conftest.dir
4954  # We will build objects and dependencies in a subdirectory because
4955  # it helps to detect inapplicable dependency modes.  For instance
4956  # both Tru64's cc and ICC support -MD to output dependencies as a
4957  # side effect of compilation, but ICC will put the dependencies in
4958  # the current directory while Tru64 will put them in the object
4959  # directory.
4960  mkdir sub
4961
4962  am_cv_CC_dependencies_compiler_type=none
4963  if test "$am_compiler_list" = ""; then
4964     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4965  fi
4966  for depmode in $am_compiler_list; do
4967    # Setup a source with many dependencies, because some compilers
4968    # like to wrap large dependency lists on column 80 (with \), and
4969    # we should not choose a depcomp mode which is confused by this.
4970    #
4971    # We need to recreate these files for each test, as the compiler may
4972    # overwrite some of them when testing with obscure command lines.
4973    # This happens at least with the AIX C compiler.
4974    : > sub/conftest.c
4975    for i in 1 2 3 4 5 6; do
4976      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4977      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4978      # Solaris 8's {/usr,}/bin/sh.
4979      touch sub/conftst$i.h
4980    done
4981    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4982
4983    case $depmode in
4984    nosideeffect)
4985      # after this tag, mechanisms are not by side-effect, so they'll
4986      # only be used when explicitly requested
4987      if test "x$enable_dependency_tracking" = xyes; then
4988        continue
4989      else
4990        break
4991      fi
4992      ;;
4993    none) break ;;
4994    esac
4995    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4996    # mode.  It turns out that the SunPro C++ compiler does not properly
4997    # handle `-M -o', and we need to detect this.
4998    if depmode=$depmode \
4999       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5000       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5001       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5002         >/dev/null 2>conftest.err &&
5003       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5004       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5005       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5006      # icc doesn't choke on unknown options, it will just issue warnings
5007      # or remarks (even with -Werror).  So we grep stderr for any message
5008      # that says an option was ignored or not supported.
5009      # When given -MP, icc 7.0 and 7.1 complain thusly:
5010      #   icc: Command line warning: ignoring option '-M'; no argument required
5011      # The diagnosis changed in icc 8.0:
5012      #   icc: Command line remark: option '-MP' not supported
5013      if (grep 'ignoring option' conftest.err ||
5014          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5015        am_cv_CC_dependencies_compiler_type=$depmode
5016        break
5017      fi
5018    fi
5019  done
5020
5021  cd ..
5022  rm -rf conftest.dir
5023else
5024  am_cv_CC_dependencies_compiler_type=none
5025fi
5026
5027fi
5028echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5029echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5030CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5031
5032
5033
5034if
5035  test "x$enable_dependency_tracking" != xno \
5036  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037  am__fastdepCC_TRUE=
5038  am__fastdepCC_FALSE='#'
5039else
5040  am__fastdepCC_TRUE='#'
5041  am__fastdepCC_FALSE=
5042fi
5043
5044
5045
5046echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5047echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5048    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5049if test "${enable_maintainer_mode+set}" = set; then
5050  enableval="$enable_maintainer_mode"
5051  USE_MAINTAINER_MODE=$enableval
5052else
5053  USE_MAINTAINER_MODE=no
5054fi;
5055  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5056echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5057
5058
5059if test $USE_MAINTAINER_MODE = yes; then
5060  MAINTAINER_MODE_TRUE=
5061  MAINTAINER_MODE_FALSE='#'
5062else
5063  MAINTAINER_MODE_TRUE='#'
5064  MAINTAINER_MODE_FALSE=
5065fi
5066
5067  MAINT=$MAINTAINER_MODE_TRUE
5068
5069
5070
5071coin_have_externals=no
5072if test "$enable_maintainer_mode" = yes; then
5073
5074  # If maintainer mode is chosen, we make sure that the correct versions
5075  # of the tools are used, and that we know where libtool.m4 is (to
5076  # recreate acinclude.m4)
5077
5078
5079  LIBTOOLM4=
5080  # Normally, $HOME
5081  AUTOTOOLS_DFLT=$HOME
5082
5083  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5084echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5085if test "${ac_cv_use_correct_autotools+set}" = set; then
5086  echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088  ac_cv_use_correct_autotools=check
5089fi
5090echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5091echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5092
5093  if test $ac_cv_use_correct_autotools = check; then
5094    ac_cv_use_correct_autotools=yes
5095    # Check if we have autoconf
5096    # Extract the first word of "autoconf", so it can be a program name with args.
5097set dummy autoconf; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_prog_have_autoconf+set}" = set; then
5101  echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103  if test -n "$have_autoconf"; then
5104  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_prog_have_autoconf="yes"
5114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119
5120  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5121fi
5122fi
5123have_autoconf=$ac_cv_prog_have_autoconf
5124if test -n "$have_autoconf"; then
5125  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5126echo "${ECHO_T}$have_autoconf" >&6
5127else
5128  echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6
5130fi
5131
5132    if test $have_autoconf = no; then
5133      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5134echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5135   { (exit 1); exit 1; }; }
5136    fi
5137
5138    # Check whether autoconf is the correct version
5139    correct_version='2.59'
5140    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5141    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5142echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5143    autoconf --version > confauto.out 2>&1
5144    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5145      echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147    else
5148      rm -f confauto.out
5149      echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5152echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5153   { (exit 1); exit 1; }; }
5154    fi
5155    rm -f confauto.out
5156
5157    # Check if the executable autoconf is picked up from the correct location
5158    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5159echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5160    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5161    autoconf_dir=`cd $autoconf_dir; pwd`
5162    if test x$AUTOTOOLS_DIR = x; then
5163      want_dir=$AUTOTOOLS_DFLT/bin
5164    else
5165      want_dir=$AUTOTOOLS_DIR/bin
5166    fi
5167    if test $autoconf_dir = `cd $want_dir; pwd`; then
5168      echo "$as_me:$LINENO: result: yes" >&5
5169echo "${ECHO_T}yes" >&6
5170    else
5171      rm -f confauto.out
5172      echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5175echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5176   { (exit 1); exit 1; }; }
5177    fi
5178
5179    # Check if we have automake
5180    # Extract the first word of "automake", so it can be a program name with args.
5181set dummy automake; ac_word=$2
5182echo "$as_me:$LINENO: checking for $ac_word" >&5
5183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184if test "${ac_cv_prog_have_automake+set}" = set; then
5185  echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187  if test -n "$have_automake"; then
5188  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195  for ac_exec_ext in '' $ac_executable_extensions; do
5196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197    ac_cv_prog_have_automake="yes"
5198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199    break 2
5200  fi
5201done
5202done
5203
5204  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5205fi
5206fi
5207have_automake=$ac_cv_prog_have_automake
5208if test -n "$have_automake"; then
5209  echo "$as_me:$LINENO: result: $have_automake" >&5
5210echo "${ECHO_T}$have_automake" >&6
5211else
5212  echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214fi
5215
5216    if test $have_automake = no; then
5217      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5218echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5219   { (exit 1); exit 1; }; }
5220    fi
5221
5222    # Check whether automake is the correct version
5223    correct_version='1.9.6'
5224    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5225    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5226echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5227    automake --version > confauto.out 2>&1
5228    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5229      echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231    else
5232      rm -f confauto.out
5233      echo "$as_me:$LINENO: result: no" >&5
5234echo "${ECHO_T}no" >&6
5235      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5236echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5237   { (exit 1); exit 1; }; }
5238    fi
5239    rm -f confauto.out
5240
5241    # Check if the executable automake is picked up from the correct location
5242    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5243echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5244    automake_dir=`which automake | sed -e 's=/automake=='`
5245    automake_dir=`cd $automake_dir; pwd`
5246    if test x$AUTOTOOLS_DIR = x; then
5247      want_dir=$AUTOTOOLS_DFLT/bin
5248    else
5249      want_dir=$AUTOTOOLS_DIR/bin
5250    fi
5251    if test $automake_dir = `cd $want_dir; pwd`; then
5252      echo "$as_me:$LINENO: result: yes" >&5
5253echo "${ECHO_T}yes" >&6
5254    else
5255      rm -f confauto.out
5256      echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5259echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5260   { (exit 1); exit 1; }; }
5261    fi
5262
5263    # Check if this is the correct version of libtool (with escaped dots)
5264    if test x$AUTOTOOLS_DIR = x; then
5265      want_dir=$AUTOTOOLS_DFLT/share
5266    else
5267      want_dir=$AUTOTOOLS_DIR/share
5268    fi
5269    correct_version='1.5.22'
5270    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5271    if test -r $want_dir/libtool/ltmain.sh; then
5272  have_ltmain=yes
5273  :
5274else
5275  have_ltmain=no
5276  :
5277fi
5278
5279    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5280echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5281    if test $have_ltmain = yes; then
5282    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5283        echo "$as_me:$LINENO: result: yes" >&5
5284echo "${ECHO_T}yes" >&6
5285      else
5286        echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5289echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5290   { (exit 1); exit 1; }; }
5291      fi
5292    else
5293      echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5296echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5297   { (exit 1); exit 1; }; }
5298    fi
5299  fi
5300
5301  # Check if we can find the libtool file
5302  if test x$AUTOTOOLS_DIR = x; then
5303    want_dir=$AUTOTOOLS_DFLT/share
5304  else
5305    want_dir=$AUTOTOOLS_DIR/share
5306  fi
5307  if test -r $want_dir/aclocal/libtool.m4; then
5308  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5309  :
5310else
5311  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5312echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5313   { (exit 1); exit 1; }; }
5314  :
5315fi
5316
5317
5318  # Check if we have an Externals file
5319  if test -r $srcdir/Externals; then
5320    coin_have_externals=yes
5321  fi
5322  # Check if subversion is installed and understands https
5323  # Extract the first word of "svn", so it can be a program name with args.
5324set dummy svn; ac_word=$2
5325echo "$as_me:$LINENO: checking for $ac_word" >&5
5326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5327if test "${ac_cv_prog_have_svn+set}" = set; then
5328  echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330  if test -n "$have_svn"; then
5331  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336  IFS=$as_save_IFS
5337  test -z "$as_dir" && as_dir=.
5338  for ac_exec_ext in '' $ac_executable_extensions; do
5339  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340    ac_cv_prog_have_svn="yes"
5341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342    break 2
5343  fi
5344done
5345done
5346
5347  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5348fi
5349fi
5350have_svn=$ac_cv_prog_have_svn
5351if test -n "$have_svn"; then
5352  echo "$as_me:$LINENO: result: $have_svn" >&5
5353echo "${ECHO_T}$have_svn" >&6
5354else
5355  echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357fi
5358
5359  if test x$have_svn = xyes; then
5360    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5361echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5362if test "${ac_cv_svn_understands_https+set}" = set; then
5363  echo $ECHO_N "(cached) $ECHO_C" >&6
5364else
5365  svn --version > confauto.out 2>&1
5366                    if $EGREP https confauto.out >/dev/null 2>&1; then
5367                      ac_cv_svn_understands_https=yes
5368                    else
5369                      ac_cv_svn_understands_https=no
5370                      have_svn=no
5371                      ac_cv_prog_have_svn=no
5372                    fi
5373                    rm -f confauto.out
5374fi
5375echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5376echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5377  fi
5378
5379  # Find the location of the BuildTools directory
5380  BUILDTOOLSDIR=
5381  if test -r $srcdir/BuildTools/coin.m4; then
5382    BUILDTOOLSDIR=$srcdir/BuildTools
5383  else
5384    if test -r $srcdir/../BuildTools/coin.m4; then
5385      BUILDTOOLSDIR=$srcdir/../BuildTools
5386    else
5387      if test -r $srcdir/../../BuildTools/coin.m4; then
5388        BUILDTOOLSDIR=$srcdir/../../BuildTools
5389      else
5390        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5391echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5392   { (exit 1); exit 1; }; }
5393      fi
5394    fi
5395  fi
5396
5397
5398  # The following variable is set to the name of the directory where
5399  # the autotool scripts are located
5400
5401  AUX_DIR=$ac_aux_dir
5402fi
5403
5404# helpful variable for the base directory of this package
5405abs_source_dir=`cd $srcdir; pwd`
5406
5407
5408# Stuff for example Makefiles
5409if test x$prefix = xNONE; then
5410  full_prefix=$ac_default_prefix
5411else
5412  full_prefix=$prefix
5413fi
5414full_prefix=`cd $full_prefix ; pwd`
5415
5416abs_lib_dir=$full_prefix/lib
5417
5418abs_include_dir=$full_prefix/include
5419
5420abs_bin_dir=$full_prefix/bin
5421
5422
5423
5424if test $coin_have_externals = yes && test x$have_svn = xyes; then
5425  HAVE_EXTERNALS_TRUE=
5426  HAVE_EXTERNALS_FALSE='#'
5427else
5428  HAVE_EXTERNALS_TRUE='#'
5429  HAVE_EXTERNALS_FALSE=
5430fi
5431
5432
5433# AC_MSG_NOTICE([End automake initialisation.])
5434
5435
5436
5437LIBTOOL=
5438if test -r ../libtool; then
5439  coin_config_dir=..
5440  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5441fi
5442if test "x$LIBTOOL" = x; then
5443  if test -r ../../libtool; then
5444    coin_config_dir=../..
5445    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5446  fi
5447fi
5448
5449if test "x$LIBTOOL" = x; then
5450# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5451  # Stuff for libtool
5452  # Check whether --enable-shared or --disable-shared was given.
5453if test "${enable_shared+set}" = set; then
5454  enableval="$enable_shared"
5455  p=${PACKAGE-default}
5456    case $enableval in
5457    yes) enable_shared=yes ;;
5458    no) enable_shared=no ;;
5459    *)
5460      enable_shared=no
5461      # Look at the argument we got.  We use all the common list separators.
5462      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5463      for pkg in $enableval; do
5464        IFS="$lt_save_ifs"
5465        if test "X$pkg" = "X$p"; then
5466          enable_shared=yes
5467        fi
5468      done
5469      IFS="$lt_save_ifs"
5470      ;;
5471    esac
5472else
5473  enable_shared=yes
5474fi;
5475
5476# Check whether --enable-fast-install or --disable-fast-install was given.
5477if test "${enable_fast_install+set}" = set; then
5478  enableval="$enable_fast_install"
5479  p=${PACKAGE-default}
5480    case $enableval in
5481    yes) enable_fast_install=yes ;;
5482    no) enable_fast_install=no ;;
5483    *)
5484      enable_fast_install=no
5485      # Look at the argument we got.  We use all the common list separators.
5486      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5487      for pkg in $enableval; do
5488        IFS="$lt_save_ifs"
5489        if test "X$pkg" = "X$p"; then
5490          enable_fast_install=yes
5491        fi
5492      done
5493      IFS="$lt_save_ifs"
5494      ;;
5495    esac
5496else
5497  enable_fast_install=yes
5498fi;
5499
5500echo "$as_me:$LINENO: checking host system type" >&5
5501echo $ECHO_N "checking host system type... $ECHO_C" >&6
5502if test "${ac_cv_host+set}" = set; then
5503  echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505  ac_cv_host_alias=$host_alias
5506test -z "$ac_cv_host_alias" &&
5507  ac_cv_host_alias=$ac_cv_build_alias
5508ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5509  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5510echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5511   { (exit 1); exit 1; }; }
5512
5513fi
5514echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5515echo "${ECHO_T}$ac_cv_host" >&6
5516host=$ac_cv_host
5517host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5518host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5519host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5520
5521
5522echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5523echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5524if test "${lt_cv_path_SED+set}" = set; then
5525  echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527  # Loop through the user's path and test for sed and gsed.
5528# Then use that list of sed's as ones to test for truncation.
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532  IFS=$as_save_IFS
5533  test -z "$as_dir" && as_dir=.
5534  for lt_ac_prog in sed gsed; do
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5537        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5538      fi
5539    done
5540  done
5541done
5542lt_ac_max=0
5543lt_ac_count=0
5544# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5545# along with /bin/sed that truncates output.
5546for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5547  test ! -f $lt_ac_sed && continue
5548  cat /dev/null > conftest.in
5549  lt_ac_count=0
5550  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5551  # Check for GNU sed and select it if it is found.
5552  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5553    lt_cv_path_SED=$lt_ac_sed
5554    break
5555  fi
5556  while true; do
5557    cat conftest.in conftest.in >conftest.tmp
5558    mv conftest.tmp conftest.in
5559    cp conftest.in conftest.nl
5560    echo >>conftest.nl
5561    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5562    cmp -s conftest.out conftest.nl || break
5563    # 10000 chars as input seems more than enough
5564    test $lt_ac_count -gt 10 && break
5565    lt_ac_count=`expr $lt_ac_count + 1`
5566    if test $lt_ac_count -gt $lt_ac_max; then
5567      lt_ac_max=$lt_ac_count
5568      lt_cv_path_SED=$lt_ac_sed
5569    fi
5570  done
5571done
5572
5573fi
5574
5575SED=$lt_cv_path_SED
5576echo "$as_me:$LINENO: result: $SED" >&5
5577echo "${ECHO_T}$SED" >&6
5578
5579
5580# Check whether --with-gnu-ld or --without-gnu-ld was given.
5581if test "${with_gnu_ld+set}" = set; then
5582  withval="$with_gnu_ld"
5583  test "$withval" = no || with_gnu_ld=yes
5584else
5585  with_gnu_ld=no
5586fi;
5587ac_prog=ld
5588if test "$GCC" = yes; then
5589  # Check if gcc -print-prog-name=ld gives a path.
5590  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5591echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5592  case $host in
5593  *-*-mingw*)
5594    # gcc leaves a trailing carriage return which upsets mingw
5595    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5596  *)
5597    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5598  esac
5599  case $ac_prog in
5600    # Accept absolute paths.
5601    [\\/]* | ?:[\\/]*)
5602      re_direlt='/[^/][^/]*/\.\./'
5603      # Canonicalize the pathname of ld
5604      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5605      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5606        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5607      done
5608      test -z "$LD" && LD="$ac_prog"
5609      ;;
5610  "")
5611    # If it fails, then pretend we aren't using GCC.
5612    ac_prog=ld
5613    ;;
5614  *)
5615    # If it is relative, then search for the first ld in PATH.
5616    with_gnu_ld=unknown
5617    ;;
5618  esac
5619elif test "$with_gnu_ld" = yes; then
5620  echo "$as_me:$LINENO: checking for GNU ld" >&5
5621echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5622else
5623  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5624echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5625fi
5626if test "${lt_cv_path_LD+set}" = set; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629  if test -z "$LD"; then
5630  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5631  for ac_dir in $PATH; do
5632    IFS="$lt_save_ifs"
5633    test -z "$ac_dir" && ac_dir=.
5634    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5635      lt_cv_path_LD="$ac_dir/$ac_prog"
5636      # Check to see if the program is GNU ld.  I'd rather use --version,
5637      # but apparently some variants of GNU ld only accept -v.
5638      # Break only if it was the GNU/non-GNU ld that we prefer.
5639      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5640      *GNU* | *'with BFD'*)
5641        test "$with_gnu_ld" != no && break
5642        ;;
5643      *)
5644        test "$with_gnu_ld" != yes && break
5645        ;;
5646      esac
5647    fi
5648  done
5649  IFS="$lt_save_ifs"
5650else
5651  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5652fi
5653fi
5654
5655LD="$lt_cv_path_LD"
5656if test -n "$LD"; then
5657  echo "$as_me:$LINENO: result: $LD" >&5
5658echo "${ECHO_T}$LD" >&6
5659else
5660  echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662fi
5663test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5664echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5665   { (exit 1); exit 1; }; }
5666echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5667echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5668if test "${lt_cv_prog_gnu_ld+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5672case `$LD -v 2>&1 </dev/null` in
5673*GNU* | *'with BFD'*)
5674  lt_cv_prog_gnu_ld=yes
5675  ;;
5676*)
5677  lt_cv_prog_gnu_ld=no
5678  ;;
5679esac
5680fi
5681echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5682echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5683with_gnu_ld=$lt_cv_prog_gnu_ld
5684
5685
5686echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5687echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5688if test "${lt_cv_ld_reload_flag+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  lt_cv_ld_reload_flag='-r'
5692fi
5693echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5694echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5695reload_flag=$lt_cv_ld_reload_flag
5696case $reload_flag in
5697"" | " "*) ;;
5698*) reload_flag=" $reload_flag" ;;
5699esac
5700reload_cmds='$LD$reload_flag -o $output$reload_objs'
5701case $host_os in
5702  darwin*)
5703    if test "$GCC" = yes; then
5704      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5705    else
5706      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707    fi
5708    ;;
5709esac
5710
5711echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5712echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5713if test "${lt_cv_path_NM+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  if test -n "$NM"; then
5717  # Let the user override the test.
5718  lt_cv_path_NM="$NM"
5719else
5720  lt_nm_to_check="${ac_tool_prefix}nm"
5721  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5722    lt_nm_to_check="$lt_nm_to_check nm"
5723  fi
5724  for lt_tmp_nm in $lt_nm_to_check; do
5725    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5726    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5727      IFS="$lt_save_ifs"
5728      test -z "$ac_dir" && ac_dir=.
5729      tmp_nm="$ac_dir/$lt_tmp_nm"
5730      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5731        # Check to see if the nm accepts a BSD-compat flag.
5732        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5733        #   nm: unknown option "B" ignored
5734        # Tru64's nm complains that /dev/null is an invalid object file
5735        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5736        */dev/null* | *'Invalid file or object type'*)
5737          lt_cv_path_NM="$tmp_nm -B"
5738          break
5739          ;;
5740        *)
5741          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5742          */dev/null*)
5743            lt_cv_path_NM="$tmp_nm -p"
5744            break
5745            ;;
5746          *)
5747            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5748            continue # so that we can try to find one that supports BSD flags
5749            ;;
5750          esac
5751          ;;
5752        esac
5753      fi
5754    done
5755    IFS="$lt_save_ifs"
5756  done
5757  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5758fi
5759fi
5760echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5761echo "${ECHO_T}$lt_cv_path_NM" >&6
5762NM="$lt_cv_path_NM"
5763
5764echo "$as_me:$LINENO: checking whether ln -s works" >&5
5765echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5766LN_S=$as_ln_s
5767if test "$LN_S" = "ln -s"; then
5768  echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770else
5771  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5772echo "${ECHO_T}no, using $LN_S" >&6
5773fi
5774
5775echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5776echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5777if test "${lt_cv_deplibs_check_method+set}" = set; then
5778  echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780  lt_cv_file_magic_cmd='$MAGIC_CMD'
5781lt_cv_file_magic_test_file=
5782lt_cv_deplibs_check_method='unknown'
5783# Need to set the preceding variable on all platforms that support
5784# interlibrary dependencies.
5785# 'none' -- dependencies not supported.
5786# `unknown' -- same as none, but documents that we really don't know.
5787# 'pass_all' -- all dependencies passed with no checks.
5788# 'test_compile' -- check by making test program.
5789# 'file_magic [[regex]]' -- check by looking for files in library path
5790# which responds to the $file_magic_cmd with a given extended regex.
5791# If you have `file' or equivalent on your system and you're not sure
5792# whether `pass_all' will *always* work, you probably want this one.
5793
5794case $host_os in
5795aix4* | aix5*)
5796  lt_cv_deplibs_check_method=pass_all
5797  ;;
5798
5799beos*)
5800  lt_cv_deplibs_check_method=pass_all
5801  ;;
5802
5803bsdi[45]*)
5804  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5805  lt_cv_file_magic_cmd='/usr/bin/file -L'
5806  lt_cv_file_magic_test_file=/shlib/libc.so
5807  ;;
5808
5809cygwin*)
5810  # func_win32_libid is a shell function defined in ltmain.sh
5811  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5812  lt_cv_file_magic_cmd='func_win32_libid'
5813  ;;
5814
5815mingw* | pw32*)
5816  # Base MSYS/MinGW do not provide the 'file' command needed by
5817  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5818  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5819  lt_cv_file_magic_cmd='$OBJDUMP -f'
5820  ;;
5821
5822darwin* | rhapsody*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826freebsd* | kfreebsd*-gnu | dragonfly*)
5827  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5828    case $host_cpu in
5829    i*86 )
5830      # Not sure whether the presence of OpenBSD here was a mistake.
5831      # Let's accept both of them until this is cleared up.
5832      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5833      lt_cv_file_magic_cmd=/usr/bin/file
5834      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5835      ;;
5836    esac
5837  else
5838    lt_cv_deplibs_check_method=pass_all
5839  fi
5840  ;;
5841
5842gnu*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846hpux10.20* | hpux11*)
5847  lt_cv_file_magic_cmd=/usr/bin/file
5848  case $host_cpu in
5849  ia64*)
5850    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5851    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5852    ;;
5853  hppa*64*)
5854    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]'
5855    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5856    ;;
5857  *)
5858    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5859    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5860    ;;
5861  esac
5862  ;;
5863
5864interix3*)
5865  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5866  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5867  ;;
5868
5869irix5* | irix6* | nonstopux*)
5870  case $LD in
5871  *-32|*"-32 ") libmagic=32-bit;;
5872  *-n32|*"-n32 ") libmagic=N32;;
5873  *-64|*"-64 ") libmagic=64-bit;;
5874  *) libmagic=never-match;;
5875  esac
5876  lt_cv_deplibs_check_method=pass_all
5877  ;;
5878
5879# This must be Linux ELF.
5880linux*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884netbsd*)
5885  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5886    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5887  else
5888    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5889  fi
5890  ;;
5891
5892newos6*)
5893  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5894  lt_cv_file_magic_cmd=/usr/bin/file
5895  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5896  ;;
5897
5898nto-qnx*)
5899  lt_cv_deplibs_check_method=unknown
5900  ;;
5901
5902openbsd*)
5903  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5904    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5905  else
5906    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5907  fi
5908  ;;
5909
5910osf3* | osf4* | osf5*)
5911  lt_cv_deplibs_check_method=pass_all
5912  ;;
5913
5914solaris*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918sysv4 | sysv4.3*)
5919  case $host_vendor in
5920  motorola)
5921    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]'
5922    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5923    ;;
5924  ncr)
5925    lt_cv_deplibs_check_method=pass_all
5926    ;;
5927  sequent)
5928    lt_cv_file_magic_cmd='/bin/file'
5929    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5930    ;;
5931  sni)
5932    lt_cv_file_magic_cmd='/bin/file'
5933    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5934    lt_cv_file_magic_test_file=/lib/libc.so
5935    ;;
5936  siemens)
5937    lt_cv_deplibs_check_method=pass_all
5938    ;;
5939  pc)
5940    lt_cv_deplibs_check_method=pass_all
5941    ;;
5942  esac
5943  ;;
5944
5945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5946  lt_cv_deplibs_check_method=pass_all
5947  ;;
5948esac
5949
5950fi
5951echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5952echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5953file_magic_cmd=$lt_cv_file_magic_cmd
5954deplibs_check_method=$lt_cv_deplibs_check_method
5955test -z "$deplibs_check_method" && deplibs_check_method=unknown
5956
5957
5958
5959
5960# If no C compiler was specified, use CC.
5961LTCC=${LTCC-"$CC"}
5962
5963# If no C compiler flags were specified, use CFLAGS.
5964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5965
5966# Allow CC to be a program name with arguments.
5967compiler=$CC
5968
5969# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5970if test "${enable_libtool_lock+set}" = set; then
5971  enableval="$enable_libtool_lock"
5972
5973fi;
5974test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5975
5976# Some flags need to be propagated to the compiler or linker for good
5977# libtool support.
5978case $host in
5979ia64-*-hpux*)
5980  # Find out which ABI we are using.
5981  echo 'int i;' > conftest.$ac_ext
5982  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983  (eval $ac_compile) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; then
5987    case `/usr/bin/file conftest.$ac_objext` in
5988    *ELF-32*)
5989      HPUX_IA64_MODE="32"
5990      ;;
5991    *ELF-64*)
5992      HPUX_IA64_MODE="64"
5993      ;;
5994    esac
5995  fi
5996  rm -rf conftest*
5997  ;;
5998*-*-irix6*)
5999  # Find out which ABI we are using.
6000  echo '#line 6000 "configure"' > conftest.$ac_ext
6001  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002  (eval $ac_compile) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; then
6006   if test "$lt_cv_prog_gnu_ld" = yes; then
6007    case `/usr/bin/file conftest.$ac_objext` in
6008    *32-bit*)
6009      LD="${LD-ld} -melf32bsmip"
6010      ;;
6011    *N32*)
6012      LD="${LD-ld} -melf32bmipn32"
6013      ;;
6014    *64-bit*)
6015      LD="${LD-ld} -melf64bmip"
6016      ;;
6017    esac
6018   else
6019    case `/usr/bin/file conftest.$ac_objext` in
6020    *32-bit*)
6021      LD="${LD-ld} -32"
6022      ;;
6023    *N32*)
6024      LD="${LD-ld} -n32"
6025      ;;
6026    *64-bit*)
6027      LD="${LD-ld} -64"
6028      ;;
6029    esac
6030   fi
6031  fi
6032  rm -rf conftest*
6033  ;;
6034
6035x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6036  # Find out which ABI we are using.
6037  echo 'int i;' > conftest.$ac_ext
6038  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039  (eval $ac_compile) 2>&5
6040  ac_status=$?
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); }; then
6043    case `/usr/bin/file conftest.o` in
6044    *32-bit*)
6045      case $host in
6046        x86_64-*linux*)
6047          LD="${LD-ld} -m elf_i386"
6048          ;;
6049        ppc64-*linux*|powerpc64-*linux*)
6050          LD="${LD-ld} -m elf32ppclinux"
6051          ;;
6052        s390x-*linux*)
6053          LD="${LD-ld} -m elf_s390"
6054          ;;
6055        sparc64-*linux*)
6056          LD="${LD-ld} -m elf32_sparc"
6057          ;;
6058      esac
6059      ;;
6060    *64-bit*)
6061      case $host in
6062        x86_64-*linux*)
6063          LD="${LD-ld} -m elf_x86_64"
6064          ;;
6065        ppc*-*linux*|powerpc*-*linux*)
6066          LD="${LD-ld} -m elf64ppc"
6067          ;;
6068        s390*-*linux*)
6069          LD="${LD-ld} -m elf64_s390"
6070          ;;
6071        sparc*-*linux*)
6072          LD="${LD-ld} -m elf64_sparc"
6073          ;;
6074      esac
6075      ;;
6076    esac
6077  fi
6078  rm -rf conftest*
6079  ;;
6080
6081*-*-sco3.2v5*)
6082  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6083  SAVE_CFLAGS="$CFLAGS"
6084  CFLAGS="$CFLAGS -belf"
6085  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6086echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6087if test "${lt_cv_cc_needs_belf+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  ac_ext=c
6091ac_cpp='$CPP $CPPFLAGS'
6092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095
6096     cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h.  */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h.  */
6102
6103int
6104main ()
6105{
6106
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext conftest$ac_exeext
6112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113  (eval $ac_link) 2>conftest.er1
6114  ac_status=$?
6115  grep -v '^ *+' conftest.er1 >conftest.err
6116  rm -f conftest.er1
6117  cat conftest.err >&5
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); } &&
6120         { ac_try='test -z "$ac_c_werror_flag"
6121                         || test ! -s conftest.err'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; } &&
6127         { ac_try='test -s conftest$ac_exeext'
6128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129  (eval $ac_try) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; }; then
6133  lt_cv_cc_needs_belf=yes
6134else
6135  echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138lt_cv_cc_needs_belf=no
6139fi
6140rm -f conftest.err conftest.$ac_objext \
6141      conftest$ac_exeext conftest.$ac_ext
6142     ac_ext=c
6143ac_cpp='$CPP $CPPFLAGS'
6144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148fi
6149echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6150echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6151  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6152    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6153    CFLAGS="$SAVE_CFLAGS"
6154  fi
6155  ;;
6156sparc*-*solaris*)
6157  # Find out which ABI we are using.
6158  echo 'int i;' > conftest.$ac_ext
6159  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160  (eval $ac_compile) 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); }; then
6164    case `/usr/bin/file conftest.o` in
6165    *64-bit*)
6166      case $lt_cv_prog_gnu_ld in
6167      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6168      *)    LD="${LD-ld} -64" ;;
6169      esac
6170      ;;
6171    esac
6172  fi
6173  rm -rf conftest*
6174  ;;
6175
6176
6177esac
6178
6179need_locks="$enable_libtool_lock"
6180
6181
6182ac_ext=c
6183ac_cpp='$CPP $CPPFLAGS'
6184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186ac_compiler_gnu=$ac_cv_c_compiler_gnu
6187echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6188echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6189# On Suns, sometimes $CPP names a directory.
6190if test -n "$CPP" && test -d "$CPP"; then
6191  CPP=
6192fi
6193if test -z "$CPP"; then
6194  if test "${ac_cv_prog_CPP+set}" = set; then
6195  echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197      # Double quotes because CPP needs to be expanded
6198    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6199    do
6200      ac_preproc_ok=false
6201for ac_c_preproc_warn_flag in '' yes
6202do
6203  # Use a header file that comes with gcc, so configuring glibc
6204  # with a fresh cross-compiler works.
6205  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6206  # <limits.h> exists even on freestanding compilers.
6207  # On the NeXT, cc -E runs the code through the compiler's parser,
6208  # not just through cpp. "Syntax error" is here to catch this case.
6209  cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h.  */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h.  */
6215#ifdef __STDC__
6216# include <limits.h>
6217#else
6218# include <assert.h>
6219#endif
6220                     Syntax error
6221_ACEOF
6222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6223  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6224  ac_status=$?
6225  grep -v '^ *+' conftest.er1 >conftest.err
6226  rm -f conftest.er1
6227  cat conftest.err >&5
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); } >/dev/null; then
6230  if test -s conftest.err; then
6231    ac_cpp_err=$ac_c_preproc_warn_flag
6232    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6233  else
6234    ac_cpp_err=
6235  fi
6236else
6237  ac_cpp_err=yes
6238fi
6239if test -z "$ac_cpp_err"; then
6240  :
6241else
6242  echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245  # Broken: fails on valid input.
6246continue
6247fi
6248rm -f conftest.err conftest.$ac_ext
6249
6250  # OK, works on sane cases.  Now check whether non-existent headers
6251  # can be detected and how.
6252  cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h.  */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h.  */
6258#include <ac_nonexistent.h>
6259_ACEOF
6260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262  ac_status=$?
6263  grep -v '^ *+' conftest.er1 >conftest.err
6264  rm -f conftest.er1
6265  cat conftest.err >&5
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); } >/dev/null; then
6268  if test -s conftest.err; then
6269    ac_cpp_err=$ac_c_preproc_warn_flag
6270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6271  else
6272    ac_cpp_err=
6273  fi
6274else
6275  ac_cpp_err=yes
6276fi
6277if test -z "$ac_cpp_err"; then
6278  # Broken: success on invalid input.
6279continue
6280else
6281  echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
6284  # Passes both tests.
6285ac_preproc_ok=:
6286break
6287fi
6288rm -f conftest.err conftest.$ac_ext
6289
6290done
6291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6292rm -f conftest.err conftest.$ac_ext
6293if $ac_preproc_ok; then
6294  break
6295fi
6296
6297    done
6298    ac_cv_prog_CPP=$CPP
6299
6300fi
6301  CPP=$ac_cv_prog_CPP
6302else
6303  ac_cv_prog_CPP=$CPP
6304fi
6305echo "$as_me:$LINENO: result: $CPP" >&5
6306echo "${ECHO_T}$CPP" >&6
6307ac_preproc_ok=false
6308for ac_c_preproc_warn_flag in '' yes
6309do
6310  # Use a header file that comes with gcc, so configuring glibc
6311  # with a fresh cross-compiler works.
6312  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6313  # <limits.h> exists even on freestanding compilers.
6314  # On the NeXT, cc -E runs the code through the compiler's parser,
6315  # not just through cpp. "Syntax error" is here to catch this case.
6316  cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h.  */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h.  */
6322#ifdef __STDC__
6323# include <limits.h>
6324#else
6325# include <assert.h>
6326#endif
6327                     Syntax error
6328_ACEOF
6329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6330  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6331  ac_status=$?
6332  grep -v '^ *+' conftest.er1 >conftest.err
6333  rm -f conftest.er1
6334  cat conftest.err >&5
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); } >/dev/null; then
6337  if test -s conftest.err; then
6338    ac_cpp_err=$ac_c_preproc_warn_flag
6339    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6340  else
6341    ac_cpp_err=
6342  fi
6343else
6344  ac_cpp_err=yes
6345fi
6346if test -z "$ac_cpp_err"; then
6347  :
6348else
6349  echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352  # Broken: fails on valid input.
6353continue
6354fi
6355rm -f conftest.err conftest.$ac_ext
6356
6357  # OK, works on sane cases.  Now check whether non-existent headers
6358  # can be detected and how.
6359  cat >conftest.$ac_ext <<_ACEOF
6360/* confdefs.h.  */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h.  */
6365#include <ac_nonexistent.h>
6366_ACEOF
6367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6369  ac_status=$?
6370  grep -v '^ *+' conftest.er1 >conftest.err
6371  rm -f conftest.er1
6372  cat conftest.err >&5
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); } >/dev/null; then
6375  if test -s conftest.err; then
6376    ac_cpp_err=$ac_c_preproc_warn_flag
6377    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6378  else
6379    ac_cpp_err=
6380  fi
6381else
6382  ac_cpp_err=yes
6383fi
6384if test -z "$ac_cpp_err"; then
6385  # Broken: success on invalid input.
6386continue
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391  # Passes both tests.
6392ac_preproc_ok=:
6393break
6394fi
6395rm -f conftest.err conftest.$ac_ext
6396
6397done
6398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6399rm -f conftest.err conftest.$ac_ext
6400if $ac_preproc_ok; then
6401  :
6402else
6403  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6404See \`config.log' for more details." >&5
6405echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6406See \`config.log' for more details." >&2;}
6407   { (exit 1); exit 1; }; }
6408fi
6409
6410ac_ext=c
6411ac_cpp='$CPP $CPPFLAGS'
6412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415
6416
6417echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6418echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6419if test "${ac_cv_header_stdc+set}" = set; then
6420  echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422  cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428#include <stdlib.h>
6429#include <stdarg.h>
6430#include <string.h>
6431#include <float.h>
6432
6433int
6434main ()
6435{
6436
6437  ;
6438  return 0;
6439}
6440_ACEOF
6441rm -f conftest.$ac_objext
6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443  (eval $ac_compile) 2>conftest.er1
6444  ac_status=$?
6445  grep -v '^ *+' conftest.er1 >conftest.err
6446  rm -f conftest.er1
6447  cat conftest.err >&5
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } &&
6450         { ac_try='test -z "$ac_c_werror_flag"
6451                         || test ! -s conftest.err'
6452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453  (eval $ac_try) 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }; } &&
6457         { ac_try='test -s conftest.$ac_objext'
6458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459  (eval $ac_try) 2>&5
6460  ac_status=$?
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); }; }; then
6463  ac_cv_header_stdc=yes
6464else
6465  echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468ac_cv_header_stdc=no
6469fi
6470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471
6472if test $ac_cv_header_stdc = yes; then
6473  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6474  cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480#include <string.h>
6481
6482_ACEOF
6483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484  $EGREP "memchr" >/dev/null 2>&1; then
6485  :
6486else
6487  ac_cv_header_stdc=no
6488fi
6489rm -f conftest*
6490
6491fi
6492
6493if test $ac_cv_header_stdc = yes; then
6494  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6495  cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h.  */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h.  */
6501#include <stdlib.h>
6502
6503_ACEOF
6504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6505  $EGREP "free" >/dev/null 2>&1; then
6506  :
6507else
6508  ac_cv_header_stdc=no
6509fi
6510rm -f conftest*
6511
6512fi
6513
6514if test $ac_cv_header_stdc = yes; then
6515  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6516  if test "$cross_compiling" = yes; then
6517  :
6518else
6519  cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h.  */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h.  */
6525#include <ctype.h>
6526#if ((' ' & 0x0FF) == 0x020)
6527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6529#else
6530# define ISLOWER(c) \
6531                   (('a' <= (c) && (c) <= 'i') \
6532                     || ('j' <= (c) && (c) <= 'r') \
6533                     || ('s' <= (c) && (c) <= 'z'))
6534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6535#endif
6536
6537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6538int
6539main ()
6540{
6541  int i;
6542  for (i = 0; i < 256; i++)
6543    if (XOR (islower (i), ISLOWER (i))
6544        || toupper (i) != TOUPPER (i))
6545      exit(2);
6546  exit (0);
6547}
6548_ACEOF
6549rm -f conftest$ac_exeext
6550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551  (eval $ac_link) 2>&5
6552  ac_status=$?
6553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556  (eval $ac_try) 2>&5
6557  ac_status=$?
6558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559  (exit $ac_status); }; }; then
6560  :
6561else
6562  echo "$as_me: program exited with status $ac_status" >&5
6563echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566( exit $ac_status )
6567ac_cv_header_stdc=no
6568fi
6569rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570fi
6571fi
6572fi
6573echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6574echo "${ECHO_T}$ac_cv_header_stdc" >&6
6575if test $ac_cv_header_stdc = yes; then
6576
6577cat >>confdefs.h <<\_ACEOF
6578#define STDC_HEADERS 1
6579_ACEOF
6580
6581fi
6582
6583# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6594                  inttypes.h stdint.h unistd.h
6595do
6596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597echo "$as_me:$LINENO: checking for $ac_header" >&5
6598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6599if eval "test \"\${$as_ac_Header+set}\" = set"; then
6600  echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602  cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h.  */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h.  */
6608$ac_includes_default
6609
6610#include <$ac_header>
6611_ACEOF
6612rm -f conftest.$ac_objext
6613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614  (eval $ac_compile) 2>conftest.er1
6615  ac_status=$?
6616  grep -v '^ *+' conftest.er1 >conftest.err
6617  rm -f conftest.er1
6618  cat conftest.err >&5
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); } &&
6621         { ac_try='test -z "$ac_c_werror_flag"
6622                         || test ! -s conftest.err'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; } &&
6628         { ac_try='test -s conftest.$ac_objext'
6629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630  (eval $ac_try) 2>&5
6631  ac_status=$?
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); }; }; then
6634  eval "$as_ac_Header=yes"
6635else
6636  echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639eval "$as_ac_Header=no"
6640fi
6641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6642fi
6643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645if test `eval echo '${'$as_ac_Header'}'` = yes; then
6646  cat >>confdefs.h <<_ACEOF
6647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648_ACEOF
6649
6650fi
6651
6652done
6653
6654
6655
6656for ac_header in dlfcn.h
6657do
6658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6659if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660  echo "$as_me:$LINENO: checking for $ac_header" >&5
6661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6662if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664fi
6665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6667else
6668  # Is the header compilable?
6669echo "$as_me:$LINENO: checking $ac_header usability" >&5
6670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6671cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h.  */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h.  */
6677$ac_includes_default
6678#include <$ac_header>
6679_ACEOF
6680rm -f conftest.$ac_objext
6681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682  (eval $ac_compile) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689         { ac_try='test -z "$ac_c_werror_flag"
6690                         || test ! -s conftest.err'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; } &&
6696         { ac_try='test -s conftest.$ac_objext'
6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698  (eval $ac_try) 2>&5
6699  ac_status=$?
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); }; }; then
6702  ac_header_compiler=yes
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707ac_header_compiler=no
6708fi
6709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6711echo "${ECHO_T}$ac_header_compiler" >&6
6712
6713# Is the header present?
6714echo "$as_me:$LINENO: checking $ac_header presence" >&5
6715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6716cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h.  */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h.  */
6722#include <$ac_header>
6723_ACEOF
6724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726  ac_status=$?
6727  grep -v '^ *+' conftest.er1 >conftest.err
6728  rm -f conftest.er1
6729  cat conftest.err >&5
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); } >/dev/null; then
6732  if test -s conftest.err; then
6733    ac_cpp_err=$ac_c_preproc_warn_flag
6734    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735  else
6736    ac_cpp_err=
6737  fi
6738else
6739  ac_cpp_err=yes
6740fi
6741if test -z "$ac_cpp_err"; then
6742  ac_header_preproc=yes
6743else
6744  echo "$as_me: failed program was:" >&5
6745sed 's/^/| /' conftest.$ac_ext >&5
6746
6747  ac_header_preproc=no
6748fi
6749rm -f conftest.err conftest.$ac_ext
6750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6751echo "${ECHO_T}$ac_header_preproc" >&6
6752
6753# So?  What about this header?
6754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6755  yes:no: )
6756    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6758    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6760    ac_header_preproc=yes
6761    ;;
6762  no:yes:* )
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6766echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6769    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6770echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6773    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6775    (
6776      cat <<\_ASBOX
6777## --------------------------------------------------------------- ##
6778## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6779## --------------------------------------------------------------- ##
6780_ASBOX
6781    ) |
6782      sed "s/^/$as_me: WARNING:     /" >&2
6783    ;;
6784esac
6785echo "$as_me:$LINENO: checking for $ac_header" >&5
6786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6787if eval "test \"\${$as_ac_Header+set}\" = set"; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  eval "$as_ac_Header=\$ac_header_preproc"
6791fi
6792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6794
6795fi
6796if test `eval echo '${'$as_ac_Header'}'` = yes; then
6797  cat >>confdefs.h <<_ACEOF
6798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6799_ACEOF
6800
6801fi
6802
6803done
6804
6805ac_ext=cc
6806ac_cpp='$CXXCPP $CPPFLAGS'
6807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6810if test -n "$ac_tool_prefix"; then
6811  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6812  do
6813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6815echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817if test "${ac_cv_prog_CXX+set}" = set; then
6818  echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820  if test -n "$CXX"; then
6821  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826  IFS=$as_save_IFS
6827  test -z "$as_dir" && as_dir=.
6828  for ac_exec_ext in '' $ac_executable_extensions; do
6829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832    break 2
6833  fi
6834done
6835done
6836
6837fi
6838fi
6839CXX=$ac_cv_prog_CXX
6840if test -n "$CXX"; then
6841  echo "$as_me:$LINENO: result: $CXX" >&5
6842echo "${ECHO_T}$CXX" >&6
6843else
6844  echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6
6846fi
6847
6848    test -n "$CXX" && break
6849  done
6850fi
6851if test -z "$CXX"; then
6852  ac_ct_CXX=$CXX
6853  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6854do
6855  # Extract the first word of "$ac_prog", so it can be a program name with args.
6856set dummy $ac_prog; ac_word=$2
6857echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6860  echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862  if test -n "$ac_ct_CXX"; then
6863  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868  IFS=$as_save_IFS
6869  test -z "$as_dir" && as_dir=.
6870  for ac_exec_ext in '' $ac_executable_extensions; do
6871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872    ac_cv_prog_ac_ct_CXX="$ac_prog"
6873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874    break 2
6875  fi
6876done
6877done
6878
6879fi
6880fi
6881ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6882if test -n "$ac_ct_CXX"; then
6883  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6884echo "${ECHO_T}$ac_ct_CXX" >&6
6885else
6886  echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
6888fi
6889
6890  test -n "$ac_ct_CXX" && break
6891done
6892test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6893
6894  CXX=$ac_ct_CXX
6895fi
6896
6897
6898# Provide some information about the compiler.
6899echo "$as_me:$LINENO:" \
6900     "checking for C++ compiler version" >&5
6901ac_compiler=`set X $ac_compile; echo $2`
6902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6903  (eval $ac_compiler --version </dev/null >&5) 2>&5
6904  ac_status=$?
6905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906  (exit $ac_status); }
6907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6908  (eval $ac_compiler -v </dev/null >&5) 2>&5
6909  ac_status=$?
6910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911  (exit $ac_status); }
6912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6913  (eval $ac_compiler -V </dev/null >&5) 2>&5
6914  ac_status=$?
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); }
6917
6918echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6919echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6920if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6921  echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
6923  cat >conftest.$ac_ext <<_ACEOF
6924/* confdefs.h.  */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h.  */
6929
6930int
6931main ()
6932{
6933#ifndef __GNUC__
6934       choke me
6935#endif
6936
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943  (eval $ac_compile) 2>conftest.er1
6944  ac_status=$?
6945  grep -v '^ *+' conftest.er1 >conftest.err
6946  rm -f conftest.er1
6947  cat conftest.err >&5
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); } &&
6950         { ac_try='test -z "$ac_cxx_werror_flag"
6951                         || test ! -s conftest.err'
6952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953  (eval $ac_try) 2>&5
6954  ac_status=$?
6955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); }; } &&
6957         { ac_try='test -s conftest.$ac_objext'
6958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959  (eval $ac_try) 2>&5
6960  ac_status=$?
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); }; }; then
6963  ac_compiler_gnu=yes
6964else
6965  echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968ac_compiler_gnu=no
6969fi
6970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6971ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6972
6973fi
6974echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6975echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6976GXX=`test $ac_compiler_gnu = yes && echo yes`
6977ac_test_CXXFLAGS=${CXXFLAGS+set}
6978ac_save_CXXFLAGS=$CXXFLAGS
6979CXXFLAGS="-g"
6980echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6981echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6982if test "${ac_cv_prog_cxx_g+set}" = set; then
6983  echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985  cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h.  */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h.  */
6991
6992int
6993main ()
6994{
6995
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext
7001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002  (eval $ac_compile) 2>conftest.er1
7003  ac_status=$?
7004  grep -v '^ *+' conftest.er1 >conftest.err
7005  rm -f conftest.er1
7006  cat conftest.err >&5
7007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008  (exit $ac_status); } &&
7009         { ac_try='test -z "$ac_cxx_werror_flag"
7010                         || test ! -s conftest.err'
7011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012  (eval $ac_try) 2>&5
7013  ac_status=$?
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); }; } &&
7016         { ac_try='test -s conftest.$ac_objext'
7017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018  (eval $ac_try) 2>&5
7019  ac_status=$?
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); }; }; then
7022  ac_cv_prog_cxx_g=yes
7023else
7024  echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027ac_cv_prog_cxx_g=no
7028fi
7029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030fi
7031echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7032echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7033if test "$ac_test_CXXFLAGS" = set; then
7034  CXXFLAGS=$ac_save_CXXFLAGS
7035elif test $ac_cv_prog_cxx_g = yes; then
7036  if test "$GXX" = yes; then
7037    CXXFLAGS="-g -O2"
7038  else
7039    CXXFLAGS="-g"
7040  fi
7041else
7042  if test "$GXX" = yes; then
7043    CXXFLAGS="-O2"
7044  else
7045    CXXFLAGS=
7046  fi
7047fi
7048for ac_declaration in \
7049   '' \
7050   'extern "C" void std::exit (int) throw (); using std::exit;' \
7051   'extern "C" void std::exit (int); using std::exit;' \
7052   'extern "C" void exit (int) throw ();' \
7053   'extern "C" void exit (int);' \
7054   'void exit (int);'
7055do
7056  cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h.  */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h.  */
7062$ac_declaration
7063#include <stdlib.h>
7064int
7065main ()
7066{
7067exit (42);
7068  ;
7069  return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074  (eval $ac_compile) 2>conftest.er1
7075  ac_status=$?
7076  grep -v '^ *+' conftest.er1 >conftest.err
7077  rm -f conftest.er1
7078  cat conftest.err >&5
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); } &&
7081         { ac_try='test -z "$ac_cxx_werror_flag"
7082                         || test ! -s conftest.err'
7083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084  (eval $ac_try) 2>&5
7085  ac_status=$?
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); }; } &&
7088         { ac_try='test -s conftest.$ac_objext'
7089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090  (eval $ac_try) 2>&5
7091  ac_status=$?
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); }; }; then
7094  :
7095else
7096  echo "$as_me: failed program was:" >&5
7097sed 's/^/| /' conftest.$ac_ext >&5
7098
7099continue
7100fi
7101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102  cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h.  */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h.  */
7108$ac_declaration
7109int
7110main ()
7111{
7112exit (42);
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext
7118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119  (eval $ac_compile) 2>conftest.er1
7120  ac_status=$?
7121  grep -v '^ *+' conftest.er1 >conftest.err
7122  rm -f conftest.er1
7123  cat conftest.err >&5
7124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125  (exit $ac_status); } &&
7126         { ac_try='test -z "$ac_cxx_werror_flag"
7127                         || test ! -s conftest.err'
7128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129  (eval $ac_try) 2>&5
7130  ac_status=$?
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); }; } &&
7133         { ac_try='test -s conftest.$ac_objext'
7134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135  (eval $ac_try) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); }; }; then
7139  break
7140else
7141  echo "$as_me: failed program was:" >&5
7142sed 's/^/| /' conftest.$ac_ext >&5
7143
7144fi
7145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146done
7147rm -f conftest*
7148if test -n "$ac_declaration"; then
7149  echo '#ifdef __cplusplus' >>confdefs.h
7150  echo $ac_declaration      >>confdefs.h
7151  echo '#endif'             >>confdefs.h
7152fi
7153
7154ac_ext=cc
7155ac_cpp='$CXXCPP $CPPFLAGS'
7156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7159
7160depcc="$CXX"  am_compiler_list=
7161
7162echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7163echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7164if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7165  echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7168  # We make a subdir and do the tests there.  Otherwise we can end up
7169  # making bogus files that we don't know about and never remove.  For
7170  # instance it was reported that on HP-UX the gcc test will end up
7171  # making a dummy file named `D' -- because `-MD' means `put the output
7172  # in D'.
7173  mkdir conftest.dir
7174  # Copy depcomp to subdir because otherwise we won't find it if we're
7175  # using a relative directory.
7176  cp "$am_depcomp" conftest.dir
7177  cd conftest.dir
7178  # We will build objects and dependencies in a subdirectory because
7179  # it helps to detect inapplicable dependency modes.  For instance
7180  # both Tru64's cc and ICC support -MD to output dependencies as a
7181  # side effect of compilation, but ICC will put the dependencies in
7182  # the current directory while Tru64 will put them in the object
7183  # directory.
7184  mkdir sub
7185
7186  am_cv_CXX_dependencies_compiler_type=none
7187  if test "$am_compiler_list" = ""; then
7188     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7189  fi
7190  for depmode in $am_compiler_list; do
7191    # Setup a source with many dependencies, because some compilers
7192    # like to wrap large dependency lists on column 80 (with \), and
7193    # we should not choose a depcomp mode which is confused by this.
7194    #
7195    # We need to recreate these files for each test, as the compiler may
7196    # overwrite some of them when testing with obscure command lines.
7197    # This happens at least with the AIX C compiler.
7198    : > sub/conftest.c
7199    for i in 1 2 3 4 5 6; do
7200      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7201      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7202      # Solaris 8's {/usr,}/bin/sh.
7203      touch sub/conftst$i.h
7204    done
7205    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7206
7207    case $depmode in
7208    nosideeffect)
7209      # after this tag, mechanisms are not by side-effect, so they'll
7210      # only be used when explicitly requested
7211      if test "x$enable_dependency_tracking" = xyes; then
7212        continue
7213      else
7214        break
7215      fi
7216      ;;
7217    none) break ;;
7218    esac
7219    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7220    # mode.  It turns out that the SunPro C++ compiler does not properly
7221    # handle `-M -o', and we need to detect this.
7222    if depmode=$depmode \
7223       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7224       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7225       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7226         >/dev/null 2>conftest.err &&
7227       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7228       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7229       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7230      # icc doesn't choke on unknown options, it will just issue warnings
7231      # or remarks (even with -Werror).  So we grep stderr for any message
7232      # that says an option was ignored or not supported.
7233      # When given -MP, icc 7.0 and 7.1 complain thusly:
7234      #   icc: Command line warning: ignoring option '-M'; no argument required
7235      # The diagnosis changed in icc 8.0:
7236      #   icc: Command line remark: option '-MP' not supported
7237      if (grep 'ignoring option' conftest.err ||
7238          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7239        am_cv_CXX_dependencies_compiler_type=$depmode
7240        break
7241      fi
7242    fi
7243  done
7244
7245  cd ..
7246  rm -rf conftest.dir
7247else
7248  am_cv_CXX_dependencies_compiler_type=none
7249fi
7250
7251fi
7252echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7253echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7254CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7255
7256
7257
7258if
7259  test "x$enable_dependency_tracking" != xno \
7260  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7261  am__fastdepCXX_TRUE=
7262  am__fastdepCXX_FALSE='#'
7263else
7264  am__fastdepCXX_TRUE='#'
7265  am__fastdepCXX_FALSE=
7266fi
7267
7268
7269depcc="$CXX"  am_compiler_list=
7270
7271echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7272echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7273if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7274  echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7277  # We make a subdir and do the tests there.  Otherwise we can end up
7278  # making bogus files that we don't know about and never remove.  For
7279  # instance it was reported that on HP-UX the gcc test will end up
7280  # making a dummy file named `D' -- because `-MD' means `put the output
7281  # in D'.
7282  mkdir conftest.dir
7283  # Copy depcomp to subdir because otherwise we won't find it if we're
7284  # using a relative directory.
7285  cp "$am_depcomp" conftest.dir
7286  cd conftest.dir
7287  # We will build objects and dependencies in a subdirectory because
7288  # it helps to detect inapplicable dependency modes.  For instance
7289  # both Tru64's cc and ICC support -MD to output dependencies as a
7290  # side effect of compilation, but ICC will put the dependencies in
7291  # the current directory while Tru64 will put them in the object
7292  # directory.
7293  mkdir sub
7294
7295  am_cv_CXX_dependencies_compiler_type=none
7296  if test "$am_compiler_list" = ""; then
7297     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7298  fi
7299  for depmode in $am_compiler_list; do
7300    # Setup a source with many dependencies, because some compilers
7301    # like to wrap large dependency lists on column 80 (with \), and
7302    # we should not choose a depcomp mode which is confused by this.
7303    #
7304    # We need to recreate these files for each test, as the compiler may
7305    # overwrite some of them when testing with obscure command lines.
7306    # This happens at least with the AIX C compiler.
7307    : > sub/conftest.c
7308    for i in 1 2 3 4 5 6; do
7309      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7310      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7311      # Solaris 8's {/usr,}/bin/sh.
7312      touch sub/conftst$i.h
7313    done
7314    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7315
7316    case $depmode in
7317    nosideeffect)
7318      # after this tag, mechanisms are not by side-effect, so they'll
7319      # only be used when explicitly requested
7320      if test "x$enable_dependency_tracking" = xyes; then
7321        continue
7322      else
7323        break
7324      fi
7325      ;;
7326    none) break ;;
7327    esac
7328    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7329    # mode.  It turns out that the SunPro C++ compiler does not properly
7330    # handle `-M -o', and we need to detect this.
7331    if depmode=$depmode \
7332       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7333       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7334       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7335         >/dev/null 2>conftest.err &&
7336       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7337       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7338       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7339      # icc doesn't choke on unknown options, it will just issue warnings
7340      # or remarks (even with -Werror).  So we grep stderr for any message
7341      # that says an option was ignored or not supported.
7342      # When given -MP, icc 7.0 and 7.1 complain thusly:
7343      #   icc: Command line warning: ignoring option '-M'; no argument required
7344      # The diagnosis changed in icc 8.0:
7345      #   icc: Command line remark: option '-MP' not supported
7346      if (grep 'ignoring option' conftest.err ||
7347          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7348        am_cv_CXX_dependencies_compiler_type=$depmode
7349        break
7350      fi
7351    fi
7352  done
7353
7354  cd ..
7355  rm -rf conftest.dir
7356else
7357  am_cv_CXX_dependencies_compiler_type=none
7358fi
7359
7360fi
7361echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7362echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7363CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7364
7365
7366
7367if
7368  test "x$enable_dependency_tracking" != xno \
7369  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7370  am__fastdepCXX_TRUE=
7371  am__fastdepCXX_FALSE='#'
7372else
7373  am__fastdepCXX_TRUE='#'
7374  am__fastdepCXX_FALSE=
7375fi
7376
7377
7378
7379
7380if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7381    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7382    (test "X$CXX" != "Xg++"))) ; then
7383  ac_ext=cc
7384ac_cpp='$CXXCPP $CPPFLAGS'
7385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7388echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7389echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7390if test -z "$CXXCPP"; then
7391  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394      # Double quotes because CXXCPP needs to be expanded
7395    for CXXCPP in "$CXX -E" "/lib/cpp"
7396    do
7397      ac_preproc_ok=false
7398for ac_cxx_preproc_warn_flag in '' yes
7399do
7400  # Use a header file that comes with gcc, so configuring glibc
7401  # with a fresh cross-compiler works.
7402  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403  # <limits.h> exists even on freestanding compilers.
7404  # On the NeXT, cc -E runs the code through the compiler's parser,
7405  # not just through cpp. "Syntax error" is here to catch this case.
7406  cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h.  */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h.  */
7412#ifdef __STDC__
7413# include <limits.h>
7414#else
7415# include <assert.h>
7416#endif
7417                     Syntax error
7418_ACEOF
7419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7421  ac_status=$?
7422  grep -v '^ *+' conftest.er1 >conftest.err
7423  rm -f conftest.er1
7424  cat conftest.err >&5
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); } >/dev/null; then
7427  if test -s conftest.err; then
7428    ac_cpp_err=$ac_cxx_preproc_warn_flag
7429    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7430  else
7431    ac_cpp_err=
7432  fi
7433else
7434  ac_cpp_err=yes
7435fi
7436if test -z "$ac_cpp_err"; then
7437  :
7438else
7439  echo "$as_me: failed program was:" >&5
7440sed 's/^/| /' conftest.$ac_ext >&5
7441
7442  # Broken: fails on valid input.
7443continue
7444fi
7445rm -f conftest.err conftest.$ac_ext
7446
7447  # OK, works on sane cases.  Now check whether non-existent headers
7448  # can be detected and how.
7449  cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h.  */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h.  */
7455#include <ac_nonexistent.h>
7456_ACEOF
7457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7459  ac_status=$?
7460  grep -v '^ *+' conftest.er1 >conftest.err
7461  rm -f conftest.er1
7462  cat conftest.err >&5
7463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464  (exit $ac_status); } >/dev/null; then
7465  if test -s conftest.err; then
7466    ac_cpp_err=$ac_cxx_preproc_warn_flag
7467    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7468  else
7469    ac_cpp_err=
7470  fi
7471else
7472  ac_cpp_err=yes
7473fi
7474if test -z "$ac_cpp_err"; then
7475  # Broken: success on invalid input.
7476continue
7477else
7478  echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
7481  # Passes both tests.
7482ac_preproc_ok=:
7483break
7484fi
7485rm -f conftest.err conftest.$ac_ext
7486
7487done
7488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7489rm -f conftest.err conftest.$ac_ext
7490if $ac_preproc_ok; then
7491  break
7492fi
7493
7494    done
7495    ac_cv_prog_CXXCPP=$CXXCPP
7496
7497fi
7498  CXXCPP=$ac_cv_prog_CXXCPP
7499else
7500  ac_cv_prog_CXXCPP=$CXXCPP
7501fi
7502echo "$as_me:$LINENO: result: $CXXCPP" >&5
7503echo "${ECHO_T}$CXXCPP" >&6
7504ac_preproc_ok=false
7505for ac_cxx_preproc_warn_flag in '' yes
7506do
7507  # Use a header file that comes with gcc, so configuring glibc
7508  # with a fresh cross-compiler works.
7509  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7510  # <limits.h> exists even on freestanding compilers.
7511  # On the NeXT, cc -E runs the code through the compiler's parser,
7512  # not just through cpp. "Syntax error" is here to catch this case.
7513  cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h.  */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h.  */
7519#ifdef __STDC__
7520# include <limits.h>
7521#else
7522# include <assert.h>
7523#endif
7524                     Syntax error
7525_ACEOF
7526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7528  ac_status=$?
7529  grep -v '^ *+' conftest.er1 >conftest.err
7530  rm -f conftest.er1
7531  cat conftest.err >&5
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); } >/dev/null; then
7534  if test -s conftest.err; then
7535    ac_cpp_err=$ac_cxx_preproc_warn_flag
7536    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7537  else
7538    ac_cpp_err=
7539  fi
7540else
7541  ac_cpp_err=yes
7542fi
7543if test -z "$ac_cpp_err"; then
7544  :
7545else
7546  echo "$as_me: failed program was:" >&5
7547sed 's/^/| /' conftest.$ac_ext >&5
7548
7549  # Broken: fails on valid input.
7550continue
7551fi
7552rm -f conftest.err conftest.$ac_ext
7553
7554  # OK, works on sane cases.  Now check whether non-existent headers
7555  # can be detected and how.
7556  cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h.  */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h.  */
7562#include <ac_nonexistent.h>
7563_ACEOF
7564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7565  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7566  ac_status=$?
7567  grep -v '^ *+' conftest.er1 >conftest.err
7568  rm -f conftest.er1
7569  cat conftest.err >&5
7570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571  (exit $ac_status); } >/dev/null; then
7572  if test -s conftest.err; then
7573    ac_cpp_err=$ac_cxx_preproc_warn_flag
7574    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7575  else
7576    ac_cpp_err=
7577  fi
7578else
7579  ac_cpp_err=yes
7580fi
7581if test -z "$ac_cpp_err"; then
7582  # Broken: success on invalid input.
7583continue
7584else
7585  echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588  # Passes both tests.
7589ac_preproc_ok=:
7590break
7591fi
7592rm -f conftest.err conftest.$ac_ext
7593
7594done
7595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7596rm -f conftest.err conftest.$ac_ext
7597if $ac_preproc_ok; then
7598  :
7599else
7600  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7601See \`config.log' for more details." >&5
7602echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7603See \`config.log' for more details." >&2;}
7604   { (exit 1); exit 1; }; }
7605fi
7606
7607ac_ext=cc
7608ac_cpp='$CXXCPP $CPPFLAGS'
7609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7612
7613fi
7614
7615
7616
7617# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7618
7619# find the maximum length of command line arguments
7620echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7621echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7622if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7623  echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625    i=0
7626  teststring="ABCD"
7627
7628  case $build_os in
7629  msdosdjgpp*)
7630    # On DJGPP, this test can blow up pretty badly due to problems in libc
7631    # (any single argument exceeding 2000 bytes causes a buffer overrun
7632    # during glob expansion).  Even if it were fixed, the result of this
7633    # check would be larger than it should be.
7634    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7635    ;;
7636
7637  gnu*)
7638    # Under GNU Hurd, this test is not required because there is
7639    # no limit to the length of command line arguments.
7640    # Libtool will interpret -1 as no limit whatsoever
7641    lt_cv_sys_max_cmd_len=-1;
7642    ;;
7643
7644  cygwin* | mingw*)
7645    # On Win9x/ME, this test blows up -- it succeeds, but takes
7646    # about 5 minutes as the teststring grows exponentially.
7647    # Worse, since 9x/ME are not pre-emptively multitasking,
7648    # you end up with a "frozen" computer, even though with patience
7649    # the test eventually succeeds (with a max line length of 256k).
7650    # Instead, let's just punt: use the minimum linelength reported by
7651    # all of the supported platforms: 8192 (on NT/2K/XP).
7652    lt_cv_sys_max_cmd_len=8192;
7653    ;;
7654
7655  amigaos*)
7656    # On AmigaOS with pdksh, this test takes hours, literally.
7657    # So we just punt and use a minimum line length of 8192.
7658    lt_cv_sys_max_cmd_len=8192;
7659    ;;
7660
7661  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7662    # This has been around since 386BSD, at least.  Likely further.
7663    if test -x /sbin/sysctl; then
7664      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7665    elif test -x /usr/sbin/sysctl; then
7666      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7667    else
7668      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7669    fi
7670    # And add a safety zone
7671    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7672    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7673    ;;
7674
7675  interix*)
7676    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7677    lt_cv_sys_max_cmd_len=196608
7678    ;;
7679
7680  osf*)
7681    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7682    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7683    # nice to cause kernel panics so lets avoid the loop below.
7684    # First set a reasonable default.
7685    lt_cv_sys_max_cmd_len=16384
7686    #
7687    if test -x /sbin/sysconfig; then
7688      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7689        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7690      esac
7691    fi
7692    ;;
7693  sco3.2v5*)
7694    lt_cv_sys_max_cmd_len=102400
7695    ;;
7696  sysv5* | sco5v6* | sysv4.2uw2*)
7697    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7698    if test -n "$kargmax"; then
7699      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7700    else
7701      lt_cv_sys_max_cmd_len=32768
7702    fi
7703    ;;
7704  *)
7705    # If test is not a shell built-in, we'll probably end up computing a
7706    # maximum length that is only half of the actual maximum length, but
7707    # we can't tell.
7708    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7709    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7710               = "XX$teststring") >/dev/null 2>&1 &&
7711            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7712            lt_cv_sys_max_cmd_len=$new_result &&
7713            test $i != 17 # 1/2 MB should be enough
7714    do
7715      i=`expr $i + 1`
7716      teststring=$teststring$teststring
7717    done
7718    teststring=
7719    # Add a significant safety factor because C++ compilers can tack on massive
7720    # amounts of additional arguments before passing them to the linker.
7721    # It appears as though 1/2 is a usable value.
7722    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7723    ;;
7724  esac
7725
7726fi
7727
7728if test -n $lt_cv_sys_max_cmd_len ; then
7729  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7730echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7731else
7732  echo "$as_me:$LINENO: result: none" >&5
7733echo "${ECHO_T}none" >&6
7734fi
7735
7736
7737
7738
7739# Check for command to grab the raw symbol name followed by C symbol from nm.
7740echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7741echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7742if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7743  echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745
7746# These are sane defaults that work on at least a few old systems.
7747# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7748
7749# Character class describing NM global symbol codes.
7750symcode='[BCDEGRST]'
7751
7752# Regexp to match symbols that can be accessed directly from C.
7753sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7754
7755# Transform an extracted symbol line into a proper C declaration
7756lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7757
7758# Transform an extracted symbol line into symbol name and symbol address
7759lt_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'"
7760
7761# Define system-specific variables.
7762case $host_os in
7763aix*)
7764  symcode='[BCDT]'
7765  ;;
7766cygwin* | mingw* | pw32*)
7767  symcode='[ABCDGISTW]'
7768  ;;
7769hpux*) # Its linker distinguishes data from code symbols
7770  if test "$host_cpu" = ia64; then
7771    symcode='[ABCDEGRST]'
7772  fi
7773  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7774  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'"
7775  ;;
7776linux*)
7777  if test "$host_cpu" = ia64; then
7778    symcode='[ABCDGIRSTW]'
7779    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7780    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'"
7781  fi
7782  ;;
7783irix* | nonstopux*)
7784  symcode='[BCDEGRST]'
7785  ;;
7786osf*)
7787  symcode='[BCDEGQRST]'
7788  ;;
7789solaris*)
7790  symcode='[BDRT]'
7791  ;;
7792sco3.2v5*)
7793  symcode='[DT]'
7794  ;;
7795sysv4.2uw2*)
7796  symcode='[DT]'
7797  ;;
7798sysv5* | sco5v6* | unixware* | OpenUNIX*)
7799  symcode='[ABDT]'
7800  ;;
7801sysv4)
7802  symcode='[DFNSTU]'
7803  ;;
7804esac
7805
7806# Handle CRLF in mingw tool chain
7807opt_cr=
7808case $build_os in
7809mingw*)
7810  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7811  ;;
7812esac
7813
7814# If we're using GNU nm, then use its standard symbol codes.
7815case `$NM -V 2>&1` in
7816*GNU* | *'with BFD'*)
7817  symcode='[ABCDGIRSTW]' ;;
7818esac
7819
7820# Try without a prefix undercore, then with it.
7821for ac_symprfx in "" "_"; do
7822
7823  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7824  symxfrm="\\1 $ac_symprfx\\2 \\2"
7825
7826  # Write the raw and C identifiers.
7827  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7828
7829  # Check to see that the pipe works correctly.
7830  pipe_works=no
7831
7832  rm -f conftest*
7833  cat > conftest.$ac_ext <<EOF
7834#ifdef __cplusplus
7835extern "C" {
7836#endif
7837char nm_test_var;
7838void nm_test_func(){}
7839#ifdef __cplusplus
7840}
7841#endif
7842int main(){nm_test_var='a';nm_test_func();return(0);}
7843EOF
7844
7845  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846  (eval $ac_compile) 2>&5
7847  ac_status=$?
7848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849  (exit $ac_status); }; then
7850    # Now try to grab the symbols.
7851    nlist=conftest.nm
7852    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7853  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); } && test -s "$nlist"; then
7857      # Try sorting and uniquifying the output.
7858      if sort "$nlist" | uniq > "$nlist"T; then
7859        mv -f "$nlist"T "$nlist"
7860      else
7861        rm -f "$nlist"T
7862      fi
7863
7864      # Make sure that we snagged all the symbols we need.
7865      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7866        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7867          cat <<EOF > conftest.$ac_ext
7868#ifdef __cplusplus
7869extern "C" {
7870#endif
7871
7872EOF
7873          # Now generate the symbol file.
7874          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7875
7876          cat <<EOF >> conftest.$ac_ext
7877#if defined (__STDC__) && __STDC__
7878# define lt_ptr_t void *
7879#else
7880# define lt_ptr_t char *
7881# define const
7882#endif
7883
7884/* The mapping between symbol names and symbols. */
7885const struct {
7886  const char *name;
7887  lt_ptr_t address;
7888}
7889lt_preloaded_symbols[] =
7890{
7891EOF
7892          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7893          cat <<\EOF >> conftest.$ac_ext
7894  {0, (lt_ptr_t) 0}
7895};
7896
7897#ifdef __cplusplus
7898}
7899#endif
7900EOF
7901          # Now try linking the two files.
7902          mv conftest.$ac_objext conftstm.$ac_objext
7903          lt_save_LIBS="$LIBS"
7904          lt_save_CFLAGS="$CFLAGS"
7905          LIBS="conftstm.$ac_objext"
7906          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7907          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7908  (eval $ac_link) 2>&5
7909  ac_status=$?
7910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7912            pipe_works=yes
7913          fi
7914          LIBS="$lt_save_LIBS"
7915          CFLAGS="$lt_save_CFLAGS"
7916        else
7917          echo "cannot find nm_test_func in $nlist" >&5
7918        fi
7919      else
7920        echo "cannot find nm_test_var in $nlist" >&5
7921      fi
7922    else
7923      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7924    fi
7925  else
7926    echo "$progname: failed program was:" >&5
7927    cat conftest.$ac_ext >&5
7928  fi
7929  rm -f conftest* conftst*
7930
7931  # Do not use the global_symbol_pipe unless it works.
7932  if test "$pipe_works" = yes; then
7933    break
7934  else
7935    lt_cv_sys_global_symbol_pipe=
7936  fi
7937done
7938
7939fi
7940
7941if test -z "$lt_cv_sys_global_symbol_pipe"; then
7942  lt_cv_sys_global_symbol_to_cdecl=
7943fi
7944if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7945  echo "$as_me:$LINENO: result: failed" >&5
7946echo "${ECHO_T}failed" >&6
7947else
7948  echo "$as_me:$LINENO: result: ok" >&5
7949echo "${ECHO_T}ok" >&6
7950fi
7951
7952echo "$as_me:$LINENO: checking for objdir" >&5
7953echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7954if test "${lt_cv_objdir+set}" = set; then
7955  echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957  rm -f .libs 2>/dev/null
7958mkdir .libs 2>/dev/null
7959if test -d .libs; then
7960  lt_cv_objdir=.libs
7961else
7962  # MS-DOS does not allow filenames that begin with a dot.
7963  lt_cv_objdir=_libs
7964fi
7965rmdir .libs 2>/dev/null
7966fi
7967echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7968echo "${ECHO_T}$lt_cv_objdir" >&6
7969objdir=$lt_cv_objdir
7970
7971
7972
7973
7974
7975case $host_os in
7976aix3*)
7977  # AIX sometimes has problems with the GCC collect2 program.  For some
7978  # reason, if we set the COLLECT_NAMES environment variable, the problems
7979  # vanish in a puff of smoke.
7980  if test "X${COLLECT_NAMES+set}" != Xset; then
7981    COLLECT_NAMES=
7982    export COLLECT_NAMES
7983  fi
7984  ;;
7985esac
7986
7987# Sed substitution that helps us do robust quoting.  It backslashifies
7988# metacharacters that are still active within double-quoted strings.
7989Xsed='sed -e 1s/^X//'
7990sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7991
7992# Same as above, but do not quote variable references.
7993double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7994
7995# Sed substitution to delay expansion of an escaped shell variable in a
7996# double_quote_subst'ed string.
7997delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7998
7999# Sed substitution to avoid accidental globbing in evaled expressions
8000no_glob_subst='s/\*/\\\*/g'
8001
8002# Constants:
8003rm="rm -f"
8004
8005# Global variables:
8006default_ofile=libtool
8007can_build_shared=yes
8008
8009# All known linkers require a `.a' archive for static linking (except MSVC,
8010# which needs '.lib').
8011libext=a
8012ltmain="$ac_aux_dir/ltmain.sh"
8013ofile="$default_ofile"
8014with_gnu_ld="$lt_cv_prog_gnu_ld"
8015
8016if test -n "$ac_tool_prefix"; then
8017  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8018set dummy ${ac_tool_prefix}ar; ac_word=$2
8019echo "$as_me:$LINENO: checking for $ac_word" >&5
8020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8021if test "${ac_cv_prog_AR+set}" = set; then
8022  echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024  if test -n "$AR"; then
8025  ac_cv_prog_AR="$AR" # Let the user override the test.
8026else
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030  IFS=$as_save_IFS
8031  test -z "$as_dir" && as_dir=.
8032  for ac_exec_ext in '' $ac_executable_extensions; do
8033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034    ac_cv_prog_AR="${ac_tool_prefix}ar"
8035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036    break 2
8037  fi
8038done
8039done
8040
8041fi
8042fi
8043AR=$ac_cv_prog_AR
8044if test -n "$AR"; then
8045  echo "$as_me:$LINENO: result: $AR" >&5
8046echo "${ECHO_T}$AR" >&6
8047else
8048  echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6
8050fi
8051
8052fi
8053if test -z "$ac_cv_prog_AR"; then
8054  ac_ct_AR=$AR
8055  # Extract the first word of "ar", so it can be a program name with args.
8056set dummy ar; ac_word=$2
8057echo "$as_me:$LINENO: checking for $ac_word" >&5
8058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8059if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8060  echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062  if test -n "$ac_ct_AR"; then
8063  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068  IFS=$as_save_IFS
8069  test -z "$as_dir" && as_dir=.
8070  for ac_exec_ext in '' $ac_executable_extensions; do
8071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072    ac_cv_prog_ac_ct_AR="ar"
8073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074    break 2
8075  fi
8076done
8077done
8078
8079  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8080fi
8081fi
8082ac_ct_AR=$ac_cv_prog_ac_ct_AR
8083if test -n "$ac_ct_AR"; then
8084  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8085echo "${ECHO_T}$ac_ct_AR" >&6
8086else
8087  echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089fi
8090
8091  AR=$ac_ct_AR
8092else
8093  AR="$ac_cv_prog_AR"
8094fi
8095
8096if test -n "$ac_tool_prefix"; then
8097  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8098set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101if test "${ac_cv_prog_RANLIB+set}" = set; then
8102  echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104  if test -n "$RANLIB"; then
8105  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  test -z "$as_dir" && as_dir=.
8112  for ac_exec_ext in '' $ac_executable_extensions; do
8113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116    break 2
8117  fi
8118done
8119done
8120
8121fi
8122fi
8123RANLIB=$ac_cv_prog_RANLIB
8124if test -n "$RANLIB"; then
8125  echo "$as_me:$LINENO: result: $RANLIB" >&5
8126echo "${ECHO_T}$RANLIB" >&6
8127else
8128  echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130fi
8131
8132fi
8133if test -z "$ac_cv_prog_RANLIB"; then
8134  ac_ct_RANLIB=$RANLIB
8135  # Extract the first word of "ranlib", so it can be a program name with args.
8136set dummy ranlib; ac_word=$2
8137echo "$as_me:$LINENO: checking for $ac_word" >&5
8138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8139if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8140  echo $ECHO_N "(cached) $ECHO_C" >&6
8141else
8142  if test -n "$ac_ct_RANLIB"; then
8143  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8144else
8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148  IFS=$as_save_IFS
8149  test -z "$as_dir" && as_dir=.
8150  for ac_exec_ext in '' $ac_executable_extensions; do
8151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152    ac_cv_prog_ac_ct_RANLIB="ranlib"
8153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154    break 2
8155  fi
8156done
8157done
8158
8159  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8160fi
8161fi
8162ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8163if test -n "$ac_ct_RANLIB"; then
8164  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8165echo "${ECHO_T}$ac_ct_RANLIB" >&6
8166else
8167  echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6
8169fi
8170
8171  RANLIB=$ac_ct_RANLIB
8172else
8173  RANLIB="$ac_cv_prog_RANLIB"
8174fi
8175
8176if test -n "$ac_tool_prefix"; then
8177  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8178set dummy ${ac_tool_prefix}strip; ac_word=$2
8179echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181if test "${ac_cv_prog_STRIP+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  if test -n "$STRIP"; then
8185  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8186else
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190  IFS=$as_save_IFS
8191  test -z "$as_dir" && as_dir=.
8192  for ac_exec_ext in '' $ac_executable_extensions; do
8193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196    break 2
8197  fi
8198done
8199done
8200
8201fi
8202fi
8203STRIP=$ac_cv_prog_STRIP
8204if test -n "$STRIP"; then
8205  echo "$as_me:$LINENO: result: $STRIP" >&5
8206echo "${ECHO_T}$STRIP" >&6
8207else
8208  echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6
8210fi
8211
8212fi
8213if test -z "$ac_cv_prog_STRIP"; then
8214  ac_ct_STRIP=$STRIP
8215  # Extract the first word of "strip", so it can be a program name with args.
8216set dummy strip; ac_word=$2
8217echo "$as_me:$LINENO: checking for $ac_word" >&5
8218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8219if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8220  echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222  if test -n "$ac_ct_STRIP"; then
8223  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228  IFS=$as_save_IFS
8229  test -z "$as_dir" && as_dir=.
8230  for ac_exec_ext in '' $ac_executable_extensions; do
8231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232    ac_cv_prog_ac_ct_STRIP="strip"
8233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234    break 2
8235  fi
8236done
8237done
8238
8239  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8240fi
8241fi
8242ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8243if test -n "$ac_ct_STRIP"; then
8244  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8245echo "${ECHO_T}$ac_ct_STRIP" >&6
8246else
8247  echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
8249fi
8250
8251  STRIP=$ac_ct_STRIP
8252else
8253  STRIP="$ac_cv_prog_STRIP"
8254fi
8255
8256
8257old_CC="$CC"
8258old_CFLAGS="$CFLAGS"
8259
8260# Set sane defaults for various variables
8261test -z "$AR" && AR=ar
8262test -z "$AR_FLAGS" && AR_FLAGS=cru
8263test -z "$AS" && AS=as
8264test -z "$CC" && CC=cc
8265test -z "$LTCC" && LTCC=$CC
8266test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8267test -z "$DLLTOOL" && DLLTOOL=dlltool
8268test -z "$LD" && LD=ld
8269test -z "$LN_S" && LN_S="ln -s"
8270test -z "$MAGIC_CMD" && MAGIC_CMD=file
8271test -z "$NM" && NM=nm
8272test -z "$SED" && SED=sed
8273test -z "$OBJDUMP" && OBJDUMP=objdump
8274test -z "$RANLIB" && RANLIB=:
8275test -z "$STRIP" && STRIP=:
8276test -z "$ac_objext" && ac_objext=o
8277
8278# Determine commands to create old-style static archives.
8279old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8280old_postinstall_cmds='chmod 644 $oldlib'
8281old_postuninstall_cmds=
8282
8283if test -n "$RANLIB"; then
8284  case $host_os in
8285  openbsd*)
8286    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8287    ;;
8288  *)
8289    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8290    ;;
8291  esac
8292  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8293fi
8294
8295for cc_temp in $compiler""; do
8296  case $cc_temp in
8297    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8298    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8299    \-*) ;;
8300    *) break;;
8301  esac
8302done
8303cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8304
8305
8306# Only perform the check for file, if the check method requires it
8307case $deplibs_check_method in
8308file_magic*)
8309  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8310    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8311echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8312if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8313  echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315  case $MAGIC_CMD in
8316[\\/*] |  ?:[\\/]*)
8317  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318  ;;
8319*)
8320  lt_save_MAGIC_CMD="$MAGIC_CMD"
8321  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8322  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8323  for ac_dir in $ac_dummy; do
8324    IFS="$lt_save_ifs"
8325    test -z "$ac_dir" && ac_dir=.
8326    if test -f $ac_dir/${ac_tool_prefix}file; then
8327      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8328      if test -n "$file_magic_test_file"; then
8329        case $deplibs_check_method in
8330        "file_magic "*)
8331          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8332          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8334            $EGREP "$file_magic_regex" > /dev/null; then
8335            :
8336          else
8337            cat <<EOF 1>&2
8338
8339*** Warning: the command libtool uses to detect shared libraries,
8340*** $file_magic_cmd, produces output that libtool cannot recognize.
8341*** The result is that libtool may fail to recognize shared libraries
8342*** as such.  This will affect the creation of libtool libraries that
8343*** depend on shared libraries, but programs linked with such libtool
8344*** libraries will work regardless of this problem.  Nevertheless, you
8345*** may want to report the problem to your system manager and/or to
8346*** bug-libtool@gnu.org
8347
8348EOF
8349          fi ;;
8350        esac
8351      fi
8352      break
8353    fi
8354  done
8355  IFS="$lt_save_ifs"
8356  MAGIC_CMD="$lt_save_MAGIC_CMD"
8357  ;;
8358esac
8359fi
8360
8361MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362if test -n "$MAGIC_CMD"; then
8363  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8364echo "${ECHO_T}$MAGIC_CMD" >&6
8365else
8366  echo "$as_me:$LINENO: result: no" >&5
8367echo "${ECHO_T}no" >&6
8368fi
8369
8370if test -z "$lt_cv_path_MAGIC_CMD"; then
8371  if test -n "$ac_tool_prefix"; then
8372    echo "$as_me:$LINENO: checking for file" >&5
8373echo $ECHO_N "checking for file... $ECHO_C" >&6
8374if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8375  echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377  case $MAGIC_CMD in
8378[\\/*] |  ?:[\\/]*)
8379  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8380  ;;
8381*)
8382  lt_save_MAGIC_CMD="$MAGIC_CMD"
8383  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8384  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385  for ac_dir in $ac_dummy; do
8386    IFS="$lt_save_ifs"
8387    test -z "$ac_dir" && ac_dir=.
8388    if test -f $ac_dir/file; then
8389      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8390      if test -n "$file_magic_test_file"; then
8391        case $deplibs_check_method in
8392        "file_magic "*)
8393          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396            $EGREP "$file_magic_regex" > /dev/null; then
8397            :
8398          else
8399            cat <<EOF 1>&2
8400
8401*** Warning: the command libtool uses to detect shared libraries,
8402*** $file_magic_cmd, produces output that libtool cannot recognize.
8403*** The result is that libtool may fail to recognize shared libraries
8404*** as such.  This will affect the creation of libtool libraries that
8405*** depend on shared libraries, but programs linked with such libtool
8406*** libraries will work regardless of this problem.  Nevertheless, you
8407*** may want to report the problem to your system manager and/or to
8408*** bug-libtool@gnu.org
8409
8410EOF
8411          fi ;;
8412        esac
8413      fi
8414      break
8415    fi
8416  done
8417  IFS="$lt_save_ifs"
8418  MAGIC_CMD="$lt_save_MAGIC_CMD"
8419  ;;
8420esac
8421fi
8422
8423MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424if test -n "$MAGIC_CMD"; then
8425  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8426echo "${ECHO_T}$MAGIC_CMD" >&6
8427else
8428  echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6
8430fi
8431
8432  else
8433    MAGIC_CMD=:
8434  fi
8435fi
8436
8437  fi
8438  ;;
8439esac
8440
8441enable_dlopen=no
8442enable_win32_dll=no
8443
8444# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8445if test "${enable_libtool_lock+set}" = set; then
8446  enableval="$enable_libtool_lock"
8447
8448fi;
8449test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8450
8451
8452# Check whether --with-pic or --without-pic was given.
8453if test "${with_pic+set}" = set; then
8454  withval="$with_pic"
8455  pic_mode="$withval"
8456else
8457  pic_mode=default
8458fi;
8459test -z "$pic_mode" && pic_mode=default
8460
8461# Use C for the default configuration in the libtool script
8462tagname=
8463lt_save_CC="$CC"
8464ac_ext=c
8465ac_cpp='$CPP $CPPFLAGS'
8466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8468ac_compiler_gnu=$ac_cv_c_compiler_gnu
8469
8470
8471# Source file extension for C test sources.
8472ac_ext=c
8473
8474# Object file extension for compiled C test sources.
8475objext=o
8476objext=$objext
8477
8478# Code to be used in simple compile tests
8479lt_simple_compile_test_code="int some_variable = 0;\n"
8480
8481# Code to be used in simple link tests
8482lt_simple_link_test_code='int main(){return(0);}\n'
8483
8484
8485# If no C compiler was specified, use CC.
8486LTCC=${LTCC-"$CC"}
8487
8488# If no C compiler flags were specified, use CFLAGS.
8489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8490
8491# Allow CC to be a program name with arguments.
8492compiler=$CC
8493
8494
8495# save warnings/boilerplate of simple test code
8496ac_outfile=conftest.$ac_objext
8497printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8499_lt_compiler_boilerplate=`cat conftest.err`
8500$rm conftest*
8501
8502ac_outfile=conftest.$ac_objext
8503printf "$lt_simple_link_test_code" >conftest.$ac_ext
8504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8505_lt_linker_boilerplate=`cat conftest.err`
8506$rm conftest*
8507
8508
8509## CAVEAT EMPTOR:
8510## There is no encapsulation within the following macros, do not change
8511## the running order or otherwise move them around unless you know exactly
8512## what you are doing...
8513
8514lt_prog_compiler_no_builtin_flag=
8515
8516if test "$GCC" = yes; then
8517  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8518
8519
8520echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8522if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8523  echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525  lt_cv_prog_compiler_rtti_exceptions=no
8526  ac_outfile=conftest.$ac_objext
8527   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528   lt_compiler_flag="-fno-rtti -fno-exceptions"
8529   # Insert the option either (1) after the last *FLAGS variable, or
8530   # (2) before a word containing "conftest.", or (3) at the end.
8531   # Note that $ac_compile itself does not contain backslashes and begins
8532   # with a dollar sign (not a hyphen), so the echo should work correctly.
8533   # The option is referenced via a variable to avoid confusing sed.
8534   lt_compile=`echo "$ac_compile" | $SED \
8535   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537   -e 's:$: $lt_compiler_flag:'`
8538   (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539   (eval "$lt_compile" 2>conftest.err)
8540   ac_status=$?
8541   cat conftest.err >&5
8542   echo "$as_me:8542: \$? = $ac_status" >&5
8543   if (exit $ac_status) && test -s "$ac_outfile"; then
8544     # The compiler can only warn and ignore the option if not recognized
8545     # So say no if there are warnings other than the usual output.
8546     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8547     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8548     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8549       lt_cv_prog_compiler_rtti_exceptions=yes
8550     fi
8551   fi
8552   $rm conftest*
8553
8554fi
8555echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8557
8558if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8560else
8561    :
8562fi
8563
8564fi
8565
8566lt_prog_compiler_wl=
8567lt_prog_compiler_pic=
8568lt_prog_compiler_static=
8569
8570echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8571echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8572
8573  if test "$GCC" = yes; then
8574    lt_prog_compiler_wl='-Wl,'
8575    lt_prog_compiler_static='-static'
8576
8577    case $host_os in
8578      aix*)
8579      # All AIX code is PIC.
8580      if test "$host_cpu" = ia64; then
8581        # AIX 5 now supports IA64 processor
8582        lt_prog_compiler_static='-Bstatic'
8583      fi
8584      ;;
8585
8586    amigaos*)
8587      # FIXME: we need at least 68020 code to build shared libraries, but
8588      # adding the `-m68020' flag to GCC prevents building anything better,
8589      # like `-m68040'.
8590      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8591      ;;
8592
8593    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594      # PIC is the default for these OSes.
8595      ;;
8596
8597    mingw* | pw32* | os2*)
8598      # This hack is so that the source file can tell whether it is being
8599      # built for inclusion in a dll (and should export symbols for example).
8600      lt_prog_compiler_pic='-DDLL_EXPORT'
8601      ;;
8602
8603    darwin* | rhapsody*)
8604      # PIC is the default on this platform
8605      # Common symbols not allowed in MH_DYLIB files
8606      lt_prog_compiler_pic='-fno-common'
8607      ;;
8608
8609    interix3*)
8610      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8611      # Instead, we relocate shared libraries at runtime.
8612      ;;
8613
8614    msdosdjgpp*)
8615      # Just because we use GCC doesn't mean we suddenly get shared libraries
8616      # on systems that don't support them.
8617      lt_prog_compiler_can_build_shared=no
8618      enable_shared=no
8619      ;;
8620
8621    sysv4*MP*)
8622      if test -d /usr/nec; then
8623        lt_prog_compiler_pic=-Kconform_pic
8624      fi
8625      ;;
8626
8627    hpux*)
8628      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8629      # not for PA HP-UX.
8630      case $host_cpu in
8631      hppa*64*|ia64*)
8632        # +Z the default
8633        ;;
8634      *)
8635        lt_prog_compiler_pic='-fPIC'
8636        ;;
8637      esac
8638      ;;
8639
8640    *)
8641      lt_prog_compiler_pic='-fPIC'
8642      ;;
8643    esac
8644  else
8645    # PORTME Check for flag to pass linker flags through the system compiler.
8646    case $host_os in
8647    aix*)
8648      lt_prog_compiler_wl='-Wl,'
8649      if test "$host_cpu" = ia64; then
8650        # AIX 5 now supports IA64 processor
8651        lt_prog_compiler_static='-Bstatic'
8652      else
8653        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8654      fi
8655      ;;
8656      darwin*)
8657        # PIC is the default on this platform
8658        # Common symbols not allowed in MH_DYLIB files
8659       case $cc_basename in
8660         xlc*)
8661         lt_prog_compiler_pic='-qnocommon'
8662         lt_prog_compiler_wl='-Wl,'
8663         ;;
8664       esac
8665       ;;
8666
8667    mingw* | pw32* | os2*)
8668      # This hack is so that the source file can tell whether it is being
8669      # built for inclusion in a dll (and should export symbols for example).
8670      lt_prog_compiler_pic='-DDLL_EXPORT'
8671      ;;
8672
8673    hpux9* | hpux10* | hpux11*)
8674      lt_prog_compiler_wl='-Wl,'
8675      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8676      # not for PA HP-UX.
8677      case $host_cpu in
8678      hppa*64*|ia64*)
8679        # +Z the default
8680        ;;
8681      *)
8682        lt_prog_compiler_pic='+Z'
8683        ;;
8684      esac
8685      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8686      lt_prog_compiler_static='${wl}-a ${wl}archive'
8687      ;;
8688
8689    irix5* | irix6* | nonstopux*)
8690      lt_prog_compiler_wl='-Wl,'
8691      # PIC (with -KPIC) is the default.
8692      lt_prog_compiler_static='-non_shared'
8693      ;;
8694
8695    newsos6)
8696      lt_prog_compiler_pic='-KPIC'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    linux*)
8701      case $cc_basename in
8702      icc* | ecc*)
8703        lt_prog_compiler_wl='-Wl,'
8704        lt_prog_compiler_pic='-KPIC'
8705        lt_prog_compiler_static='-static'
8706        ;;
8707      pgcc* | pgf77* | pgf90* | pgf95*)
8708        # Portland Group compilers (*not* the Pentium gcc compiler,
8709        # which looks to be a dead project)
8710        lt_prog_compiler_wl='-Wl,'
8711        lt_prog_compiler_pic='-fpic'
8712        lt_prog_compiler_static='-Bstatic'
8713        ;;
8714      ccc*)
8715        lt_prog_compiler_wl='-Wl,'
8716        # All Alpha code is PIC.
8717        lt_prog_compiler_static='-non_shared'
8718        ;;
8719      esac
8720      ;;
8721
8722    osf3* | osf4* | osf5*)
8723      lt_prog_compiler_wl='-Wl,'
8724      # All OSF/1 code is PIC.
8725      lt_prog_compiler_static='-non_shared'
8726      ;;
8727
8728    solaris*)
8729      lt_prog_compiler_pic='-KPIC'
8730      lt_prog_compiler_static='-Bstatic'
8731      case $cc_basename in
8732      f77* | f90* | f95*)
8733        lt_prog_compiler_wl='-Qoption ld ';;
8734      *)
8735        lt_prog_compiler_wl='-Wl,';;
8736      esac
8737      ;;
8738
8739    sunos4*)
8740      lt_prog_compiler_wl='-Qoption ld '
8741      lt_prog_compiler_pic='-PIC'
8742      lt_prog_compiler_static='-Bstatic'
8743      ;;
8744
8745    sysv4 | sysv4.2uw2* | sysv4.3*)
8746      lt_prog_compiler_wl='-Wl,'
8747      lt_prog_compiler_pic='-KPIC'
8748      lt_prog_compiler_static='-Bstatic'
8749      ;;
8750
8751    sysv4*MP*)
8752      if test -d /usr/nec ;then
8753        lt_prog_compiler_pic='-Kconform_pic'
8754        lt_prog_compiler_static='-Bstatic'
8755      fi
8756      ;;
8757
8758    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8759      lt_prog_compiler_wl='-Wl,'
8760      lt_prog_compiler_pic='-KPIC'
8761      lt_prog_compiler_static='-Bstatic'
8762      ;;
8763
8764    unicos*)
8765      lt_prog_compiler_wl='-Wl,'
8766      lt_prog_compiler_can_build_shared=no
8767      ;;
8768
8769    uts4*)
8770      lt_prog_compiler_pic='-pic'
8771      lt_prog_compiler_static='-Bstatic'
8772      ;;
8773
8774    *)
8775      lt_prog_compiler_can_build_shared=no
8776      ;;
8777    esac
8778  fi
8779
8780echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8781echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8782
8783#
8784# Check to make sure the PIC flag actually works.
8785#
8786if test -n "$lt_prog_compiler_pic"; then
8787
8788echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8789echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8790if test "${lt_prog_compiler_pic_works+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  lt_prog_compiler_pic_works=no
8794  ac_outfile=conftest.$ac_objext
8795   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8796   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8797   # Insert the option either (1) after the last *FLAGS variable, or
8798   # (2) before a word containing "conftest.", or (3) at the end.
8799   # Note that $ac_compile itself does not contain backslashes and begins
8800   # with a dollar sign (not a hyphen), so the echo should work correctly.
8801   # The option is referenced via a variable to avoid confusing sed.
8802   lt_compile=`echo "$ac_compile" | $SED \
8803   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805   -e 's:$: $lt_compiler_flag:'`
8806   (eval echo "\"\$as_me:8806: $lt_compile\"" >&5)
8807   (eval "$lt_compile" 2>conftest.err)
8808   ac_status=$?
8809   cat conftest.err >&5
8810   echo "$as_me:8810: \$? = $ac_status" >&5
8811   if (exit $ac_status) && test -s "$ac_outfile"; then
8812     # The compiler can only warn and ignore the option if not recognized
8813     # So say no if there are warnings other than the usual output.
8814     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8815     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8816     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8817       lt_prog_compiler_pic_works=yes
8818     fi
8819   fi
8820   $rm conftest*
8821
8822fi
8823echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8824echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8825
8826if test x"$lt_prog_compiler_pic_works" = xyes; then
8827    case $lt_prog_compiler_pic in
8828     "" | " "*) ;;
8829     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8830     esac
8831else
8832    lt_prog_compiler_pic=
8833     lt_prog_compiler_can_build_shared=no
8834fi
8835
8836fi
8837case $host_os in
8838  # For platforms which do not support PIC, -DPIC is meaningless:
8839  *djgpp*)
8840    lt_prog_compiler_pic=
8841    ;;
8842  *)
8843    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8844    ;;
8845esac
8846
8847#
8848# Check to make sure the static flag actually works.
8849#
8850wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8851echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8852echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8853if test "${lt_prog_compiler_static_works+set}" = set; then
8854  echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856  lt_prog_compiler_static_works=no
8857   save_LDFLAGS="$LDFLAGS"
8858   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8859   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8860   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8861     # The linker can only warn and ignore the option if not recognized
8862     # So say no if there are warnings
8863     if test -s conftest.err; then
8864       # Append any errors to the config.log.
8865       cat conftest.err 1>&5
8866       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8867       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868       if diff conftest.exp conftest.er2 >/dev/null; then
8869         lt_prog_compiler_static_works=yes
8870       fi
8871     else
8872       lt_prog_compiler_static_works=yes
8873     fi
8874   fi
8875   $rm conftest*
8876   LDFLAGS="$save_LDFLAGS"
8877
8878fi
8879echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8880echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8881
8882if test x"$lt_prog_compiler_static_works" = xyes; then
8883    :
8884else
8885    lt_prog_compiler_static=
8886fi
8887
8888
8889echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8890echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8891if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8892  echo $ECHO_N "(cached) $ECHO_C" >&6
8893else
8894  lt_cv_prog_compiler_c_o=no
8895   $rm -r conftest 2>/dev/null
8896   mkdir conftest
8897   cd conftest
8898   mkdir out
8899   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8900
8901   lt_compiler_flag="-o out/conftest2.$ac_objext"
8902   # Insert the option either (1) after the last *FLAGS variable, or
8903   # (2) before a word containing "conftest.", or (3) at the end.
8904   # Note that $ac_compile itself does not contain backslashes and begins
8905   # with a dollar sign (not a hyphen), so the echo should work correctly.
8906   lt_compile=`echo "$ac_compile" | $SED \
8907   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909   -e 's:$: $lt_compiler_flag:'`
8910   (eval echo "\"\$as_me:8910: $lt_compile\"" >&5)
8911   (eval "$lt_compile" 2>out/conftest.err)
8912   ac_status=$?
8913   cat out/conftest.err >&5
8914   echo "$as_me:8914: \$? = $ac_status" >&5
8915   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8916   then
8917     # The compiler can only warn and ignore the option if not recognized
8918     # So say no if there are warnings
8919     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8920     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8921     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8922       lt_cv_prog_compiler_c_o=yes
8923     fi
8924   fi
8925   chmod u+w . 2>&5
8926   $rm conftest*
8927   # SGI C++ compiler will create directory out/ii_files/ for
8928   # template instantiation
8929   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8930   $rm out/* && rmdir out
8931   cd ..
8932   rmdir conftest
8933   $rm conftest*
8934
8935fi
8936echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8937echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8938
8939
8940hard_links="nottested"
8941if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8942  # do not overwrite the value of need_locks provided by the user
8943  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8944echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8945  hard_links=yes
8946  $rm conftest*
8947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8948  touch conftest.a
8949  ln conftest.a conftest.b 2>&5 || hard_links=no
8950  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8951  echo "$as_me:$LINENO: result: $hard_links" >&5
8952echo "${ECHO_T}$hard_links" >&6
8953  if test "$hard_links" = no; then
8954    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8955echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8956    need_locks=warn
8957  fi
8958else
8959  need_locks=no
8960fi
8961
8962echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8963echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8964
8965  runpath_var=
8966  allow_undefined_flag=
8967  enable_shared_with_static_runtimes=no
8968  archive_cmds=
8969  archive_expsym_cmds=
8970  old_archive_From_new_cmds=
8971  old_archive_from_expsyms_cmds=
8972  export_dynamic_flag_spec=
8973  whole_archive_flag_spec=
8974  thread_safe_flag_spec=
8975  hardcode_libdir_flag_spec=
8976  hardcode_libdir_flag_spec_ld=
8977  hardcode_libdir_separator=
8978  hardcode_direct=no
8979  hardcode_minus_L=no
8980  hardcode_shlibpath_var=unsupported
8981  link_all_deplibs=unknown
8982  hardcode_automatic=no
8983  module_cmds=
8984  module_expsym_cmds=
8985  always_export_symbols=no
8986  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8987  # include_expsyms should be a list of space-separated symbols to be *always*
8988  # included in the symbol list
8989  include_expsyms=
8990  # exclude_expsyms can be an extended regexp of symbols to exclude
8991  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8992  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8993  # as well as any symbol that contains `d'.
8994  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8995  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8996  # platforms (ab)use it in PIC code, but their linkers get confused if
8997  # the symbol is explicitly referenced.  Since portable code cannot
8998  # rely on this symbol name, it's probably fine to never include it in
8999  # preloaded symbol tables.
9000  extract_expsyms_cmds=
9001  # Just being paranoid about ensuring that cc_basename is set.
9002  for cc_temp in $compiler""; do
9003  case $cc_temp in
9004    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9005    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9006    \-*) ;;
9007    *) break;;
9008  esac
9009done
9010cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9011
9012  case $host_os in
9013  cygwin* | mingw* | pw32*)
9014    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9015    # When not using gcc, we currently assume that we are using
9016    # Microsoft Visual C++.
9017    if test "$GCC" != yes; then
9018      with_gnu_ld=no
9019    fi
9020    ;;
9021  interix*)
9022    # we just hope/assume this is gcc and not c89 (= MSVC++)
9023    with_gnu_ld=yes
9024    ;;
9025  openbsd*)
9026    with_gnu_ld=no
9027    ;;
9028  esac
9029
9030  ld_shlibs=yes
9031  if test "$with_gnu_ld" = yes; then
9032    # If archive_cmds runs LD, not CC, wlarc should be empty
9033    wlarc='${wl}'
9034
9035    # Set some defaults for GNU ld with shared library support. These
9036    # are reset later if shared libraries are not supported. Putting them
9037    # here allows them to be overridden if necessary.
9038    runpath_var=LD_RUN_PATH
9039    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9040    export_dynamic_flag_spec='${wl}--export-dynamic'
9041    # ancient GNU ld didn't support --whole-archive et. al.
9042    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9043        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9044      else
9045        whole_archive_flag_spec=
9046    fi
9047    supports_anon_versioning=no
9048    case `$LD -v 2>/dev/null` in
9049      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9050      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9051      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9052      *\ 2.11.*) ;; # other 2.11 versions
9053      *) supports_anon_versioning=yes ;;
9054    esac
9055
9056    # See if GNU ld supports shared libraries.
9057    case $host_os in
9058    aix3* | aix4* | aix5*)
9059      # On AIX/PPC, the GNU linker is very broken
9060      if test "$host_cpu" != ia64; then
9061        ld_shlibs=no
9062        cat <<EOF 1>&2
9063
9064*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9065*** to be unable to reliably create shared libraries on AIX.
9066*** Therefore, libtool is disabling shared libraries support.  If you
9067*** really care for shared libraries, you may want to modify your PATH
9068*** so that a non-GNU linker is found, and then restart.
9069
9070EOF
9071      fi
9072      ;;
9073
9074    amigaos*)
9075      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)'
9076      hardcode_libdir_flag_spec='-L$libdir'
9077      hardcode_minus_L=yes
9078
9079      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9080      # that the semantics of dynamic libraries on AmigaOS, at least up
9081      # to version 4, is to share data among multiple programs linked
9082      # with the same dynamic library.  Since this doesn't match the
9083      # behavior of shared libraries on other platforms, we can't use
9084      # them.
9085      ld_shlibs=no
9086      ;;
9087
9088    beos*)
9089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090        allow_undefined_flag=unsupported
9091        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9092        # support --undefined.  This deserves some investigation.  FIXME
9093        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9094      else
9095        ld_shlibs=no
9096      fi
9097      ;;
9098
9099    cygwin* | mingw* | pw32*)
9100      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9101      # as there is no search path for DLLs.
9102      hardcode_libdir_flag_spec='-L$libdir'
9103      allow_undefined_flag=unsupported
9104      always_export_symbols=no
9105      enable_shared_with_static_runtimes=yes
9106      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9107
9108      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9109        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9110        # If the export-symbols file already is a .def file (1st line
9111        # is EXPORTS), use it as is; otherwise, prepend...
9112        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9113          cp $export_symbols $output_objdir/$soname.def;
9114        else
9115          echo EXPORTS > $output_objdir/$soname.def;
9116          cat $export_symbols >> $output_objdir/$soname.def;
9117        fi~
9118        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119      else
9120        ld_shlibs=no
9121      fi
9122      ;;
9123
9124    interix3*)
9125      hardcode_direct=no
9126      hardcode_shlibpath_var=no
9127      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9128      export_dynamic_flag_spec='${wl}-E'
9129      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9130      # Instead, shared libraries are loaded at an image base (0x10000000 by
9131      # default) and relocated if they conflict, which is a slow very memory
9132      # consuming and fragmenting process.  To avoid this, we pick a random,
9133      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9134      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9135      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9136      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'
9137      ;;
9138
9139    linux*)
9140      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9141        tmp_addflag=
9142        case $cc_basename,$host_cpu in
9143        pgcc*)                          # Portland Group C compiler
9144          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'
9145          tmp_addflag=' $pic_flag'
9146          ;;
9147        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9148          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'
9149          tmp_addflag=' $pic_flag -Mnomain' ;;
9150        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9151          tmp_addflag=' -i_dynamic' ;;
9152        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9153          tmp_addflag=' -i_dynamic -nofor_main' ;;
9154        ifc* | ifort*)                  # Intel Fortran compiler
9155          tmp_addflag=' -nofor_main' ;;
9156        esac
9157        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158
9159        if test $supports_anon_versioning = yes; then
9160          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9161  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9162  $echo "local: *; };" >> $output_objdir/$libname.ver~
9163          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9164        fi
9165      else
9166        ld_shlibs=no
9167      fi
9168      ;;
9169
9170    netbsd*)
9171      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9172        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9173        wlarc=
9174      else
9175        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177      fi
9178      ;;
9179
9180    solaris*)
9181      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9182        ld_shlibs=no
9183        cat <<EOF 1>&2
9184
9185*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9186*** create shared libraries on Solaris systems.  Therefore, libtool
9187*** is disabling shared libraries support.  We urge you to upgrade GNU
9188*** binutils to release 2.9.1 or newer.  Another option is to modify
9189*** your PATH or compiler configuration so that the native linker is
9190*** used, and then restart.
9191
9192EOF
9193      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9194        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9196      else
9197        ld_shlibs=no
9198      fi
9199      ;;
9200
9201    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9202      case `$LD -v 2>&1` in
9203        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9204        ld_shlibs=no
9205        cat <<_LT_EOF 1>&2
9206
9207*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9208*** reliably create shared libraries on SCO systems.  Therefore, libtool
9209*** is disabling shared libraries support.  We urge you to upgrade GNU
9210*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9211*** your PATH or compiler configuration so that the native linker is
9212*** used, and then restart.
9213
9214_LT_EOF
9215        ;;
9216        *)
9217          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9218            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9219            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9220            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9221          else
9222            ld_shlibs=no
9223          fi
9224        ;;
9225      esac
9226      ;;
9227
9228    sunos4*)
9229      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9230      wlarc=
9231      hardcode_direct=yes
9232      hardcode_shlibpath_var=no
9233      ;;
9234
9235    *)
9236      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9237        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239      else
9240        ld_shlibs=no
9241      fi
9242      ;;
9243    esac
9244
9245    if test "$ld_shlibs" = no; then
9246      runpath_var=
9247      hardcode_libdir_flag_spec=
9248      export_dynamic_flag_spec=
9249      whole_archive_flag_spec=
9250    fi
9251  else
9252    # PORTME fill in a description of your system's linker (not GNU ld)
9253    case $host_os in
9254    aix3*)
9255      allow_undefined_flag=unsupported
9256      always_export_symbols=yes
9257      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'
9258      # Note: this linker hardcodes the directories in LIBPATH if there
9259      # are no directories specified by -L.
9260      hardcode_minus_L=yes
9261      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9262        # Neither direct hardcoding nor static linking is supported with a
9263        # broken collect2.
9264        hardcode_direct=unsupported
9265      fi
9266      ;;
9267
9268    aix4* | aix5*)
9269      if test "$host_cpu" = ia64; then
9270        # On IA64, the linker does run time linking by default, so we don't
9271        # have to do anything special.
9272        aix_use_runtimelinking=no
9273        exp_sym_flag='-Bexport'
9274        no_entry_flag=""
9275      else
9276        # If we're using GNU nm, then we don't want the "-C" option.
9277        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9278        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9279          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'
9280        else
9281          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'
9282        fi
9283        aix_use_runtimelinking=no
9284
9285        # Test if we are trying to use run time linking or normal
9286        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9287        # need to do runtime linking.
9288        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9289          for ld_flag in $LDFLAGS; do
9290          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9291            aix_use_runtimelinking=yes
9292            break
9293          fi
9294          done
9295          ;;
9296        esac
9297
9298        exp_sym_flag='-bexport'
9299        no_entry_flag='-bnoentry'
9300      fi
9301
9302      # When large executables or shared objects are built, AIX ld can
9303      # have problems creating the table of contents.  If linking a library
9304      # or program results in "error TOC overflow" add -mminimal-toc to
9305      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9306      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9307
9308      archive_cmds=''
9309      hardcode_direct=yes
9310      hardcode_libdir_separator=':'
9311      link_all_deplibs=yes
9312
9313      if test "$GCC" = yes; then
9314        case $host_os in aix4.[012]|aix4.[012].*)
9315        # We only want to do this on AIX 4.2 and lower, the check
9316        # below for broken collect2 doesn't work under 4.3+
9317          collect2name=`${CC} -print-prog-name=collect2`
9318          if test -f "$collect2name" && \
9319           strings "$collect2name" | grep resolve_lib_name >/dev/null
9320          then
9321          # We have reworked collect2
9322          hardcode_direct=yes
9323          else
9324          # We have old collect2
9325          hardcode_direct=unsupported
9326          # It fails to find uninstalled libraries when the uninstalled
9327          # path is not listed in the libpath.  Setting hardcode_minus_L
9328          # to unsupported forces relinking
9329          hardcode_minus_L=yes
9330          hardcode_libdir_flag_spec='-L$libdir'
9331          hardcode_libdir_separator=
9332          fi
9333          ;;
9334        esac
9335        shared_flag='-shared'
9336        if test "$aix_use_runtimelinking" = yes; then
9337          shared_flag="$shared_flag "'${wl}-G'
9338        fi
9339      else
9340        # not using gcc
9341        if test "$host_cpu" = ia64; then
9342        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9343        # chokes on -Wl,-G. The following line is correct:
9344          shared_flag='-G'
9345        else
9346          if test "$aix_use_runtimelinking" = yes; then
9347            shared_flag='${wl}-G'
9348          else
9349            shared_flag='${wl}-bM:SRE'
9350          fi
9351        fi
9352      fi
9353
9354      # It seems that -bexpall does not export symbols beginning with
9355      # underscore (_), so it is better to generate a list of symbols to export.
9356      always_export_symbols=yes
9357      if test "$aix_use_runtimelinking" = yes; then
9358        # Warning - without using the other runtime loading flags (-brtl),
9359        # -berok will link without error, but may produce a broken library.
9360        allow_undefined_flag='-berok'
9361       # Determine the default libpath from the value encoded in an empty executable.
9362       cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h.  */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h.  */
9368
9369int
9370main ()
9371{
9372
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377rm -f conftest.$ac_objext conftest$ac_exeext
9378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379  (eval $ac_link) 2>conftest.er1
9380  ac_status=$?
9381  grep -v '^ *+' conftest.er1 >conftest.err
9382  rm -f conftest.er1
9383  cat conftest.err >&5
9384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385  (exit $ac_status); } &&
9386         { ac_try='test -z "$ac_c_werror_flag"
9387                         || test ! -s conftest.err'
9388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389  (eval $ac_try) 2>&5
9390  ac_status=$?
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); }; } &&
9393         { ac_try='test -s conftest$ac_exeext'
9394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395  (eval $ac_try) 2>&5
9396  ac_status=$?
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); }; }; then
9399
9400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9401}'`
9402# Check for a 64-bit object if we didn't find anything.
9403if 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; }
9404}'`; fi
9405else
9406  echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409fi
9410rm -f conftest.err conftest.$ac_objext \
9411      conftest$ac_exeext conftest.$ac_ext
9412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9413
9414       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9415        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"
9416       else
9417        if test "$host_cpu" = ia64; then
9418          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9419          allow_undefined_flag="-z nodefs"
9420          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"
9421        else
9422         # Determine the default libpath from the value encoded in an empty executable.
9423         cat >conftest.$ac_ext <<_ACEOF
9424/* confdefs.h.  */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h.  */
9429
9430int
9431main ()
9432{
9433
9434  ;
9435  return 0;
9436}
9437_ACEOF
9438rm -f conftest.$ac_objext conftest$ac_exeext
9439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440  (eval $ac_link) 2>conftest.er1
9441  ac_status=$?
9442  grep -v '^ *+' conftest.er1 >conftest.err
9443  rm -f conftest.er1
9444  cat conftest.err >&5
9445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446  (exit $ac_status); } &&
9447         { ac_try='test -z "$ac_c_werror_flag"
9448                         || test ! -s conftest.err'
9449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450  (eval $ac_try) 2>&5
9451  ac_status=$?
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); }; } &&
9454         { ac_try='test -s conftest$ac_exeext'
9455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456  (eval $ac_try) 2>&5
9457  ac_status=$?
9458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459  (exit $ac_status); }; }; then
9460
9461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9462}'`
9463# Check for a 64-bit object if we didn't find anything.
9464if 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; }
9465}'`; fi
9466else
9467  echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470fi
9471rm -f conftest.err conftest.$ac_objext \
9472      conftest$ac_exeext conftest.$ac_ext
9473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9474
9475         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9476          # Warning - without using the other run time loading flags,
9477          # -berok will link without error, but may produce a broken library.
9478          no_undefined_flag=' ${wl}-bernotok'
9479          allow_undefined_flag=' ${wl}-berok'
9480          # Exported symbols can be pulled into shared objects from archives
9481          whole_archive_flag_spec='$convenience'
9482          archive_cmds_need_lc=yes
9483          # This is similar to how AIX traditionally builds its shared libraries.
9484          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'
9485        fi
9486      fi
9487      ;;
9488
9489    amigaos*)
9490      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)'
9491      hardcode_libdir_flag_spec='-L$libdir'
9492      hardcode_minus_L=yes
9493      # see comment about different semantics on the GNU ld section
9494      ld_shlibs=no
9495      ;;
9496
9497    bsdi[45]*)
9498      export_dynamic_flag_spec=-rdynamic
9499      ;;
9500
9501    cygwin* | mingw* | pw32*)
9502      # When not using gcc, we currently assume that we are using
9503      # Microsoft Visual C++.
9504      # hardcode_libdir_flag_spec is actually meaningless, as there is
9505      # no search path for DLLs.
9506      hardcode_libdir_flag_spec=' '
9507      allow_undefined_flag=unsupported
9508      # Tell ltmain to make .lib files, not .a files.
9509      libext=lib
9510      # Tell ltmain to make .dll files, not .so files.
9511      shrext_cmds=".dll"
9512      # FIXME: Setting linknames here is a bad hack.
9513      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9514      # The linker will automatically build a .lib file if we build a DLL.
9515      old_archive_From_new_cmds='true'
9516      # FIXME: Should let the user specify the lib program.
9517      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9518      fix_srcfile_path='`cygpath -w "$srcfile"`'
9519      enable_shared_with_static_runtimes=yes
9520      ;;
9521
9522    darwin* | rhapsody*)
9523      case $host_os in
9524        rhapsody* | darwin1.[012])
9525         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9526         ;;
9527       *) # Darwin 1.3 on
9528         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9529           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9530         else
9531           case ${MACOSX_DEPLOYMENT_TARGET} in
9532             10.[012])
9533               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9534               ;;
9535             10.*)
9536               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9537               ;;
9538           esac
9539         fi
9540         ;;
9541      esac
9542      archive_cmds_need_lc=no
9543      hardcode_direct=no
9544      hardcode_automatic=yes
9545      hardcode_shlibpath_var=unsupported
9546      whole_archive_flag_spec=''
9547      link_all_deplibs=yes
9548    if test "$GCC" = yes ; then
9549        output_verbose_link_cmd='echo'
9550        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9551      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9552      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9553      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}'
9554      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}'
9555    else
9556      case $cc_basename in
9557        xlc*)
9558         output_verbose_link_cmd='echo'
9559         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9560         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9561          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9562         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}'
9563          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}'
9564          ;;
9565       *)
9566         ld_shlibs=no
9567          ;;
9568      esac
9569    fi
9570      ;;
9571
9572    dgux*)
9573      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574      hardcode_libdir_flag_spec='-L$libdir'
9575      hardcode_shlibpath_var=no
9576      ;;
9577
9578    freebsd1*)
9579      ld_shlibs=no
9580      ;;
9581
9582    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9583    # support.  Future versions do this automatically, but an explicit c++rt0.o
9584    # does not break anything, and helps significantly (at the cost of a little
9585    # extra space).
9586    freebsd2.2*)
9587      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9588      hardcode_libdir_flag_spec='-R$libdir'
9589      hardcode_direct=yes
9590      hardcode_shlibpath_var=no
9591      ;;
9592
9593    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9594    freebsd2*)
9595      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9596      hardcode_direct=yes
9597      hardcode_minus_L=yes
9598      hardcode_shlibpath_var=no
9599      ;;
9600
9601    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9602    freebsd* | kfreebsd*-gnu | dragonfly*)
9603      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9604      hardcode_libdir_flag_spec='-R$libdir'
9605      hardcode_direct=yes
9606      hardcode_shlibpath_var=no
9607      ;;
9608
9609    hpux9*)
9610      if test "$GCC" = yes; then
9611        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'
9612      else
9613        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'
9614      fi
9615      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9616      hardcode_libdir_separator=:
9617      hardcode_direct=yes
9618
9619      # hardcode_minus_L: Not really in the search PATH,
9620      # but as the default location of the library.
9621      hardcode_minus_L=yes
9622      export_dynamic_flag_spec='${wl}-E'
9623      ;;
9624
9625    hpux10*)
9626      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9627        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9628      else
9629        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9630      fi
9631      if test "$with_gnu_ld" = no; then
9632        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9633        hardcode_libdir_separator=:
9634
9635        hardcode_direct=yes
9636        export_dynamic_flag_spec='${wl}-E'
9637
9638        # hardcode_minus_L: Not really in the search PATH,
9639        # but as the default location of the library.
9640        hardcode_minus_L=yes
9641      fi
9642      ;;
9643
9644    hpux11*)
9645      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9646        case $host_cpu in
9647        hppa*64*)
9648          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9649          ;;
9650        ia64*)
9651          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9652          ;;
9653        *)
9654          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9655          ;;
9656        esac
9657      else
9658        case $host_cpu in
9659        hppa*64*)
9660          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661          ;;
9662        ia64*)
9663          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9664          ;;
9665        *)
9666          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667          ;;
9668        esac
9669      fi
9670      if test "$with_gnu_ld" = no; then
9671        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9672        hardcode_libdir_separator=:
9673
9674        case $host_cpu in
9675        hppa*64*|ia64*)
9676          hardcode_libdir_flag_spec_ld='+b $libdir'
9677          hardcode_direct=no
9678          hardcode_shlibpath_var=no
9679          ;;
9680        *)
9681          hardcode_direct=yes
9682          export_dynamic_flag_spec='${wl}-E'
9683
9684          # hardcode_minus_L: Not really in the search PATH,
9685          # but as the default location of the library.
9686          hardcode_minus_L=yes
9687          ;;
9688        esac
9689      fi
9690      ;;
9691
9692    irix5* | irix6* | nonstopux*)
9693      if test "$GCC" = yes; then
9694        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'
9695      else
9696        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'
9697        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9698      fi
9699      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9700      hardcode_libdir_separator=:
9701      link_all_deplibs=yes
9702      ;;
9703
9704    netbsd*)
9705      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9706        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9707      else
9708        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9709      fi
9710      hardcode_libdir_flag_spec='-R$libdir'
9711      hardcode_direct=yes
9712      hardcode_shlibpath_var=no
9713      ;;
9714
9715    newsos6)
9716      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717      hardcode_direct=yes
9718      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719      hardcode_libdir_separator=:
9720      hardcode_shlibpath_var=no
9721      ;;
9722
9723    openbsd*)
9724      hardcode_direct=yes
9725      hardcode_shlibpath_var=no
9726      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9727        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9728        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9729        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9730        export_dynamic_flag_spec='${wl}-E'
9731      else
9732       case $host_os in
9733         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9734           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9735           hardcode_libdir_flag_spec='-R$libdir'
9736           ;;
9737         *)
9738           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9740           ;;
9741       esac
9742      fi
9743      ;;
9744
9745    os2*)
9746      hardcode_libdir_flag_spec='-L$libdir'
9747      hardcode_minus_L=yes
9748      allow_undefined_flag=unsupported
9749      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'
9750      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9751      ;;
9752
9753    osf3*)
9754      if test "$GCC" = yes; then
9755        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9756        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'
9757      else
9758        allow_undefined_flag=' -expect_unresolved \*'
9759        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'
9760      fi
9761      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9762      hardcode_libdir_separator=:
9763      ;;
9764
9765    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9766      if test "$GCC" = yes; then
9767        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9768        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'
9769        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770      else
9771        allow_undefined_flag=' -expect_unresolved \*'
9772        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'
9773        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9774        $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'
9775
9776        # Both c and cxx compiler support -rpath directly
9777        hardcode_libdir_flag_spec='-rpath $libdir'
9778      fi
9779      hardcode_libdir_separator=:
9780      ;;
9781
9782    solaris*)
9783      no_undefined_flag=' -z text'
9784      if test "$GCC" = yes; then
9785        wlarc='${wl}'
9786        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9788          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9789      else
9790        wlarc=''
9791        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9793        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9794      fi
9795      hardcode_libdir_flag_spec='-R$libdir'
9796      hardcode_shlibpath_var=no
9797      case $host_os in
9798      solaris2.[0-5] | solaris2.[0-5].*) ;;
9799      *)
9800        # The compiler driver will combine linker options so we
9801        # cannot just pass the convience library names through
9802        # without $wl, iff we do not link with $LD.
9803        # Luckily, gcc supports the same syntax we need for Sun Studio.
9804        # Supported since Solaris 2.6 (maybe 2.5.1?)
9805        case $wlarc in
9806        '')
9807          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9808        *)
9809          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' ;;
9810        esac ;;
9811      esac
9812      link_all_deplibs=yes
9813      ;;
9814
9815    sunos4*)
9816      if test "x$host_vendor" = xsequent; then
9817        # Use $CC to link under sequent, because it throws in some extra .o
9818        # files that make .init and .fini sections work.
9819        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9820      else
9821        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9822      fi
9823      hardcode_libdir_flag_spec='-L$libdir'
9824      hardcode_direct=yes
9825      hardcode_minus_L=yes
9826      hardcode_shlibpath_var=no
9827      ;;
9828
9829    sysv4)
9830      case $host_vendor in
9831        sni)
9832          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9833          hardcode_direct=yes # is this really true???
9834        ;;
9835        siemens)
9836          ## LD is ld it makes a PLAMLIB
9837          ## CC just makes a GrossModule.
9838          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9839          reload_cmds='$CC -r -o $output$reload_objs'
9840          hardcode_direct=no
9841        ;;
9842        motorola)
9843          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9844          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9845        ;;
9846      esac
9847      runpath_var='LD_RUN_PATH'
9848      hardcode_shlibpath_var=no
9849      ;;
9850
9851    sysv4.3*)
9852      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853      hardcode_shlibpath_var=no
9854      export_dynamic_flag_spec='-Bexport'
9855      ;;
9856
9857    sysv4*MP*)
9858      if test -d /usr/nec; then
9859        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860        hardcode_shlibpath_var=no
9861        runpath_var=LD_RUN_PATH
9862        hardcode_runpath_var=yes
9863        ld_shlibs=yes
9864      fi
9865      ;;
9866
9867    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9868      no_undefined_flag='${wl}-z,text'
9869      archive_cmds_need_lc=no
9870      hardcode_shlibpath_var=no
9871      runpath_var='LD_RUN_PATH'
9872
9873      if test "$GCC" = yes; then
9874        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9875        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876      else
9877        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9878        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9879      fi
9880      ;;
9881
9882    sysv5* | sco3.2v5* | sco5v6*)
9883      # Note: We can NOT use -z defs as we might desire, because we do not
9884      # link with -lc, and that would cause any symbols used from libc to
9885      # always be unresolved, which means just about no library would
9886      # ever link correctly.  If we're not using GNU ld we use -z text
9887      # though, which does catch some bad symbols but isn't as heavy-handed
9888      # as -z defs.
9889      no_undefined_flag='${wl}-z,text'
9890      allow_undefined_flag='${wl}-z,nodefs'
9891      archive_cmds_need_lc=no
9892      hardcode_shlibpath_var=no
9893      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9894      hardcode_libdir_separator=':'
9895      link_all_deplibs=yes
9896      export_dynamic_flag_spec='${wl}-Bexport'
9897      runpath_var='LD_RUN_PATH'
9898
9899      if test "$GCC" = yes; then
9900        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9901        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902      else
9903        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9904        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9905      fi
9906      ;;
9907
9908    uts4*)
9909      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910      hardcode_libdir_flag_spec='-L$libdir'
9911      hardcode_shlibpath_var=no
9912      ;;
9913
9914    *)
9915      ld_shlibs=no
9916      ;;
9917    esac
9918  fi
9919
9920echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9921echo "${ECHO_T}$ld_shlibs" >&6
9922test "$ld_shlibs" = no && can_build_shared=no
9923
9924#
9925# Do we need to explicitly link libc?
9926#
9927case "x$archive_cmds_need_lc" in
9928x|xyes)
9929  # Assume -lc should be added
9930  archive_cmds_need_lc=yes
9931
9932  if test "$enable_shared" = yes && test "$GCC" = yes; then
9933    case $archive_cmds in
9934    *'~'*)
9935      # FIXME: we may have to deal with multi-command sequences.
9936      ;;
9937    '$CC '*)
9938      # Test whether the compiler implicitly links with -lc since on some
9939      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9940      # to ld, don't add -lc before -lgcc.
9941      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9943      $rm conftest*
9944      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9945
9946      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947  (eval $ac_compile) 2>&5
9948  ac_status=$?
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); } 2>conftest.err; then
9951        soname=conftest
9952        lib=conftest
9953        libobjs=conftest.$ac_objext
9954        deplibs=
9955        wl=$lt_prog_compiler_wl
9956        pic_flag=$lt_prog_compiler_pic
9957        compiler_flags=-v
9958        linker_flags=-v
9959        verstring=
9960        output_objdir=.
9961        libname=conftest
9962        lt_save_allow_undefined_flag=$allow_undefined_flag
9963        allow_undefined_flag=
9964        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9965  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); }
9969        then
9970          archive_cmds_need_lc=no
9971        else
9972          archive_cmds_need_lc=yes
9973        fi
9974        allow_undefined_flag=$lt_save_allow_undefined_flag
9975      else
9976        cat conftest.err 1>&5
9977      fi
9978      $rm conftest*
9979      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9980echo "${ECHO_T}$archive_cmds_need_lc" >&6
9981      ;;
9982    esac
9983  fi
9984  ;;
9985esac
9986
9987echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9988echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9989library_names_spec=
9990libname_spec='lib$name'
9991soname_spec=
9992shrext_cmds=".so"
9993postinstall_cmds=
9994postuninstall_cmds=
9995finish_cmds=
9996finish_eval=
9997shlibpath_var=
9998shlibpath_overrides_runpath=unknown
9999version_type=none
10000dynamic_linker="$host_os ld.so"
10001sys_lib_dlsearch_path_spec="/lib /usr/lib"
10002if test "$GCC" = yes; then
10003  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10004  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10005    # if the path contains ";" then we assume it to be the separator
10006    # otherwise default to the standard path separator (i.e. ":") - it is
10007    # assumed that no part of a normal pathname contains ";" but that should
10008    # okay in the real world where ";" in dirpaths is itself problematic.
10009    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10010  else
10011    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10012  fi
10013else
10014  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10015fi
10016need_lib_prefix=unknown
10017hardcode_into_libs=no
10018
10019# when you set need_version to no, make sure it does not cause -set_version
10020# flags to be left without arguments
10021need_version=unknown
10022
10023case $host_os in
10024aix3*)
10025  version_type=linux
10026  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10027  shlibpath_var=LIBPATH
10028
10029  # AIX 3 has no versioning support, so we append a major version to the name.
10030  soname_spec='${libname}${release}${shared_ext}$major'
10031  ;;
10032
10033aix4* | aix5*)
10034  version_type=linux
10035  need_lib_prefix=no
10036  need_version=no
10037  hardcode_into_libs=yes
10038  if test "$host_cpu" = ia64; then
10039    # AIX 5 supports IA64
10040    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10041    shlibpath_var=LD_LIBRARY_PATH
10042  else
10043    # With GCC up to 2.95.x, collect2 would create an import file
10044    # for dependence libraries.  The import file would start with
10045    # the line `#! .'.  This would cause the generated library to
10046    # depend on `.', always an invalid library.  This was fixed in
10047    # development snapshots of GCC prior to 3.0.
10048    case $host_os in
10049      aix4 | aix4.[01] | aix4.[01].*)
10050      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10051           echo ' yes '
10052           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10053        :
10054      else
10055        can_build_shared=no
10056      fi
10057      ;;
10058    esac
10059    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10060    # soname into executable. Probably we can add versioning support to
10061    # collect2, so additional links can be useful in future.
10062    if test "$aix_use_runtimelinking" = yes; then
10063      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10064      # instead of lib<name>.a to let people know that these are not
10065      # typical AIX shared libraries.
10066      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067    else
10068      # We preserve .a as extension for shared libraries through AIX4.2
10069      # and later when we are not doing run time linking.
10070      library_names_spec='${libname}${release}.a $libname.a'
10071      soname_spec='${libname}${release}${shared_ext}$major'
10072    fi
10073    shlibpath_var=LIBPATH
10074  fi
10075  ;;
10076
10077amigaos*)
10078  library_names_spec='$libname.ixlibrary $libname.a'
10079  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10080  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'
10081  ;;
10082
10083beos*)
10084  library_names_spec='${libname}${shared_ext}'
10085  dynamic_linker="$host_os ld.so"
10086  shlibpath_var=LIBRARY_PATH
10087  ;;
10088
10089bsdi[45]*)
10090  version_type=linux
10091  need_version=no
10092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093  soname_spec='${libname}${release}${shared_ext}$major'
10094  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10095  shlibpath_var=LD_LIBRARY_PATH
10096  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10097  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10098  # the default ld.so.conf also contains /usr/contrib/lib and
10099  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10100  # libtool to hard-code these into programs
10101  ;;
10102
10103cygwin* | mingw* | pw32*)
10104  version_type=windows
10105  shrext_cmds=".dll"
10106  need_version=no
10107  need_lib_prefix=no
10108
10109  case $GCC,$host_os in
10110  yes,cygwin* | yes,mingw* | yes,pw32*)
10111    library_names_spec='$libname.dll.a'
10112    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10113    postinstall_cmds='base_file=`basename \${file}`~
10114      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10115      dldir=$destdir/`dirname \$dlpath`~
10116      test -d \$dldir || mkdir -p \$dldir~
10117      $install_prog $dir/$dlname \$dldir/$dlname~
10118      chmod a+x \$dldir/$dlname'
10119    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10120      dlpath=$dir/\$dldll~
10121       $rm \$dlpath'
10122    shlibpath_overrides_runpath=yes
10123
10124    case $host_os in
10125    cygwin*)
10126      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10127      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10129      ;;
10130    mingw*)
10131      # MinGW DLLs use traditional 'lib' prefix
10132      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10133      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10134      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10135        # It is most probably a Windows format PATH printed by
10136        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10137        # path with ; separators, and with drive letters. We can handle the
10138        # drive letters (cygwin fileutils understands them), so leave them,
10139        # especially as we might pass files found there to a mingw objdump,
10140        # which wouldn't understand a cygwinified path. Ahh.
10141        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10142      else
10143        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10144      fi
10145      ;;
10146    pw32*)
10147      # pw32 DLLs use 'pw' prefix rather than 'lib'
10148      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149      ;;
10150    esac
10151    ;;
10152
10153  *)
10154    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10155    ;;
10156  esac
10157  dynamic_linker='Win32 ld.exe'
10158  # FIXME: first we should search . and the directory the executable is in
10159  shlibpath_var=PATH
10160  ;;
10161
10162darwin* | rhapsody*)
10163  dynamic_linker="$host_os dyld"
10164  version_type=darwin
10165  need_lib_prefix=no
10166  need_version=no
10167  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10168  soname_spec='${libname}${release}${major}$shared_ext'
10169  shlibpath_overrides_runpath=yes
10170  shlibpath_var=DYLD_LIBRARY_PATH
10171  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10172  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10173  if test "$GCC" = yes; then
10174    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"`
10175  else
10176    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10177  fi
10178  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10179  ;;
10180
10181dgux*)
10182  version_type=linux
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  ;;
10189
10190freebsd1*)
10191  dynamic_linker=no
10192  ;;
10193
10194kfreebsd*-gnu)
10195  version_type=linux
10196  need_lib_prefix=no
10197  need_version=no
10198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10199  soname_spec='${libname}${release}${shared_ext}$major'
10200  shlibpath_var=LD_LIBRARY_PATH
10201  shlibpath_overrides_runpath=no
10202  hardcode_into_libs=yes
10203  dynamic_linker='GNU ld.so'
10204  ;;
10205
10206freebsd* | dragonfly*)
10207  # DragonFly does not have aout.  When/if they implement a new
10208  # versioning mechanism, adjust this.
10209  if test -x /usr/bin/objformat; then
10210    objformat=`/usr/bin/objformat`
10211  else
10212    case $host_os in
10213    freebsd[123]*) objformat=aout ;;
10214    *) objformat=elf ;;
10215    esac
10216  fi
10217  version_type=freebsd-$objformat
10218  case $version_type in
10219    freebsd-elf*)
10220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10221      need_version=no
10222      need_lib_prefix=no
10223      ;;
10224    freebsd-*)
10225      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10226      need_version=yes
10227      ;;
10228  esac
10229  shlibpath_var=LD_LIBRARY_PATH
10230  case $host_os in
10231  freebsd2*)
10232    shlibpath_overrides_runpath=yes
10233    ;;
10234  freebsd3.[01]* | freebsdelf3.[01]*)
10235    shlibpath_overrides_runpath=yes
10236    hardcode_into_libs=yes
10237    ;;
10238  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10239  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10240    shlibpath_overrides_runpath=no
10241    hardcode_into_libs=yes
10242    ;;
10243  freebsd*) # from 4.6 on
10244    shlibpath_overrides_runpath=yes
10245    hardcode_into_libs=yes
10246    ;;
10247  esac
10248  ;;
10249
10250gnu*)
10251  version_type=linux
10252  need_lib_prefix=no
10253  need_version=no
10254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10255  soname_spec='${libname}${release}${shared_ext}$major'
10256  shlibpath_var=LD_LIBRARY_PATH
10257  hardcode_into_libs=yes
10258  ;;
10259
10260hpux9* | hpux10* | hpux11*)
10261  # Give a soname corresponding to the major version so that dld.sl refuses to
10262  # link against other versions.
10263  version_type=sunos
10264  need_lib_prefix=no
10265  need_version=no
10266  case $host_cpu in
10267  ia64*)
10268    shrext_cmds='.so'
10269    hardcode_into_libs=yes
10270    dynamic_linker="$host_os dld.so"
10271    shlibpath_var=LD_LIBRARY_PATH
10272    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10273    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274    soname_spec='${libname}${release}${shared_ext}$major'
10275    if test "X$HPUX_IA64_MODE" = X32; then
10276      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10277    else
10278      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10279    fi
10280    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10281    ;;
10282   hppa*64*)
10283     shrext_cmds='.sl'
10284     hardcode_into_libs=yes
10285     dynamic_linker="$host_os dld.sl"
10286     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289     soname_spec='${libname}${release}${shared_ext}$major'
10290     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10292     ;;
10293   *)
10294    shrext_cmds='.sl'
10295    dynamic_linker="$host_os dld.sl"
10296    shlibpath_var=SHLIB_PATH
10297    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
10301  esac
10302  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10303  postinstall_cmds='chmod 555 $lib'
10304  ;;
10305
10306interix3*)
10307  version_type=linux
10308  need_lib_prefix=no
10309  need_version=no
10310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10311  soname_spec='${libname}${release}${shared_ext}$major'
10312  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10313  shlibpath_var=LD_LIBRARY_PATH
10314  shlibpath_overrides_runpath=no
10315  hardcode_into_libs=yes
10316  ;;
10317
10318irix5* | irix6* | nonstopux*)
10319  case $host_os in
10320    nonstopux*) version_type=nonstopux ;;
10321    *)
10322        if test "$lt_cv_prog_gnu_ld" = yes; then
10323                version_type=linux
10324        else
10325                version_type=irix
10326        fi ;;
10327  esac
10328  need_lib_prefix=no
10329  need_version=no
10330  soname_spec='${libname}${release}${shared_ext}$major'
10331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10332  case $host_os in
10333  irix5* | nonstopux*)
10334    libsuff= shlibsuff=
10335    ;;
10336  *)
10337    case $LD in # libtool.m4 will add one of these switches to LD
10338    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10339      libsuff= shlibsuff= libmagic=32-bit;;
10340    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10341      libsuff=32 shlibsuff=N32 libmagic=N32;;
10342    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10343      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10344    *) libsuff= shlibsuff= libmagic=never-match;;
10345    esac
10346    ;;
10347  esac
10348  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10349  shlibpath_overrides_runpath=no
10350  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10351  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10352  hardcode_into_libs=yes
10353  ;;
10354
10355# No shared lib support for Linux oldld, aout, or coff.
10356linux*oldld* | linux*aout* | linux*coff*)
10357  dynamic_linker=no
10358  ;;
10359
10360# This must be Linux ELF.
10361linux*)
10362  version_type=linux
10363  need_lib_prefix=no
10364  need_version=no
10365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366  soname_spec='${libname}${release}${shared_ext}$major'
10367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10368  shlibpath_var=LD_LIBRARY_PATH
10369  shlibpath_overrides_runpath=no
10370  # This implies no fast_install, which is unacceptable.
10371  # Some rework will be needed to allow for fast_install
10372  # before this can be enabled.
10373  hardcode_into_libs=yes
10374
10375  # Append ld.so.conf contents to the search path
10376  if test -f /etc/ld.so.conf; then
10377    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' ' '`
10378    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10379  fi
10380
10381  # We used to test for /lib/ld.so.1 and disable shared libraries on
10382  # powerpc, because MkLinux only supported shared libraries with the
10383  # GNU dynamic linker.  Since this was broken with cross compilers,
10384  # most powerpc-linux boxes support dynamic linking these days and
10385  # people can always --disable-shared, the test was removed, and we
10386  # assume the GNU/Linux dynamic linker is in use.
10387  dynamic_linker='GNU/Linux ld.so'
10388  ;;
10389
10390knetbsd*-gnu)
10391  version_type=linux
10392  need_lib_prefix=no
10393  need_version=no
10394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10395  soname_spec='${libname}${release}${shared_ext}$major'
10396  shlibpath_var=LD_LIBRARY_PATH
10397  shlibpath_overrides_runpath=no
10398  hardcode_into_libs=yes
10399  dynamic_linker='GNU ld.so'
10400  ;;
10401
10402netbsd*)
10403  version_type=sunos
10404  need_lib_prefix=no
10405  need_version=no
10406  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10408    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10409    dynamic_linker='NetBSD (a.out) ld.so'
10410  else
10411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412    soname_spec='${libname}${release}${shared_ext}$major'
10413    dynamic_linker='NetBSD ld.elf_so'
10414  fi
10415  shlibpath_var=LD_LIBRARY_PATH
10416  shlibpath_overrides_runpath=yes
10417  hardcode_into_libs=yes
10418  ;;
10419
10420newsos6)
10421  version_type=linux
10422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423  shlibpath_var=LD_LIBRARY_PATH
10424  shlibpath_overrides_runpath=yes
10425  ;;
10426
10427nto-qnx*)
10428  version_type=linux
10429  need_lib_prefix=no
10430  need_version=no
10431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432  soname_spec='${libname}${release}${shared_ext}$major'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  shlibpath_overrides_runpath=yes
10435  ;;
10436
10437openbsd*)
10438  version_type=sunos
10439  sys_lib_dlsearch_path_spec="/usr/lib"
10440  need_lib_prefix=no
10441  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10442  case $host_os in
10443    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10444    *)                         need_version=no  ;;
10445  esac
10446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10448  shlibpath_var=LD_LIBRARY_PATH
10449  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10450    case $host_os in
10451      openbsd2.[89] | openbsd2.[89].*)
10452        shlibpath_overrides_runpath=no
10453        ;;
10454      *)
10455        shlibpath_overrides_runpath=yes
10456        ;;
10457      esac
10458  else
10459    shlibpath_overrides_runpath=yes
10460  fi
10461  ;;
10462
10463os2*)
10464  libname_spec='$name'
10465  shrext_cmds=".dll"
10466  need_lib_prefix=no
10467  library_names_spec='$libname${shared_ext} $libname.a'
10468  dynamic_linker='OS/2 ld.exe'
10469  shlibpath_var=LIBPATH
10470  ;;
10471
10472osf3* | osf4* | osf5*)
10473  version_type=osf
10474  need_lib_prefix=no
10475  need_version=no
10476  soname_spec='${libname}${release}${shared_ext}$major'
10477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478  shlibpath_var=LD_LIBRARY_PATH
10479  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10480  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10481  ;;
10482
10483solaris*)
10484  version_type=linux
10485  need_lib_prefix=no
10486  need_version=no
10487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488  soname_spec='${libname}${release}${shared_ext}$major'
10489  shlibpath_var=LD_LIBRARY_PATH
10490  shlibpath_overrides_runpath=yes
10491  hardcode_into_libs=yes
10492  # ldd complains unless libraries are executable
10493  postinstall_cmds='chmod +x $lib'
10494  ;;
10495
10496sunos4*)
10497  version_type=sunos
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10499  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10500  shlibpath_var=LD_LIBRARY_PATH
10501  shlibpath_overrides_runpath=yes
10502  if test "$with_gnu_ld" = yes; then
10503    need_lib_prefix=no
10504  fi
10505  need_version=yes
10506  ;;
10507
10508sysv4 | sysv4.3*)
10509  version_type=linux
10510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511  soname_spec='${libname}${release}${shared_ext}$major'
10512  shlibpath_var=LD_LIBRARY_PATH
10513  case $host_vendor in
10514    sni)
10515      shlibpath_overrides_runpath=no
10516      need_lib_prefix=no
10517      export_dynamic_flag_spec='${wl}-Blargedynsym'
10518      runpath_var=LD_RUN_PATH
10519      ;;
10520    siemens)
10521      need_lib_prefix=no
10522      ;;
10523    motorola)
10524      need_lib_prefix=no
10525      need_version=no
10526      shlibpath_overrides_runpath=no
10527      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10528      ;;
10529  esac
10530  ;;
10531
10532sysv4*MP*)
10533  if test -d /usr/nec ;then
10534    version_type=linux
10535    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10536    soname_spec='$libname${shared_ext}.$major'
10537    shlibpath_var=LD_LIBRARY_PATH
10538  fi
10539  ;;
10540
10541sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10542  version_type=freebsd-elf
10543  need_lib_prefix=no
10544  need_version=no
10545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10546  soname_spec='${libname}${release}${shared_ext}$major'
10547  shlibpath_var=LD_LIBRARY_PATH
10548  hardcode_into_libs=yes
10549  if test "$with_gnu_ld" = yes; then
10550    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10551    shlibpath_overrides_runpath=no
10552  else
10553    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10554    shlibpath_overrides_runpath=yes
10555    case $host_os in
10556      sco3.2v5*)
10557        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10558        ;;
10559    esac
10560  fi
10561  sys_lib_dlsearch_path_spec='/usr/lib'
10562  ;;
10563
10564uts4*)
10565  version_type=linux
10566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567  soname_spec='${libname}${release}${shared_ext}$major'
10568  shlibpath_var=LD_LIBRARY_PATH
10569  ;;
10570
10571*)
10572  dynamic_linker=no
10573  ;;
10574esac
10575echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10576echo "${ECHO_T}$dynamic_linker" >&6
10577test "$dynamic_linker" = no && can_build_shared=no
10578
10579variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10580if test "$GCC" = yes; then
10581  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10582fi
10583
10584echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10585echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10586hardcode_action=
10587if test -n "$hardcode_libdir_flag_spec" || \
10588   test -n "$runpath_var" || \
10589   test "X$hardcode_automatic" = "Xyes" ; then
10590
10591  # We can hardcode non-existant directories.
10592  if test "$hardcode_direct" != no &&
10593     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594     # have to relink, otherwise we might link with an installed library
10595     # when we should be linking with a yet-to-be-installed one
10596     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597     test "$hardcode_minus_L" != no; then
10598    # Linking always hardcodes the temporary library directory.
10599    hardcode_action=relink
10600  else
10601    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602    hardcode_action=immediate
10603  fi
10604else
10605  # We cannot hardcode anything, or else we can only hardcode existing
10606  # directories.
10607  hardcode_action=unsupported
10608fi
10609echo "$as_me:$LINENO: result: $hardcode_action" >&5
10610echo "${ECHO_T}$hardcode_action" >&6
10611
10612if test "$hardcode_action" = relink; then
10613  # Fast installation is not supported
10614  enable_fast_install=no
10615elif test "$shlibpath_overrides_runpath" = yes ||
10616     test "$enable_shared" = no; then
10617  # Fast installation is not necessary
10618  enable_fast_install=needless
10619fi
10620
10621striplib=
10622old_striplib=
10623echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10624echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10625if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10626  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10627  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10628  echo "$as_me:$LINENO: result: yes" >&5
10629echo "${ECHO_T}yes" >&6
10630else
10631# FIXME - insert some real tests, host_os isn't really good enough
10632  case $host_os in
10633   darwin*)
10634       if test -n "$STRIP" ; then
10635         striplib="$STRIP -x"
10636         echo "$as_me:$LINENO: result: yes" >&5
10637echo "${ECHO_T}yes" >&6
10638       else
10639  echo "$as_me:$LINENO: result: no" >&5
10640echo "${ECHO_T}no" >&6
10641fi
10642       ;;
10643   *)
10644  echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
10646    ;;
10647  esac
10648fi
10649
10650if test "x$enable_dlopen" != xyes; then
10651  enable_dlopen=unknown
10652  enable_dlopen_self=unknown
10653  enable_dlopen_self_static=unknown
10654else
10655  lt_cv_dlopen=no
10656  lt_cv_dlopen_libs=
10657
10658  case $host_os in
10659  beos*)
10660    lt_cv_dlopen="load_add_on"
10661    lt_cv_dlopen_libs=
10662    lt_cv_dlopen_self=yes
10663    ;;
10664
10665  mingw* | pw32*)
10666    lt_cv_dlopen="LoadLibrary"
10667    lt_cv_dlopen_libs=
10668   ;;
10669
10670  cygwin*)
10671    lt_cv_dlopen="dlopen"
10672    lt_cv_dlopen_libs=
10673   ;;
10674
10675  darwin*)
10676  # if libdl is installed we need to link against it
10677    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10678echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10679if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10680  echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682  ac_check_lib_save_LIBS=$LIBS
10683LIBS="-ldl  $LIBS"
10684cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690
10691/* Override any gcc2 internal prototype to avoid an error.  */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695/* We use char because int might match the return type of a gcc2
10696   builtin and then its argument prototype would still apply.  */
10697char dlopen ();
10698int
10699main ()
10700{
10701dlopen ();
10702  ;
10703  return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
10707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708  (eval $ac_link) 2>conftest.er1
10709  ac_status=$?
10710  grep -v '^ *+' conftest.er1 >conftest.err
10711  rm -f conftest.er1
10712  cat conftest.err >&5
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } &&
10715         { ac_try='test -z "$ac_c_werror_flag"
10716                         || test ! -s conftest.err'
10717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718  (eval $ac_try) 2>&5
10719  ac_status=$?
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); }; } &&
10722         { ac_try='test -s conftest$ac_exeext'
10723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724  (eval $ac_try) 2>&5
10725  ac_status=$?
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); }; }; then
10728  ac_cv_lib_dl_dlopen=yes
10729else
10730  echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733ac_cv_lib_dl_dlopen=no
10734fi
10735rm -f conftest.err conftest.$ac_objext \
10736      conftest$ac_exeext conftest.$ac_ext
10737LIBS=$ac_check_lib_save_LIBS
10738fi
10739echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10740echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10741if test $ac_cv_lib_dl_dlopen = yes; then
10742  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10743else
10744</