source: trunk/configure @ 514

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

regenerate files

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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