source: ThirdParty/Mumps/trunk/configure @ 4049

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

add MUMPS_CFLAGS to CFLAGS, rerun autotools

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