source: ThirdParty/HSL/trunk/configure @ 4064

Last change on this file since 4064 was 4064, checked in by stefan, 6 months ago

set prefix in .pc file relative to pcfiledir, if libdir unchanged; for coin-or/Cbc#281

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