source: trunk/configure @ 764

Last change on this file since 764 was 762, checked in by mbanovic, 10 months ago

Merged branch "medipacksupport" from "git" into "svn"

The following commits were merged:

commit 0d1b5eec2cca8afdeea3cdffa196efb6cfd60a53
Merge: 72d114b 33bfdb5
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Nov 5 10:03:04 2018 +0000

Merge branch 'medipackSupport' into 'medipacksupport'

Medipack support

See merge request adol-c/adol-c!26

commit 33bfdb5a006c782489bfef1b651ca3bdbceefaf2
Merge: ac55eab cf82982
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 30 11:19:31 2018 +0100

Merge branch 'medipackSupport' into temp

commit ac55eab9dd8cb8c84926ee56456076392a047c1a
Merge: 72d114b caaac60
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 30 11:14:09 2018 +0100

Merge remote-tracking branch 'origin/master' into temp

commit cf82982421aaa7d83405ffa3d0c9b6ef88251d0c
Merge: 6aeca20 caaac60
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 30 11:13:25 2018 +0100

Merge remote-tracking branch 'origin/master' into medipackSupport

commit 6aeca205c2448b4bbc915eb76153ebde19448573
Author: Max Sagebaum <max.sagebaum@…>
Date: Tue Oct 23 22:30:28 2018 +0200

Added suport for ZOS, FOS, FOV forward and reverse.

commit caaac60da4c61b370d106c68064d38c42a7cb6e3
Merge: cc2e0b3 70fc288
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Oct 8 08:53:40 2018 +0000

Merge branch 'fix_adtl_hov_refcntr' into 'master'

Fix undefined reference to adtl_hov::refcounter::refcnt

See merge request adol-c/adol-c!24

commit 70fc288b9ab95b16d3179fcf239ee2208ae1a2c4
Author: Jean-Paul Pelteret <jppelteret@…>
Date: Mon Oct 1 20:53:03 2018 +0200

Fix undefined reference to adtl_hov::refcounter::refcnt

commit cc2e0b3154fb6e62580def4501c4cf3f3d8e32ef
Merge: d7400f5 7c7f24b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Oct 1 12:26:39 2018 +0000

Merge branch 'docu' into 'master'

Refactor tapeless to traceless

See merge request adol-c/adol-c!23

commit ca397962cde23bde80e03924893e09c84d8728bf
Merge: 9cbc432 d7400f5
Author: Max Sagebaum <max.sagebaum@…>
Date: Fri Sep 28 10:07:41 2018 +0200

Merge remote-tracking branch 'origin/master' into medipackSupport

commit 9cbc4324e0d3e19f97ba5c5474121f0189e60f83
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Sep 27 14:38:30 2018 +0200

Missing MeDiPack? initialization on trace_on.

commit 76c30290365830d2370a354af949f3bf42df3885
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Sep 27 09:55:42 2018 +0200

Null pointer fix for initialization.

commit 7c7f24b25479870d58ff19d78a6e394ca28ddb58
Author: mflehmig <martin.schroschk@…>
Date: Thu Sep 20 13:16:06 2018 +0200

Refactor tapeless to traceless

As far as I can see, the official wording is traceless forward mode.
Additonally, the latex label and refs changed to 'traceless'.

commit 72d114b7ac42b8ac493030cedd1df8c9746ba5d4
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Oct 19 09:25:19 2017 +0200

Added support for MeDiPack? library.

Enable it with the configure options:
--enable-medipack --with-medipack=<path to MeDiPack?>

Tutorial on a how to use will follow.

commit b4ca76279d28407f29901d40953d02a0c5c9140e
Author: Max Sagebaum <max.sagebaum@…>
Date: Mon May 7 14:45:13 2018 +0200

Added support for cbrt function.

commit bc7b8ca61865058fac097410fd94a44fba281131
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Mar 1 10:31:18 2018 +0100

Changes for new interface.

commit cd1e82778c8540221b24559d5097bf6d00597e19
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Nov 16 14:31:07 2017 +0100

Changes to new MeDiPack? interface for adjoint values.

commit 55bcb0ffd5a9496817bffac0bd2c9489ed8ce992
Author: Max Sagebaum <max.sagebaum@…>
Date: Thu Oct 19 09:25:19 2017 +0200

Added support for MeDiPack? library.

Enable it with the configure options:
--enable-medipack --with-medipack=<path to MeDiPack?>

Tutorial on a how to use will follow.

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