source: ThirdParty/FilterSQP/stable/1.2/configure @ 2067

Last change on this file since 2067 was 2067, checked in by stefan, 9 years ago

sync with trunk rev2066

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