source: trunk/configure

Last change on this file was 780, checked in by mbanovic, 3 days ago

Increase ADOL-C pre-version to 2.7.1 after releasing 2.7.0

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