source: trunk/configure @ 749

Last change on this file since 749 was 749, checked in by kulshres, 17 months ago

regenerate files

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