source: stable/2.4/configure @ 417

Last change on this file since 417 was 417, checked in by kulshres, 6 years ago

Revert "prepare for release 2.4.1"

This reverts commit 1bfa45f9547b737a7ddb3d572eabd300a0072769.

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