source: trunk/configure @ 451

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

regenerate build files

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

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