source: trunk/configure @ 160

Last change on this file since 160 was 160, checked in by kulshres, 9 years ago

Squashed merge branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (4 commits) use unmanaged functions for recovery from colpack too fix test for sizeof_void_p in configure.ac wrap set_HP in #ifdef SPARSE for windows nosparse compilation version update after release

Details of the commits:

commit 7913137aacaca89674b60f5f858017e135201427
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:01:44 2010 +0200

use unmanaged functions for recovery from colpack too

these pointers are returned to the user, and he may delete them when
he wishes, so we cannot expect ColPack? to memory manage them.

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

commit 66999f6a57b452498e2dc75162f02a2778b9ed89
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Sep 10 15:32:02 2010 +0200

fix test for sizeof_void_p in configure.ac

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

commit 50ba17a10bb0141f6f15a332f4945230074d2d23
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 8 14:05:40 2010 +0200

wrap set_HP in #ifdef SPARSE for windows nosparse compilation

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

commit b798110feb848e56e60d8092fd225ffd2cc19e34
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Sep 6 13:58:07 2010 +0200

version update after release

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

File size: 575.8 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.65 for adolc 2.1.9-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65        expr "X$arg" : "X\\(.*\\)$as_nl";
66        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""        $as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194         /*)
195           for as_base in sh bash ksh sh5; do
196             # Try only shells that exist, to save several forks.
197             as_shell=$as_dir/$as_base
198             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205           done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218        # neutralization value for shells without unset; and this also
219        # works around shells that cannot unset nonexistent variables.
220        BASH_ENV=/dev/null
221        ENV=/dev/null
222        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223        export CONFIG_SHELL
224        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and
235$0: adol-c@list.coin-or.org about your system, including
236$0: any error possibly output before this message. Then
237$0: install a modern shell, or manually run the script
238$0: under such a shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299         X"$as_dir" : 'X\(//\)[^/]' \| \
300         X"$as_dir" : 'X\(//\)$' \| \
301         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304            s//\1/
305            q
306          }
307          /^X\(\/\/\)[^/].*/{
308            s//\1/
309            q
310          }
311          /^X\(\/\/\)$/{
312            s//\1/
313            q
314          }
315          /^X\(\/\).*/{
316            s//\1/
317            q
318          }
319          s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400         X"$0" : 'X\(//\)$' \| \
401         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404            s//\1/
405            q
406          }
407          /^X\/\(\/\/\)$/{
408            s//\1/
409            q
410          }
411          /^X\/\(\/\).*/{
412            s//\1/
413            q
414          }
415          s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T=' ';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514        test -d "$1/.";
515      else
516        case $1 in #(
517        -*)set "./$1";;
518        esac;
519        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520        ???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617           test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629           test "X$echo_testing_string" = "X$echo_test_string"; then
630          # Cool, printf works
631          :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633             test "X$echo_testing_string" = 'X\t' &&
634             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635             test "X$echo_testing_string" = "X$echo_test_string"; then
636          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637          export CONFIG_SHELL
638          SHELL="$CONFIG_SHELL"
639          export SHELL
640          ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642             test "X$echo_testing_string" = 'X\t' &&
643             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644             test "X$echo_testing_string" = "X$echo_test_string"; then
645          ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647          # maybe with a smaller string...
648          prev=:
649
650          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652            then
653              break
654            fi
655            prev="$cmd"
656          done
657
658          if test "$prev" != 'sed 50q "$0"'; then
659            echo_test_string=`eval $prev`
660            export echo_test_string
661            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662          else
663            # Oops.  We lost completely, so just stick with echo.
664            ECHO=echo
665          fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='adolc'
704PACKAGE_TARNAME='adolc'
705PACKAGE_VERSION='2.1.9-trunk'
706PACKAGE_STRING='adolc 2.1.9-trunk'
707PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
708PACKAGE_URL=''
709
710ac_unique_file="ADOL-C/src/adolc.h"
711ac_default_prefix=${HOME}/adolc_base
712# Factoring default headers for most tests.
713ac_includes_default="\
714#include <stdio.h>
715#ifdef HAVE_SYS_TYPES_H
716# include <sys/types.h>
717#endif
718#ifdef HAVE_SYS_STAT_H
719# include <sys/stat.h>
720#endif
721#ifdef STDC_HEADERS
722# include <stdlib.h>
723# include <stddef.h>
724#else
725# ifdef HAVE_STDLIB_H
726#  include <stdlib.h>
727# endif
728#endif
729#ifdef HAVE_STRING_H
730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731#  include <memory.h>
732# endif
733# include <string.h>
734#endif
735#ifdef HAVE_STRINGS_H
736# include <strings.h>
737#endif
738#ifdef HAVE_INTTYPES_H
739# include <inttypes.h>
740#endif
741#ifdef HAVE_STDINT_H
742# include <stdint.h>
743#endif
744#ifdef HAVE_UNISTD_H
745# include <unistd.h>
746#endif"
747
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751Q
752V
753MCS
754OBJC
755F77
756FC
757AM_MAKEFLAGS
758MAKEFLAGS
759shavedir
760ac_adolc_cxxflags
761ac_adolc_cflags
762PAREXA_FALSE
763PAREXA_TRUE
764ADDEXA_FALSE
765ADDEXA_TRUE
766DOCEXA_FALSE
767DOCEXA_TRUE
768COLPACK_LIBS
769COLPACK_CFLAGS
770SPARSE_FALSE
771SPARSE_TRUE
772HAVE_LIBCOLPACK_FALSE
773HAVE_LIBCOLPACK_TRUE
774ADOLC_PATCHLEVEL
775ADOLC_SUBVERSION
776ADOLC_VERSION
777ac_aux_dir
778LIBOBJS
779_lib
780LTCXXCOMPILE
781LTCOMPILE
782DOLT_BASH
783CXXCPP
784OTOOL64
785OTOOL
786LIPO
787NMEDIT
788DSYMUTIL
789lt_ECHO
790RANLIB
791AR
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797EGREP
798GREP
799SED
800LIBTOOL
801OBJDUMP
802DLLTOOL
803AS
804host_os
805host_vendor
806host_cpu
807host
808build_os
809build_vendor
810build_cpu
811build
812LN_S
813CPP
814am__fastdepCC_FALSE
815am__fastdepCC_TRUE
816CCDEPMODE
817ac_ct_CC
818CFLAGS
819CC
820am__fastdepCXX_FALSE
821am__fastdepCXX_TRUE
822CXXDEPMODE
823AMDEPBACKSLASH
824AMDEP_FALSE
825AMDEP_TRUE
826am__quote
827am__include
828DEPDIR
829OBJEXT
830EXEEXT
831ac_ct_CXX
832CPPFLAGS
833LDFLAGS
834CXXFLAGS
835CXX
836am__untar
837am__tar
838AMTAR
839am__leading_dot
840SET_MAKE
841AWK
842mkdir_p
843MKDIR_P
844INSTALL_STRIP_PROGRAM
845STRIP
846install_sh
847MAKEINFO
848AUTOHEADER
849AUTOMAKE
850AUTOCONF
851ACLOCAL
852VERSION
853PACKAGE
854CYGPATH_W
855am__isrc
856INSTALL_DATA
857INSTALL_SCRIPT
858INSTALL_PROGRAM
859target_alias
860host_alias
861build_alias
862LIBS
863ECHO_T
864ECHO_N
865ECHO_C
866DEFS
867mandir
868localedir
869libdir
870psdir
871pdfdir
872dvidir
873htmldir
874infodir
875docdir
876oldincludedir
877includedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
889PACKAGE_URL
890PACKAGE_BUGREPORT
891PACKAGE_STRING
892PACKAGE_VERSION
893PACKAGE_TARNAME
894PACKAGE_NAME
895PATH_SEPARATOR
896SHELL'
897ac_subst_files=''
898ac_user_opts='
899enable_option_checking
900enable_dependency_tracking
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_gnu_ld
906enable_libtool_lock
907enable_debug
908enable_harddebug
909enable_stdczero
910enable_tserrno
911enable_safe_extern
912enable_sparse
913with_colpack
914enable_docexa
915enable_addexa
916enable_parexa
917with_openmp_flag
918with_cflags
919with_cxxflags
920enable_shave
921'
922      ac_precious_vars='build_alias
923host_alias
924target_alias
925CXX
926CXXFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
930CCC
931CC
932CFLAGS
933CPP
934CXXCPP'
935
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989  # If the previous option needs an argument, assign it.
990  if test -n "$ac_prev"; then
991    eval $ac_prev=\$ac_option
992    ac_prev=
993    continue
994  fi
995
996  case $ac_option in
997  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998  *)    ac_optarg=yes ;;
999  esac
1000
1001  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003  case $ac_dashdash$ac_option in
1004  --)
1005    ac_dashdash=yes ;;
1006
1007  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008    ac_prev=bindir ;;
1009  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010    bindir=$ac_optarg ;;
1011
1012  -build | --build | --buil | --bui | --bu)
1013    ac_prev=build_alias ;;
1014  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015    build_alias=$ac_optarg ;;
1016
1017  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019    ac_prev=cache_file ;;
1020  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022    cache_file=$ac_optarg ;;
1023
1024  --config-cache | -C)
1025    cache_file=config.cache ;;
1026
1027  -datadir | --datadir | --datadi | --datad)
1028    ac_prev=datadir ;;
1029  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030    datadir=$ac_optarg ;;
1031
1032  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033  | --dataroo | --dataro | --datar)
1034    ac_prev=datarootdir ;;
1035  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037    datarootdir=$ac_optarg ;;
1038
1039  -disable-* | --disable-*)
1040    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043      as_fn_error "invalid feature name: $ac_useropt"
1044    ac_useropt_orig=$ac_useropt
1045    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046    case $ac_user_opts in
1047      *"
1048"enable_$ac_useropt"
1049"*) ;;
1050      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051         ac_unrecognized_sep=', ';;
1052    esac
1053    eval enable_$ac_useropt=no ;;
1054
1055  -docdir | --docdir | --docdi | --doc | --do)
1056    ac_prev=docdir ;;
1057  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058    docdir=$ac_optarg ;;
1059
1060  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061    ac_prev=dvidir ;;
1062  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063    dvidir=$ac_optarg ;;
1064
1065  -enable-* | --enable-*)
1066    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069      as_fn_error "invalid feature name: $ac_useropt"
1070    ac_useropt_orig=$ac_useropt
1071    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072    case $ac_user_opts in
1073      *"
1074"enable_$ac_useropt"
1075"*) ;;
1076      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077         ac_unrecognized_sep=', ';;
1078    esac
1079    eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083  | --exec | --exe | --ex)
1084    ac_prev=exec_prefix ;;
1085  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087  | --exec=* | --exe=* | --ex=*)
1088    exec_prefix=$ac_optarg ;;
1089
1090  -gas | --gas | --ga | --g)
1091    # Obsolete; use --with-gas.
1092    with_gas=yes ;;
1093
1094  -help | --help | --hel | --he | -h)
1095    ac_init_help=long ;;
1096  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097    ac_init_help=recursive ;;
1098  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099    ac_init_help=short ;;
1100
1101  -host | --host | --hos | --ho)
1102    ac_prev=host_alias ;;
1103  -host=* | --host=* | --hos=* | --ho=*)
1104    host_alias=$ac_optarg ;;
1105
1106  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107    ac_prev=htmldir ;;
1108  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109  | --ht=*)
1110    htmldir=$ac_optarg ;;
1111
1112  -includedir | --includedir | --includedi | --included | --include \
1113  | --includ | --inclu | --incl | --inc)
1114    ac_prev=includedir ;;
1115  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117    includedir=$ac_optarg ;;
1118
1119  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120    ac_prev=infodir ;;
1121  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122    infodir=$ac_optarg ;;
1123
1124  -libdir | --libdir | --libdi | --libd)
1125    ac_prev=libdir ;;
1126  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127    libdir=$ac_optarg ;;
1128
1129  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130  | --libexe | --libex | --libe)
1131    ac_prev=libexecdir ;;
1132  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133  | --libexe=* | --libex=* | --libe=*)
1134    libexecdir=$ac_optarg ;;
1135
1136  -localedir | --localedir | --localedi | --localed | --locale)
1137    ac_prev=localedir ;;
1138  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139    localedir=$ac_optarg ;;
1140
1141  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142  | --localstate | --localstat | --localsta | --localst | --locals)
1143    ac_prev=localstatedir ;;
1144  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146    localstatedir=$ac_optarg ;;
1147
1148  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149    ac_prev=mandir ;;
1150  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151    mandir=$ac_optarg ;;
1152
1153  -nfp | --nfp | --nf)
1154    # Obsolete; use --without-fp.
1155    with_fp=no ;;
1156
1157  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158  | --no-cr | --no-c | -n)
1159    no_create=yes ;;
1160
1161  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163    no_recursion=yes ;;
1164
1165  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167  | --oldin | --oldi | --old | --ol | --o)
1168    ac_prev=oldincludedir ;;
1169  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172    oldincludedir=$ac_optarg ;;
1173
1174  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175    ac_prev=prefix ;;
1176  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177    prefix=$ac_optarg ;;
1178
1179  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180  | --program-pre | --program-pr | --program-p)
1181    ac_prev=program_prefix ;;
1182  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184    program_prefix=$ac_optarg ;;
1185
1186  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187  | --program-suf | --program-su | --program-s)
1188    ac_prev=program_suffix ;;
1189  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191    program_suffix=$ac_optarg ;;
1192
1193  -program-transform-name | --program-transform-name \
1194  | --program-transform-nam | --program-transform-na \
1195  | --program-transform-n | --program-transform- \
1196  | --program-transform | --program-transfor \
1197  | --program-transfo | --program-transf \
1198  | --program-trans | --program-tran \
1199  | --progr-tra | --program-tr | --program-t)
1200    ac_prev=program_transform_name ;;
1201  -program-transform-name=* | --program-transform-name=* \
1202  | --program-transform-nam=* | --program-transform-na=* \
1203  | --program-transform-n=* | --program-transform-=* \
1204  | --program-transform=* | --program-transfor=* \
1205  | --program-transfo=* | --program-transf=* \
1206  | --program-trans=* | --program-tran=* \
1207  | --progr-tra=* | --program-tr=* | --program-t=*)
1208    program_transform_name=$ac_optarg ;;
1209
1210  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211    ac_prev=pdfdir ;;
1212  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213    pdfdir=$ac_optarg ;;
1214
1215  -psdir | --psdir | --psdi | --psd | --ps)
1216    ac_prev=psdir ;;
1217  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218    psdir=$ac_optarg ;;
1219
1220  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221  | -silent | --silent | --silen | --sile | --sil)
1222    silent=yes ;;
1223
1224  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225    ac_prev=sbindir ;;
1226  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227  | --sbi=* | --sb=*)
1228    sbindir=$ac_optarg ;;
1229
1230  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232  | --sharedst | --shareds | --shared | --share | --shar \
1233  | --sha | --sh)
1234    ac_prev=sharedstatedir ;;
1235  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238  | --sha=* | --sh=*)
1239    sharedstatedir=$ac_optarg ;;
1240
1241  -site | --site | --sit)
1242    ac_prev=site ;;
1243  -site=* | --site=* | --sit=*)
1244    site=$ac_optarg ;;
1245
1246  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247    ac_prev=srcdir ;;
1248  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249    srcdir=$ac_optarg ;;
1250
1251  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252  | --syscon | --sysco | --sysc | --sys | --sy)
1253    ac_prev=sysconfdir ;;
1254  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256    sysconfdir=$ac_optarg ;;
1257
1258  -target | --target | --targe | --targ | --tar | --ta | --t)
1259    ac_prev=target_alias ;;
1260  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261    target_alias=$ac_optarg ;;
1262
1263  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264    verbose=yes ;;
1265
1266  -version | --version | --versio | --versi | --vers | -V)
1267    ac_init_version=: ;;
1268
1269  -with-* | --with-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281         ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=\$ac_optarg ;;
1284
1285  -without-* | --without-*)
1286    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289      as_fn_error "invalid package name: $ac_useropt"
1290    ac_useropt_orig=$ac_useropt
1291    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292    case $ac_user_opts in
1293      *"
1294"with_$ac_useropt"
1295"*) ;;
1296      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297         ac_unrecognized_sep=', ';;
1298    esac
1299    eval with_$ac_useropt=no ;;
1300
1301  --x)
1302    # Obsolete; use --with-x.
1303    with_x=yes ;;
1304
1305  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306  | --x-incl | --x-inc | --x-in | --x-i)
1307    ac_prev=x_includes ;;
1308  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310    x_includes=$ac_optarg ;;
1311
1312  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314    ac_prev=x_libraries ;;
1315  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317    x_libraries=$ac_optarg ;;
1318
1319  -*) as_fn_error "unrecognized option: \`$ac_option'
1320Try \`$0 --help' for more information."
1321    ;;
1322
1323  *=*)
1324    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325    # Reject names that are not valid shell variable names.
1326    case $ac_envvar in #(
1327      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329    esac
1330    eval $ac_envvar=\$ac_optarg
1331    export $ac_envvar ;;
1332
1333  *)
1334    # FIXME: should be removed in autoconf 3.0.
1335    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339    ;;
1340
1341  esac
1342done
1343
1344if test -n "$ac_prev"; then
1345  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346  as_fn_error "missing argument to $ac_option"
1347fi
1348
1349if test -n "$ac_unrecognized_opts"; then
1350  case $enable_option_checking in
1351    no) ;;
1352    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354  esac
1355fi
1356
1357# Check all directory arguments for consistency.
1358for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                datadir sysconfdir sharedstatedir localstatedir includedir \
1360                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                libdir localedir mandir
1362do
1363  eval ac_val=\$$ac_var
1364  # Remove trailing slashes.
1365  case $ac_val in
1366    */ )
1367      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368      eval $ac_var=\$ac_val;;
1369  esac
1370  # Be sure to have absolute directory names.
1371  case $ac_val in
1372    [\\/$]* | ?:[\\/]* )  continue;;
1373    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374  esac
1375  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376done
1377
1378# There might be people who depend on the old broken behavior: `$host'
1379# used to hold the argument of --host etc.
1380# FIXME: To remove some day.
1381build=$build_alias
1382host=$host_alias
1383target=$target_alias
1384
1385# FIXME: To remove some day.
1386if test "x$host_alias" != x; then
1387  if test "x$build_alias" = x; then
1388    cross_compiling=maybe
1389    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390    If a cross compiler is detected then cross compile mode will be used." >&2
1391  elif test "x$build_alias" != "x$host_alias"; then
1392    cross_compiling=yes
1393  fi
1394fi
1395
1396ac_tool_prefix=
1397test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399test "$silent" = yes && exec 6>/dev/null
1400
1401
1402ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403ac_ls_di=`ls -di .` &&
1404ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405  as_fn_error "working directory cannot be determined"
1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407  as_fn_error "pwd does not report name of working directory"
1408
1409
1410# Find the source files, if location was not specified.
1411if test -z "$srcdir"; then
1412  ac_srcdir_defaulted=yes
1413  # Try the directory containing this script, then the parent directory.
1414  ac_confdir=`$as_dirname -- "$as_myself" ||
1415$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416         X"$as_myself" : 'X\(//\)[^/]' \| \
1417         X"$as_myself" : 'X\(//\)$' \| \
1418         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419$as_echo X"$as_myself" |
1420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421            s//\1/
1422            q
1423          }
1424          /^X\(\/\/\)[^/].*/{
1425            s//\1/
1426            q
1427          }
1428          /^X\(\/\/\)$/{
1429            s//\1/
1430            q
1431          }
1432          /^X\(\/\).*/{
1433            s//\1/
1434            q
1435          }
1436          s/.*/./; q'`
1437  srcdir=$ac_confdir
1438  if test ! -r "$srcdir/$ac_unique_file"; then
1439    srcdir=..
1440  fi
1441else
1442  ac_srcdir_defaulted=no
1443fi
1444if test ! -r "$srcdir/$ac_unique_file"; then
1445  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447fi
1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451        pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454  srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464  eval ac_env_${ac_var}_value=\$${ac_var}
1465  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
1468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473  # Omit some internal or obsolete options to make the list less imposing.
1474  # This message is too long to be a string in the A/UX 3.1 sh.
1475  cat <<_ACEOF
1476\`configure' configures adolc 2.1.9-trunk to adapt to many kinds of systems.
1477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486  -h, --help              display this help and exit
1487      --help=short        display options specific to this package
1488      --help=recursive    display the short help of all the included packages
1489  -V, --version           display version information and exit
1490  -q, --quiet, --silent   do not print \`checking...' messages
1491      --cache-file=FILE   cache test results in FILE [disabled]
1492  -C, --config-cache      alias for \`--cache-file=config.cache'
1493  -n, --no-create         do not create output files
1494      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496Installation directories:
1497  --prefix=PREFIX         install architecture-independent files in PREFIX
1498                          [$ac_default_prefix]
1499  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                          [PREFIX]
1501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510  --bindir=DIR            user executables [EPREFIX/bin]
1511  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516  --libdir=DIR            object code libraries [EPREFIX/lib]
1517  --includedir=DIR        C header files [PREFIX/include]
1518  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1525  --htmldir=DIR           html documentation [DOCDIR]
1526  --dvidir=DIR            dvi documentation [DOCDIR]
1527  --pdfdir=DIR            pdf documentation [DOCDIR]
1528  --psdir=DIR             ps documentation [DOCDIR]
1529_ACEOF
1530
1531  cat <<\_ACEOF
1532
1533Program names:
1534  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545  case $ac_init_help in
1546     short | recursive ) echo "Configuration of adolc 2.1.9-trunk:";;
1547   esac
1548  cat <<\_ACEOF
1549
1550Optional Features:
1551  --disable-option-checking  ignore unrecognized --enable/--with options
1552  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554  --disable-dependency-tracking  speeds up one-time build
1555  --enable-dependency-tracking   do not reject slow dependency extractors
1556  --enable-shared[=PKGS]  build shared libraries [default=yes]
1557  --enable-static[=PKGS]  build static libraries [default=yes]
1558  --enable-fast-install[=PKGS]
1559                          optimize for fast installation [default=yes]
1560  --disable-libtool-lock  avoid locking (might break parallel builds)
1561
1562  --enable-debug          enable ADOL-C debug mode [default=no]
1563
1564  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1565
1566  --enable-stdczero       adouble standard constructor zeros value (at the
1567                          cost of performance) [default=no]
1568
1569  --enable-tserrno        use errno as thread number cache [default=no]
1570
1571  --enable-safe-extern    backup all adoubles before calling an external
1572                          function [default=no]
1573
1574  --enable-sparse         build sparse drivers [default=disabled]
1575
1576  --enable-docexa         build documented examples [default=disabled]
1577  --enable-addexa         build additional examples [default=disabled]
1578  --enable-parexa         build parallel example [default=disabled], if
1579                          enabled -with-openmp-flag=FLAG required
1580  --enable-shave          use shave to make the build pretty [[default=yes]]
1581
1582Optional Packages:
1583  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585  --with-pic              try to use only PIC/non-PIC objects [default=use
1586                          both]
1587  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588
1589  --with-colpack          path to the colpack library and headers
1590                          [default=${PWD}/ThirdParty/ColPack]
1591  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1592                          [default=none]
1593  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1594  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1595
1596Some influential environment variables:
1597  CXX         C++ compiler command
1598  CXXFLAGS    C++ compiler flags
1599  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600              nonstandard directory <lib dir>
1601  LIBS        libraries to pass to the linker, e.g. -l<library>
1602  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603              you have headers in a nonstandard directory <include dir>
1604  CC          C compiler command
1605  CFLAGS      C compiler flags
1606  CPP         C preprocessor
1607  CXXCPP      C++ preprocessor
1608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
1612Report bugs to <adol-c@list.coin-or.org>.
1613_ACEOF
1614ac_status=$?
1615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618  # If there are subdirs, report their specific --help.
1619  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620    test -d "$ac_dir" ||
1621      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622      continue
1623    ac_builddir=.
1624
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629  # A ".." for each directory in $ac_dir_suffix.
1630  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631  case $ac_top_builddir_sub in
1632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634  esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
1640
1641case $srcdir in
1642  .)  # We are building in place.
1643    ac_srcdir=.
1644    ac_top_srcdir=$ac_top_builddir_sub
1645    ac_abs_top_srcdir=$ac_pwd ;;
1646  [\\/]* | ?:[\\/]* )  # Absolute name.
1647    ac_srcdir=$srcdir$ac_dir_suffix;
1648    ac_top_srcdir=$srcdir
1649    ac_abs_top_srcdir=$srcdir ;;
1650  *) # Relative name.
1651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652    ac_top_srcdir=$ac_top_build_prefix$srcdir
1653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654esac
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657    cd "$ac_dir" || { ac_status=$?; continue; }
1658    # Check for guested configure.
1659    if test -f "$ac_srcdir/configure.gnu"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662    elif test -f "$ac_srcdir/configure"; then
1663      echo &&
1664      $SHELL "$ac_srcdir/configure" --help=recursive
1665    else
1666      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667    fi || ac_status=$?
1668    cd "$ac_pwd" || { ac_status=$?; break; }
1669  done
1670fi
1671
1672test -n "$ac_init_help" && exit $ac_status
1673if $ac_init_version; then
1674  cat <<\_ACEOF
1675adolc configure 2.1.9-trunk
1676generated by GNU Autoconf 2.65
1677
1678Copyright (C) 2009 Free Software Foundation, Inc.
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
1682  exit
1683fi
1684
1685## ------------------------ ##
1686## Autoconf initialization. ##
1687## ------------------------ ##
1688
1689# ac_fn_cxx_try_compile LINENO
1690# ----------------------------
1691# Try to compile conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_cxx_try_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  rm -f conftest.$ac_objext
1696  if { { ac_try="$ac_compile"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_compile") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && {
1712         test -z "$ac_cxx_werror_flag" ||
1713         test ! -s conftest.err
1714       } && test -s conftest.$ac_objext; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720        ac_retval=1
1721fi
1722  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_cxx_try_compile
1726
1727# ac_fn_c_try_compile LINENO
1728# --------------------------
1729# Try to compile conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_compile ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  rm -f conftest.$ac_objext
1734  if { { ac_try="$ac_compile"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_compile") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && {
1750         test -z "$ac_c_werror_flag" ||
1751         test ! -s conftest.err
1752       } && test -s conftest.$ac_objext; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758        ac_retval=1
1759fi
1760  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_compile
1764
1765# ac_fn_c_try_cpp LINENO
1766# ----------------------
1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_cpp ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_cpp conftest.$ac_ext"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } >/dev/null && {
1787         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788         test ! -s conftest.err
1789       }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795    ac_retval=1
1796fi
1797  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798  as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_cpp
1801
1802# ac_fn_c_try_link LINENO
1803# -----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_link ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  rm -f conftest.$ac_objext conftest$ac_exeext
1809  if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_link") 2>conftest.err
1817  ac_status=$?
1818  if test -s conftest.err; then
1819    grep -v '^ *+' conftest.err >conftest.er1
1820    cat conftest.er1 >&5
1821    mv -f conftest.er1 conftest.err
1822  fi
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && {
1825         test -z "$ac_c_werror_flag" ||
1826         test ! -s conftest.err
1827       } && test -s conftest$ac_exeext && {
1828         test "$cross_compiling" = yes ||
1829         $as_test_x conftest$ac_exeext
1830       }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836        ac_retval=1
1837fi
1838  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840  # interfere with the next link command; also delete a directory that is
1841  # left behind by Apple's compiler.  We do this before executing the actions.
1842  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_link
1847
1848# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1849# -------------------------------------------------------
1850# Tests whether HEADER exists and can be compiled using the include files in
1851# INCLUDES, setting the cache variable VAR accordingly.
1852ac_fn_c_check_header_compile ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858  $as_echo_n "(cached) " >&6
1859else
1860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h.  */
1862$4
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_header_compile
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_link") 2>&5
1894  ac_status=$?
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897  { { case "(($ac_try" in
1898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899  *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903  (eval "$ac_try") 2>&5
1904  ac_status=$?
1905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; }; }; then :
1907  ac_retval=0
1908else
1909  $as_echo "$as_me: program exited with status $ac_status" >&5
1910       $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913       ac_retval=$ac_status
1914fi
1915  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917  as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_func LINENO FUNC VAR
1922# ----------------------------------
1923# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924ac_fn_c_check_func ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1936#define $2 innocuous_$2
1937
1938/* System header to define __stub macros and hopefully few prototypes,
1939    which can conflict with char $2 (); below.
1940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941    <limits.h> exists even on freestanding compilers.  */
1942
1943#ifdef __STDC__
1944# include <limits.h>
1945#else
1946# include <assert.h>
1947#endif
1948
1949#undef $2
1950
1951/* Override any GCC internal prototype to avoid an error.
1952   Use char because int might match the return type of a GCC
1953   builtin and then its argument prototype would still apply.  */
1954#ifdef __cplusplus
1955extern "C"
1956#endif
1957char $2 ();
1958/* The GNU C library defines this for functions which it implements
1959    to always fail with ENOSYS.  Some functions are actually named
1960    something starting with __ and the normal name is an alias.  */
1961#if defined __stub_$2 || defined __stub___$2
1962choke me
1963#endif
1964
1965int
1966main ()
1967{
1968return $2 ();
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_link "$LINENO"; then :
1974  eval "$3=yes"
1975else
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext \
1979    conftest$ac_exeext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985
1986} # ac_fn_c_check_func
1987
1988# ac_fn_cxx_try_cpp LINENO
1989# ------------------------
1990# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991ac_fn_cxx_try_cpp ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  if { { ac_try="$ac_cpp conftest.$ac_ext"
1995case "(($ac_try" in
1996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997  *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002  ac_status=$?
2003  if test -s conftest.err; then
2004    grep -v '^ *+' conftest.err >conftest.er1
2005    cat conftest.er1 >&5
2006    mv -f conftest.er1 conftest.err
2007  fi
2008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009  test $ac_status = 0; } >/dev/null && {
2010         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2011         test ! -s conftest.err
2012       }; then :
2013  ac_retval=0
2014else
2015  $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018    ac_retval=1
2019fi
2020  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021  as_fn_set_status $ac_retval
2022
2023} # ac_fn_cxx_try_cpp
2024
2025# ac_fn_cxx_try_link LINENO
2026# -------------------------
2027# Try to link conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_cxx_try_link ()
2029{
2030  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031  rm -f conftest.$ac_objext conftest$ac_exeext
2032  if { { ac_try="$ac_link"
2033case "(($ac_try" in
2034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035  *) ac_try_echo=$ac_try;;
2036esac
2037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038$as_echo "$ac_try_echo"; } >&5
2039  (eval "$ac_link") 2>conftest.err
2040  ac_status=$?
2041  if test -s conftest.err; then
2042    grep -v '^ *+' conftest.err >conftest.er1
2043    cat conftest.er1 >&5
2044    mv -f conftest.er1 conftest.err
2045  fi
2046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047  test $ac_status = 0; } && {
2048         test -z "$ac_cxx_werror_flag" ||
2049         test ! -s conftest.err
2050       } && test -s conftest$ac_exeext && {
2051         test "$cross_compiling" = yes ||
2052         $as_test_x conftest$ac_exeext
2053       }; then :
2054  ac_retval=0
2055else
2056  $as_echo "$as_me: failed program was:" >&5
2057sed 's/^/| /' conftest.$ac_ext >&5
2058
2059        ac_retval=1
2060fi
2061  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063  # interfere with the next link command; also delete a directory that is
2064  # left behind by Apple's compiler.  We do this before executing the actions.
2065  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067  as_fn_set_status $ac_retval
2068
2069} # ac_fn_cxx_try_link
2070
2071# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072# --------------------------------------------
2073# Tries to find the compile-time value of EXPR in a program that includes
2074# INCLUDES, setting VAR accordingly. Returns whether the value could be
2075# computed
2076ac_fn_c_compute_int ()
2077{
2078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079  if test "$cross_compiling" = yes; then
2080    # Depending upon the size, compute the lo and hi bounds.
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) >= 0)];
2088test_array [0] = 0
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  ac_lo=0 ac_mid=0
2096  while :; do
2097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104test_array [0] = 0
2105
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111  ac_hi=$ac_mid; break
2112else
2113  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114                        if test $ac_lo -le $ac_mid; then
2115                          ac_lo= ac_hi=
2116                          break
2117                        fi
2118                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121  done
2122else
2123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) < 0)];
2130test_array [0] = 0
2131
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137  ac_hi=-1 ac_mid=-1
2138  while :; do
2139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2146test_array [0] = 0
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153  ac_lo=$ac_mid; break
2154else
2155  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156                        if test $ac_mid -le $ac_hi; then
2157                          ac_lo= ac_hi=
2158                          break
2159                        fi
2160                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163  done
2164else
2165  ac_lo= ac_hi=
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170# Binary search between lo and hi bounds.
2171while test "x$ac_lo" != "x$ac_hi"; do
2172  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180test_array [0] = 0
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  ac_hi=$ac_mid
2188else
2189  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197  else
2198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209  FILE *f = fopen ("conftest.val", "w");
2210  if (! f)
2211    return 1;
2212  if (($2) < 0)
2213    {
2214      long int i = longval ();
2215      if (i != ($2))
2216        return 1;
2217      fprintf (f, "%ld", i);
2218    }
2219  else
2220    {
2221      unsigned long int i = ulongval ();
2222      if (i != ($2))
2223        return 1;
2224      fprintf (f, "%lu", i);
2225    }
2226  /* Do not output a trailing newline, as this causes \r\n confusion
2227     on some platforms.  */
2228  return ferror (f) || fclose (f) != 0;
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237  ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240  conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243  fi
2244  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245  as_fn_set_status $ac_retval
2246
2247} # ac_fn_c_compute_int
2248
2249# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250# -------------------------------------------
2251# Tests whether TYPE exists after having included INCLUDES, setting cache
2252# variable VAR accordingly.
2253ac_fn_c_check_type ()
2254{
2255  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257$as_echo_n "checking for $2... " >&6; }
2258if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  eval "$3=no"
2262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h.  */
2264$4
2265int
2266main ()
2267{
2268if (sizeof ($2))
2269         return 0;
2270  ;
2271  return 0;
2272}
2273_ACEOF
2274if ac_fn_c_try_compile "$LINENO"; then :
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277$4
2278int
2279main ()
2280{
2281if (sizeof (($2)))
2282            return 0;
2283  ;
2284  return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_compile "$LINENO"; then :
2288
2289else
2290  eval "$3=yes"
2291fi
2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296eval ac_res=\$$3
2297               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300
2301} # ac_fn_c_check_type
2302
2303# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2304# -------------------------------------------------------
2305# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2306# the include files in INCLUDES and setting the cache variable VAR
2307# accordingly.
2308ac_fn_c_check_header_mongrel ()
2309{
2310  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
2314if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315  $as_echo_n "(cached) " >&6
2316fi
2317eval ac_res=\$$3
2318               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
2320else
2321  # Is the header compilable?
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2323$as_echo_n "checking $2 usability... " >&6; }
2324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h.  */
2326$4
2327#include <$2>
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330  ac_header_compiler=yes
2331else
2332  ac_header_compiler=no
2333fi
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2336$as_echo "$ac_header_compiler" >&6; }
2337
2338# Is the header present?
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2340$as_echo_n "checking $2 presence... " >&6; }
2341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342/* end confdefs.h.  */
2343#include <$2>
2344_ACEOF
2345if ac_fn_c_try_cpp "$LINENO"; then :
2346  ac_header_preproc=yes
2347else
2348  ac_header_preproc=no
2349fi
2350rm -f conftest.err conftest.$ac_ext
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2352$as_echo "$ac_header_preproc" >&6; }
2353
2354# So?  What about this header?
2355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2356  yes:no: )
2357    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2358$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2361    ;;
2362  no:yes:* )
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2364$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2365    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2366$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2368$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2369    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2370$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2372$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2373( cat <<\_ASBOX
2374## -------------------------------------- ##
2375## Report this to adol-c@list.coin-or.org ##
2376## -------------------------------------- ##
2377_ASBOX
2378     ) | sed "s/^/$as_me: WARNING:     /" >&2
2379    ;;
2380esac
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382$as_echo_n "checking for $2... " >&6; }
2383if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384  $as_echo_n "(cached) " >&6
2385else
2386  eval "$3=\$ac_header_compiler"
2387fi
2388eval ac_res=\$$3
2389               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390$as_echo "$ac_res" >&6; }
2391fi
2392  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393
2394} # ac_fn_c_check_header_mongrel
2395cat >config.log <<_ACEOF
2396This file contains any messages produced by compilers while
2397running configure, to aid debugging if configure makes a mistake.
2398
2399It was created by adolc $as_me 2.1.9-trunk, which was
2400generated by GNU Autoconf 2.65.  Invocation command line was
2401
2402  $ $0 $@
2403
2404_ACEOF
2405exec 5>>config.log
2406{
2407cat <<_ASUNAME
2408## --------- ##
2409## Platform. ##
2410## --------- ##
2411
2412hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2413uname -m = `(uname -m) 2>/dev/null || echo unknown`
2414uname -r = `(uname -r) 2>/dev/null || echo unknown`
2415uname -s = `(uname -s) 2>/dev/null || echo unknown`
2416uname -v = `(uname -v) 2>/dev/null || echo unknown`
2417
2418/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2419/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2420
2421/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2422/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2423/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2424/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2425/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2426/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2427/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2428
2429_ASUNAME
2430
2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432for as_dir in $PATH
2433do
2434  IFS=$as_save_IFS
2435  test -z "$as_dir" && as_dir=.
2436    $as_echo "PATH: $as_dir"
2437  done
2438IFS=$as_save_IFS
2439
2440} >&5
2441
2442cat >&5 <<_ACEOF
2443
2444
2445## ----------- ##
2446## Core tests. ##
2447## ----------- ##
2448
2449_ACEOF
2450
2451
2452# Keep a trace of the command line.
2453# Strip out --no-create and --no-recursion so they do not pile up.
2454# Strip out --silent because we don't want to record it for future runs.
2455# Also quote any args containing shell meta-characters.
2456# Make two passes to allow for proper duplicate-argument suppression.
2457ac_configure_args=
2458ac_configure_args0=
2459ac_configure_args1=
2460ac_must_keep_next=false
2461for ac_pass in 1 2
2462do
2463  for ac_arg
2464  do
2465    case $ac_arg in
2466    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2467    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2468    | -silent | --silent | --silen | --sile | --sil)
2469      continue ;;
2470    *\'*)
2471      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2472    esac
2473    case $ac_pass in
2474    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2475    2)
2476      as_fn_append ac_configure_args1 " '$ac_arg'"
2477      if test $ac_must_keep_next = true; then
2478        ac_must_keep_next=false # Got value, back to normal.
2479      else
2480        case $ac_arg in
2481          *=* | --config-cache | -C | -disable-* | --disable-* \
2482          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2483          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2484          | -with-* | --with-* | -without-* | --without-* | --x)
2485            case "$ac_configure_args0 " in
2486              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2487            esac
2488            ;;
2489          -* ) ac_must_keep_next=true ;;
2490        esac
2491      fi
2492      as_fn_append ac_configure_args " '$ac_arg'"
2493      ;;
2494    esac
2495  done
2496done
2497{ ac_configure_args0=; unset ac_configure_args0;}
2498{ ac_configure_args1=; unset ac_configure_args1;}
2499
2500# When interrupted or exit'd, cleanup temporary files, and complete
2501# config.log.  We remove comments because anyway the quotes in there
2502# would cause problems or look ugly.
2503# WARNING: Use '\'' to represent an apostrophe within the trap.
2504# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2505trap 'exit_status=$?
2506  # Save into config.log some information that might help in debugging.
2507  {
2508    echo
2509
2510    cat <<\_ASBOX
2511## ---------------- ##
2512## Cache variables. ##
2513## ---------------- ##
2514_ASBOX
2515    echo
2516    # The following way of writing the cache mishandles newlines in values,
2517(
2518  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2519    eval ac_val=\$$ac_var
2520    case $ac_val in #(
2521    *${as_nl}*)
2522      case $ac_var in #(
2523      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2524$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525      esac
2526      case $ac_var in #(
2527      _ | IFS | as_nl) ;; #(
2528      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2529      *) { eval $ac_var=; unset $ac_var;} ;;
2530      esac ;;
2531    esac
2532  done
2533  (set) 2>&1 |
2534    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2535    *${as_nl}ac_space=\ *)
2536      sed -n \
2537        "s/'\''/'\''\\\\'\'''\''/g;
2538          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539      ;; #(
2540    *)
2541      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2542      ;;
2543    esac |
2544    sort
2545)
2546    echo
2547
2548    cat <<\_ASBOX
2549## ----------------- ##
2550## Output variables. ##
2551## ----------------- ##
2552_ASBOX
2553    echo
2554    for ac_var in $ac_subst_vars
2555    do
2556      eval ac_val=\$$ac_var
2557      case $ac_val in
2558      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559      esac
2560      $as_echo "$ac_var='\''$ac_val'\''"
2561    done | sort
2562    echo
2563
2564    if test -n "$ac_subst_files"; then
2565      cat <<\_ASBOX
2566## ------------------- ##
2567## File substitutions. ##
2568## ------------------- ##
2569_ASBOX
2570      echo
2571      for ac_var in $ac_subst_files
2572      do
2573        eval ac_val=\$$ac_var
2574        case $ac_val in
2575        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576        esac
2577        $as_echo "$ac_var='\''$ac_val'\''"
2578      done | sort
2579      echo
2580    fi
2581
2582    if test -s confdefs.h; then
2583      cat <<\_ASBOX
2584## ----------- ##
2585## confdefs.h. ##
2586## ----------- ##
2587_ASBOX
2588      echo
2589      cat confdefs.h
2590      echo
2591    fi
2592    test "$ac_signal" != 0 &&
2593      $as_echo "$as_me: caught signal $ac_signal"
2594    $as_echo "$as_me: exit $exit_status"
2595  } >&5
2596  rm -f core *.core core.conftest.* &&
2597    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2598    exit $exit_status
2599' 0
2600for ac_signal in 1 2 13 15; do
2601  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2602done
2603ac_signal=0
2604
2605# confdefs.h avoids OS command line length limits that DEFS can exceed.
2606rm -f -r conftest* confdefs.h
2607
2608$as_echo "/* confdefs.h */" > confdefs.h
2609
2610# Predefined preprocessor variables.
2611
2612cat >>confdefs.h <<_ACEOF
2613#define PACKAGE_NAME "$PACKAGE_NAME"
2614_ACEOF
2615
2616cat >>confdefs.h <<_ACEOF
2617#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2618_ACEOF
2619
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE_VERSION "$PACKAGE_VERSION"
2622_ACEOF
2623
2624cat >>confdefs.h <<_ACEOF
2625#define PACKAGE_STRING "$PACKAGE_STRING"
2626_ACEOF
2627
2628cat >>confdefs.h <<_ACEOF
2629#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633#define PACKAGE_URL "$PACKAGE_URL"
2634_ACEOF
2635
2636
2637# Let the site file select an alternate cache file if it wants to.
2638# Prefer an explicitly selected file to automatically selected ones.
2639ac_site_file1=NONE
2640ac_site_file2=NONE
2641if test -n "$CONFIG_SITE"; then
2642  ac_site_file1=$CONFIG_SITE
2643elif test "x$prefix" != xNONE; then
2644  ac_site_file1=$prefix/share/config.site
2645  ac_site_file2=$prefix/etc/config.site
2646else
2647  ac_site_file1=$ac_default_prefix/share/config.site
2648  ac_site_file2=$ac_default_prefix/etc/config.site
2649fi
2650for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2651do
2652  test "x$ac_site_file" = xNONE && continue
2653  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2654    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2655$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2656    sed 's/^/| /' "$ac_site_file" >&5
2657    . "$ac_site_file"
2658  fi
2659done
2660
2661if test -r "$cache_file"; then
2662  # Some versions of bash will fail to source /dev/null (special files
2663  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2664  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2665    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2666$as_echo "$as_me: loading cache $cache_file" >&6;}
2667    case $cache_file in
2668      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2669      *)                      . "./$cache_file";;
2670    esac
2671  fi
2672else
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2674$as_echo "$as_me: creating cache $cache_file" >&6;}
2675  >$cache_file
2676fi
2677
2678# Check that the precious variables saved in the cache have kept the same
2679# value.
2680ac_cache_corrupted=false
2681for ac_var in $ac_precious_vars; do
2682  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2683  eval ac_new_set=\$ac_env_${ac_var}_set
2684  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2685  eval ac_new_val=\$ac_env_${ac_var}_value
2686  case $ac_old_set,$ac_new_set in
2687    set,)
2688      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2689$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2690      ac_cache_corrupted=: ;;
2691    ,set)
2692      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2693$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2694      ac_cache_corrupted=: ;;
2695    ,);;
2696    *)
2697      if test "x$ac_old_val" != "x$ac_new_val"; then
2698        # differences in whitespace do not lead to failure.
2699        ac_old_val_w=`echo x $ac_old_val`
2700        ac_new_val_w=`echo x $ac_new_val`
2701        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2702          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2703$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2704          ac_cache_corrupted=:
2705        else
2706          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2707$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2708          eval $ac_var=\$ac_old_val
2709        fi
2710        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2711$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2712        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2713$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2714      fi;;
2715  esac
2716  # Pass precious variables to config.status.
2717  if test "$ac_new_set" = set; then
2718    case $ac_new_val in
2719    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2720    *) ac_arg=$ac_var=$ac_new_val ;;
2721    esac
2722    case " $ac_configure_args " in
2723      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2724      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2725    esac
2726  fi
2727done
2728if $ac_cache_corrupted; then
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2732$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2733  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2734fi
2735## -------------------- ##
2736## Main body of script. ##
2737## -------------------- ##
2738
2739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745
2746
2747
2748ac_aux_dir=
2749for ac_dir in autoconf "$srcdir"/autoconf; do
2750  for ac_t in install-sh install.sh shtool; do
2751    if test -f "$ac_dir/$ac_t"; then
2752      ac_aux_dir=$ac_dir
2753      ac_install_sh="$ac_aux_dir/$ac_t -c"
2754      break 2
2755    fi
2756  done
2757done
2758if test -z "$ac_aux_dir"; then
2759  as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2760fi
2761
2762# These three variables are undocumented and unsupported,
2763# and are intended to be withdrawn in a future Autoconf release.
2764# They can cause serious problems if a builder's source tree is in a directory
2765# whose full name contains unusual characters.
2766ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2767ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2768ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2769
2770
2771ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2772
2773
2774am__api_version='1.11'
2775
2776# Find a good install program.  We prefer a C program (faster),
2777# so one script is as good as another.  But avoid the broken or
2778# incompatible versions:
2779# SysV /etc/install, /usr/sbin/install
2780# SunOS /usr/etc/install
2781# IRIX /sbin/install
2782# AIX /bin/install
2783# AmigaOS /C/install, which installs bootblocks on floppy discs
2784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787# OS/2's system install, which has a completely different semantic
2788# ./install, which can be erroneously created by make from ./install.sh.
2789# Reject install programs that cannot install multiple files.
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791$as_echo_n "checking for a BSD-compatible install... " >&6; }
2792if test -z "$INSTALL"; then
2793if test "${ac_cv_path_install+set}" = set; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    # Account for people who put trailing slashes in PATH elements.
2802case $as_dir/ in #((
2803  ./ | .// | /[cC]/* | \
2804  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806  /usr/ucb/* ) ;;
2807  *)
2808    # OSF1 and SCO ODT 3.0 have their own names for install.
2809    # Don't use installbsd from OSF since it installs stuff as root
2810    # by default.
2811    for ac_prog in ginstall scoinst install; do
2812      for ac_exec_ext in '' $ac_executable_extensions; do
2813        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2814          if test $ac_prog = install &&
2815            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816            # AIX install.  It has an incompatible calling convention.
2817            :
2818          elif test $ac_prog = install &&
2819            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820            # program-specific install script used by HP pwplus--don't use.
2821            :
2822          else
2823            rm -rf conftest.one conftest.two conftest.dir
2824            echo one > conftest.one
2825            echo two > conftest.two
2826            mkdir conftest.dir
2827            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828              test -s conftest.one && test -s conftest.two &&
2829              test -s conftest.dir/conftest.one &&
2830              test -s conftest.dir/conftest.two
2831            then
2832              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2833              break 3
2834            fi
2835          fi
2836        fi
2837      done
2838    done
2839    ;;
2840esac
2841
2842  done
2843IFS=$as_save_IFS
2844
2845rm -rf conftest.one conftest.two conftest.dir
2846
2847fi
2848  if test "${ac_cv_path_install+set}" = set; then
2849    INSTALL=$ac_cv_path_install
2850  else
2851    # As a last resort, use the slow shell script.  Don't cache a
2852    # value for INSTALL within a source directory, because that will
2853    # break other packages using the cache if that directory is
2854    # removed, or if the value is a relative name.
2855    INSTALL=$ac_install_sh
2856  fi
2857fi
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859$as_echo "$INSTALL" >&6; }
2860
2861# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862# It thinks the first close brace ends the variable substitution.
2863test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864
2865test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866
2867test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870$as_echo_n "checking whether build environment is sane... " >&6; }
2871# Just in case
2872sleep 1
2873echo timestamp > conftest.file
2874# Reject unsafe characters in $srcdir or the absolute working directory
2875# name.  Accept space and tab only in the latter.
2876am_lf='
2877'
2878case `pwd` in
2879  *[\\\"\#\$\&\'\`$am_lf]*)
2880    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2881esac
2882case $srcdir in
2883  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2884    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2885esac
2886
2887# Do `set' in a subshell so we don't clobber the current shell's
2888# arguments.  Must try -L first in case configure is actually a
2889# symlink; some systems play weird games with the mod time of symlinks
2890# (eg FreeBSD returns the mod time of the symlink's containing
2891# directory).
2892if (
2893   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894   if test "$*" = "X"; then
2895      # -L didn't work.
2896      set X `ls -t "$srcdir/configure" conftest.file`
2897   fi
2898   rm -f conftest.file
2899   if test "$*" != "X $srcdir/configure conftest.file" \
2900      && test "$*" != "X conftest.file $srcdir/configure"; then
2901
2902      # If neither matched, then we have a broken ls.  This can happen
2903      # if, for instance, CONFIG_SHELL is bash and it inherits a
2904      # broken ls alias from the environment.  This has actually
2905      # happened.  Such a system could not be considered "sane".
2906      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2907alias in your environment" "$LINENO" 5
2908   fi
2909
2910   test "$2" = conftest.file
2911   )
2912then
2913   # Ok.
2914   :
2915else
2916   as_fn_error "newly created file is older than distributed files!
2917Check your system clock" "$LINENO" 5
2918fi
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920$as_echo "yes" >&6; }
2921test "$program_prefix" != NONE &&
2922  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2923# Use a double $ so make ignores it.
2924test "$program_suffix" != NONE &&
2925  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2926# Double any \ or $.
2927# By default was `s,x,x', remove it if useless.
2928ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2929program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930
2931# expand $ac_aux_dir to an absolute path
2932am_aux_dir=`cd $ac_aux_dir && pwd`
2933
2934if test x"${MISSING+set}" != xset; then
2935  case $am_aux_dir in
2936  *\ * | *\     *)
2937    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938  *)
2939    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2940  esac
2941fi
2942# Use eval to expand $SHELL
2943if eval "$MISSING --run true"; then
2944  am_missing_run="$MISSING --run "
2945else
2946  am_missing_run=
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2948$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2949fi
2950
2951if test x"${install_sh}" != xset; then
2952  case $am_aux_dir in
2953  *\ * | *\     *)
2954    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955  *)
2956    install_sh="\${SHELL} $am_aux_dir/install-sh"
2957  esac
2958fi
2959
2960# Installed binaries are usually stripped using `strip' when the user
2961# run `make install-strip'.  However `strip' might not be the right
2962# tool to use in cross-compilation environments, therefore Automake
2963# will honor the `STRIP' environment variable to overrule this program.
2964if test "$cross_compiling" != no; then
2965  if test -n "$ac_tool_prefix"; then
2966  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2967set dummy ${ac_tool_prefix}strip; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_STRIP+set}" = set; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  if test -n "$STRIP"; then
2974  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979  IFS=$as_save_IFS
2980  test -z "$as_dir" && as_dir=.
2981    for ac_exec_ext in '' $ac_executable_extensions; do
2982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993STRIP=$ac_cv_prog_STRIP
2994if test -n "$STRIP"; then
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2996$as_echo "$STRIP" >&6; }
2997else
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002
3003fi
3004if test -z "$ac_cv_prog_STRIP"; then
3005  ac_ct_STRIP=$STRIP
3006  # Extract the first word of "strip", so it can be a program name with args.
3007set dummy strip; ac_word=$2
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009$as_echo_n "checking for $ac_word... " >&6; }
3010if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3011  $as_echo_n "(cached) " >&6
3012else
3013  if test -n "$ac_ct_STRIP"; then
3014  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3015else
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019  IFS=$as_save_IFS
3020  test -z "$as_dir" && as_dir=.
3021    for ac_exec_ext in '' $ac_executable_extensions; do
3022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023    ac_cv_prog_ac_ct_STRIP="strip"
3024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025    break 2
3026  fi
3027done
3028  done
3029IFS=$as_save_IFS
3030
3031fi
3032fi
3033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3034if test -n "$ac_ct_STRIP"; then
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3036$as_echo "$ac_ct_STRIP" >&6; }
3037else
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040fi
3041
3042  if test "x$ac_ct_STRIP" = x; then
3043    STRIP=":"
3044  else
3045    case $cross_compiling:$ac_tool_warned in
3046yes:)
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049ac_tool_warned=yes ;;
3050esac
3051    STRIP=$ac_ct_STRIP
3052  fi
3053else
3054  STRIP="$ac_cv_prog_STRIP"
3055fi
3056
3057fi
3058INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3059
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3061$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3062if test -z "$MKDIR_P"; then
3063  if test "${ac_cv_path_mkdir+set}" = set; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_prog in mkdir gmkdir; do
3072         for ac_exec_ext in '' $ac_executable_extensions; do
3073           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3074           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3075             'mkdir (GNU coreutils) '* | \
3076             'mkdir (coreutils) '* | \
3077             'mkdir (fileutils) '4.1*)
3078               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3079               break 3;;
3080           esac
3081         done
3082       done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087
3088  test -d ./--version && rmdir ./--version
3089  if test "${ac_cv_path_mkdir+set}" = set; then
3090    MKDIR_P="$ac_cv_path_mkdir -p"
3091  else
3092    # As a last resort, use the slow shell script.  Don't cache a
3093    # value for MKDIR_P within a source directory, because that will
3094    # break other packages using the cache if that directory is
3095    # removed, or if the value is a relative name.
3096    MKDIR_P="$ac_install_sh -d"
3097  fi
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3100$as_echo "$MKDIR_P" >&6; }
3101
3102mkdir_p="$MKDIR_P"
3103case $mkdir_p in
3104  [\\/$]* | ?:[\\/]*) ;;
3105  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3106esac
3107
3108for ac_prog in gawk mawk nawk awk
3109do
3110  # Extract the first word of "$ac_prog", so it can be a program name with args.
3111set dummy $ac_prog; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if test "${ac_cv_prog_AWK+set}" = set; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$AWK"; then
3118  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127    ac_cv_prog_AWK="$ac_prog"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137AWK=$ac_cv_prog_AWK
3138if test -n "$AWK"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3140$as_echo "$AWK" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147  test -n "$AWK" && break
3148done
3149
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3151$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152set x ${MAKE-make}
3153ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3154if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  cat >conftest.make <<\_ACEOF
3158SHELL = /bin/sh
3159all:
3160        @echo '@@@%%%=$(MAKE)=@@@%%%'
3161_ACEOF
3162# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3163case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164  *@@@%%%=?*=@@@%%%*)
3165    eval ac_cv_prog_make_${ac_make}_set=yes;;
3166  *)
3167    eval ac_cv_prog_make_${ac_make}_set=no;;
3168esac
3169rm -f conftest.make
3170fi
3171if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173$as_echo "yes" >&6; }
3174  SET_MAKE=
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178  SET_MAKE="MAKE=${MAKE-make}"
3179fi
3180
3181rm -rf .tst 2>/dev/null
3182mkdir .tst 2>/dev/null
3183if test -d .tst; then
3184  am__leading_dot=.
3185else
3186  am__leading_dot=_
3187fi
3188rmdir .tst 2>/dev/null
3189
3190if test "`cd $srcdir && pwd`" != "`pwd`"; then
3191  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3192  # is not polluted with repeated "-I."
3193  am__isrc=' -I$(srcdir)'
3194  # test to see if srcdir already configured
3195  if test -f $srcdir/config.status; then
3196    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197  fi
3198fi
3199
3200# test whether we have cygpath
3201if test -z "$CYGPATH_W"; then
3202  if (cygpath --version) >/dev/null 2>/dev/null; then
3203    CYGPATH_W='cygpath -w'
3204  else
3205    CYGPATH_W=echo
3206  fi
3207fi
3208
3209
3210# Define the identity of the package.
3211 PACKAGE='adolc'
3212 VERSION='2.1.9-trunk'
3213
3214
3215cat >>confdefs.h <<_ACEOF
3216#define PACKAGE "$PACKAGE"
3217_ACEOF
3218
3219
3220cat >>confdefs.h <<_ACEOF
3221#define VERSION "$VERSION"
3222_ACEOF
3223
3224# Some tools Automake needs.
3225
3226ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3227
3228
3229AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3230
3231
3232AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3233
3234
3235AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3236
3237
3238MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3239
3240# We need awk for the "check" target.  The system "awk" is bad on
3241# some platforms.
3242# Always define AMTAR for backward compatibility.
3243
3244AMTAR=${AMTAR-"${am_missing_run}tar"}
3245
3246am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3247
3248
3249
3250
3251
3252
3253if test "x$CFLAGS" == x ; then
3254    ac_shell_cflags="not_set"
3255else
3256    ac_shell_cflags="$CFLAGS"
3257fi
3258if test "x$CXXFLAGS" == x ; then
3259    ac_shell_cxxflags="not_set"
3260else
3261    ac_shell_cxxflags="$CXXFLAGS"
3262fi
3263
3264# checks for programs
3265ac_ext=cpp
3266ac_cpp='$CXXCPP $CPPFLAGS'
3267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3270if test -z "$CXX"; then
3271  if test -n "$CCC"; then
3272    CXX=$CCC
3273  else
3274    if test -n "$ac_tool_prefix"; then
3275  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3276  do
3277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if test "${ac_cv_prog_CXX+set}" = set; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if test -n "$CXX"; then
3285  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292    for ac_exec_ext in '' $ac_executable_extensions; do
3293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299  done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304CXX=$ac_cv_prog_CXX
3305if test -n "$CXX"; then
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3307$as_echo "$CXX" >&6; }
3308else
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313
3314    test -n "$CXX" && break
3315  done
3316fi
3317if test -z "$CXX"; then
3318  ac_ct_CXX=$CXX
3319  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3320do
3321  # Extract the first word of "$ac_prog", so it can be a program name with args.
3322set dummy $ac_prog; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$ac_ct_CXX"; then
3329  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338    ac_cv_prog_ac_ct_CXX="$ac_prog"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349if test -n "$ac_ct_CXX"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3351$as_echo "$ac_ct_CXX" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358  test -n "$ac_ct_CXX" && break
3359done
3360
3361  if test "x$ac_ct_CXX" = x; then
3362    CXX="g++"
3363  else
3364    case $cross_compiling:$ac_tool_warned in
3365yes:)
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368ac_tool_warned=yes ;;
3369esac
3370    CXX=$ac_ct_CXX
3371  fi
3372fi
3373
3374  fi
3375fi
3376# Provide some information about the compiler.
3377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3378set X $ac_compile
3379ac_compiler=$2
3380for ac_option in --version -v -V -qversion; do
3381  { { ac_try="$ac_compiler $ac_option >&5"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389  ac_status=$?
3390  if test -s conftest.err; then
3391    sed '10a\
3392... rest of stderr output deleted ...
3393         10q' conftest.err >conftest.er1
3394    cat conftest.er1 >&5
3395  fi
3396  rm -f conftest.er1 conftest.err
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }
3399done
3400
3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412ac_clean_files_save=$ac_clean_files
3413ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3414# Try to create an executable without -o first, disregard a.out.
3415# It will help us diagnose broken compilers, and finding out an intuition
3416# of exeext.
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3418$as_echo_n "checking whether the C++ compiler works... " >&6; }
3419ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420
3421# The possible output files:
3422ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3423
3424ac_rmfiles=
3425for ac_file in $ac_files
3426do
3427  case $ac_file in
3428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3430  esac
3431done
3432rm -f $ac_rmfiles
3433
3434if { { ac_try="$ac_link_default"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
3441  (eval "$ac_link_default") 2>&5
3442  ac_status=$?
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }; then :
3445  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3446# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3447# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3448# so that the user can short-circuit this test for compilers unknown to
3449# Autoconf.
3450for ac_file in $ac_files ''
3451do
3452  test -f "$ac_file" || continue
3453  case $ac_file in
3454    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3455        ;;
3456    [ab].out )
3457        # We found the default executable, but exeext='' is most
3458        # certainly right.
3459        break;;
3460    *.* )
3461        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462        then :; else
3463           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464        fi
3465        # We set ac_cv_exeext here because the later test for it is not
3466        # safe: cross compilers may not add the suffix if given an `-o'
3467        # argument, so we may need to know it at that point already.
3468        # Even if this section looks crufty: it has the advantage of
3469        # actually working.
3470        break;;
3471    * )
3472        break;;
3473  esac
3474done
3475test "$ac_cv_exeext" = no && ac_cv_exeext=
3476
3477else
3478  ac_file=''
3479fi
3480if test -z "$ac_file"; then :
3481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483$as_echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488{ as_fn_set_status 77
3489as_fn_error "C++ compiler cannot create executables
3490See \`config.log' for more details." "$LINENO" 5; }; }
3491else
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493$as_echo "yes" >&6; }
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3496$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498$as_echo "$ac_file" >&6; }
3499ac_exeext=$ac_cv_exeext
3500
3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502ac_clean_files=$ac_clean_files_save
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504$as_echo_n "checking for suffix of executables... " >&6; }
3505if { { ac_try="$ac_link"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_link") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; then :
3516  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3518# work properly (i.e., refer to `conftest.exe'), while it won't with
3519# `rm'.
3520for ac_file in conftest.exe conftest conftest.*; do
3521  test -f "$ac_file" || continue
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525          break;;
3526    * ) break;;
3527  esac
3528done
3529else
3530  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532as_fn_error "cannot compute suffix of executables: cannot compile and link
3533See \`config.log' for more details." "$LINENO" 5; }
3534fi
3535rm -f conftest conftest$ac_cv_exeext
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537$as_echo "$ac_cv_exeext" >&6; }
3538
3539rm -f conftest.$ac_ext
3540EXEEXT=$ac_cv_exeext
3541ac_exeext=$EXEEXT
3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdio.h>
3545int
3546main ()
3547{
3548FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555ac_clean_files="$ac_clean_files conftest.out"
3556# Check that the compiler produces executables we can run.  If not, either
3557# the compiler is broken, or we cross compile.
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559$as_echo_n "checking whether we are cross compiling... " >&6; }
3560if test "$cross_compiling" != yes; then
3561  { { ac_try="$ac_link"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_link") 2>&5
3569  ac_status=$?
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572  if { ac_try='./conftest$ac_cv_exeext'
3573  { { case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_try") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; }; then
3583    cross_compiling=no
3584  else
3585    if test "$cross_compiling" = maybe; then
3586        cross_compiling=yes
3587    else
3588        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error "cannot run C++ compiled programs.
3591If you meant to cross compile, use \`--host'.
3592See \`config.log' for more details." "$LINENO" 5; }
3593    fi
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597$as_echo "$cross_compiling" >&6; }
3598
3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600ac_clean_files=$ac_clean_files_save
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602$as_echo_n "checking for suffix of object files... " >&6; }
3603if test "${ac_cv_objext+set}" = set; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.o conftest.obj
3618if { { ac_try="$ac_compile"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624$as_echo "$ac_try_echo"; } >&5
3625  (eval "$ac_compile") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628  test $ac_status = 0; }; then :
3629  for ac_file in conftest.o conftest.obj conftest.*; do
3630  test -f "$ac_file" || continue;
3631  case $ac_file in
3632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634       break;;
3635  esac
3636done
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error "cannot compute suffix of object files: cannot compile
3644See \`config.log' for more details." "$LINENO" 5; }
3645fi
3646rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649$as_echo "$ac_cv_objext" >&6; }
3650OBJEXT=$ac_cv_objext
3651ac_objext=$OBJEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3653$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3654if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663#ifndef __GNUC__
3664       choke me
3665#endif
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_cxx_try_compile "$LINENO"; then :
3672  ac_compiler_gnu=yes
3673else
3674  ac_compiler_gnu=no
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3681$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3682if test $ac_compiler_gnu = yes; then
3683  GXX=yes
3684else
3685  GXX=
3686fi
3687ac_test_CXXFLAGS=${CXXFLAGS+set}
3688ac_save_CXXFLAGS=$CXXFLAGS
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3690$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3691if test "${ac_cv_prog_cxx_g+set}" = set; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3695   ac_cxx_werror_flag=yes
3696   ac_cv_prog_cxx_g=no
3697   CXXFLAGS="-g"
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_cxx_try_compile "$LINENO"; then :
3710  ac_cv_prog_cxx_g=yes
3711else
3712  CXXFLAGS=""
3713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_cxx_try_compile "$LINENO"; then :
3725
3726else
3727  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3728         CXXFLAGS="-g"
3729         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_cxx_try_compile "$LINENO"; then :
3741  ac_cv_prog_cxx_g=yes
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746fi
3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3751$as_echo "$ac_cv_prog_cxx_g" >&6; }
3752if test "$ac_test_CXXFLAGS" = set; then
3753  CXXFLAGS=$ac_save_CXXFLAGS
3754elif test $ac_cv_prog_cxx_g = yes; then
3755  if test "$GXX" = yes; then
3756    CXXFLAGS="-g -O2"
3757  else
3758    CXXFLAGS="-g"
3759  fi
3760else
3761  if test "$GXX" = yes; then
3762    CXXFLAGS="-O2"
3763  else
3764    CXXFLAGS=
3765  fi
3766fi
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772DEPDIR="${am__leading_dot}deps"
3773
3774ac_config_commands="$ac_config_commands depfiles"
3775
3776
3777am_make=${MAKE-make}
3778cat > confinc << 'END'
3779am__doit:
3780        @echo this is the am__doit target
3781.PHONY: am__doit
3782END
3783# If we don't find an include directive, just comment out the code.
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3785$as_echo_n "checking for style of include used by $am_make... " >&6; }
3786am__include="#"
3787am__quote=
3788_am_result=none
3789# First try GNU make style include.
3790echo "include confinc" > confmf
3791# Ignore all kinds of additional output from `make'.
3792case `$am_make -s -f confmf 2> /dev/null` in #(
3793*the\ am__doit\ target*)
3794  am__include=include
3795  am__quote=
3796  _am_result=GNU
3797  ;;
3798esac
3799# Now try BSD make style include.
3800if test "$am__include" = "#"; then
3801   echo '.include "confinc"' > confmf
3802   case `$am_make -s -f confmf 2> /dev/null` in #(
3803   *the\ am__doit\ target*)
3804     am__include=.include
3805     am__quote="\""
3806     _am_result=BSD
3807     ;;
3808   esac
3809fi
3810
3811
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3813$as_echo "$_am_result" >&6; }
3814rm -f confinc confmf
3815
3816# Check whether --enable-dependency-tracking was given.
3817if test "${enable_dependency_tracking+set}" = set; then :
3818  enableval=$enable_dependency_tracking;
3819fi
3820
3821if test "x$enable_dependency_tracking" != xno; then
3822  am_depcomp="$ac_aux_dir/depcomp"
3823  AMDEPBACKSLASH='\'
3824fi
3825 if test "x$enable_dependency_tracking" != xno; then
3826  AMDEP_TRUE=
3827  AMDEP_FALSE='#'
3828else
3829  AMDEP_TRUE='#'
3830  AMDEP_FALSE=
3831fi
3832
3833
3834
3835depcc="$CXX"  am_compiler_list=
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3838$as_echo_n "checking dependency style of $depcc... " >&6; }
3839if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3843  # We make a subdir and do the tests there.  Otherwise we can end up
3844  # making bogus files that we don't know about and never remove.  For
3845  # instance it was reported that on HP-UX the gcc test will end up
3846  # making a dummy file named `D' -- because `-MD' means `put the output
3847  # in D'.
3848  mkdir conftest.dir
3849  # Copy depcomp to subdir because otherwise we won't find it if we're
3850  # using a relative directory.
3851  cp "$am_depcomp" conftest.dir
3852  cd conftest.dir
3853  # We will build objects and dependencies in a subdirectory because
3854  # it helps to detect inapplicable dependency modes.  For instance
3855  # both Tru64's cc and ICC support -MD to output dependencies as a
3856  # side effect of compilation, but ICC will put the dependencies in
3857  # the current directory while Tru64 will put them in the object
3858  # directory.
3859  mkdir sub
3860
3861  am_cv_CXX_dependencies_compiler_type=none
3862  if test "$am_compiler_list" = ""; then
3863     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3864  fi
3865  am__universal=false
3866  case " $depcc " in #(
3867     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3868     esac
3869
3870  for depmode in $am_compiler_list; do
3871    # Setup a source with many dependencies, because some compilers
3872    # like to wrap large dependency lists on column 80 (with \), and
3873    # we should not choose a depcomp mode which is confused by this.
3874    #
3875    # We need to recreate these files for each test, as the compiler may
3876    # overwrite some of them when testing with obscure command lines.
3877    # This happens at least with the AIX C compiler.
3878    : > sub/conftest.c
3879    for i in 1 2 3 4 5 6; do
3880      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3881      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3882      # Solaris 8's {/usr,}/bin/sh.
3883      touch sub/conftst$i.h
3884    done
3885    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3886
3887    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3888    # mode.  It turns out that the SunPro C++ compiler does not properly
3889    # handle `-M -o', and we need to detect this.  Also, some Intel
3890    # versions had trouble with output in subdirs
3891    am__obj=sub/conftest.${OBJEXT-o}
3892    am__minus_obj="-o $am__obj"
3893    case $depmode in
3894    gcc)
3895      # This depmode causes a compiler race in universal mode.
3896      test "$am__universal" = false || continue
3897      ;;
3898    nosideeffect)
3899      # after this tag, mechanisms are not by side-effect, so they'll
3900      # only be used when explicitly requested
3901      if test "x$enable_dependency_tracking" = xyes; then
3902        continue
3903      else
3904        break
3905      fi
3906      ;;
3907    msvisualcpp | msvcmsys)
3908      # This compiler won't grok `-c -o', but also, the minuso test has
3909      # not run yet.  These depmodes are late enough in the game, and
3910      # so weak that their functioning should not be impacted.
3911      am__obj=conftest.${OBJEXT-o}
3912      am__minus_obj=
3913      ;;
3914    none) break ;;
3915    esac
3916    if depmode=$depmode \
3917       source=sub/conftest.c object=$am__obj \
3918       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3919       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3920         >/dev/null 2>conftest.err &&
3921       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3922       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3923       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3924       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3925      # icc doesn't choke on unknown options, it will just issue warnings
3926      # or remarks (even with -Werror).  So we grep stderr for any message
3927      # that says an option was ignored or not supported.
3928      # When given -MP, icc 7.0 and 7.1 complain thusly:
3929      #   icc: Command line warning: ignoring option '-M'; no argument required
3930      # The diagnosis changed in icc 8.0:
3931      #   icc: Command line remark: option '-MP' not supported
3932      if (grep 'ignoring option' conftest.err ||
3933          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3934        am_cv_CXX_dependencies_compiler_type=$depmode
3935        break
3936      fi
3937    fi
3938  done
3939
3940  cd ..
3941  rm -rf conftest.dir
3942else
3943  am_cv_CXX_dependencies_compiler_type=none
3944fi
3945
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3948$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3949CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3950
3951 if
3952  test "x$enable_dependency_tracking" != xno \
3953  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3954  am__fastdepCXX_TRUE=
3955  am__fastdepCXX_FALSE='#'
3956else
3957  am__fastdepCXX_TRUE='#'
3958  am__fastdepCXX_FALSE=
3959fi
3960
3961
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967if test -n "$ac_tool_prefix"; then
3968  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969set dummy ${ac_tool_prefix}gcc; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if test "${ac_cv_prog_CC+set}" = set; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  if test -n "$CC"; then
3976  ac_cv_prog_CC="$CC" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981  IFS=$as_save_IFS
3982  test -z "$as_dir" && as_dir=.
3983    for ac_exec_ext in '' $ac_executable_extensions; do
3984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987    break 2
3988  fi
3989done
3990  done
3991IFS=$as_save_IFS
3992
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998$as_echo "$CC" >&6; }
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002fi
4003
4004
4005fi
4006if test -z "$ac_cv_prog_CC"; then
4007  ac_ct_CC=$CC
4008  # Extract the first word of "gcc", so it can be a program name with args.
4009set dummy gcc; ac_word=$2
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011$as_echo_n "checking for $ac_word... " >&6; }
4012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013  $as_echo_n "(cached) " >&6
4014else
4015  if test -n "$ac_ct_CC"; then
4016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017else
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH
4020do
4021  IFS=$as_save_IFS
4022  test -z "$as_dir" && as_dir=.
4023    for ac_exec_ext in '' $ac_executable_extensions; do
4024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025    ac_cv_prog_ac_ct_CC="gcc"
4026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027    break 2
4028  fi
4029done
4030  done
4031IFS=$as_save_IFS
4032
4033fi
4034fi
4035ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036if test -n "$ac_ct_CC"; then
4037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038$as_echo "$ac_ct_CC" >&6; }
4039else
4040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
4042fi
4043
4044  if test "x$ac_ct_CC" = x; then
4045    CC=""
4046  else
4047    case $cross_compiling:$ac_tool_warned in
4048yes:)
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4051ac_tool_warned=yes ;;
4052esac
4053    CC=$ac_ct_CC
4054  fi
4055else
4056  CC="$ac_cv_prog_CC"
4057fi
4058
4059if test -z "$CC"; then
4060          if test -n "$ac_tool_prefix"; then
4061    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4062set dummy ${ac_tool_prefix}cc; ac_word=$2
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
4065if test "${ac_cv_prog_CC+set}" = set; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  if test -n "$CC"; then
4069  ac_cv_prog_CC="$CC" # Let the user override the test.
4070else
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074  IFS=$as_save_IFS
4075  test -z "$as_dir" && as_dir=.
4076    for ac_exec_ext in '' $ac_executable_extensions; do
4077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078    ac_cv_prog_CC="${ac_tool_prefix}cc"
4079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080    break 2
4081  fi
4082done
4083  done
4084IFS=$as_save_IFS
4085
4086fi
4087fi
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
4092else
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
4095fi
4096
4097
4098  fi
4099fi
4100if test -z "$CC"; then
4101  # Extract the first word of "cc", so it can be a program name with args.
4102set dummy cc; ac_word=$2
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_CC+set}" = set; then :
4106  $as_echo_n "(cached) " >&6
4107else
4108  if test -n "$CC"; then
4109  ac_cv_prog_CC="$CC" # Let the user override the test.
4110else
4111  ac_prog_rejected=no
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115  IFS=$as_save_IFS
4116  test -z "$as_dir" && as_dir=.
4117    for ac_exec_ext in '' $ac_executable_extensions; do
4118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4120       ac_prog_rejected=yes
4121       continue
4122     fi
4123    ac_cv_prog_CC="cc"
4124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125    break 2
4126  fi
4127done
4128  done
4129IFS=$as_save_IFS
4130
4131if test $ac_prog_rejected = yes; then
4132  # We found a bogon in the path, so make sure we never use it.
4133  set dummy $ac_cv_prog_CC
4134  shift
4135  if test $# != 0; then
4136    # We chose a different compiler from the bogus one.
4137    # However, it has the same basename, so the bogon will be chosen
4138    # first if we set CC to just the basename; use the full file name.
4139    shift
4140    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141  fi
4142fi
4143fi
4144fi
4145CC=$ac_cv_prog_CC
4146if test -n "$CC"; then
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148$as_echo "$CC" >&6; }
4149else
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154
4155fi
4156if test -z "$CC"; then
4157  if test -n "$ac_tool_prefix"; then
4158  for ac_prog in cl.exe
4159  do
4160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
4164if test "${ac_cv_prog_CC+set}" = set; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167  if test -n "$CC"; then
4168  ac_cv_prog_CC="$CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182  done
4183IFS=$as_save_IFS
4184
4185fi
4186fi
4187CC=$ac_cv_prog_CC
4188if test -n "$CC"; then
4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190$as_echo "$CC" >&6; }
4191else
4192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
4194fi
4195
4196
4197    test -n "$CC" && break
4198  done
4199fi
4200if test -z "$CC"; then
4201  ac_ct_CC=$CC
4202  for ac_prog in cl.exe
4203do
4204  # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -n "$ac_ct_CC"; then
4212  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221    ac_cv_prog_ac_ct_CC="$ac_prog"
4222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226  done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232if test -n "$ac_ct_CC"; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234$as_echo "$ac_ct_CC" >&6; }
4235else
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241  test -n "$ac_ct_CC" && break
4242done
4243
4244  if test "x$ac_ct_CC" = x; then
4245    CC=""
4246  else
4247    case $cross_compiling:$ac_tool_warned in
4248yes:)
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251ac_tool_warned=yes ;;
4252esac
4253    CC=$ac_ct_CC
4254  fi
4255fi
4256
4257fi
4258
4259
4260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error "no acceptable C compiler found in \$PATH
4263See \`config.log' for more details." "$LINENO" 5; }
4264
4265# Provide some information about the compiler.
4266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267set X $ac_compile
4268ac_compiler=$2
4269for ac_option in --version -v -V -qversion; do
4270  { { ac_try="$ac_compiler $ac_option >&5"
4271case "(($ac_try" in
4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273  *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276$as_echo "$ac_try_echo"; } >&5
4277  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4278  ac_status=$?
4279  if test -s conftest.err; then
4280    sed '10a\
4281... rest of stderr output deleted ...
4282         10q' conftest.err >conftest.er1
4283    cat conftest.er1 >&5
4284  fi
4285  rm -f conftest.er1 conftest.err
4286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287  test $ac_status = 0; }
4288done
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296/* end confdefs.h.  */
4297
4298int
4299main ()
4300{
4301#ifndef __GNUC__
4302       choke me
4303#endif
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309if ac_fn_c_try_compile "$LINENO"; then :
4310  ac_compiler_gnu=yes
4311else
4312  ac_compiler_gnu=no
4313fi
4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320if test $ac_compiler_gnu = yes; then
4321  GCC=yes
4322else
4323  GCC=
4324fi
4325ac_test_CFLAGS=${CFLAGS+set}
4326ac_save_CFLAGS=$CFLAGS
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328$as_echo_n "checking whether $CC accepts -g... " >&6; }
4329if test "${ac_cv_prog_cc_g+set}" = set; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332  ac_save_c_werror_flag=$ac_c_werror_flag
4333   ac_c_werror_flag=yes
4334   ac_cv_prog_cc_g=no
4335   CFLAGS="-g"
4336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338
4339int
4340main ()
4341{
4342
4343  ;
4344  return 0;
4345}
4346_ACEOF
4347if ac_fn_c_try_compile "$LINENO"; then :
4348  ac_cv_prog_cc_g=yes
4349else
4350  CFLAGS=""
4351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353
4354int
4355main ()
4356{
4357
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362if ac_fn_c_try_compile "$LINENO"; then :
4363
4364else
4365  ac_c_werror_flag=$ac_save_c_werror_flag
4366         CFLAGS="-g"
4367         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_compile "$LINENO"; then :
4379  ac_cv_prog_cc_g=yes
4380fi
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386   ac_c_werror_flag=$ac_save_c_werror_flag
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389$as_echo "$ac_cv_prog_cc_g" >&6; }
4390if test "$ac_test_CFLAGS" = set; then
4391  CFLAGS=$ac_save_CFLAGS
4392elif test $ac_cv_prog_cc_g = yes; then
4393  if test "$GCC" = yes; then
4394    CFLAGS="-g -O2"
4395  else
4396    CFLAGS="-g"
4397  fi
4398else
4399  if test "$GCC" = yes; then
4400    CFLAGS="-O2"
4401  else
4402    CFLAGS=
4403  fi
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  ac_cv_prog_cc_c89=no
4411ac_save_CC=$CC
4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414#include <stdarg.h>
4415#include <stdio.h>
4416#include <sys/types.h>
4417#include <sys/stat.h>
4418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4419struct buf { int x; };
4420FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421static char *e (p, i)
4422     char **p;
4423     int i;
4424{
4425  return p[i];
4426}
4427static char *f (char * (*g) (char **, int), char **p, ...)
4428{
4429  char *s;
4430  va_list v;
4431  va_start (v,p);
4432  s = g (p, va_arg (v,int));
4433  va_end (v);
4434  return s;
4435}
4436
4437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4438   function prototypes and stuff, but not '\xHH' hex character constants.
4439   These don't provoke an error unfortunately, instead are silently treated
4440   as 'x'.  The following induces an error, until -std is added to get
4441   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4442   array size at least.  It's necessary to write '\x00'==0 to get something
4443   that's true only with -std.  */
4444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445
4446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447   inside strings and character constants.  */
4448#define FOO(x) 'x'
4449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
4451int test (int i, double x);
4452struct s1 {int (*f) (int a);};
4453struct s2 {int (*f) (double a);};
4454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455int argc;
4456char **argv;
4457int
4458main ()
4459{
4460return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467do
4468  CC="$ac_save_CC $ac_arg"
4469  if ac_fn_c_try_compile "$LINENO"; then :
4470  ac_cv_prog_cc_c89=$ac_arg
4471fi
4472rm -f core conftest.err conftest.$ac_objext
4473  test "x$ac_cv_prog_cc_c89" != "xno" && break
4474done
4475rm -f conftest.$ac_ext
4476CC=$ac_save_CC
4477
4478fi
4479# AC_CACHE_VAL
4480case "x$ac_cv_prog_cc_c89" in
4481  x)
4482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483$as_echo "none needed" >&6; } ;;
4484  xno)
4485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486$as_echo "unsupported" >&6; } ;;
4487  *)
4488    CC="$CC $ac_cv_prog_cc_c89"
4489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491esac
4492if test "x$ac_cv_prog_cc_c89" != xno; then :
4493
4494fi
4495
4496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502depcc="$CC"   am_compiler_list=
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4505$as_echo_n "checking dependency style of $depcc... " >&6; }
4506if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4510  # We make a subdir and do the tests there.  Otherwise we can end up
4511  # making bogus files that we don't know about and never remove.  For
4512  # instance it was reported that on HP-UX the gcc test will end up
4513  # making a dummy file named `D' -- because `-MD' means `put the output
4514  # in D'.
4515  mkdir conftest.dir
4516  # Copy depcomp to subdir because otherwise we won't find it if we're
4517  # using a relative directory.
4518  cp "$am_depcomp" conftest.dir
4519  cd conftest.dir
4520  # We will build objects and dependencies in a subdirectory because
4521  # it helps to detect inapplicable dependency modes.  For instance
4522  # both Tru64's cc and ICC support -MD to output dependencies as a
4523  # side effect of compilation, but ICC will put the dependencies in
4524  # the current directory while Tru64 will put them in the object
4525  # directory.
4526  mkdir sub
4527
4528  am_cv_CC_dependencies_compiler_type=none
4529  if test "$am_compiler_list" = ""; then
4530     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4531  fi
4532  am__universal=false
4533  case " $depcc " in #(
4534     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4535     esac
4536
4537  for depmode in $am_compiler_list; do
4538    # Setup a source with many dependencies, because some compilers
4539    # like to wrap large dependency lists on column 80 (with \), and
4540    # we should not choose a depcomp mode which is confused by this.
4541    #
4542    # We need to recreate these files for each test, as the compiler may
4543    # overwrite some of them when testing with obscure command lines.
4544    # This happens at least with the AIX C compiler.
4545    : > sub/conftest.c
4546    for i in 1 2 3 4 5 6; do
4547      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4548      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4549      # Solaris 8's {/usr,}/bin/sh.
4550      touch sub/conftst$i.h
4551    done
4552    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4553
4554    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4555    # mode.  It turns out that the SunPro C++ compiler does not properly
4556    # handle `-M -o', and we need to detect this.  Also, some Intel
4557    # versions had trouble with output in subdirs
4558    am__obj=sub/conftest.${OBJEXT-o}
4559    am__minus_obj="-o $am__obj"
4560    case $depmode in
4561    gcc)
4562      # This depmode causes a compiler race in universal mode.
4563      test "$am__universal" = false || continue
4564      ;;
4565    nosideeffect)
4566      # after this tag, mechanisms are not by side-effect, so they'll
4567      # only be used when explicitly requested
4568      if test "x$enable_dependency_tracking" = xyes; then
4569        continue
4570      else
4571        break
4572      fi
4573      ;;
4574    msvisualcpp | msvcmsys)
4575      # This compiler won't grok `-c -o', but also, the minuso test has
4576      # not run yet.  These depmodes are late enough in the game, and
4577      # so weak that their functioning should not be impacted.
4578      am__obj=conftest.${OBJEXT-o}
4579      am__minus_obj=
4580      ;;
4581    none) break ;;
4582    esac
4583    if depmode=$depmode \
4584       source=sub/conftest.c object=$am__obj \
4585       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4586       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4587         >/dev/null 2>conftest.err &&
4588       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4589       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4590       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4591       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4592      # icc doesn't choke on unknown options, it will just issue warnings
4593      # or remarks (even with -Werror).  So we grep stderr for any message
4594      # that says an option was ignored or not supported.
4595      # When given -MP, icc 7.0 and 7.1 complain thusly:
4596      #   icc: Command line warning: ignoring option '-M'; no argument required
4597      # The diagnosis changed in icc 8.0:
4598      #   icc: Command line remark: option '-MP' not supported
4599      if (grep 'ignoring option' conftest.err ||
4600          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4601        am_cv_CC_dependencies_compiler_type=$depmode
4602        break
4603      fi
4604    fi
4605  done
4606
4607  cd ..
4608  rm -rf conftest.dir
4609else
4610  am_cv_CC_dependencies_compiler_type=none
4611fi
4612
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4615$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4617
4618 if
4619  test "x$enable_dependency_tracking" != xno \
4620  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4621  am__fastdepCC_TRUE=
4622  am__fastdepCC_FALSE='#'
4623else
4624  am__fastdepCC_TRUE='#'
4625  am__fastdepCC_FALSE=
4626fi
4627
4628
4629ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4635$as_echo_n "checking how to run the C preprocessor... " >&6; }
4636# On Suns, sometimes $CPP names a directory.
4637if test -n "$CPP" && test -d "$CPP"; then
4638  CPP=
4639fi
4640if test -z "$CPP"; then
4641  if test "${ac_cv_prog_CPP+set}" = set; then :
4642  $as_echo_n "(cached) " >&6
4643else
4644      # Double quotes because CPP needs to be expanded
4645    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4646    do
4647      ac_preproc_ok=false
4648for ac_c_preproc_warn_flag in '' yes
4649do
4650  # Use a header file that comes with gcc, so configuring glibc
4651  # with a fresh cross-compiler works.
4652  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4653  # <limits.h> exists even on freestanding compilers.
4654  # On the NeXT, cc -E runs the code through the compiler's parser,
4655  # not just through cpp. "Syntax error" is here to catch this case.
4656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h.  */
4658#ifdef __STDC__
4659# include <limits.h>
4660#else
4661# include <assert.h>
4662#endif
4663                     Syntax error
4664_ACEOF
4665if ac_fn_c_try_cpp "$LINENO"; then :
4666
4667else
4668  # Broken: fails on valid input.
4669continue
4670fi
4671rm -f conftest.err conftest.$ac_ext
4672
4673  # OK, works on sane cases.  Now check whether nonexistent headers
4674  # can be detected and how.
4675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677#include <ac_nonexistent.h>
4678_ACEOF
4679if ac_fn_c_try_cpp "$LINENO"; then :
4680  # Broken: success on invalid input.
4681continue
4682else
4683  # Passes both tests.
4684ac_preproc_ok=:
4685break
4686fi
4687rm -f conftest.err conftest.$ac_ext
4688
4689done
4690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4691rm -f conftest.err conftest.$ac_ext
4692if $ac_preproc_ok; then :
4693  break
4694fi
4695
4696    done
4697    ac_cv_prog_CPP=$CPP
4698
4699fi
4700  CPP=$ac_cv_prog_CPP
4701else
4702  ac_cv_prog_CPP=$CPP
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4705$as_echo "$CPP" >&6; }
4706ac_preproc_ok=false
4707for ac_c_preproc_warn_flag in '' yes
4708do
4709  # Use a header file that comes with gcc, so configuring glibc
4710  # with a fresh cross-compiler works.
4711  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712  # <limits.h> exists even on freestanding compilers.
4713  # On the NeXT, cc -E runs the code through the compiler's parser,
4714  # not just through cpp. "Syntax error" is here to catch this case.
4715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h.  */
4717#ifdef __STDC__
4718# include <limits.h>
4719#else
4720# include <assert.h>
4721#endif
4722                     Syntax error
4723_ACEOF
4724if ac_fn_c_try_cpp "$LINENO"; then :
4725
4726else
4727  # Broken: fails on valid input.
4728continue
4729fi
4730rm -f conftest.err conftest.$ac_ext
4731
4732  # OK, works on sane cases.  Now check whether nonexistent headers
4733  # can be detected and how.
4734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736#include <ac_nonexistent.h>
4737_ACEOF
4738if ac_fn_c_try_cpp "$LINENO"; then :
4739  # Broken: success on invalid input.
4740continue
4741else
4742  # Passes both tests.
4743ac_preproc_ok=:
4744break
4745fi
4746rm -f conftest.err conftest.$ac_ext
4747
4748done
4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750rm -f conftest.err conftest.$ac_ext
4751if $ac_preproc_ok; then :
4752
4753else
4754  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4756as_fn_error "C preprocessor \"$CPP\" fails sanity check
4757See \`config.log' for more details." "$LINENO" 5; }
4758fi
4759
4760ac_ext=c
4761ac_cpp='$CPP $CPPFLAGS'
4762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4768$as_echo_n "checking whether ln -s works... " >&6; }
4769LN_S=$as_ln_s
4770if test "$LN_S" = "ln -s"; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4772$as_echo "yes" >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4775$as_echo "no, using $LN_S" >&6; }
4776fi
4777
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4779$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4780set x ${MAKE-make}
4781ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4782if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  cat >conftest.make <<\_ACEOF
4786SHELL = /bin/sh
4787all:
4788        @echo '@@@%%%=$(MAKE)=@@@%%%'
4789_ACEOF
4790# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4791case `${MAKE-make} -f conftest.make 2>/dev/null` in
4792  *@@@%%%=?*=@@@%%%*)
4793    eval ac_cv_prog_make_${ac_make}_set=yes;;
4794  *)
4795    eval ac_cv_prog_make_${ac_make}_set=no;;
4796esac
4797rm -f conftest.make
4798fi
4799if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801$as_echo "yes" >&6; }
4802  SET_MAKE=
4803else
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806  SET_MAKE="MAKE=${MAKE-make}"
4807fi
4808
4809# Make sure we can run config.sub.
4810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4811  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4814$as_echo_n "checking build system type... " >&6; }
4815if test "${ac_cv_build+set}" = set; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  ac_build_alias=$build_alias
4819test "x$ac_build_alias" = x &&
4820  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4821test "x$ac_build_alias" = x &&
4822  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4823ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4824  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4825
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828$as_echo "$ac_cv_build" >&6; }
4829case $ac_cv_build in
4830*-*-*) ;;
4831*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4832esac
4833build=$ac_cv_build
4834ac_save_IFS=$IFS; IFS='-'
4835set x $ac_cv_build
4836shift
4837build_cpu=$1
4838build_vendor=$2
4839shift; shift
4840# Remember, the first character of IFS is used to create $*,
4841# except with old shells:
4842build_os=$*
4843IFS=$ac_save_IFS
4844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
4846
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848$as_echo_n "checking host system type... " >&6; }
4849if test "${ac_cv_host+set}" = set; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  if test "x$host_alias" = x; then
4853  ac_cv_host=$ac_cv_build
4854else
4855  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4856    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4857fi
4858
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4861$as_echo "$ac_cv_host" >&6; }
4862case $ac_cv_host in
4863*-*-*) ;;
4864*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4865esac
4866host=$ac_cv_host
4867ac_save_IFS=$IFS; IFS='-'
4868set x $ac_cv_host
4869shift
4870host_cpu=$1
4871host_vendor=$2
4872shift; shift
4873# Remember, the first character of IFS is used to create $*,
4874# except with old shells:
4875host_os=$*
4876IFS=$ac_save_IFS
4877case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4878
4879
4880enable_win32_dll=yes
4881
4882case $host in
4883*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4884  if test -n "$ac_tool_prefix"; then
4885  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4886set dummy ${ac_tool_prefix}as; ac_word=$2
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if test "${ac_cv_prog_AS+set}" = set; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  if test -n "$AS"; then
4893  ac_cv_prog_AS="$AS" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_exec_ext in '' $ac_executable_extensions; do
4901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902    ac_cv_prog_AS="${ac_tool_prefix}as"
4903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907  done
4908IFS=$as_save_IFS
4909
4910fi
4911fi
4912AS=$ac_cv_prog_AS
4913if test -n "$AS"; then
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4915$as_echo "$AS" >&6; }
4916else
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919fi
4920
4921
4922fi
4923if test -z "$ac_cv_prog_AS"; then
4924  ac_ct_AS=$AS
4925  # Extract the first word of "as", so it can be a program name with args.
4926set dummy as; ac_word=$2
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
4929if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  if test -n "$ac_ct_AS"; then
4933  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938  IFS=$as_save_IFS
4939  test -z "$as_dir" && as_dir=.
4940    for ac_exec_ext in '' $ac_executable_extensions; do
4941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942    ac_cv_prog_ac_ct_AS="as"
4943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944    break 2
4945  fi
4946done
4947  done
4948IFS=$as_save_IFS
4949
4950fi
4951fi
4952ac_ct_AS=$ac_cv_prog_ac_ct_AS
4953if test -n "$ac_ct_AS"; then
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4955$as_echo "$ac_ct_AS" >&6; }
4956else
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961  if test "x$ac_ct_AS" = x; then
4962    AS="false"
4963  else
4964    case $cross_compiling:$ac_tool_warned in
4965yes:)
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968ac_tool_warned=yes ;;
4969esac
4970    AS=$ac_ct_AS
4971  fi
4972else
4973  AS="$ac_cv_prog_AS"
4974fi
4975
4976  if test -n "$ac_tool_prefix"; then
4977  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4978set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
4981if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984  if test -n "$DLLTOOL"; then
4985  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990  IFS=$as_save_IFS
4991  test -z "$as_dir" && as_dir=.
4992    for ac_exec_ext in '' $ac_executable_extensions; do
4993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996    break 2
4997  fi
4998done
4999  done
5000IFS=$as_save_IFS
5001
5002fi
5003fi
5004DLLTOOL=$ac_cv_prog_DLLTOOL
5005if test -n "$DLLTOOL"; then
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5007$as_echo "$DLLTOOL" >&6; }
5008else
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013
5014fi
5015if test -z "$ac_cv_prog_DLLTOOL"; then
5016  ac_ct_DLLTOOL=$DLLTOOL
5017  # Extract the first word of "dlltool", so it can be a program name with args.
5018set dummy dlltool; ac_word=$2
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
5021if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5022  $as_echo_n "(cached) " >&6
5023else
5024  if test -n "$ac_ct_DLLTOOL"; then
5025  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030  IFS=$as_save_IFS
5031  test -z "$as_dir" && as_dir=.
5032    for ac_exec_ext in '' $ac_executable_extensions; do
5033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036    break 2
5037  fi
5038done
5039  done
5040IFS=$as_save_IFS
5041
5042fi
5043fi
5044ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5045if test -n "$ac_ct_DLLTOOL"; then
5046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5047$as_echo "$ac_ct_DLLTOOL" >&6; }
5048else
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050$as_echo "no" >&6; }
5051fi
5052
5053  if test "x$ac_ct_DLLTOOL" = x; then
5054    DLLTOOL="false"
5055  else
5056    case $cross_compiling:$ac_tool_warned in
5057yes:)
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060ac_tool_warned=yes ;;
5061esac
5062    DLLTOOL=$ac_ct_DLLTOOL
5063  fi
5064else
5065  DLLTOOL="$ac_cv_prog_DLLTOOL"
5066fi
5067
5068  if test -n "$ac_tool_prefix"; then
5069  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5070set dummy ${ac_tool_prefix}objdump; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
5073if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  if test -n "$OBJDUMP"; then
5077  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5078else
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082  IFS=$as_save_IFS
5083  test -z "$as_dir" && as_dir=.
5084    for ac_exec_ext in '' $ac_executable_extensions; do
5085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088    break 2
5089  fi
5090done
5091  done
5092IFS=$as_save_IFS
5093
5094fi
5095fi
5096OBJDUMP=$ac_cv_prog_OBJDUMP
5097if test -n "$OBJDUMP"; then
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5099$as_echo "$OBJDUMP" >&6; }
5100else
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104
5105
5106fi
5107if test -z "$ac_cv_prog_OBJDUMP"; then
5108  ac_ct_OBJDUMP=$OBJDUMP
5109  # Extract the first word of "objdump", so it can be a program name with args.
5110set dummy objdump; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$ac_ct_OBJDUMP"; then
5117  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5137if test -n "$ac_ct_OBJDUMP"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5139$as_echo "$ac_ct_OBJDUMP" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145  if test "x$ac_ct_OBJDUMP" = x; then
5146    OBJDUMP="false"
5147  else
5148    case $cross_compiling:$ac_tool_warned in
5149yes:)
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152ac_tool_warned=yes ;;
5153esac
5154    OBJDUMP=$ac_ct_OBJDUMP
5155  fi
5156else
5157  OBJDUMP="$ac_cv_prog_OBJDUMP"
5158fi
5159
5160  ;;
5161esac
5162
5163test -z "$AS" && AS=as
5164
5165
5166
5167
5168
5169test -z "$DLLTOOL" && DLLTOOL=dlltool
5170
5171
5172
5173
5174
5175test -z "$OBJDUMP" && OBJDUMP=objdump
5176
5177
5178
5179
5180
5181
5182
5183case `pwd` in
5184  *\ * | *\     *)
5185    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5186$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5187esac
5188
5189
5190
5191macro_version='2.2.6b'
5192macro_revision='1.3017'
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206ltmain="$ac_aux_dir/ltmain.sh"
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5209$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5210if test "${ac_cv_path_SED+set}" = set; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5214     for ac_i in 1 2 3 4 5 6 7; do
5215       ac_script="$ac_script$as_nl$ac_script"
5216     done
5217     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5218     { ac_script=; unset ac_script;}
5219     if test -z "$SED"; then
5220  ac_path_SED_found=false
5221  # Loop through the user's path and test for each of PROGNAME-LIST
5222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225  IFS=$as_save_IFS
5226  test -z "$as_dir" && as_dir=.
5227    for ac_prog in sed gsed; do
5228    for ac_exec_ext in '' $ac_executable_extensions; do
5229      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5230      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5231# Check for GNU ac_path_SED and select it if it is found.
5232  # Check for GNU $ac_path_SED
5233case `"$ac_path_SED" --version 2>&1` in
5234*GNU*)
5235  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5236*)
5237  ac_count=0
5238  $as_echo_n 0123456789 >"conftest.in"
5239  while :
5240  do
5241    cat "conftest.in" "conftest.in" >"conftest.tmp"
5242    mv "conftest.tmp" "conftest.in"
5243    cp "conftest.in" "conftest.nl"
5244    $as_echo '' >> "conftest.nl"
5245    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5246    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5247    as_fn_arith $ac_count + 1 && ac_count=$as_val
5248    if test $ac_count -gt ${ac_path_SED_max-0}; then
5249      # Best one so far, save it but keep looking for a better one
5250      ac_cv_path_SED="$ac_path_SED"
5251      ac_path_SED_max=$ac_count
5252    fi
5253    # 10*(2^10) chars as input seems more than enough
5254    test $ac_count -gt 10 && break
5255  done
5256  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5257esac
5258
5259      $ac_path_SED_found && break 3
5260    done
5261  done
5262  done
5263IFS=$as_save_IFS
5264  if test -z "$ac_cv_path_SED"; then
5265    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5266  fi
5267else
5268  ac_cv_path_SED=$SED
5269fi
5270
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5273$as_echo "$ac_cv_path_SED" >&6; }
5274 SED="$ac_cv_path_SED"
5275  rm -f conftest.sed
5276
5277test -z "$SED" && SED=sed
5278Xsed="$SED -e 1s/^X//"
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5291$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5292if test "${ac_cv_path_GREP+set}" = set; then :
5293  $as_echo_n "(cached) " >&6
5294else
5295  if test -z "$GREP"; then
5296  ac_path_GREP_found=false
5297  # Loop through the user's path and test for each of PROGNAME-LIST
5298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300do
5301  IFS=$as_save_IFS
5302  test -z "$as_dir" && as_dir=.
5303    for ac_prog in grep ggrep; do
5304    for ac_exec_ext in '' $ac_executable_extensions; do
5305      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5306      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5307# Check for GNU ac_path_GREP and select it if it is found.
5308  # Check for GNU $ac_path_GREP
5309case `"$ac_path_GREP" --version 2>&1` in
5310*GNU*)
5311  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5312*)
5313  ac_count=0
5314  $as_echo_n 0123456789 >"conftest.in"
5315  while :
5316  do
5317    cat "conftest.in" "conftest.in" >"conftest.tmp"
5318    mv "conftest.tmp" "conftest.in"
5319    cp "conftest.in" "conftest.nl"
5320    $as_echo 'GREP' >> "conftest.nl"
5321    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323    as_fn_arith $ac_count + 1 && ac_count=$as_val
5324    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5325      # Best one so far, save it but keep looking for a better one
5326      ac_cv_path_GREP="$ac_path_GREP"
5327      ac_path_GREP_max=$ac_count
5328    fi
5329    # 10*(2^10) chars as input seems more than enough
5330    test $ac_count -gt 10 && break
5331  done
5332  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333esac
5334
5335      $ac_path_GREP_found && break 3
5336    done
5337  done
5338  done
5339IFS=$as_save_IFS
5340  if test -z "$ac_cv_path_GREP"; then
5341    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5342  fi
5343else
5344  ac_cv_path_GREP=$GREP
5345fi
5346
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5349$as_echo "$ac_cv_path_GREP" >&6; }
5350 GREP="$ac_cv_path_GREP"
5351
5352
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5354$as_echo_n "checking for egrep... " >&6; }
5355if test "${ac_cv_path_EGREP+set}" = set; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5359   then ac_cv_path_EGREP="$GREP -E"
5360   else
5361     if test -z "$EGREP"; then
5362  ac_path_EGREP_found=false
5363  # Loop through the user's path and test for each of PROGNAME-LIST
5364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366do
5367  IFS=$as_save_IFS
5368  test -z "$as_dir" && as_dir=.
5369    for ac_prog in egrep; do
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5372      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5373# Check for GNU ac_path_EGREP and select it if it is found.
5374  # Check for GNU $ac_path_EGREP
5375case `"$ac_path_EGREP" --version 2>&1` in
5376*GNU*)
5377  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5378*)
5379  ac_count=0
5380  $as_echo_n 0123456789 >"conftest.in"
5381  while :
5382  do
5383    cat "conftest.in" "conftest.in" >"conftest.tmp"
5384    mv "conftest.tmp" "conftest.in"
5385    cp "conftest.in" "conftest.nl"
5386    $as_echo 'EGREP' >> "conftest.nl"
5387    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5389    as_fn_arith $ac_count + 1 && ac_count=$as_val
5390    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5391      # Best one so far, save it but keep looking for a better one
5392      ac_cv_path_EGREP="$ac_path_EGREP"
5393      ac_path_EGREP_max=$ac_count
5394    fi
5395    # 10*(2^10) chars as input seems more than enough
5396    test $ac_count -gt 10 && break
5397  done
5398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5399esac
5400
5401      $ac_path_EGREP_found && break 3
5402    done
5403  done
5404  done
5405IFS=$as_save_IFS
5406  if test -z "$ac_cv_path_EGREP"; then
5407    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5408  fi
5409else
5410  ac_cv_path_EGREP=$EGREP
5411fi
5412
5413   fi
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5416$as_echo "$ac_cv_path_EGREP" >&6; }
5417 EGREP="$ac_cv_path_EGREP"
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5421$as_echo_n "checking for fgrep... " >&6; }
5422if test "${ac_cv_path_FGREP+set}" = set; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5426   then ac_cv_path_FGREP="$GREP -F"
5427   else
5428     if test -z "$FGREP"; then
5429  ac_path_FGREP_found=false
5430  # Loop through the user's path and test for each of PROGNAME-LIST
5431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436    for ac_prog in fgrep; do
5437    for ac_exec_ext in '' $ac_executable_extensions; do
5438      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5439      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5440# Check for GNU ac_path_FGREP and select it if it is found.
5441  # Check for GNU $ac_path_FGREP
5442case `"$ac_path_FGREP" --version 2>&1` in
5443*GNU*)
5444  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5445*)
5446  ac_count=0
5447  $as_echo_n 0123456789 >"conftest.in"
5448  while :
5449  do
5450    cat "conftest.in" "conftest.in" >"conftest.tmp"
5451    mv "conftest.tmp" "conftest.in"
5452    cp "conftest.in" "conftest.nl"
5453    $as_echo 'FGREP' >> "conftest.nl"
5454    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456    as_fn_arith $ac_count + 1 && ac_count=$as_val
5457    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5458      # Best one so far, save it but keep looking for a better one
5459      ac_cv_path_FGREP="$ac_path_FGREP"
5460      ac_path_FGREP_max=$ac_count
5461    fi
5462    # 10*(2^10) chars as input seems more than enough
5463    test $ac_count -gt 10 && break
5464  done
5465  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466esac
5467
5468      $ac_path_FGREP_found && break 3
5469    done
5470  done
5471  done
5472IFS=$as_save_IFS
5473  if test -z "$ac_cv_path_FGREP"; then
5474    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5475  fi
5476else
5477  ac_cv_path_FGREP=$FGREP
5478fi
5479
5480   fi
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5483$as_echo "$ac_cv_path_FGREP" >&6; }
5484 FGREP="$ac_cv_path_FGREP"
5485
5486
5487test -z "$GREP" && GREP=grep
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507# Check whether --with-gnu-ld was given.
5508if test "${with_gnu_ld+set}" = set; then :
5509  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5510else
5511  with_gnu_ld=no
5512fi
5513
5514ac_prog=ld
5515if test "$GCC" = yes; then
5516  # Check if gcc -print-prog-name=ld gives a path.
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5518$as_echo_n "checking for ld used by $CC... " >&6; }
5519  case $host in
5520  *-*-mingw*)
5521    # gcc leaves a trailing carriage return which upsets mingw
5522    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5523  *)
5524    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5525  esac
5526  case $ac_prog in
5527    # Accept absolute paths.
5528    [\\/]* | ?:[\\/]*)
5529      re_direlt='/[^/][^/]*/\.\./'
5530      # Canonicalize the pathname of ld
5531      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5532      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5533        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5534      done
5535      test -z "$LD" && LD="$ac_prog"
5536      ;;
5537  "")
5538    # If it fails, then pretend we aren't using GCC.
5539    ac_prog=ld
5540    ;;
5541  *)
5542    # If it is relative, then search for the first ld in PATH.
5543    with_gnu_ld=unknown
5544    ;;
5545  esac
5546elif test "$with_gnu_ld" = yes; then
5547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5548$as_echo_n "checking for GNU ld... " >&6; }
5549else
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5551$as_echo_n "checking for non-GNU ld... " >&6; }
5552fi
5553if test "${lt_cv_path_LD+set}" = set; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  if test -z "$LD"; then
5557  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5558  for ac_dir in $PATH; do
5559    IFS="$lt_save_ifs"
5560    test -z "$ac_dir" && ac_dir=.
5561    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5562      lt_cv_path_LD="$ac_dir/$ac_prog"
5563      # Check to see if the program is GNU ld.  I'd rather use --version,
5564      # but apparently some variants of GNU ld only accept -v.
5565      # Break only if it was the GNU/non-GNU ld that we prefer.
5566      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5567      *GNU* | *'with BFD'*)
5568        test "$with_gnu_ld" != no && break
5569        ;;
5570      *)
5571        test "$with_gnu_ld" != yes && break
5572        ;;
5573      esac
5574    fi
5575  done
5576  IFS="$lt_save_ifs"
5577else
5578  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5579fi
5580fi
5581
5582LD="$lt_cv_path_LD"
5583if test -n "$LD"; then
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5585$as_echo "$LD" >&6; }
5586else
5587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5589fi
5590test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5593if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5597case `$LD -v 2>&1 </dev/null` in
5598*GNU* | *'with BFD'*)
5599  lt_cv_prog_gnu_ld=yes
5600  ;;
5601*)
5602  lt_cv_prog_gnu_ld=no
5603  ;;
5604esac
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5607$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5608with_gnu_ld=$lt_cv_prog_gnu_ld
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5619$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5620if test "${lt_cv_path_NM+set}" = set; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  if test -n "$NM"; then
5624  # Let the user override the test.
5625  lt_cv_path_NM="$NM"
5626else
5627  lt_nm_to_check="${ac_tool_prefix}nm"
5628  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629    lt_nm_to_check="$lt_nm_to_check nm"
5630  fi
5631  for lt_tmp_nm in $lt_nm_to_check; do
5632    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634      IFS="$lt_save_ifs"
5635      test -z "$ac_dir" && ac_dir=.
5636      tmp_nm="$ac_dir/$lt_tmp_nm"
5637      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638        # Check to see if the nm accepts a BSD-compat flag.
5639        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640        #   nm: unknown option "B" ignored
5641        # Tru64's nm complains that /dev/null is an invalid object file
5642        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643        */dev/null* | *'Invalid file or object type'*)
5644          lt_cv_path_NM="$tmp_nm -B"
5645          break
5646          ;;
5647        *)
5648          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5649          */dev/null*)
5650            lt_cv_path_NM="$tmp_nm -p"
5651            break
5652            ;;
5653          *)
5654            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655            continue # so that we can try to find one that supports BSD flags
5656            ;;
5657          esac
5658          ;;
5659        esac
5660      fi
5661    done
5662    IFS="$lt_save_ifs"
5663  done
5664  : ${lt_cv_path_NM=no}
5665fi
5666fi
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5668$as_echo "$lt_cv_path_NM" >&6; }
5669if test "$lt_cv_path_NM" != "no"; then
5670  NM="$lt_cv_path_NM"
5671else
5672  # Didn't find any BSD compatible name lister, look for dumpbin.
5673  if test -n "$ac_tool_prefix"; then
5674  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5675  do
5676    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$DUMPBIN"; then
5684  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691    for ac_exec_ext in '' $ac_executable_extensions; do
5692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698  done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703DUMPBIN=$ac_cv_prog_DUMPBIN
5704if test -n "$DUMPBIN"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5706$as_echo "$DUMPBIN" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713    test -n "$DUMPBIN" && break
5714  done
5715fi
5716if test -z "$DUMPBIN"; then
5717  ac_ct_DUMPBIN=$DUMPBIN
5718  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5719do
5720  # Extract the first word of "$ac_prog", so it can be a program name with args.
5721set dummy $ac_prog; ac_word=$2
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723$as_echo_n "checking for $ac_word... " >&6; }
5724if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  if test -n "$ac_ct_DUMPBIN"; then
5728  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733  IFS=$as_save_IFS
5734  test -z "$as_dir" && as_dir=.
5735    for ac_exec_ext in '' $ac_executable_extensions; do
5736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739    break 2
5740  fi
5741done
5742  done
5743IFS=$as_save_IFS
5744
5745fi
5746fi
5747ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5748if test -n "$ac_ct_DUMPBIN"; then
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5750$as_echo "$ac_ct_DUMPBIN" >&6; }
5751else
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754fi
5755
5756
5757  test -n "$ac_ct_DUMPBIN" && break
5758done
5759
5760  if test "x$ac_ct_DUMPBIN" = x; then
5761    DUMPBIN=":"
5762  else
5763    case $cross_compiling:$ac_tool_warned in
5764yes:)
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767ac_tool_warned=yes ;;
5768esac
5769    DUMPBIN=$ac_ct_DUMPBIN
5770  fi
5771fi
5772
5773
5774  if test "$DUMPBIN" != ":"; then
5775    NM="$DUMPBIN"
5776  fi
5777fi
5778test -z "$NM" && NM=nm
5779
5780
5781
5782
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5786$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5787if test "${lt_cv_nm_interface+set}" = set; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790  lt_cv_nm_interface="BSD nm"
5791  echo "int some_variable = 0;" > conftest.$ac_ext
5792  (eval echo "\"\$as_me:5792: $ac_compile\"" >&5)
5793  (eval "$ac_compile" 2>conftest.err)
5794  cat conftest.err >&5
5795  (eval echo "\"\$as_me:5795: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5796  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5797  cat conftest.err >&5
5798  (eval echo "\"\$as_me:5798: output\"" >&5)
5799  cat conftest.out >&5
5800  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5801    lt_cv_nm_interface="MS dumpbin"
5802  fi
5803  rm -f conftest*
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5806$as_echo "$lt_cv_nm_interface" >&6; }
5807
5808# find the maximum length of command line arguments
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5810$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5811if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5812  $as_echo_n "(cached) " >&6
5813else
5814    i=0
5815  teststring="ABCD"
5816
5817  case $build_os in
5818  msdosdjgpp*)
5819    # On DJGPP, this test can blow up pretty badly due to problems in libc
5820    # (any single argument exceeding 2000 bytes causes a buffer overrun
5821    # during glob expansion).  Even if it were fixed, the result of this
5822    # check would be larger than it should be.
5823    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5824    ;;
5825
5826  gnu*)
5827    # Under GNU Hurd, this test is not required because there is
5828    # no limit to the length of command line arguments.
5829    # Libtool will interpret -1 as no limit whatsoever
5830    lt_cv_sys_max_cmd_len=-1;
5831    ;;
5832
5833  cygwin* | mingw* | cegcc*)
5834    # On Win9x/ME, this test blows up -- it succeeds, but takes
5835    # about 5 minutes as the teststring grows exponentially.
5836    # Worse, since 9x/ME are not pre-emptively multitasking,
5837    # you end up with a "frozen" computer, even though with patience
5838    # the test eventually succeeds (with a max line length of 256k).
5839    # Instead, let's just punt: use the minimum linelength reported by
5840    # all of the supported platforms: 8192 (on NT/2K/XP).
5841    lt_cv_sys_max_cmd_len=8192;
5842    ;;
5843
5844  amigaos*)
5845    # On AmigaOS with pdksh, this test takes hours, literally.
5846    # So we just punt and use a minimum line length of 8192.
5847    lt_cv_sys_max_cmd_len=8192;
5848    ;;
5849
5850  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5851    # This has been around since 386BSD, at least.  Likely further.
5852    if test -x /sbin/sysctl; then
5853      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5854    elif test -x /usr/sbin/sysctl; then
5855      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5856    else
5857      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5858    fi
5859    # And add a safety zone
5860    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5862    ;;
5863
5864  interix*)
5865    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5866    lt_cv_sys_max_cmd_len=196608
5867    ;;
5868
5869  osf*)
5870    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5871    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5872    # nice to cause kernel panics so lets avoid the loop below.
5873    # First set a reasonable default.
5874    lt_cv_sys_max_cmd_len=16384
5875    #
5876    if test -x /sbin/sysconfig; then
5877      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5878        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5879      esac
5880    fi
5881    ;;
5882  sco3.2v5*)
5883    lt_cv_sys_max_cmd_len=102400
5884    ;;
5885  sysv5* | sco5v6* | sysv4.2uw2*)
5886    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5887    if test -n "$kargmax"; then
5888      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5889    else
5890      lt_cv_sys_max_cmd_len=32768
5891    fi
5892    ;;
5893  *)
5894    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5895    if test -n "$lt_cv_sys_max_cmd_len"; then
5896      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898    else
5899      # Make teststring a little bigger before we do anything with it.
5900      # a 1K string should be a reasonable start.
5901      for i in 1 2 3 4 5 6 7 8 ; do
5902        teststring=$teststring$teststring
5903      done
5904      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5905      # If test is not a shell built-in, we'll probably end up computing a
5906      # maximum length that is only half of the actual maximum length, but
5907      # we can't tell.
5908      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5909                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5910              test $i != 17 # 1/2 MB should be enough
5911      do
5912        i=`expr $i + 1`
5913        teststring=$teststring$teststring
5914      done
5915      # Only check the string length outside the loop.
5916      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5917      teststring=
5918      # Add a significant safety factor because C++ compilers can tack on
5919      # massive amounts of additional arguments before passing them to the
5920      # linker.  It appears as though 1/2 is a usable value.
5921      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5922    fi
5923    ;;
5924  esac
5925
5926fi
5927
5928if test -n $lt_cv_sys_max_cmd_len ; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5930$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5933$as_echo "none" >&6; }
5934fi
5935max_cmd_len=$lt_cv_sys_max_cmd_len
5936
5937
5938
5939
5940
5941
5942: ${CP="cp -f"}
5943: ${MV="mv -f"}
5944: ${RM="rm -f"}
5945
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5947$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5948# Try some XSI features
5949xsi_shell=no
5950( _lt_dummy="a/b/c"
5951  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5952      = c,a/b,, \
5953    && eval 'test $(( 1 + 1 )) -eq 2 \
5954    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5955  && xsi_shell=yes
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5957$as_echo "$xsi_shell" >&6; }
5958
5959
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5961$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5962lt_shell_append=no
5963( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5964    >/dev/null 2>&1 \
5965  && lt_shell_append=yes
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5967$as_echo "$lt_shell_append" >&6; }
5968
5969
5970if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5971  lt_unset=unset
5972else
5973  lt_unset=false
5974fi
5975
5976
5977
5978
5979
5980# test EBCDIC or ASCII
5981case `echo X|tr X '\101'` in
5982 A) # ASCII based system
5983    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5984  lt_SP2NL='tr \040 \012'
5985  lt_NL2SP='tr \015\012 \040\040'
5986  ;;
5987 *) # EBCDIC based system
5988  lt_SP2NL='tr \100 \n'
5989  lt_NL2SP='tr \r\n \100\100'
5990  ;;
5991esac
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6002$as_echo_n "checking for $LD option to reload object files... " >&6; }
6003if test "${lt_cv_ld_reload_flag+set}" = set; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  lt_cv_ld_reload_flag='-r'
6007fi
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6009$as_echo "$lt_cv_ld_reload_flag" >&6; }
6010reload_flag=$lt_cv_ld_reload_flag
6011case $reload_flag in
6012"" | " "*) ;;
6013*) reload_flag=" $reload_flag" ;;
6014esac
6015reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016case $host_os in
6017  darwin*)
6018    if test "$GCC" = yes; then
6019      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6020    else
6021      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6022    fi
6023    ;;
6024esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034if test -n "$ac_tool_prefix"; then
6035  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  if test -n "$OBJDUMP"; then
6043  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057  done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062OBJDUMP=$ac_cv_prog_OBJDUMP
6063if test -n "$OBJDUMP"; then
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065$as_echo "$OBJDUMP" >&6; }
6066else
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071
6072fi
6073if test -z "$ac_cv_prog_OBJDUMP"; then
6074  ac_ct_OBJDUMP=$OBJDUMP
6075  # Extract the first word of "objdump", so it can be a program name with args.
6076set dummy objdump; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  if test -n "$ac_ct_OBJDUMP"; then
6083  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090    for ac_exec_ext in '' $ac_executable_extensions; do
6091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097  done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103if test -n "$ac_ct_OBJDUMP"; then
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105$as_echo "$ac_ct_OBJDUMP" >&6; }
6106else
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109fi
6110
6111  if test "x$ac_ct_OBJDUMP" = x; then
6112    OBJDUMP="false"
6113  else
6114    case $cross_compiling:$ac_tool_warned in
6115yes:)
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120    OBJDUMP=$ac_ct_OBJDUMP
6121  fi
6122else
6123  OBJDUMP="$ac_cv_prog_OBJDUMP"
6124fi
6125
6126test -z "$OBJDUMP" && OBJDUMP=objdump
6127
6128
6129
6130
6131
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6134$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6135if test "${lt_cv_deplibs_check_method+set}" = set; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  lt_cv_file_magic_cmd='$MAGIC_CMD'
6139lt_cv_file_magic_test_file=
6140lt_cv_deplibs_check_method='unknown'
6141# Need to set the preceding variable on all platforms that support
6142# interlibrary dependencies.
6143# 'none' -- dependencies not supported.
6144# `unknown' -- same as none, but documents that we really don't know.
6145# 'pass_all' -- all dependencies passed with no checks.
6146# 'test_compile' -- check by making test program.
6147# 'file_magic [[regex]]' -- check by looking for files in library path
6148# which responds to the $file_magic_cmd with a given extended regex.
6149# If you have `file' or equivalent on your system and you're not sure
6150# whether `pass_all' will *always* work, you probably want this one.
6151
6152case $host_os in
6153aix[4-9]*)
6154  lt_cv_deplibs_check_method=pass_all
6155  ;;
6156
6157beos*)
6158  lt_cv_deplibs_check_method=pass_all
6159  ;;
6160
6161bsdi[45]*)
6162  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6163  lt_cv_file_magic_cmd='/usr/bin/file -L'
6164  lt_cv_file_magic_test_file=/shlib/libc.so
6165  ;;
6166
6167cygwin*)
6168  # func_win32_libid is a shell function defined in ltmain.sh
6169  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6170  lt_cv_file_magic_cmd='func_win32_libid'
6171  ;;
6172
6173mingw* | pw32*)
6174  # Base MSYS/MinGW do not provide the 'file' command needed by
6175  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6176  # unless we find 'file', for example because we are cross-compiling.
6177  if ( file / ) >/dev/null 2>&1; then
6178    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6179    lt_cv_file_magic_cmd='func_win32_libid'
6180  else
6181    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6182    lt_cv_file_magic_cmd='$OBJDUMP -f'
6183  fi
6184  ;;
6185
6186cegcc)
6187  # use the weaker test based on 'objdump'. See mingw*.
6188  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6189  lt_cv_file_magic_cmd='$OBJDUMP -f'
6190  ;;
6191
6192darwin* | rhapsody*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195
6196freebsd* | dragonfly*)
6197  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6198    case $host_cpu in
6199    i*86 )
6200      # Not sure whether the presence of OpenBSD here was a mistake.
6201      # Let's accept both of them until this is cleared up.
6202      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6203      lt_cv_file_magic_cmd=/usr/bin/file
6204      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6205      ;;
6206    esac
6207  else
6208    lt_cv_deplibs_check_method=pass_all
6209  fi
6210  ;;
6211
6212gnu*)
6213  lt_cv_deplibs_check_method=pass_all
6214  ;;
6215
6216hpux10.20* | hpux11*)
6217  lt_cv_file_magic_cmd=/usr/bin/file
6218  case $host_cpu in
6219  ia64*)
6220    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6221    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6222    ;;
6223  hppa*64*)
6224    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6225    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6226    ;;
6227  *)
6228    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6229    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6230    ;;
6231  esac
6232  ;;
6233
6234interix[3-9]*)
6235  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6236  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6237  ;;
6238
6239irix5* | irix6* | nonstopux*)
6240  case $LD in
6241  *-32|*"-32 ") libmagic=32-bit;;
6242  *-n32|*"-n32 ") libmagic=N32;;
6243  *-64|*"-64 ") libmagic=64-bit;;
6244  *) libmagic=never-match;;
6245  esac
6246  lt_cv_deplibs_check_method=pass_all
6247  ;;
6248
6249# This must be Linux ELF.
6250linux* | k*bsd*-gnu)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253
6254netbsd*)
6255  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6256    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6257  else
6258    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6259  fi
6260  ;;
6261
6262newos6*)
6263  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6264  lt_cv_file_magic_cmd=/usr/bin/file
6265  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6266  ;;
6267
6268*nto* | *qnx*)
6269  lt_cv_deplibs_check_method=pass_all
6270  ;;
6271
6272openbsd*)
6273  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6274    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6275  else
6276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6277  fi
6278  ;;
6279
6280osf3* | osf4* | osf5*)
6281  lt_cv_deplibs_check_method=pass_all
6282  ;;
6283
6284rdos*)
6285  lt_cv_deplibs_check_method=pass_all
6286  ;;
6287
6288solaris*)
6289  lt_cv_deplibs_check_method=pass_all
6290  ;;
6291
6292sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6293  lt_cv_deplibs_check_method=pass_all
6294  ;;
6295
6296sysv4 | sysv4.3*)
6297  case $host_vendor in
6298  motorola)
6299    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]'
6300    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6301    ;;
6302  ncr)
6303    lt_cv_deplibs_check_method=pass_all
6304    ;;
6305  sequent)
6306    lt_cv_file_magic_cmd='/bin/file'
6307    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6308    ;;
6309  sni)
6310    lt_cv_file_magic_cmd='/bin/file'
6311    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6312    lt_cv_file_magic_test_file=/lib/libc.so
6313    ;;
6314  siemens)
6315    lt_cv_deplibs_check_method=pass_all
6316    ;;
6317  pc)
6318    lt_cv_deplibs_check_method=pass_all
6319    ;;
6320  esac
6321  ;;
6322
6323tpf*)
6324  lt_cv_deplibs_check_method=pass_all
6325  ;;
6326esac
6327
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6330$as_echo "$lt_cv_deplibs_check_method" >&6; }
6331file_magic_cmd=$lt_cv_file_magic_cmd
6332deplibs_check_method=$lt_cv_deplibs_check_method
6333test -z "$deplibs_check_method" && deplibs_check_method=unknown
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346if test -n "$ac_tool_prefix"; then
6347  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}ar; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if test "${ac_cv_prog_AR+set}" = set; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  if test -n "$AR"; then
6355  ac_cv_prog_AR="$AR" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  test -z "$as_dir" && as_dir=.
6362    for ac_exec_ext in '' $ac_executable_extensions; do
6363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364    ac_cv_prog_AR="${ac_tool_prefix}ar"
6365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369  done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374AR=$ac_cv_prog_AR
6375if test -n "$AR"; then
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6377$as_echo "$AR" >&6; }
6378else
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384fi
6385if test -z "$ac_cv_prog_AR"; then
6386  ac_ct_AR=$AR
6387  # Extract the first word of "ar", so it can be a program name with args.
6388set dummy ar; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  if test -n "$ac_ct_AR"; then
6395  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400  IFS=$as_save_IFS
6401  test -z "$as_dir" && as_dir=.
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404    ac_cv_prog_ac_ct_AR="ar"
6405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406    break 2
6407  fi
6408done
6409  done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414ac_ct_AR=$ac_cv_prog_ac_ct_AR
6415if test -n "$ac_ct_AR"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6417$as_echo "$ac_ct_AR" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423  if test "x$ac_ct_AR" = x; then
6424    AR="false"
6425  else
6426    case $cross_compiling:$ac_tool_warned in
6427yes:)
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430ac_tool_warned=yes ;;
6431esac
6432    AR=$ac_ct_AR
6433  fi
6434else
6435  AR="$ac_cv_prog_AR"
6436fi
6437
6438test -z "$AR" && AR=ar
6439test -z "$AR_FLAGS" && AR_FLAGS=cru
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451if test -n "$ac_tool_prefix"; then
6452  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6453set dummy ${ac_tool_prefix}strip; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if test "${ac_cv_prog_STRIP+set}" = set; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  if test -n "$STRIP"; then
6460  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  test -z "$as_dir" && as_dir=.
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471    break 2
6472  fi
6473done
6474  done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479STRIP=$ac_cv_prog_STRIP
6480if test -n "$STRIP"; then
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6482$as_echo "$STRIP" >&6; }
6483else
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488
6489fi
6490if test -z "$ac_cv_prog_STRIP"; then
6491  ac_ct_STRIP=$STRIP
6492  # Extract the first word of "strip", so it can be a program name with args.
6493set dummy strip; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  if test -n "$ac_ct_STRIP"; then
6500  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505  IFS=$as_save_IFS
6506  test -z "$as_dir" && as_dir=.
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509    ac_cv_prog_ac_ct_STRIP="strip"
6510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514  done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6520if test -n "$ac_ct_STRIP"; then
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6522$as_echo "$ac_ct_STRIP" >&6; }
6523else
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528  if test "x$ac_ct_STRIP" = x; then
6529    STRIP=":"
6530  else
6531    case $cross_compiling:$ac_tool_warned in
6532yes:)
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535ac_tool_warned=yes ;;
6536esac
6537    STRIP=$ac_ct_STRIP
6538  fi
6539else
6540  STRIP="$ac_cv_prog_STRIP"
6541fi
6542
6543test -z "$STRIP" && STRIP=:
6544
6545
6546
6547
6548
6549
6550if test -n "$ac_tool_prefix"; then
6551  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
6555if test "${ac_cv_prog_RANLIB+set}" = set; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  if test -n "$RANLIB"; then
6559  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566    for ac_exec_ext in '' $ac_executable_extensions; do
6567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570    break 2
6571  fi
6572done
6573  done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578RANLIB=$ac_cv_prog_RANLIB
6579if test -n "$RANLIB"; then
6580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6581$as_echo "$RANLIB" >&6; }
6582else
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587
6588fi
6589if test -z "$ac_cv_prog_RANLIB"; then
6590  ac_ct_RANLIB=$RANLIB
6591  # Extract the first word of "ranlib", so it can be a program name with args.
6592set dummy ranlib; ac_word=$2
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594$as_echo_n "checking for $ac_word... " >&6; }
6595if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  if test -n "$ac_ct_RANLIB"; then
6599  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604  IFS=$as_save_IFS
6605  test -z "$as_dir" && as_dir=.
6606    for ac_exec_ext in '' $ac_executable_extensions; do
6607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608    ac_cv_prog_ac_ct_RANLIB="ranlib"
6609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610    break 2
6611  fi
6612done
6613  done
6614IFS=$as_save_IFS
6615
6616fi
6617fi
6618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6619if test -n "$ac_ct_RANLIB"; then
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6621$as_echo "$ac_ct_RANLIB" >&6; }
6622else
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626
6627  if test "x$ac_ct_RANLIB" = x; then
6628    RANLIB=":"
6629  else
6630    case $cross_compiling:$ac_tool_warned in
6631yes:)
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634ac_tool_warned=yes ;;
6635esac
6636    RANLIB=$ac_ct_RANLIB
6637  fi
6638else
6639  RANLIB="$ac_cv_prog_RANLIB"
6640fi
6641
6642test -z "$RANLIB" && RANLIB=:
6643
6644
6645
6646
6647
6648
6649# Determine commands to create old-style static archives.
6650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6651old_postinstall_cmds='chmod 644 $oldlib'
6652old_postuninstall_cmds=
6653
6654if test -n "$RANLIB"; then
6655  case $host_os in
6656  openbsd*)
6657    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6658    ;;
6659  *)
6660    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6661    ;;
6662  esac
6663  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6664fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699# If no C compiler was specified, use CC.
6700LTCC=${LTCC-"$CC"}
6701
6702# If no C compiler flags were specified, use CFLAGS.
6703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6704
6705# Allow CC to be a program name with arguments.
6706compiler=$CC
6707
6708
6709# Check for command to grab the raw symbol name followed by C symbol from nm.
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6711$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6712if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6713  $as_echo_n "(cached) " >&6
6714else
6715
6716# These are sane defaults that work on at least a few old systems.
6717# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6718
6719# Character class describing NM global symbol codes.
6720symcode='[BCDEGRST]'
6721
6722# Regexp to match symbols that can be accessed directly from C.
6723sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6724
6725# Define system-specific variables.
6726case $host_os in
6727aix*)
6728  symcode='[BCDT]'
6729  ;;
6730cygwin* | mingw* | pw32* | cegcc*)
6731  symcode='[ABCDGISTW]'
6732  ;;
6733hpux*)
6734  if test "$host_cpu" = ia64; then
6735    symcode='[ABCDEGRST]'
6736  fi
6737  ;;
6738irix* | nonstopux*)
6739  symcode='[BCDEGRST]'
6740  ;;
6741osf*)
6742  symcode='[BCDEGQRST]'
6743  ;;
6744solaris*)
6745  symcode='[BDRT]'
6746  ;;
6747sco3.2v5*)
6748  symcode='[DT]'
6749  ;;
6750sysv4.2uw2*)
6751  symcode='[DT]'
6752  ;;
6753sysv5* | sco5v6* | unixware* | OpenUNIX*)
6754  symcode='[ABDT]'
6755  ;;
6756sysv4)
6757  symcode='[DFNSTU]'
6758  ;;
6759esac
6760
6761# If we're using GNU nm, then use its standard symbol codes.
6762case `$NM -V 2>&1` in
6763*GNU* | *'with BFD'*)
6764  symcode='[ABCDGIRSTW]' ;;
6765esac
6766
6767# Transform an extracted symbol line into a proper C declaration.
6768# Some systems (esp. on ia64) link data and code symbols differently,
6769# so use this general approach.
6770lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6771
6772# Transform an extracted symbol line into symbol name and symbol address
6773lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6774lt_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'"
6775
6776# Handle CRLF in mingw tool chain
6777opt_cr=
6778case $build_os in
6779mingw*)
6780  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6781  ;;
6782esac
6783
6784# Try without a prefix underscore, then with it.
6785for ac_symprfx in "" "_"; do
6786
6787  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6788  symxfrm="\\1 $ac_symprfx\\2 \\2"
6789
6790  # Write the raw and C identifiers.
6791  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6792    # Fake it for dumpbin and say T for any non-static function
6793    # and D for any global variable.
6794    # Also find C++ and __fastcall symbols from MSVC++,
6795    # which start with @ or ?.
6796    lt_cv_sys_global_symbol_pipe="$AWK '"\
6797"     {last_section=section; section=\$ 3};"\
6798"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6799"     \$ 0!~/External *\|/{next};"\
6800"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6801"     {if(hide[section]) next};"\
6802"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6803"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6804"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6805"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6806"     ' prfx=^$ac_symprfx"
6807  else
6808    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6809  fi
6810
6811  # Check to see that the pipe works correctly.
6812  pipe_works=no
6813
6814  rm -f conftest*
6815  cat > conftest.$ac_ext <<_LT_EOF
6816#ifdef __cplusplus
6817extern "C" {
6818#endif
6819char nm_test_var;
6820void nm_test_func(void);
6821void nm_test_func(void){}
6822#ifdef __cplusplus
6823}
6824#endif
6825int main(){nm_test_var='a';nm_test_func();return(0);}
6826_LT_EOF
6827
6828  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829  (eval $ac_compile) 2>&5
6830  ac_status=$?
6831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832  test $ac_status = 0; }; then
6833    # Now try to grab the symbols.
6834    nlist=conftest.nm
6835    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6836  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6837  ac_status=$?
6838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839  test $ac_status = 0; } && test -s "$nlist"; then
6840      # Try sorting and uniquifying the output.
6841      if sort "$nlist" | uniq > "$nlist"T; then
6842        mv -f "$nlist"T "$nlist"
6843      else
6844        rm -f "$nlist"T
6845      fi
6846
6847      # Make sure that we snagged all the symbols we need.
6848      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6849        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6850          cat <<_LT_EOF > conftest.$ac_ext
6851#ifdef __cplusplus
6852extern "C" {
6853#endif
6854
6855_LT_EOF
6856          # Now generate the symbol file.
6857          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6858
6859          cat <<_LT_EOF >> conftest.$ac_ext
6860
6861/* The mapping between symbol names and symbols.  */
6862const struct {
6863  const char *name;
6864  void       *address;
6865}
6866lt__PROGRAM__LTX_preloaded_symbols[] =
6867{
6868  { "@PROGRAM@", (void *) 0 },
6869_LT_EOF
6870          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6871          cat <<\_LT_EOF >> conftest.$ac_ext
6872  {0, (void *) 0}
6873};
6874
6875/* This works around a problem in FreeBSD linker */
6876#ifdef FREEBSD_WORKAROUND
6877static const void *lt_preloaded_setup() {
6878  return lt__PROGRAM__LTX_preloaded_symbols;
6879}
6880#endif
6881
6882#ifdef __cplusplus
6883}
6884#endif
6885_LT_EOF
6886          # Now try linking the two files.
6887          mv conftest.$ac_objext conftstm.$ac_objext
6888          lt_save_LIBS="$LIBS"
6889          lt_save_CFLAGS="$CFLAGS"
6890          LIBS="conftstm.$ac_objext"
6891          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6892          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6893  (eval $ac_link) 2>&5
6894  ac_status=$?
6895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6897            pipe_works=yes
6898          fi
6899          LIBS="$lt_save_LIBS"
6900          CFLAGS="$lt_save_CFLAGS"
6901        else
6902          echo "cannot find nm_test_func in $nlist" >&5
6903        fi
6904      else
6905        echo "cannot find nm_test_var in $nlist" >&5
6906      fi
6907    else
6908      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6909    fi
6910  else
6911    echo "$progname: failed program was:" >&5
6912    cat conftest.$ac_ext >&5
6913  fi
6914  rm -rf conftest* conftst*
6915
6916  # Do not use the global_symbol_pipe unless it works.
6917  if test "$pipe_works" = yes; then
6918    break
6919  else
6920    lt_cv_sys_global_symbol_pipe=
6921  fi
6922done
6923
6924fi
6925
6926if test -z "$lt_cv_sys_global_symbol_pipe"; then
6927  lt_cv_sys_global_symbol_to_cdecl=
6928fi
6929if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6931$as_echo "failed" >&6; }
6932else
6933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6934$as_echo "ok" >&6; }
6935fi
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959# Check whether --enable-libtool-lock was given.
6960if test "${enable_libtool_lock+set}" = set; then :
6961  enableval=$enable_libtool_lock;
6962fi
6963
6964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6965
6966# Some flags need to be propagated to the compiler or linker for good
6967# libtool support.
6968case $host in
6969ia64-*-hpux*)
6970  # Find out which ABI we are using.
6971  echo 'int i;' > conftest.$ac_ext
6972  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973  (eval $ac_compile) 2>&5
6974  ac_status=$?
6975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976  test $ac_status = 0; }; then
6977    case `/usr/bin/file conftest.$ac_objext` in
6978      *ELF-32*)
6979        HPUX_IA64_MODE="32"
6980        ;;
6981      *ELF-64*)
6982        HPUX_IA64_MODE="64"
6983        ;;
6984    esac
6985  fi
6986  rm -rf conftest*
6987  ;;
6988*-*-irix6*)
6989  # Find out which ABI we are using.
6990  echo '#line 6990 "configure"' > conftest.$ac_ext
6991  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992  (eval $ac_compile) 2>&5
6993  ac_status=$?
6994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995  test $ac_status = 0; }; then
6996    if test "$lt_cv_prog_gnu_ld" = yes; then
6997      case `/usr/bin/file conftest.$ac_objext` in
6998        *32-bit*)
6999          LD="${LD-ld} -melf32bsmip"
7000          ;;
7001        *N32*)
7002          LD="${LD-ld} -melf32bmipn32"
7003          ;;
7004        *64-bit*)
7005          LD="${LD-ld} -melf64bmip"
7006        ;;
7007      esac
7008    else
7009      case `/usr/bin/file conftest.$ac_objext` in
7010        *32-bit*)
7011          LD="${LD-ld} -32"
7012          ;;
7013        *N32*)
7014          LD="${LD-ld} -n32"
7015          ;;
7016        *64-bit*)
7017          LD="${LD-ld} -64"
7018          ;;
7019      esac
7020    fi
7021  fi
7022  rm -rf conftest*
7023  ;;
7024
7025x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7026s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7027  # Find out which ABI we are using.
7028  echo 'int i;' > conftest.$ac_ext
7029  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7030  (eval $ac_compile) 2>&5
7031  ac_status=$?
7032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033  test $ac_status = 0; }; then
7034    case `/usr/bin/file conftest.o` in
7035      *32-bit*)
7036        case $host in
7037          x86_64-*kfreebsd*-gnu)
7038            LD="${LD-ld} -m elf_i386_fbsd"
7039            ;;
7040          x86_64-*linux*)
7041            LD="${LD-ld} -m elf_i386"
7042            ;;
7043          ppc64-*linux*|powerpc64-*linux*)
7044            LD="${LD-ld} -m elf32ppclinux"
7045            ;;
7046          s390x-*linux*)
7047            LD="${LD-ld} -m elf_s390"
7048            ;;
7049          sparc64-*linux*)
7050            LD="${LD-ld} -m elf32_sparc"
7051            ;;
7052        esac
7053        ;;
7054      *64-bit*)
7055        case $host in
7056          x86_64-*kfreebsd*-gnu)
7057            LD="${LD-ld} -m elf_x86_64_fbsd"
7058            ;;
7059          x86_64-*linux*)
7060            LD="${LD-ld} -m elf_x86_64"
7061            ;;
7062          ppc*-*linux*|powerpc*-*linux*)
7063            LD="${LD-ld} -m elf64ppc"
7064            ;;
7065          s390*-*linux*|s390*-*tpf*)
7066            LD="${LD-ld} -m elf64_s390"
7067            ;;
7068          sparc*-*linux*)
7069            LD="${LD-ld} -m elf64_sparc"
7070            ;;
7071        esac
7072        ;;
7073    esac
7074  fi
7075  rm -rf conftest*
7076  ;;
7077
7078*-*-sco3.2v5*)
7079  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7080  SAVE_CFLAGS="$CFLAGS"
7081  CFLAGS="$CFLAGS -belf"
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7083$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7084if test "${lt_cv_cc_needs_belf+set}" = set; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  ac_ext=c
7088ac_cpp='$CPP $CPPFLAGS'
7089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091ac_compiler_gnu=$ac_cv_c_compiler_gnu
7092
7093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095
7096int
7097main ()
7098{
7099
7100  ;
7101  return 0;
7102}
7103_ACEOF
7104if ac_fn_c_try_link "$LINENO"; then :
7105  lt_cv_cc_needs_belf=yes
7106else
7107  lt_cv_cc_needs_belf=no
7108fi
7109rm -f core conftest.err conftest.$ac_objext \
7110    conftest$ac_exeext conftest.$ac_ext
7111     ac_ext=c
7112ac_cpp='$CPP $CPPFLAGS'
7113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116
7117fi
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7119$as_echo "$lt_cv_cc_needs_belf" >&6; }
7120  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7121    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7122    CFLAGS="$SAVE_CFLAGS"
7123  fi
7124  ;;
7125sparc*-*solaris*)
7126  # Find out which ABI we are using.
7127  echo 'int i;' > conftest.$ac_ext
7128  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7129  (eval $ac_compile) 2>&5
7130  ac_status=$?
7131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132  test $ac_status = 0; }; then
7133    case `/usr/bin/file conftest.o` in
7134    *64-bit*)
7135      case $lt_cv_prog_gnu_ld in
7136      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7137      *)
7138        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7139          LD="${LD-ld} -64"
7140        fi
7141        ;;
7142      esac
7143      ;;
7144    esac
7145  fi
7146  rm -rf conftest*
7147  ;;
7148esac
7149
7150need_locks="$enable_libtool_lock"
7151
7152
7153  case $host_os in
7154    rhapsody* | darwin*)
7155    if test -n "$ac_tool_prefix"; then
7156  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7157set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  if test -n "$DSYMUTIL"; then
7164  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169  IFS=$as_save_IFS
7170  test -z "$as_dir" && as_dir=.
7171    for ac_exec_ext in '' $ac_executable_extensions; do
7172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175    break 2
7176  fi
7177done
7178  done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183DSYMUTIL=$ac_cv_prog_DSYMUTIL
7184if test -n "$DSYMUTIL"; then
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7186$as_echo "$DSYMUTIL" >&6; }
7187else
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192
7193fi
7194if test -z "$ac_cv_prog_DSYMUTIL"; then
7195  ac_ct_DSYMUTIL=$DSYMUTIL
7196  # Extract the first word of "dsymutil", so it can be a program name with args.
7197set dummy dsymutil; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  if test -n "$ac_ct_DSYMUTIL"; then
7204  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  test -z "$as_dir" && as_dir=.
7211    for ac_exec_ext in '' $ac_executable_extensions; do
7212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218  done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7224if test -n "$ac_ct_DSYMUTIL"; then
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7226$as_echo "$ac_ct_DSYMUTIL" >&6; }
7227else
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232  if test "x$ac_ct_DSYMUTIL" = x; then
7233    DSYMUTIL=":"
7234  else
7235    case $cross_compiling:$ac_tool_warned in
7236yes:)
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239ac_tool_warned=yes ;;
7240esac
7241    DSYMUTIL=$ac_ct_DSYMUTIL
7242  fi
7243else
7244  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7245fi
7246
7247    if test -n "$ac_tool_prefix"; then
7248  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7249set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255  if test -n "$NMEDIT"; then
7256  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263    for ac_exec_ext in '' $ac_executable_extensions; do
7264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270  done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275NMEDIT=$ac_cv_prog_NMEDIT
7276if test -n "$NMEDIT"; then
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7278$as_echo "$NMEDIT" >&6; }
7279else
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284
7285fi
7286if test -z "$ac_cv_prog_NMEDIT"; then
7287  ac_ct_NMEDIT=$NMEDIT
7288  # Extract the first word of "nmedit", so it can be a program name with args.
7289set dummy nmedit; ac_word=$2
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291$as_echo_n "checking for $ac_word... " >&6; }
7292if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  if test -n "$ac_ct_NMEDIT"; then
7296  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301  IFS=$as_save_IFS
7302  test -z "$as_dir" && as_dir=.
7303    for ac_exec_ext in '' $ac_executable_extensions; do
7304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307    break 2
7308  fi
7309done
7310  done
7311IFS=$as_save_IFS
7312
7313fi
7314fi
7315ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7316if test -n "$ac_ct_NMEDIT"; then
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7318$as_echo "$ac_ct_NMEDIT" >&6; }
7319else
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322fi
7323
7324  if test "x$ac_ct_NMEDIT" = x; then
7325    NMEDIT=":"
7326  else
7327    case $cross_compiling:$ac_tool_warned in
7328yes:)
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331ac_tool_warned=yes ;;
7332esac
7333    NMEDIT=$ac_ct_NMEDIT
7334  fi
7335else
7336  NMEDIT="$ac_cv_prog_NMEDIT"
7337fi
7338
7339    if test -n "$ac_tool_prefix"; then
7340  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}lipo; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_LIPO+set}" = set; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  if test -n "$LIPO"; then
7348  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355    for ac_exec_ext in '' $ac_executable_extensions; do
7356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362  done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367LIPO=$ac_cv_prog_LIPO
7368if test -n "$LIPO"; then
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7370$as_echo "$LIPO" >&6; }
7371else
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377fi
7378if test -z "$ac_cv_prog_LIPO"; then
7379  ac_ct_LIPO=$LIPO
7380  # Extract the first word of "lipo", so it can be a program name with args.
7381set dummy lipo; ac_word=$2
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383$as_echo_n "checking for $ac_word... " >&6; }
7384if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  if test -n "$ac_ct_LIPO"; then
7388  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393  IFS=$as_save_IFS
7394  test -z "$as_dir" && as_dir=.
7395    for ac_exec_ext in '' $ac_executable_extensions; do
7396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397    ac_cv_prog_ac_ct_LIPO="lipo"
7398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399    break 2
7400  fi
7401done
7402  done
7403IFS=$as_save_IFS
7404
7405fi
7406fi
7407ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7408if test -n "$ac_ct_LIPO"; then
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7410$as_echo "$ac_ct_LIPO" >&6; }
7411else
7412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
7414fi
7415
7416  if test "x$ac_ct_LIPO" = x; then
7417    LIPO=":"
7418  else
7419    case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425    LIPO=$ac_ct_LIPO
7426  fi
7427else
7428  LIPO="$ac_cv_prog_LIPO"
7429fi
7430
7431    if test -n "$ac_tool_prefix"; then
7432  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7433set dummy ${ac_tool_prefix}otool; ac_word=$2
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435$as_echo_n "checking for $ac_word... " >&6; }
7436if test "${ac_cv_prog_OTOOL+set}" = set; then :
7437  $as_echo_n "(cached) " >&6
7438else
7439  if test -n "$OTOOL"; then
7440  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7441else
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445  IFS=$as_save_IFS
7446  test -z "$as_dir" && as_dir=.
7447    for ac_exec_ext in '' $ac_executable_extensions; do
7448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451    break 2
7452  fi
7453done
7454  done
7455IFS=$as_save_IFS
7456
7457fi
7458fi
7459OTOOL=$ac_cv_prog_OTOOL
7460if test -n "$OTOOL"; then
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7462$as_echo "$OTOOL" >&6; }
7463else
7464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465$as_echo "no" >&6; }
7466fi
7467
7468
7469fi
7470if test -z "$ac_cv_prog_OTOOL"; then
7471  ac_ct_OTOOL=$OTOOL
7472  # Extract the first word of "otool", so it can be a program name with args.
7473set dummy otool; ac_word=$2
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475$as_echo_n "checking for $ac_word... " >&6; }
7476if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  if test -n "$ac_ct_OTOOL"; then
7480  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7481else
7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485  IFS=$as_save_IFS
7486  test -z "$as_dir" && as_dir=.
7487    for ac_exec_ext in '' $ac_executable_extensions; do
7488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489    ac_cv_prog_ac_ct_OTOOL="otool"
7490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491    break 2
7492  fi
7493done
7494  done
7495IFS=$as_save_IFS
7496
7497fi
7498fi
7499ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7500if test -n "$ac_ct_OTOOL"; then
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7502$as_echo "$ac_ct_OTOOL" >&6; }
7503else
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505$as_echo "no" >&6; }
7506fi
7507
7508  if test "x$ac_ct_OTOOL" = x; then
7509    OTOOL=":"
7510  else
7511    case $cross_compiling:$ac_tool_warned in
7512yes:)
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515ac_tool_warned=yes ;;
7516esac
7517    OTOOL=$ac_ct_OTOOL
7518  fi
7519else
7520  OTOOL="$ac_cv_prog_OTOOL"
7521fi
7522
7523    if test -n "$ac_tool_prefix"; then
7524  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7525set dummy ${ac_tool_prefix}otool64; ac_word=$2
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527$as_echo_n "checking for $ac_word... " >&6; }
7528if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  if test -n "$OTOOL64"; then
7532  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  test -z "$as_dir" && as_dir=.
7539    for ac_exec_ext in '' $ac_executable_extensions; do
7540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543    break 2
7544  fi
7545done
7546  done
7547IFS=$as_save_IFS
7548
7549fi
7550fi
7551OTOOL64=$ac_cv_prog_OTOOL64
7552if test -n "$OTOOL64"; then
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7554$as_echo "$OTOOL64" >&6; }
7555else
7556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
7558fi
7559
7560
7561fi
7562if test -z "$ac_cv_prog_OTOOL64"; then
7563  ac_ct_OTOOL64=$OTOOL64
7564  # Extract the first word of "otool64", so it can be a program name with args.
7565set dummy otool64; ac_word=$2
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567$as_echo_n "checking for $ac_word... " >&6; }
7568if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571  if test -n "$ac_ct_OTOOL64"; then
7572  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7573else
7574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575for as_dir in $PATH
7576do
7577  IFS=$as_save_IFS
7578  test -z "$as_dir" && as_dir=.
7579    for ac_exec_ext in '' $ac_executable_extensions; do
7580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581    ac_cv_prog_ac_ct_OTOOL64="otool64"
7582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583    break 2
7584  fi
7585done
7586  done
7587IFS=$as_save_IFS
7588
7589fi
7590fi
7591ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7592if test -n "$ac_ct_OTOOL64"; then
7593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7594$as_echo "$ac_ct_OTOOL64" >&6; }
7595else
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597$as_echo "no" >&6; }
7598fi
7599
7600  if test "x$ac_ct_OTOOL64" = x; then
7601    OTOOL64=":"
7602  else
7603    case $cross_compiling:$ac_tool_warned in
7604yes:)
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607ac_tool_warned=yes ;;
7608esac
7609    OTOOL64=$ac_ct_OTOOL64
7610  fi
7611else
7612  OTOOL64="$ac_cv_prog_OTOOL64"
7613fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7642$as_echo_n "checking for -single_module linker flag... " >&6; }
7643if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  lt_cv_apple_cc_single_mod=no
7647      if test -z "${LT_MULTI_MODULE}"; then
7648        # By default we will add the -single_module flag. You can override
7649        # by either setting the environment variable LT_MULTI_MODULE
7650        # non-empty at configure time, or by adding -multi_module to the
7651        # link flags.
7652        rm -rf libconftest.dylib*
7653        echo "int foo(void){return 1;}" > conftest.c
7654        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7655-dynamiclib -Wl,-single_module conftest.c" >&5
7656        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7657          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7658        _lt_result=$?
7659        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7660          lt_cv_apple_cc_single_mod=yes
7661        else
7662          cat conftest.err >&5
7663        fi
7664        rm -rf libconftest.dylib*
7665        rm -f conftest.*
7666      fi
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7669$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7671$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7672if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  lt_cv_ld_exported_symbols_list=no
7676      save_LDFLAGS=$LDFLAGS
7677      echo "_main" > conftest.sym
7678      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7679      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h.  */
7681
7682int
7683main ()
7684{
7685
7686  ;
7687  return 0;
7688}
7689_ACEOF
7690if ac_fn_c_try_link "$LINENO"; then :
7691  lt_cv_ld_exported_symbols_list=yes
7692else
7693  lt_cv_ld_exported_symbols_list=no
7694fi
7695rm -f core conftest.err conftest.$ac_objext \
7696    conftest$ac_exeext conftest.$ac_ext
7697        LDFLAGS="$save_LDFLAGS"
7698
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7701$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7702    case $host_os in
7703    rhapsody* | darwin1.[012])
7704      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7705    darwin1.*)
7706      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7707    darwin*) # darwin 5.x on
7708      # if running on 10.5 or later, the deployment target defaults
7709      # to the OS version, if on x86, and 10.4, the deployment
7710      # target defaults to 10.4. Don't you love it?
7711      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7712        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7713          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7714        10.[012]*)
7715          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7716        10.*)
7717          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7718      esac
7719    ;;
7720  esac
7721    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7722      _lt_dar_single_mod='$single_module'
7723    fi
7724    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7725      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7726    else
7727      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7728    fi
7729    if test "$DSYMUTIL" != ":"; then
7730      _lt_dsymutil='~$DSYMUTIL $lib || :'
7731    else
7732      _lt_dsymutil=
7733    fi
7734    ;;
7735  esac
7736
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7739$as_echo_n "checking for ANSI C header files... " >&6; }
7740if test "${ac_cv_header_stdc+set}" = set; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745#include <stdlib.h>
7746#include <stdarg.h>
7747#include <string.h>
7748#include <float.h>
7749
7750int
7751main ()
7752{
7753
7754  ;
7755  return 0;
7756}
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759  ac_cv_header_stdc=yes
7760else
7761  ac_cv_header_stdc=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764
7765if test $ac_cv_header_stdc = yes; then
7766  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h.  */
7769#include <string.h>
7770
7771_ACEOF
7772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773  $EGREP "memchr" >/dev/null 2>&1; then :
7774
7775else
7776  ac_cv_header_stdc=no
7777fi
7778rm -f conftest*
7779
7780fi
7781
7782if test $ac_cv_header_stdc = yes; then
7783  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h.  */
7786#include <stdlib.h>
7787
7788_ACEOF
7789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7790  $EGREP "free" >/dev/null 2>&1; then :
7791
7792else
7793  ac_cv_header_stdc=no
7794fi
7795rm -f conftest*
7796
7797fi
7798
7799if test $ac_cv_header_stdc = yes; then
7800  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7801  if test "$cross_compiling" = yes; then :
7802  :
7803else
7804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806#include <ctype.h>
7807#include <stdlib.h>
7808#if ((' ' & 0x0FF) == 0x020)
7809# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7810# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7811#else
7812# define ISLOWER(c) \
7813                   (('a' <= (c) && (c) <= 'i') \
7814                     || ('j' <= (c) && (c) <= 'r') \
7815                     || ('s' <= (c) && (c) <= 'z'))
7816# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7817#endif
7818
7819#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7820int
7821main ()
7822{
7823  int i;
7824  for (i = 0; i < 256; i++)
7825    if (XOR (islower (i), ISLOWER (i))
7826        || toupper (i) != TOUPPER (i))
7827      return 2;
7828  return 0;
7829}
7830_ACEOF
7831if ac_fn_c_try_run "$LINENO"; then :
7832
7833else
7834  ac_cv_header_stdc=no
7835fi
7836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7837  conftest.$ac_objext conftest.beam conftest.$ac_ext
7838fi
7839
7840fi
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7843$as_echo "$ac_cv_header_stdc" >&6; }
7844if test $ac_cv_header_stdc = yes; then
7845
7846$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7847
7848fi
7849
7850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7852                  inttypes.h stdint.h unistd.h
7853do :
7854  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7856"
7857eval as_val=\$$as_ac_Header
7858   if test "x$as_val" = x""yes; then :
7859  cat >>confdefs.h <<_ACEOF
7860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7861_ACEOF
7862
7863fi
7864
7865done
7866
7867
7868for ac_header in dlfcn.h
7869do :
7870  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7871"
7872if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7873  cat >>confdefs.h <<_ACEOF
7874#define HAVE_DLFCN_H 1
7875_ACEOF
7876
7877fi
7878
7879done
7880
7881
7882
7883ac_ext=cpp
7884ac_cpp='$CXXCPP $CPPFLAGS'
7885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7888if test -z "$CXX"; then
7889  if test -n "$CCC"; then
7890    CXX=$CCC
7891  else
7892    if test -n "$ac_tool_prefix"; then
7893  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7894  do
7895    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898$as_echo_n "checking for $ac_word... " >&6; }
7899if test "${ac_cv_prog_CXX+set}" = set; then :
7900  $as_echo_n "(cached) " >&6
7901else
7902  if test -n "$CXX"; then
7903  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908  IFS=$as_save_IFS
7909  test -z "$as_dir" && as_dir=.
7910    for ac_exec_ext in '' $ac_executable_extensions; do
7911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914    break 2
7915  fi
7916done
7917  done
7918IFS=$as_save_IFS
7919
7920fi
7921fi
7922CXX=$ac_cv_prog_CXX
7923if test -n "$CXX"; then
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7925$as_echo "$CXX" >&6; }
7926else
7927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
7929fi
7930
7931
7932    test -n "$CXX" && break
7933  done
7934fi
7935if test -z "$CXX"; then
7936  ac_ct_CXX=$CXX
7937  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7938do
7939  # Extract the first word of "$ac_prog", so it can be a program name with args.
7940set dummy $ac_prog; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  if test -n "$ac_ct_CXX"; then
7947  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952  IFS=$as_save_IFS
7953  test -z "$as_dir" && as_dir=.
7954    for ac_exec_ext in '' $ac_executable_extensions; do
7955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956    ac_cv_prog_ac_ct_CXX="$ac_prog"
7957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958    break 2
7959  fi
7960done
7961  done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7967if test -n "$ac_ct_CXX"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7969$as_echo "$ac_ct_CXX" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975
7976  test -n "$ac_ct_CXX" && break
7977done
7978
7979  if test "x$ac_ct_CXX" = x; then
7980    CXX="g++"
7981  else
7982    case $cross_compiling:$ac_tool_warned in
7983yes:)
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986ac_tool_warned=yes ;;
7987esac
7988    CXX=$ac_ct_CXX
7989  fi
7990fi
7991
7992  fi
7993fi
7994# Provide some information about the compiler.
7995$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7996set X $ac_compile
7997ac_compiler=$2
7998for ac_option in --version -v -V -qversion; do
7999  { { ac_try="$ac_compiler $ac_option >&5"
8000case "(($ac_try" in
8001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002  *) ac_try_echo=$ac_try;;
8003esac
8004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8005$as_echo "$ac_try_echo"; } >&5
8006  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8007  ac_status=$?
8008  if test -s conftest.err; then
8009    sed '10a\
8010... rest of stderr output deleted ...
8011         10q' conftest.err >conftest.er1
8012    cat conftest.er1 >&5
8013  fi
8014  rm -f conftest.er1 conftest.err
8015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8016  test $ac_status = 0; }
8017done
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8020$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8021if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026
8027int
8028main ()
8029{
8030#ifndef __GNUC__
8031       choke me
8032#endif
8033
8034  ;
8035  return 0;
8036}
8037_ACEOF
8038if ac_fn_cxx_try_compile "$LINENO"; then :
8039  ac_compiler_gnu=yes
8040else
8041  ac_compiler_gnu=no
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8045
8046fi
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8048$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8049if test $ac_compiler_gnu = yes; then
8050  GXX=yes
8051else
8052  GXX=
8053fi
8054ac_test_CXXFLAGS=${CXXFLAGS+set}
8055ac_save_CXXFLAGS=$CXXFLAGS
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8057$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8058if test "${ac_cv_prog_cxx_g+set}" = set; then :
8059  $as_echo_n "(cached) " >&6
8060else
8061  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8062   ac_cxx_werror_flag=yes
8063   ac_cv_prog_cxx_g=no
8064   CXXFLAGS="-g"
8065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067
8068int
8069main ()
8070{
8071
8072  ;
8073  return 0;
8074}
8075_ACEOF
8076if ac_fn_cxx_try_compile "$LINENO"; then :
8077  ac_cv_prog_cxx_g=yes
8078else
8079  CXXFLAGS=""
8080      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081/* end confdefs.h.  */
8082
8083int
8084main ()
8085{
8086
8087  ;
8088  return 0;
8089}
8090_ACEOF
8091if ac_fn_cxx_try_compile "$LINENO"; then :
8092
8093else
8094  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8095         CXXFLAGS="-g"
8096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098
8099int
8100main ()
8101{
8102
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107if ac_fn_cxx_try_compile "$LINENO"; then :
8108  ac_cv_prog_cxx_g=yes
8109fi
8110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111fi
8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113fi
8114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8116fi
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8118$as_echo "$ac_cv_prog_cxx_g" >&6; }
8119if test "$ac_test_CXXFLAGS" = set; then
8120  CXXFLAGS=$ac_save_CXXFLAGS
8121elif test $ac_cv_prog_cxx_g = yes; then
8122  if test "$GXX" = yes; then
8123    CXXFLAGS="-g -O2"
8124  else
8125    CXXFLAGS="-g"
8126  fi
8127else
8128  if test "$GXX" = yes; then
8129    CXXFLAGS="-O2"
8130  else
8131    CXXFLAGS=
8132  fi
8133fi
8134ac_ext=c
8135ac_cpp='$CPP $CPPFLAGS'
8136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140depcc="$CXX"  am_compiler_list=
8141
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8143$as_echo_n "checking dependency style of $depcc... " >&6; }
8144if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8148  # We make a subdir and do the tests there.  Otherwise we can end up
8149  # making bogus files that we don't know about and never remove.  For
8150  # instance it was reported that on HP-UX the gcc test will end up
8151  # making a dummy file named `D' -- because `-MD' means `put the output
8152  # in D'.
8153  mkdir conftest.dir
8154  # Copy depcomp to subdir because otherwise we won't find it if we're
8155  # using a relative directory.
8156  cp "$am_depcomp" conftest.dir
8157  cd conftest.dir
8158  # We will build objects and dependencies in a subdirectory because
8159  # it helps to detect inapplicable dependency modes.  For instance
8160  # both Tru64's cc and ICC support -MD to output dependencies as a
8161  # side effect of compilation, but ICC will put the dependencies in
8162  # the current directory while Tru64 will put them in the object
8163  # directory.
8164  mkdir sub
8165
8166  am_cv_CXX_dependencies_compiler_type=none
8167  if test "$am_compiler_list" = ""; then
8168     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8169  fi
8170  am__universal=false
8171  case " $depcc " in #(
8172     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8173     esac
8174
8175  for depmode in $am_compiler_list; do
8176    # Setup a source with many dependencies, because some compilers
8177    # like to wrap large dependency lists on column 80 (with \), and
8178    # we should not choose a depcomp mode which is confused by this.
8179    #
8180    # We need to recreate these files for each test, as the compiler may
8181    # overwrite some of them when testing with obscure command lines.
8182    # This happens at least with the AIX C compiler.
8183    : > sub/conftest.c
8184    for i in 1 2 3 4 5 6; do
8185      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8186      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8187      # Solaris 8's {/usr,}/bin/sh.
8188      touch sub/conftst$i.h
8189    done
8190    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8191
8192    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8193    # mode.  It turns out that the SunPro C++ compiler does not properly
8194    # handle `-M -o', and we need to detect this.  Also, some Intel
8195    # versions had trouble with output in subdirs
8196    am__obj=sub/conftest.${OBJEXT-o}
8197    am__minus_obj="-o $am__obj"
8198    case $depmode in
8199    gcc)
8200      # This depmode causes a compiler race in universal mode.
8201      test "$am__universal" = false || continue
8202      ;;
8203    nosideeffect)
8204      # after this tag, mechanisms are not by side-effect, so they'll
8205      # only be used when explicitly requested
8206      if test "x$enable_dependency_tracking" = xyes; then
8207        continue
8208      else
8209        break
8210      fi
8211      ;;
8212    msvisualcpp | msvcmsys)
8213      # This compiler won't grok `-c -o', but also, the minuso test has
8214      # not run yet.  These depmodes are late enough in the game, and
8215      # so weak that their functioning should not be impacted.
8216      am__obj=conftest.${OBJEXT-o}
8217      am__minus_obj=
8218      ;;
8219    none) break ;;
8220    esac
8221    if depmode=$depmode \
8222       source=sub/conftest.c object=$am__obj \
8223       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8224       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8225         >/dev/null 2>conftest.err &&
8226       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8227       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8228       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8229       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8230      # icc doesn't choke on unknown options, it will just issue warnings
8231      # or remarks (even with -Werror).  So we grep stderr for any message
8232      # that says an option was ignored or not supported.
8233      # When given -MP, icc 7.0 and 7.1 complain thusly:
8234      #   icc: Command line warning: ignoring option '-M'; no argument required
8235      # The diagnosis changed in icc 8.0:
8236      #   icc: Command line remark: option '-MP' not supported
8237      if (grep 'ignoring option' conftest.err ||
8238          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8239        am_cv_CXX_dependencies_compiler_type=$depmode
8240        break
8241      fi
8242    fi
8243  done
8244
8245  cd ..
8246  rm -rf conftest.dir
8247else
8248  am_cv_CXX_dependencies_compiler_type=none
8249fi
8250
8251fi
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8253$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8254CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8255
8256 if
8257  test "x$enable_dependency_tracking" != xno \
8258  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8259  am__fastdepCXX_TRUE=
8260  am__fastdepCXX_FALSE='#'
8261else
8262  am__fastdepCXX_TRUE='#'
8263  am__fastdepCXX_FALSE=
8264fi
8265
8266
8267if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8268    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8269    (test "X$CXX" != "Xg++"))) ; then
8270  ac_ext=cpp
8271ac_cpp='$CXXCPP $CPPFLAGS'
8272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8276$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8277if test -z "$CXXCPP"; then
8278  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281      # Double quotes because CXXCPP needs to be expanded
8282    for CXXCPP in "$CXX -E" "/lib/cpp"
8283    do
8284      ac_preproc_ok=false
8285for ac_cxx_preproc_warn_flag in '' yes
8286do
8287  # Use a header file that comes with gcc, so configuring glibc
8288  # with a fresh cross-compiler works.
8289  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8290  # <limits.h> exists even on freestanding compilers.
8291  # On the NeXT, cc -E runs the code through the compiler's parser,
8292  # not just through cpp. "Syntax error" is here to catch this case.
8293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295#ifdef __STDC__
8296# include <limits.h>
8297#else
8298# include <assert.h>
8299#endif
8300                     Syntax error
8301_ACEOF
8302if ac_fn_cxx_try_cpp "$LINENO"; then :
8303
8304else
8305  # Broken: fails on valid input.
8306continue
8307fi
8308rm -f conftest.err conftest.$ac_ext
8309
8310  # OK, works on sane cases.  Now check whether nonexistent headers
8311  # can be detected and how.
8312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h.  */
8314#include <ac_nonexistent.h>
8315_ACEOF
8316if ac_fn_cxx_try_cpp "$LINENO"; then :
8317  # Broken: success on invalid input.
8318continue
8319else
8320  # Passes both tests.
8321ac_preproc_ok=:
8322break
8323fi
8324rm -f conftest.err conftest.$ac_ext
8325
8326done
8327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8328rm -f conftest.err conftest.$ac_ext
8329if $ac_preproc_ok; then :
8330  break
8331fi
8332
8333    done
8334    ac_cv_prog_CXXCPP=$CXXCPP
8335
8336fi
8337  CXXCPP=$ac_cv_prog_CXXCPP
8338else
8339  ac_cv_prog_CXXCPP=$CXXCPP
8340fi
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8342$as_echo "$CXXCPP" >&6; }
8343ac_preproc_ok=false
8344for ac_cxx_preproc_warn_flag in '' yes
8345do
8346  # Use a header file that comes with gcc, so configuring glibc
8347  # with a fresh cross-compiler works.
8348  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349  # <limits.h> exists even on freestanding compilers.
8350  # On the NeXT, cc -E runs the code through the compiler's parser,
8351  # not just through cpp. "Syntax error" is here to catch this case.
8352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h.  */
8354#ifdef __STDC__
8355# include <limits.h>
8356#else
8357# include <assert.h>
8358#endif
8359                     Syntax error
8360_ACEOF
8361if ac_fn_cxx_try_cpp "$LINENO"; then :
8362
8363else
8364  # Broken: fails on valid input.
8365continue
8366fi
8367rm -f conftest.err conftest.$ac_ext
8368
8369  # OK, works on sane cases.  Now check whether nonexistent headers
8370  # can be detected and how.
8371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h.  */
8373#include <ac_nonexistent.h>
8374_ACEOF
8375if ac_fn_cxx_try_cpp "$LINENO"; then :
8376  # Broken: success on invalid input.
8377continue
8378else
8379  # Passes both tests.
8380ac_preproc_ok=:
8381break
8382fi
8383rm -f conftest.err conftest.$ac_ext
8384
8385done
8386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8387rm -f conftest.err conftest.$ac_ext
8388if $ac_preproc_ok; then :
8389
8390else
8391  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8393_lt_caught_CXX_error=yes; }
8394fi
8395
8396ac_ext=c
8397ac_cpp='$CPP $CPPFLAGS'
8398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402else
8403  _lt_caught_CXX_error=yes
8404fi
8405
8406
8407
8408
8409
8410# Set options
8411
8412
8413
8414        enable_dlopen=no
8415
8416
8417
8418            # Check whether --enable-shared was given.
8419if test "${enable_shared+set}" = set; then :
8420  enableval=$enable_shared; p=${PACKAGE-default}
8421    case $enableval in
8422    yes) enable_shared=yes ;;
8423    no) enable_shared=no ;;
8424    *)
8425      enable_shared=no
8426      # Look at the argument we got.  We use all the common list separators.
8427      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428      for pkg in $enableval; do
8429        IFS="$lt_save_ifs"
8430        if test "X$pkg" = "X$p"; then
8431          enable_shared=yes
8432        fi
8433      done
8434      IFS="$lt_save_ifs"
8435      ;;
8436    esac
8437else
8438  enable_shared=yes
8439fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449  # Check whether --enable-static was given.
8450if test "${enable_static+set}" = set; then :
8451  enableval=$enable_static; p=${PACKAGE-default}
8452    case $enableval in
8453    yes) enable_static=yes ;;
8454    no) enable_static=no ;;
8455    *)
8456     enable_static=no
8457      # Look at the argument we got.  We use all the common list separators.
8458      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8459      for pkg in $enableval; do
8460        IFS="$lt_save_ifs"
8461        if test "X$pkg" = "X$p"; then
8462          enable_static=yes
8463        fi
8464      done
8465      IFS="$lt_save_ifs"
8466      ;;
8467    esac
8468else
8469  enable_static=yes
8470fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481# Check whether --with-pic was given.
8482if test "${with_pic+set}" = set; then :
8483  withval=$with_pic; pic_mode="$withval"
8484else
8485  pic_mode=default
8486fi
8487
8488
8489test -z "$pic_mode" && pic_mode=default
8490
8491
8492
8493
8494
8495
8496
8497  # Check whether --enable-fast-install was given.
8498if test "${enable_fast_install+set}" = set; then :
8499  enableval=$enable_fast_install; p=${PACKAGE-default}
8500    case $enableval in
8501    yes) enable_fast_install=yes ;;
8502    no) enable_fast_install=no ;;
8503    *)
8504      enable_fast_install=no
8505      # Look at the argument we got.  We use all the common list separators.
8506      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8507      for pkg in $enableval; do
8508        IFS="$lt_save_ifs"
8509        if test "X$pkg" = "X$p"; then
8510          enable_fast_install=yes
8511        fi
8512      done
8513      IFS="$lt_save_ifs"
8514      ;;
8515    esac
8516else
8517  enable_fast_install=yes
8518fi
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530# This can be used to rebuild libtool when needed
8531LIBTOOL_DEPS="$ltmain"
8532
8533# Always use our own libtool.
8534LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560test -z "$LN_S" && LN_S="ln -s"
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575if test -n "${ZSH_VERSION+set}" ; then
8576   setopt NO_GLOB_SUBST
8577fi
8578
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8580$as_echo_n "checking for objdir... " >&6; }
8581if test "${lt_cv_objdir+set}" = set; then :
8582  $as_echo_n "(cached) " >&6
8583else
8584  rm -f .libs 2>/dev/null
8585mkdir .libs 2>/dev/null
8586if test -d .libs; then
8587  lt_cv_objdir=.libs
8588else
8589  # MS-DOS does not allow filenames that begin with a dot.
8590  lt_cv_objdir=_libs
8591fi
8592rmdir .libs 2>/dev/null
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8595$as_echo "$lt_cv_objdir" >&6; }
8596objdir=$lt_cv_objdir
8597
8598
8599
8600
8601
8602cat >>confdefs.h <<_ACEOF
8603#define LT_OBJDIR "$lt_cv_objdir/"
8604_ACEOF
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622case $host_os in
8623aix3*)
8624  # AIX sometimes has problems with the GCC collect2 program.  For some
8625  # reason, if we set the COLLECT_NAMES environment variable, the problems
8626  # vanish in a puff of smoke.
8627  if test "X${COLLECT_NAMES+set}" != Xset; then
8628    COLLECT_NAMES=
8629    export COLLECT_NAMES
8630  fi
8631  ;;
8632esac
8633
8634# Sed substitution that helps us do robust quoting.  It backslashifies
8635# metacharacters that are still active within double-quoted strings.
8636sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8637
8638# Same as above, but do not quote variable references.
8639double_quote_subst='s/\(["`\\]\)/\\\1/g'
8640
8641# Sed substitution to delay expansion of an escaped shell variable in a
8642# double_quote_subst'ed string.
8643delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8644
8645# Sed substitution to delay expansion of an escaped single quote.
8646delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8647
8648# Sed substitution to avoid accidental globbing in evaled expressions
8649no_glob_subst='s/\*/\\\*/g'
8650
8651# Global variables:
8652ofile=libtool
8653can_build_shared=yes
8654
8655# All known linkers require a `.a' archive for static linking (except MSVC,
8656# which needs '.lib').
8657libext=a
8658
8659with_gnu_ld="$lt_cv_prog_gnu_ld"
8660
8661old_CC="$CC"
8662old_CFLAGS="$CFLAGS"
8663
8664# Set sane defaults for various variables
8665test -z "$CC" && CC=cc
8666test -z "$LTCC" && LTCC=$CC
8667test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8668test -z "$LD" && LD=ld
8669test -z "$ac_objext" && ac_objext=o
8670
8671for cc_temp in $compiler""; do
8672  case $cc_temp in
8673    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8674    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8675    \-*) ;;
8676    *) break;;
8677  esac
8678done
8679cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8680
8681
8682# Only perform the check for file, if the check method requires it
8683test -z "$MAGIC_CMD" && MAGIC_CMD=file
8684case $deplibs_check_method in
8685file_magic*)
8686  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8688$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8689if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  case $MAGIC_CMD in
8693[\\/*] |  ?:[\\/]*)
8694  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8695  ;;
8696*)
8697  lt_save_MAGIC_CMD="$MAGIC_CMD"
8698  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8699  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8700  for ac_dir in $ac_dummy; do
8701    IFS="$lt_save_ifs"
8702    test -z "$ac_dir" && ac_dir=.
8703    if test -f $ac_dir/${ac_tool_prefix}file; then
8704      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8705      if test -n "$file_magic_test_file"; then
8706        case $deplibs_check_method in
8707        "file_magic "*)
8708          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8709          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8710          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8711            $EGREP "$file_magic_regex" > /dev/null; then
8712            :
8713          else
8714            cat <<_LT_EOF 1>&2
8715
8716*** Warning: the command libtool uses to detect shared libraries,
8717*** $file_magic_cmd, produces output that libtool cannot recognize.
8718*** The result is that libtool may fail to recognize shared libraries
8719*** as such.  This will affect the creation of libtool libraries that
8720*** depend on shared libraries, but programs linked with such libtool
8721*** libraries will work regardless of this problem.  Nevertheless, you
8722*** may want to report the problem to your system manager and/or to
8723*** bug-libtool@gnu.org
8724
8725_LT_EOF
8726          fi ;;
8727        esac
8728      fi
8729      break
8730    fi
8731  done
8732  IFS="$lt_save_ifs"
8733  MAGIC_CMD="$lt_save_MAGIC_CMD"
8734  ;;
8735esac
8736fi
8737
8738MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8739if test -n "$MAGIC_CMD"; then
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8741$as_echo "$MAGIC_CMD" >&6; }
8742else
8743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744$as_echo "no" >&6; }
8745fi
8746
8747
8748
8749
8750
8751if test -z "$lt_cv_path_MAGIC_CMD"; then
8752  if test -n "$ac_tool_prefix"; then
8753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8754$as_echo_n "checking for file... " >&6; }
8755if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  case $MAGIC_CMD in
8759[\\/*] |  ?:[\\/]*)
8760  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8761  ;;
8762*)
8763  lt_save_MAGIC_CMD="$MAGIC_CMD"
8764  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8765  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8766  for ac_dir in $ac_dummy; do
8767    IFS="$lt_save_ifs"
8768    test -z "$ac_dir" && ac_dir=.
8769    if test -f $ac_dir/file; then
8770      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8771      if test -n "$file_magic_test_file"; then
8772        case $deplibs_check_method in
8773        "file_magic "*)
8774          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8775          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8776          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8777            $EGREP "$file_magic_regex" > /dev/null; then
8778            :
8779          else
8780            cat <<_LT_EOF 1>&2
8781
8782*** Warning: the command libtool uses to detect shared libraries,
8783*** $file_magic_cmd, produces output that libtool cannot recognize.
8784*** The result is that libtool may fail to recognize shared libraries
8785*** as such.  This will affect the creation of libtool libraries that
8786*** depend on shared libraries, but programs linked with such libtool
8787*** libraries will work regardless of this problem.  Nevertheless, you
8788*** may want to report the problem to your system manager and/or to
8789*** bug-libtool@gnu.org
8790
8791_LT_EOF
8792          fi ;;
8793        esac
8794      fi
8795      break
8796    fi
8797  done
8798  IFS="$lt_save_ifs"
8799  MAGIC_CMD="$lt_save_MAGIC_CMD"
8800  ;;
8801esac
8802fi
8803
8804MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8805if test -n "$MAGIC_CMD"; then
8806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8807$as_echo "$MAGIC_CMD" >&6; }
8808else
8809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810$as_echo "no" >&6; }
8811fi
8812
8813
8814  else
8815    MAGIC_CMD=:
8816  fi
8817fi
8818
8819  fi
8820  ;;
8821esac
8822
8823# Use C for the default configuration in the libtool script
8824
8825lt_save_CC="$CC"
8826ac_ext=c
8827ac_cpp='$CPP $CPPFLAGS'
8828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831
8832
8833# Source file extension for C test sources.
8834ac_ext=c
8835
8836# Object file extension for compiled C test sources.
8837objext=o
8838objext=$objext
8839
8840# Code to be used in simple compile tests
8841lt_simple_compile_test_code="int some_variable = 0;"
8842
8843# Code to be used in simple link tests
8844lt_simple_link_test_code='int main(){return(0);}'
8845
8846
8847
8848
8849
8850
8851
8852# If no C compiler was specified, use CC.
8853LTCC=${LTCC-"$CC"}
8854
8855# If no C compiler flags were specified, use CFLAGS.
8856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8857
8858# Allow CC to be a program name with arguments.
8859compiler=$CC
8860
8861# Save the default compiler, since it gets overwritten when the other
8862# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8863compiler_DEFAULT=$CC
8864
8865# save warnings/boilerplate of simple test code
8866ac_outfile=conftest.$ac_objext
8867echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8868eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8869_lt_compiler_boilerplate=`cat conftest.err`
8870$RM conftest*
8871
8872ac_outfile=conftest.$ac_objext
8873echo "$lt_simple_link_test_code" >conftest.$ac_ext
8874eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8875_lt_linker_boilerplate=`cat conftest.err`
8876$RM -r conftest*
8877
8878
8879if test -n "$compiler"; then
8880
8881lt_prog_compiler_no_builtin_flag=
8882
8883if test "$GCC" = yes; then
8884  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8885
8886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8887$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8888if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  lt_cv_prog_compiler_rtti_exceptions=no
8892   ac_outfile=conftest.$ac_objext
8893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8894   lt_compiler_flag="-fno-rtti -fno-exceptions"
8895   # Insert the option either (1) after the last *FLAGS variable, or
8896   # (2) before a word containing "conftest.", or (3) at the end.
8897   # Note that $ac_compile itself does not contain backslashes and begins
8898   # with a dollar sign (not a hyphen), so the echo should work correctly.
8899   # The option is referenced via a variable to avoid confusing sed.
8900   lt_compile=`echo "$ac_compile" | $SED \
8901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8903   -e 's:$: $lt_compiler_flag:'`
8904   (eval echo "\"\$as_me:8904: $lt_compile\"" >&5)
8905   (eval "$lt_compile" 2>conftest.err)
8906   ac_status=$?
8907   cat conftest.err >&5
8908   echo "$as_me:8908: \$? = $ac_status" >&5
8909   if (exit $ac_status) && test -s "$ac_outfile"; then
8910     # The compiler can only warn and ignore the option if not recognized
8911     # So say no if there are warnings other than the usual output.
8912     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8913     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8915       lt_cv_prog_compiler_rtti_exceptions=yes
8916     fi
8917   fi
8918   $RM conftest*
8919
8920fi
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8922$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8923
8924if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8925    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8926else
8927    :
8928fi
8929
8930fi
8931
8932
8933
8934
8935
8936
8937  lt_prog_compiler_wl=
8938lt_prog_compiler_pic=
8939lt_prog_compiler_static=
8940
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8942$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8943
8944  if test "$GCC" = yes; then
8945    lt_prog_compiler_wl='-Wl,'
8946    lt_prog_compiler_static='-static'
8947
8948    case $host_os in
8949      aix*)
8950      # All AIX code is PIC.
8951      if test "$host_cpu" = ia64; then
8952        # AIX 5 now supports IA64 processor
8953        lt_prog_compiler_static='-Bstatic'
8954      fi
8955      ;;
8956
8957    amigaos*)
8958      case $host_cpu in
8959      powerpc)
8960            # see comment about AmigaOS4 .so support
8961            lt_prog_compiler_pic='-fPIC'
8962        ;;
8963      m68k)
8964            # FIXME: we need at least 68020 code to build shared libraries, but
8965            # adding the `-m68020' flag to GCC prevents building anything better,
8966            # like `-m68040'.
8967            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8968        ;;
8969      esac
8970      ;;
8971
8972    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8973      # PIC is the default for these OSes.
8974      ;;
8975
8976    mingw* | cygwin* | pw32* | os2* | cegcc*)
8977      # This hack is so that the source file can tell whether it is being
8978      # built for inclusion in a dll (and should export symbols for example).
8979      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8980      # (--disable-auto-import) libraries
8981      lt_prog_compiler_pic='-DDLL_EXPORT'
8982      ;;
8983
8984    darwin* | rhapsody*)
8985      # PIC is the default on this platform
8986      # Common symbols not allowed in MH_DYLIB files
8987      lt_prog_compiler_pic='-fno-common'
8988      ;;
8989
8990    hpux*)
8991      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8992      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8993      # sets the default TLS model and affects inlining.
8994      case $host_cpu in
8995      hppa*64*)
8996        # +Z the default
8997        ;;
8998      *)
8999        lt_prog_compiler_pic='-fPIC'
9000        ;;
9001      esac
9002      ;;
9003
9004    interix[3-9]*)
9005      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9006      # Instead, we relocate shared libraries at runtime.
9007      ;;
9008
9009    msdosdjgpp*)
9010      # Just because we use GCC doesn't mean we suddenly get shared libraries
9011      # on systems that don't support them.
9012      lt_prog_compiler_can_build_shared=no
9013      enable_shared=no
9014      ;;
9015
9016    *nto* | *qnx*)
9017      # QNX uses GNU C++, but need to define -shared option too, otherwise
9018      # it will coredump.
9019      lt_prog_compiler_pic='-fPIC -shared'
9020      ;;
9021
9022    sysv4*MP*)
9023      if test -d /usr/nec; then
9024        lt_prog_compiler_pic=-Kconform_pic
9025      fi
9026      ;;
9027
9028    *)
9029      lt_prog_compiler_pic='-fPIC'
9030      ;;
9031    esac
9032  else
9033    # PORTME Check for flag to pass linker flags through the system compiler.
9034    case $host_os in
9035    aix*)
9036      lt_prog_compiler_wl='-Wl,'
9037      if test "$host_cpu" = ia64; then
9038        # AIX 5 now supports IA64 processor
9039        lt_prog_compiler_static='-Bstatic'
9040      else
9041        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9042      fi
9043      ;;
9044
9045    mingw* | cygwin* | pw32* | os2* | cegcc*)
9046      # This hack is so that the source file can tell whether it is being
9047      # built for inclusion in a dll (and should export symbols for example).
9048      lt_prog_compiler_pic='-DDLL_EXPORT'
9049      ;;
9050
9051    hpux9* | hpux10* | hpux11*)
9052      lt_prog_compiler_wl='-Wl,'
9053      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9054      # not for PA HP-UX.
9055      case $host_cpu in
9056      hppa*64*|ia64*)
9057        # +Z the default
9058        ;;
9059      *)
9060        lt_prog_compiler_pic='+Z'
9061        ;;
9062      esac
9063      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9064      lt_prog_compiler_static='${wl}-a ${wl}archive'
9065      ;;
9066
9067    irix5* | irix6* | nonstopux*)
9068      lt_prog_compiler_wl='-Wl,'
9069      # PIC (with -KPIC) is the default.
9070      lt_prog_compiler_static='-non_shared'
9071      ;;
9072
9073    linux* | k*bsd*-gnu)
9074      case $cc_basename in
9075      # old Intel for x86_64 which still supported -KPIC.
9076      ecc*)
9077        lt_prog_compiler_wl='-Wl,'
9078        lt_prog_compiler_pic='-KPIC'
9079        lt_prog_compiler_static='-static'
9080        ;;
9081      # icc used to be incompatible with GCC.
9082      # ICC 10 doesn't accept -KPIC any more.
9083      icc* | ifort*)
9084        lt_prog_compiler_wl='-Wl,'
9085        lt_prog_compiler_pic='-fPIC'
9086        lt_prog_compiler_static='-static'
9087        ;;
9088      # Lahey Fortran 8.1.
9089      lf95*)
9090        lt_prog_compiler_wl='-Wl,'
9091        lt_prog_compiler_pic='--shared'
9092        lt_prog_compiler_static='--static'
9093        ;;
9094      pgcc* | pgf77* | pgf90* | pgf95*)
9095        # Portland Group compilers (*not* the Pentium gcc compiler,
9096        # which looks to be a dead project)
9097        lt_prog_compiler_wl='-Wl,'
9098        lt_prog_compiler_pic='-fpic'
9099        lt_prog_compiler_static='-Bstatic'
9100        ;;
9101      ccc*)
9102        lt_prog_compiler_wl='-Wl,'
9103        # All Alpha code is PIC.
9104        lt_prog_compiler_static='-non_shared'
9105        ;;
9106      xl*)
9107        # IBM XL C 8.0/Fortran 10.1 on PPC
9108        lt_prog_compiler_wl='-Wl,'
9109        lt_prog_compiler_pic='-qpic'
9110        lt_prog_compiler_static='-qstaticlink'
9111        ;;
9112      *)
9113        case `$CC -V 2>&1 | sed 5q` in
9114        *Sun\ C*)
9115          # Sun C 5.9
9116          lt_prog_compiler_pic='-KPIC'
9117          lt_prog_compiler_static='-Bstatic'
9118          lt_prog_compiler_wl='-Wl,'
9119          ;;
9120        *Sun\ F*)
9121          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9122          lt_prog_compiler_pic='-KPIC'
9123          lt_prog_compiler_static='-Bstatic'
9124          lt_prog_compiler_wl=''
9125          ;;
9126        esac
9127        ;;
9128      esac
9129      ;;
9130
9131    newsos6)
9132      lt_prog_compiler_pic='-KPIC'
9133      lt_prog_compiler_static='-Bstatic'
9134      ;;
9135
9136    *nto* | *qnx*)
9137      # QNX uses GNU C++, but need to define -shared option too, otherwise
9138      # it will coredump.
9139      lt_prog_compiler_pic='-fPIC -shared'
9140      ;;
9141
9142    osf3* | osf4* | osf5*)
9143      lt_prog_compiler_wl='-Wl,'
9144      # All OSF/1 code is PIC.
9145      lt_prog_compiler_static='-non_shared'
9146      ;;
9147
9148    rdos*)
9149      lt_prog_compiler_static='-non_shared'
9150      ;;
9151
9152    solaris*)
9153      lt_prog_compiler_pic='-KPIC'
9154      lt_prog_compiler_static='-Bstatic'
9155      case $cc_basename in
9156      f77* | f90* | f95*)
9157        lt_prog_compiler_wl='-Qoption ld ';;
9158      *)
9159        lt_prog_compiler_wl='-Wl,';;
9160      esac
9161      ;;
9162
9163    sunos4*)
9164      lt_prog_compiler_wl='-Qoption ld '
9165      lt_prog_compiler_pic='-PIC'
9166      lt_prog_compiler_static='-Bstatic'
9167      ;;
9168
9169    sysv4 | sysv4.2uw2* | sysv4.3*)
9170      lt_prog_compiler_wl='-Wl,'
9171      lt_prog_compiler_pic='-KPIC'
9172      lt_prog_compiler_static='-Bstatic'
9173      ;;
9174
9175    sysv4*MP*)
9176      if test -d /usr/nec ;then
9177        lt_prog_compiler_pic='-Kconform_pic'
9178        lt_prog_compiler_static='-Bstatic'
9179      fi
9180      ;;
9181
9182    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9183      lt_prog_compiler_wl='-Wl,'
9184      lt_prog_compiler_pic='-KPIC'
9185      lt_prog_compiler_static='-Bstatic'
9186      ;;
9187
9188    unicos*)
9189      lt_prog_compiler_wl='-Wl,'
9190      lt_prog_compiler_can_build_shared=no
9191      ;;
9192
9193    uts4*)
9194      lt_prog_compiler_pic='-pic'
9195      lt_prog_compiler_static='-Bstatic'
9196      ;;
9197
9198    *)
9199      lt_prog_compiler_can_build_shared=no
9200      ;;
9201    esac
9202  fi
9203
9204case $host_os in
9205  # For platforms which do not support PIC, -DPIC is meaningless:
9206  *djgpp*)
9207    lt_prog_compiler_pic=
9208    ;;
9209  *)
9210    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9211    ;;
9212esac
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9214$as_echo "$lt_prog_compiler_pic" >&6; }
9215
9216
9217
9218
9219
9220
9221#
9222# Check to make sure the PIC flag actually works.
9223#
9224if test -n "$lt_prog_compiler_pic"; then
9225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9226$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9227if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  lt_cv_prog_compiler_pic_works=no
9231   ac_outfile=conftest.$ac_objext
9232   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9233   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9234   # Insert the option either (1) after the last *FLAGS variable, or
9235   # (2) before a word containing "conftest.", or (3) at the end.
9236   # Note that $ac_compile itself does not contain backslashes and begins
9237   # with a dollar sign (not a hyphen), so the echo should work correctly.
9238   # The option is referenced via a variable to avoid confusing sed.
9239   lt_compile=`echo "$ac_compile" | $SED \
9240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9242   -e 's:$: $lt_compiler_flag:'`
9243   (eval echo "\"\$as_me:9243: $lt_compile\"" >&5)
9244   (eval "$lt_compile" 2>conftest.err)
9245   ac_status=$?
9246   cat conftest.err >&5
9247   echo "$as_me:9247: \$? = $ac_status" >&5
9248   if (exit $ac_status) && test -s "$ac_outfile"; then
9249     # The compiler can only warn and ignore the option if not recognized
9250     # So say no if there are warnings other than the usual output.
9251     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9252     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9253     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9254       lt_cv_prog_compiler_pic_works=yes
9255     fi
9256   fi
9257   $RM conftest*
9258
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9261$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9262
9263if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9264    case $lt_prog_compiler_pic in
9265     "" | " "*) ;;
9266     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9267     esac
9268else
9269    lt_prog_compiler_pic=
9270     lt_prog_compiler_can_build_shared=no
9271fi
9272
9273fi
9274
9275
9276
9277
9278
9279
9280#
9281# Check to make sure the static flag actually works.
9282#
9283wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9285$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9286if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9287  $as_echo_n "(cached) " >&6
9288else
9289  lt_cv_prog_compiler_static_works=no
9290   save_LDFLAGS="$LDFLAGS"
9291   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9292   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9293   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9294     # The linker can only warn and ignore the option if not recognized
9295     # So say no if there are warnings
9296     if test -s conftest.err; then
9297       # Append any errors to the config.log.
9298       cat conftest.err 1>&5
9299       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9300       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9301       if diff conftest.exp conftest.er2 >/dev/null; then
9302         lt_cv_prog_compiler_static_works=yes
9303       fi
9304     else
9305       lt_cv_prog_compiler_static_works=yes
9306     fi
9307   fi
9308   $RM -r conftest*
9309   LDFLAGS="$save_LDFLAGS"
9310
9311fi
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9313$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9314
9315if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9316    :
9317else
9318    lt_prog_compiler_static=
9319fi
9320
9321
9322
9323
9324
9325
9326
9327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9328$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9329if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  lt_cv_prog_compiler_c_o=no
9333   $RM -r conftest 2>/dev/null
9334   mkdir conftest
9335   cd conftest
9336   mkdir out
9337   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9338
9339   lt_compiler_flag="-o out/conftest2.$ac_objext"
9340   # Insert the option either (1) after the last *FLAGS variable, or
9341   # (2) before a word containing "conftest.", or (3) at the end.
9342   # Note that $ac_compile itself does not contain backslashes and begins
9343   # with a dollar sign (not a hyphen), so the echo should work correctly.
9344   lt_compile=`echo "$ac_compile" | $SED \
9345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9347   -e 's:$: $lt_compiler_flag:'`
9348   (eval echo "\"\$as_me:9348: $lt_compile\"" >&5)
9349   (eval "$lt_compile" 2>out/conftest.err)
9350   ac_status=$?
9351   cat out/conftest.err >&5
9352   echo "$as_me:9352: \$? = $ac_status" >&5
9353   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9354   then
9355     # The compiler can only warn and ignore the option if not recognized
9356     # So say no if there are warnings
9357     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9358     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9359     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9360       lt_cv_prog_compiler_c_o=yes
9361     fi
9362   fi
9363   chmod u+w . 2>&5
9364   $RM conftest*
9365   # SGI C++ compiler will create directory out/ii_files/ for
9366   # template instantiation
9367   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9368   $RM out/* && rmdir out
9369   cd ..
9370   $RM -r conftest
9371   $RM conftest*
9372
9373fi
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9375$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9376
9377
9378
9379
9380
9381
9382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9383$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9384if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  lt_cv_prog_compiler_c_o=no
9388   $RM -r conftest 2>/dev/null
9389   mkdir conftest
9390   cd conftest
9391   mkdir out
9392   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9393
9394   lt_compiler_flag="-o out/conftest2.$ac_objext"
9395   # Insert the option either (1) after the last *FLAGS variable, or
9396   # (2) before a word containing "conftest.", or (3) at the end.
9397   # Note that $ac_compile itself does not contain backslashes and begins
9398   # with a dollar sign (not a hyphen), so the echo should work correctly.
9399   lt_compile=`echo "$ac_compile" | $SED \
9400   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9401   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9402   -e 's:$: $lt_compiler_flag:'`
9403   (eval echo "\"\$as_me:9403: $lt_compile\"" >&5)
9404   (eval "$lt_compile" 2>out/conftest.err)
9405   ac_status=$?
9406   cat out/conftest.err >&5
9407   echo "$as_me:9407: \$? = $ac_status" >&5
9408   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9409   then
9410     # The compiler can only warn and ignore the option if not recognized
9411     # So say no if there are warnings
9412     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9413     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9414     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9415       lt_cv_prog_compiler_c_o=yes
9416     fi
9417   fi
9418   chmod u+w . 2>&5
9419   $RM conftest*
9420   # SGI C++ compiler will create directory out/ii_files/ for
9421   # template instantiation
9422   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9423   $RM out/* && rmdir out
9424   cd ..
9425   $RM -r conftest
9426   $RM conftest*
9427
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9430$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9431
9432
9433
9434
9435hard_links="nottested"
9436if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9437  # do not overwrite the value of need_locks provided by the user
9438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9439$as_echo_n "checking if we can lock with hard links... " >&6; }
9440  hard_links=yes
9441  $RM conftest*
9442  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9443  touch conftest.a
9444  ln conftest.a conftest.b 2>&5 || hard_links=no
9445  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9447$as_echo "$hard_links" >&6; }
9448  if test "$hard_links" = no; then
9449    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9450$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9451    need_locks=warn
9452  fi
9453else
9454  need_locks=no
9455fi
9456
9457
9458
9459
9460
9461
9462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9463$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9464
9465  runpath_var=
9466  allow_undefined_flag=
9467  always_export_symbols=no
9468  archive_cmds=
9469  archive_expsym_cmds=
9470  compiler_needs_object=no
9471  enable_shared_with_static_runtimes=no
9472  export_dynamic_flag_spec=
9473  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9474  hardcode_automatic=no
9475  hardcode_direct=no
9476  hardcode_direct_absolute=no
9477  hardcode_libdir_flag_spec=
9478  hardcode_libdir_flag_spec_ld=
9479  hardcode_libdir_separator=
9480  hardcode_minus_L=no
9481  hardcode_shlibpath_var=unsupported
9482  inherit_rpath=no
9483  link_all_deplibs=unknown
9484  module_cmds=
9485  module_expsym_cmds=
9486  old_archive_from_new_cmds=
9487  old_archive_from_expsyms_cmds=
9488  thread_safe_flag_spec=
9489  whole_archive_flag_spec=
9490  # include_expsyms should be a list of space-separated symbols to be *always*
9491  # included in the symbol list
9492  include_expsyms=
9493  # exclude_expsyms can be an extended regexp of symbols to exclude
9494  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9495  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9496  # as well as any symbol that contains `d'.
9497  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9498  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9499  # platforms (ab)use it in PIC code, but their linkers get confused if
9500  # the symbol is explicitly referenced.  Since portable code cannot
9501  # rely on this symbol name, it's probably fine to never include it in
9502  # preloaded symbol tables.
9503  # Exclude shared library initialization/finalization symbols.
9504  extract_expsyms_cmds=
9505
9506  case $host_os in
9507  cygwin* | mingw* | pw32* | cegcc*)
9508    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9509    # When not using gcc, we currently assume that we are using
9510    # Microsoft Visual C++.
9511    if test "$GCC" != yes; then
9512      with_gnu_ld=no
9513    fi
9514    ;;
9515  interix*)
9516    # we just hope/assume this is gcc and not c89 (= MSVC++)
9517    with_gnu_ld=yes
9518    ;;
9519  openbsd*)
9520    with_gnu_ld=no
9521    ;;
9522  esac
9523
9524  ld_shlibs=yes
9525  if test "$with_gnu_ld" = yes; then
9526    # If archive_cmds runs LD, not CC, wlarc should be empty
9527    wlarc='${wl}'
9528
9529    # Set some defaults for GNU ld with shared library support. These
9530    # are reset later if shared libraries are not supported. Putting them
9531    # here allows them to be overridden if necessary.
9532    runpath_var=LD_RUN_PATH
9533    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534    export_dynamic_flag_spec='${wl}--export-dynamic'
9535    # ancient GNU ld didn't support --whole-archive et. al.
9536    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9537      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9538    else
9539      whole_archive_flag_spec=
9540    fi
9541    supports_anon_versioning=no
9542    case `$LD -v 2>&1` in
9543      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9544      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9545      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9546      *\ 2.11.*) ;; # other 2.11 versions
9547      *) supports_anon_versioning=yes ;;
9548    esac
9549
9550    # See if GNU ld supports shared libraries.
9551    case $host_os in
9552    aix[3-9]*)
9553      # On AIX/PPC, the GNU linker is very broken
9554      if test "$host_cpu" != ia64; then
9555        ld_shlibs=no
9556        cat <<_LT_EOF 1>&2
9557
9558*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9559*** to be unable to reliably create shared libraries on AIX.
9560*** Therefore, libtool is disabling shared libraries support.  If you
9561*** really care for shared libraries, you may want to modify your PATH
9562*** so that a non-GNU linker is found, and then restart.
9563
9564_LT_EOF
9565      fi
9566      ;;
9567
9568    amigaos*)
9569      case $host_cpu in
9570      powerpc)
9571            # see comment about AmigaOS4 .so support
9572            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573            archive_expsym_cmds=''
9574        ;;
9575      m68k)
9576            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)'
9577            hardcode_libdir_flag_spec='-L$libdir'
9578            hardcode_minus_L=yes
9579        ;;
9580      esac
9581      ;;
9582
9583    beos*)
9584      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9585        allow_undefined_flag=unsupported
9586        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9587        # support --undefined.  This deserves some investigation.  FIXME
9588        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9589      else
9590        ld_shlibs=no
9591      fi
9592      ;;
9593
9594    cygwin* | mingw* | pw32* | cegcc*)
9595      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9596      # as there is no search path for DLLs.
9597      hardcode_libdir_flag_spec='-L$libdir'
9598      allow_undefined_flag=unsupported
9599      always_export_symbols=no
9600      enable_shared_with_static_runtimes=yes
9601      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9602
9603      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9604        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9605        # If the export-symbols file already is a .def file (1st line
9606        # is EXPORTS), use it as is; otherwise, prepend...
9607        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9608          cp $export_symbols $output_objdir/$soname.def;
9609        else
9610          echo EXPORTS > $output_objdir/$soname.def;
9611          cat $export_symbols >> $output_objdir/$soname.def;
9612        fi~
9613        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9614      else
9615        ld_shlibs=no
9616      fi
9617      ;;
9618
9619    interix[3-9]*)
9620      hardcode_direct=no
9621      hardcode_shlibpath_var=no
9622      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623      export_dynamic_flag_spec='${wl}-E'
9624      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9625      # Instead, shared libraries are loaded at an image base (0x10000000 by
9626      # default) and relocated if they conflict, which is a slow very memory
9627      # consuming and fragmenting process.  To avoid this, we pick a random,
9628      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9629      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9630      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9631      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'
9632      ;;
9633
9634    gnu* | linux* | tpf* | k*bsd*-gnu)
9635      tmp_diet=no
9636      if test "$host_os" = linux-dietlibc; then
9637        case $cc_basename in
9638          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9639        esac
9640      fi
9641      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9642         && test "$tmp_diet" = no
9643      then
9644        tmp_addflag=
9645        tmp_sharedflag='-shared'
9646        case $cc_basename,$host_cpu in
9647        pgcc*)                          # Portland Group C compiler
9648          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9649          tmp_addflag=' $pic_flag'
9650          ;;
9651        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9652          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9653          tmp_addflag=' $pic_flag -Mnomain' ;;
9654        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9655          tmp_addflag=' -i_dynamic' ;;
9656        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9657          tmp_addflag=' -i_dynamic -nofor_main' ;;
9658        ifc* | ifort*)                  # Intel Fortran compiler
9659          tmp_addflag=' -nofor_main' ;;
9660        lf95*)                          # Lahey Fortran 8.1
9661          whole_archive_flag_spec=
9662          tmp_sharedflag='--shared' ;;
9663        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9664          tmp_sharedflag='-qmkshrobj'
9665          tmp_addflag= ;;
9666        esac
9667        case `$CC -V 2>&1 | sed 5q` in
9668        *Sun\ C*)                       # Sun C 5.9
9669          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9670          compiler_needs_object=yes
9671          tmp_sharedflag='-G' ;;
9672        *Sun\ F*)                       # Sun Fortran 8.3
9673          tmp_sharedflag='-G' ;;
9674        esac
9675        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676
9677        if test "x$supports_anon_versioning" = xyes; then
9678          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9679            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9680            echo "local: *; };" >> $output_objdir/$libname.ver~
9681            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9682        fi
9683
9684        case $cc_basename in
9685        xlf*)
9686          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9687          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9688          hardcode_libdir_flag_spec=
9689          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9690          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9691          if test "x$supports_anon_versioning" = xyes; then
9692            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9693              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9694              echo "local: *; };" >> $output_objdir/$libname.ver~
9695              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9696          fi
9697          ;;
9698        esac
9699      else
9700        ld_shlibs=no
9701      fi
9702      ;;
9703
9704    netbsd*)
9705      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9706        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9707        wlarc=
9708      else
9709        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9711      fi
9712      ;;
9713
9714    solaris*)
9715      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9716        ld_shlibs=no
9717        cat <<_LT_EOF 1>&2
9718
9719*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9720*** create shared libraries on Solaris systems.  Therefore, libtool
9721*** is disabling shared libraries support.  We urge you to upgrade GNU
9722*** binutils to release 2.9.1 or newer.  Another option is to modify
9723*** your PATH or compiler configuration so that the native linker is
9724*** used, and then restart.
9725
9726_LT_EOF
9727      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9730      else
9731        ld_shlibs=no
9732      fi
9733      ;;
9734
9735    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9736      case `$LD -v 2>&1` in
9737        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9738        ld_shlibs=no
9739        cat <<_LT_EOF 1>&2
9740
9741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9742*** reliably create shared libraries on SCO systems.  Therefore, libtool
9743*** is disabling shared libraries support.  We urge you to upgrade GNU
9744*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9745*** your PATH or compiler configuration so that the native linker is
9746*** used, and then restart.
9747
9748_LT_EOF
9749        ;;
9750        *)
9751          # For security reasons, it is highly recommended that you always
9752          # use absolute paths for naming shared libraries, and exclude the
9753          # DT_RUNPATH tag from executables and libraries.  But doing so
9754          # requires that you compile everything twice, which is a pain.
9755          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9756            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9757            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9759          else
9760            ld_shlibs=no
9761          fi
9762        ;;
9763      esac
9764      ;;
9765
9766    sunos4*)
9767      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9768      wlarc=
9769      hardcode_direct=yes
9770      hardcode_shlibpath_var=no
9771      ;;
9772
9773    *)
9774      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9775        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9777      else
9778        ld_shlibs=no
9779      fi
9780      ;;
9781    esac
9782
9783    if test "$ld_shlibs" = no; then
9784      runpath_var=
9785      hardcode_libdir_flag_spec=
9786      export_dynamic_flag_spec=
9787      whole_archive_flag_spec=
9788    fi
9789  else
9790    # PORTME fill in a description of your system's linker (not GNU ld)
9791    case $host_os in
9792    aix3*)
9793      allow_undefined_flag=unsupported
9794      always_export_symbols=yes
9795      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'
9796      # Note: this linker hardcodes the directories in LIBPATH if there
9797      # are no directories specified by -L.
9798      hardcode_minus_L=yes
9799      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9800        # Neither direct hardcoding nor static linking is supported with a
9801        # broken collect2.
9802        hardcode_direct=unsupported
9803      fi
9804      ;;
9805
9806    aix[4-9]*)
9807      if test "$host_cpu" = ia64; then
9808        # On IA64, the linker does run time linking by default, so we don't
9809        # have to do anything special.
9810        aix_use_runtimelinking=no
9811        exp_sym_flag='-Bexport'
9812        no_entry_flag=""
9813      else
9814        # If we're using GNU nm, then we don't want the "-C" option.
9815        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9816        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9817          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9818        else
9819          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'
9820        fi
9821        aix_use_runtimelinking=no
9822
9823        # Test if we are trying to use run time linking or normal
9824        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9825        # need to do runtime linking.
9826        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9827          for ld_flag in $LDFLAGS; do
9828          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9829            aix_use_runtimelinking=yes
9830            break
9831          fi
9832          done
9833          ;;
9834        esac
9835
9836        exp_sym_flag='-bexport'
9837        no_entry_flag='-bnoentry'
9838      fi
9839
9840      # When large executables or shared objects are built, AIX ld can
9841      # have problems creating the table of contents.  If linking a library
9842      # or program results in "error TOC overflow" add -mminimal-toc to
9843      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9844      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9845
9846      archive_cmds=''
9847      hardcode_direct=yes
9848      hardcode_direct_absolute=yes
9849      hardcode_libdir_separator=':'
9850      link_all_deplibs=yes
9851      file_list_spec='${wl}-f,'
9852
9853      if test "$GCC" = yes; then
9854        case $host_os in aix4.[012]|aix4.[012].*)
9855        # We only want to do this on AIX 4.2 and lower, the check
9856        # below for broken collect2 doesn't work under 4.3+
9857          collect2name=`${CC} -print-prog-name=collect2`
9858          if test -f "$collect2name" &&
9859           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9860          then
9861          # We have reworked collect2
9862          :
9863          else
9864          # We have old collect2
9865          hardcode_direct=unsupported
9866          # It fails to find uninstalled libraries when the uninstalled
9867          # path is not listed in the libpath.  Setting hardcode_minus_L
9868          # to unsupported forces relinking
9869          hardcode_minus_L=yes
9870          hardcode_libdir_flag_spec='-L$libdir'
9871          hardcode_libdir_separator=
9872          fi
9873          ;;
9874        esac
9875        shared_flag='-shared'
9876        if test "$aix_use_runtimelinking" = yes; then
9877          shared_flag="$shared_flag "'${wl}-G'
9878        fi
9879      else
9880        # not using gcc
9881        if test "$host_cpu" = ia64; then
9882        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9883        # chokes on -Wl,-G. The following line is correct:
9884          shared_flag='-G'
9885        else
9886          if test "$aix_use_runtimelinking" = yes; then
9887            shared_flag='${wl}-G'
9888          else
9889            shared_flag='${wl}-bM:SRE'
9890          fi
9891        fi
9892      fi
9893
9894      export_dynamic_flag_spec='${wl}-bexpall'
9895      # It seems that -bexpall does not export symbols beginning with
9896      # underscore (_), so it is better to generate a list of symbols to export.
9897      always_export_symbols=yes
9898      if test "$aix_use_runtimelinking" = yes; then
9899        # Warning - without using the other runtime loading flags (-brtl),
9900        # -berok will link without error, but may produce a broken library.
9901        allow_undefined_flag='-berok'
9902        # Determine the default libpath from the value encoded in an
9903        # empty executable.
9904        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h.  */
9906
9907int
9908main ()
9909{
9910
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916
9917lt_aix_libpath_sed='
9918    /Import File Strings/,/^$/ {
9919        /^0/ {
9920            s/^0  *\(.*\)$/\1/
9921            p
9922        }
9923    }'
9924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925# Check for a 64-bit object if we didn't find anything.
9926if test -z "$aix_libpath"; then
9927  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9928fi
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931    conftest$ac_exeext conftest.$ac_ext
9932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9933
9934        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9935        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9936      else
9937        if test "$host_cpu" = ia64; then
9938          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9939          allow_undefined_flag="-z nodefs"
9940          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9941        else
9942         # Determine the default libpath from the value encoded in an
9943         # empty executable.
9944         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946
9947int
9948main ()
9949{
9950
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956
9957lt_aix_libpath_sed='
9958    /Import File Strings/,/^$/ {
9959        /^0/ {
9960            s/^0  *\(.*\)$/\1/
9961            p
9962        }
9963    }'
9964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9965# Check for a 64-bit object if we didn't find anything.
9966if test -z "$aix_libpath"; then
9967  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9968fi
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971    conftest$ac_exeext conftest.$ac_ext
9972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9973
9974         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9975          # Warning - without using the other run time loading flags,
9976          # -berok will link without error, but may produce a broken library.
9977          no_undefined_flag=' ${wl}-bernotok'
9978          allow_undefined_flag=' ${wl}-berok'
9979          # Exported symbols can be pulled into shared objects from archives
9980          whole_archive_flag_spec='$convenience'
9981          archive_cmds_need_lc=yes
9982          # This is similar to how AIX traditionally builds its shared libraries.
9983          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9984        fi
9985      fi
9986      ;;
9987
9988    amigaos*)
9989      case $host_cpu in
9990      powerpc)
9991            # see comment about AmigaOS4 .so support
9992            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9993            archive_expsym_cmds=''
9994        ;;
9995      m68k)
9996            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)'
9997            hardcode_libdir_flag_spec='-L$libdir'
9998            hardcode_minus_L=yes
9999        ;;
10000      esac
10001      ;;
10002
10003    bsdi[45]*)
10004      export_dynamic_flag_spec=-rdynamic
10005      ;;
10006
10007    cygwin* | mingw* | pw32* | cegcc*)
10008      # When not using gcc, we currently assume that we are using
10009      # Microsoft Visual C++.
10010      # hardcode_libdir_flag_spec is actually meaningless, as there is
10011      # no search path for DLLs.
10012      hardcode_libdir_flag_spec=' '
10013      allow_undefined_flag=unsupported
10014      # Tell ltmain to make .lib files, not .a files.
10015      libext=lib
10016      # Tell ltmain to make .dll files, not .so files.
10017      shrext_cmds=".dll"
10018      # FIXME: Setting linknames here is a bad hack.
10019      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10020      # The linker will automatically build a .lib file if we build a DLL.
10021      old_archive_from_new_cmds='true'
10022      # FIXME: Should let the user specify the lib program.
10023      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10024      fix_srcfile_path='`cygpath -w "$srcfile"`'
10025      enable_shared_with_static_runtimes=yes
10026      ;;
10027
10028    darwin* | rhapsody*)
10029
10030
10031  archive_cmds_need_lc=no
10032  hardcode_direct=no
10033  hardcode_automatic=yes
10034  hardcode_shlibpath_var=unsupported
10035  whole_archive_flag_spec=''
10036  link_all_deplibs=yes
10037  allow_undefined_flag="$_lt_dar_allow_undefined"
10038  case $cc_basename in
10039     ifort*) _lt_dar_can_shared=yes ;;
10040     *) _lt_dar_can_shared=$GCC ;;
10041  esac
10042  if test "$_lt_dar_can_shared" = "yes"; then
10043    output_verbose_link_cmd=echo
10044    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10045    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10046    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10047    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10048
10049  else
10050  ld_shlibs=no
10051  fi
10052
10053      ;;
10054
10055    dgux*)
10056      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057      hardcode_libdir_flag_spec='-L$libdir'
10058      hardcode_shlibpath_var=no
10059      ;;
10060
10061    freebsd1*)
10062      ld_shlibs=no
10063      ;;
10064
10065    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10066    # support.  Future versions do this automatically, but an explicit c++rt0.o
10067    # does not break anything, and helps significantly (at the cost of a little
10068    # extra space).
10069    freebsd2.2*)
10070      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10071      hardcode_libdir_flag_spec='-R$libdir'
10072      hardcode_direct=yes
10073      hardcode_shlibpath_var=no
10074      ;;
10075
10076    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10077    freebsd2*)
10078      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10079      hardcode_direct=yes
10080      hardcode_minus_L=yes
10081      hardcode_shlibpath_var=no
10082      ;;
10083
10084    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10085    freebsd* | dragonfly*)
10086      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10087      hardcode_libdir_flag_spec='-R$libdir'
10088      hardcode_direct=yes
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    hpux9*)
10093      if test "$GCC" = yes; then
10094        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10095      else
10096        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10097      fi
10098      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10099      hardcode_libdir_separator=:
10100      hardcode_direct=yes
10101
10102      # hardcode_minus_L: Not really in the search PATH,
10103      # but as the default location of the library.
10104      hardcode_minus_L=yes
10105      export_dynamic_flag_spec='${wl}-E'
10106      ;;
10107
10108    hpux10*)
10109      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10110        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10111      else
10112        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10113      fi
10114      if test "$with_gnu_ld" = no; then
10115        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10116        hardcode_libdir_flag_spec_ld='+b $libdir'
10117        hardcode_libdir_separator=:
10118        hardcode_direct=yes
10119        hardcode_direct_absolute=yes
10120        export_dynamic_flag_spec='${wl}-E'
10121        # hardcode_minus_L: Not really in the search PATH,
10122        # but as the default location of the library.
10123        hardcode_minus_L=yes
10124      fi
10125      ;;
10126
10127    hpux11*)
10128      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10129        case $host_cpu in
10130        hppa*64*)
10131          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10132          ;;
10133        ia64*)
10134          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10135          ;;
10136        *)
10137          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10138          ;;
10139        esac
10140      else
10141        case $host_cpu in
10142        hppa*64*)
10143          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10144          ;;
10145        ia64*)
10146          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10147          ;;
10148        *)
10149          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10150          ;;
10151        esac
10152      fi
10153      if test "$with_gnu_ld" = no; then
10154        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10155        hardcode_libdir_separator=:
10156
10157        case $host_cpu in
10158        hppa*64*|ia64*)
10159          hardcode_direct=no
10160          hardcode_shlibpath_var=no
10161          ;;
10162        *)
10163          hardcode_direct=yes
10164          hardcode_direct_absolute=yes
10165          export_dynamic_flag_spec='${wl}-E'
10166
10167          # hardcode_minus_L: Not really in the search PATH,
10168          # but as the default location of the library.
10169          hardcode_minus_L=yes
10170          ;;
10171        esac
10172      fi
10173      ;;
10174
10175    irix5* | irix6* | nonstopux*)
10176      if test "$GCC" = yes; then
10177        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10178        # Try to use the -exported_symbol ld option, if it does not
10179        # work, assume that -exports_file does not work either and
10180        # implicitly export all symbols.
10181        save_LDFLAGS="$LDFLAGS"
10182        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int foo(void) {}
10186_ACEOF
10187if ac_fn_c_try_link "$LINENO"; then :
10188  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10189
10190fi
10191rm -f core conftest.err conftest.$ac_objext \
10192    conftest$ac_exeext conftest.$ac_ext
10193        LDFLAGS="$save_LDFLAGS"
10194      else
10195        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10196        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10197      fi
10198      archive_cmds_need_lc='no'
10199      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200      hardcode_libdir_separator=:
10201      inherit_rpath=yes
10202      link_all_deplibs=yes
10203      ;;
10204
10205    netbsd*)
10206      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10208      else
10209        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10210      fi
10211      hardcode_libdir_flag_spec='-R$libdir'
10212      hardcode_direct=yes
10213      hardcode_shlibpath_var=no
10214      ;;
10215
10216    newsos6)
10217      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218      hardcode_direct=yes
10219      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220      hardcode_libdir_separator=:
10221      hardcode_shlibpath_var=no
10222      ;;
10223
10224    *nto* | *qnx*)
10225      ;;
10226
10227    openbsd*)
10228      if test -f /usr/libexec/ld.so; then
10229        hardcode_direct=yes
10230        hardcode_shlibpath_var=no
10231        hardcode_direct_absolute=yes
10232        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10233          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10234          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10235          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10236          export_dynamic_flag_spec='${wl}-E'
10237        else
10238          case $host_os in
10239           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10240             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10241             hardcode_libdir_flag_spec='-R$libdir'
10242             ;;
10243           *)
10244             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10246             ;;
10247          esac
10248        fi
10249      else
10250        ld_shlibs=no
10251      fi
10252      ;;
10253
10254    os2*)
10255      hardcode_libdir_flag_spec='-L$libdir'
10256      hardcode_minus_L=yes
10257      allow_undefined_flag=unsupported
10258      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10259      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10260      ;;
10261
10262    osf3*)
10263      if test "$GCC" = yes; then
10264        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10265        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10266      else
10267        allow_undefined_flag=' -expect_unresolved \*'
10268        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10269      fi
10270      archive_cmds_need_lc='no'
10271      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272      hardcode_libdir_separator=:
10273      ;;
10274
10275    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10276      if test "$GCC" = yes; then
10277        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10278        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10279        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280      else
10281        allow_undefined_flag=' -expect_unresolved \*'
10282        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10283        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10284        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10285
10286        # Both c and cxx compiler support -rpath directly
10287        hardcode_libdir_flag_spec='-rpath $libdir'
10288      fi
10289      archive_cmds_need_lc='no'
10290      hardcode_libdir_separator=:
10291      ;;
10292
10293    solaris*)
10294      no_undefined_flag=' -z defs'
10295      if test "$GCC" = yes; then
10296        wlarc='${wl}'
10297        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10298        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10299          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10300      else
10301        case `$CC -V 2>&1` in
10302        *"Compilers 5.0"*)
10303          wlarc=''
10304          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10306          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10307          ;;
10308        *)
10309          wlarc='${wl}'
10310          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10311          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10312          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313          ;;
10314        esac
10315      fi
10316      hardcode_libdir_flag_spec='-R$libdir'
10317      hardcode_shlibpath_var=no
10318      case $host_os in
10319      solaris2.[0-5] | solaris2.[0-5].*) ;;
10320      *)
10321        # The compiler driver will combine and reorder linker options,
10322        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10323        # but is careful enough not to reorder.
10324        # Supported since Solaris 2.6 (maybe 2.5.1?)
10325        if test "$GCC" = yes; then
10326          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10327        else
10328          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10329        fi
10330        ;;
10331      esac
10332      link_all_deplibs=yes
10333      ;;
10334
10335    sunos4*)
10336      if test "x$host_vendor" = xsequent; then
10337        # Use $CC to link under sequent, because it throws in some extra .o
10338        # files that make .init and .fini sections work.
10339        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340      else
10341        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10342      fi
10343      hardcode_libdir_flag_spec='-L$libdir'
10344      hardcode_direct=yes
10345      hardcode_minus_L=yes
10346      hardcode_shlibpath_var=no
10347      ;;
10348
10349    sysv4)
10350      case $host_vendor in
10351        sni)
10352          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353          hardcode_direct=yes # is this really true???
10354        ;;
10355        siemens)
10356          ## LD is ld it makes a PLAMLIB
10357          ## CC just makes a GrossModule.
10358          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10359          reload_cmds='$CC -r -o $output$reload_objs'
10360          hardcode_direct=no
10361        ;;
10362        motorola)
10363          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10365        ;;
10366      esac
10367      runpath_var='LD_RUN_PATH'
10368      hardcode_shlibpath_var=no
10369      ;;
10370
10371    sysv4.3*)
10372      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10373      hardcode_shlibpath_var=no
10374      export_dynamic_flag_spec='-Bexport'
10375      ;;
10376
10377    sysv4*MP*)
10378      if test -d /usr/nec; then
10379        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380        hardcode_shlibpath_var=no
10381        runpath_var=LD_RUN_PATH
10382        hardcode_runpath_var=yes
10383        ld_shlibs=yes
10384      fi
10385      ;;
10386
10387    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10388      no_undefined_flag='${wl}-z,text'
10389      archive_cmds_need_lc=no
10390      hardcode_shlibpath_var=no
10391      runpath_var='LD_RUN_PATH'
10392
10393      if test "$GCC" = yes; then
10394        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396      else
10397        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399      fi
10400      ;;
10401
10402    sysv5* | sco3.2v5* | sco5v6*)
10403      # Note: We can NOT use -z defs as we might desire, because we do not
10404      # link with -lc, and that would cause any symbols used from libc to
10405      # always be unresolved, which means just about no library would
10406      # ever link correctly.  If we're not using GNU ld we use -z text
10407      # though, which does catch some bad symbols but isn't as heavy-handed
10408      # as -z defs.
10409      no_undefined_flag='${wl}-z,text'
10410      allow_undefined_flag='${wl}-z,nodefs'
10411      archive_cmds_need_lc=no
10412      hardcode_shlibpath_var=no
10413      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10414      hardcode_libdir_separator=':'
10415      link_all_deplibs=yes
10416      export_dynamic_flag_spec='${wl}-Bexport'
10417      runpath_var='LD_RUN_PATH'
10418
10419      if test "$GCC" = yes; then
10420        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422      else
10423        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425      fi
10426      ;;
10427
10428    uts4*)
10429      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430      hardcode_libdir_flag_spec='-L$libdir'
10431      hardcode_shlibpath_var=no
10432      ;;
10433
10434    *)
10435      ld_shlibs=no
10436      ;;
10437    esac
10438
10439    if test x$host_vendor = xsni; then
10440      case $host in
10441      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10442        export_dynamic_flag_spec='${wl}-Blargedynsym'
10443        ;;
10444      esac
10445    fi
10446  fi
10447
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10449$as_echo "$ld_shlibs" >&6; }
10450test "$ld_shlibs" = no && can_build_shared=no
10451
10452with_gnu_ld=$with_gnu_ld
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468#
10469# Do we need to explicitly link libc?
10470#
10471case "x$archive_cmds_need_lc" in
10472x|xyes)
10473  # Assume -lc should be added
10474  archive_cmds_need_lc=yes
10475
10476  if test "$enable_shared" = yes && test "$GCC" = yes; then
10477    case $archive_cmds in
10478    *'~'*)
10479      # FIXME: we may have to deal with multi-command sequences.
10480      ;;
10481    '$CC '*)
10482      # Test whether the compiler implicitly links with -lc since on some
10483      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10484      # to ld, don't add -lc before -lgcc.
10485      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10486$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10487      $RM conftest*
10488      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10489
10490      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491  (eval $ac_compile) 2>&5
10492  ac_status=$?
10493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494  test $ac_status = 0; } 2>conftest.err; then
10495        soname=conftest
10496        lib=conftest
10497        libobjs=conftest.$ac_objext
10498        deplibs=
10499        wl=$lt_prog_compiler_wl
10500        pic_flag=$lt_prog_compiler_pic
10501        compiler_flags=-v
10502        linker_flags=-v
10503        verstring=
10504        output_objdir=.
10505        libname=conftest
10506        lt_save_allow_undefined_flag=$allow_undefined_flag
10507        allow_undefined_flag=
10508        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10510  ac_status=$?
10511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512  test $ac_status = 0; }
10513        then
10514          archive_cmds_need_lc=no
10515        else
10516          archive_cmds_need_lc=yes
10517        fi
10518        allow_undefined_flag=$lt_save_allow_undefined_flag
10519      else
10520        cat conftest.err 1>&5
10521      fi
10522      $RM conftest*
10523      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10524$as_echo "$archive_cmds_need_lc" >&6; }
10525      ;;
10526    esac
10527  fi
10528  ;;
10529esac
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10688$as_echo_n "checking dynamic linker characteristics... " >&6; }
10689
10690if test "$GCC" = yes; then
10691  case $host_os in
10692    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10693    *) lt_awk_arg="/^libraries:/" ;;
10694  esac
10695  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10696  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10697    # if the path contains ";" then we assume it to be the separator
10698    # otherwise default to the standard path separator (i.e. ":") - it is
10699    # assumed that no part of a normal pathname contains ";" but that should
10700    # okay in the real world where ";" in dirpaths is itself problematic.
10701    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10702  else
10703    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10704  fi
10705  # Ok, now we have the path, separated by spaces, we can step through it
10706  # and add multilib dir if necessary.
10707  lt_tmp_lt_search_path_spec=
10708  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10709  for lt_sys_path in $lt_search_path_spec; do
10710    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10711      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10712    else
10713      test -d "$lt_sys_path" && \
10714        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10715    fi
10716  done
10717  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10718BEGIN {RS=" "; FS="/|\n";} {
10719  lt_foo="";
10720  lt_count=0;
10721  for (lt_i = NF; lt_i > 0; lt_i--) {
10722    if ($lt_i != "" && $lt_i != ".") {
10723      if ($lt_i == "..") {
10724        lt_count++;
10725      } else {
10726        if (lt_count == 0) {
10727          lt_foo="/" $lt_i lt_foo;
10728        } else {
10729          lt_count--;
10730        }
10731      }
10732    }
10733  }
10734  if (lt_foo != "") { lt_freq[lt_foo]++; }
10735  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10736}'`
10737  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10738else
10739  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10740fi
10741library_names_spec=
10742libname_spec='lib$name'
10743soname_spec=
10744shrext_cmds=".so"
10745postinstall_cmds=
10746postuninstall_cmds=
10747finish_cmds=
10748finish_eval=
10749shlibpath_var=
10750shlibpath_overrides_runpath=unknown
10751version_type=none
10752dynamic_linker="$host_os ld.so"
10753sys_lib_dlsearch_path_spec="/lib /usr/lib"
10754need_lib_prefix=unknown
10755hardcode_into_libs=no
10756
10757# when you set need_version to no, make sure it does not cause -set_version
10758# flags to be left without arguments
10759need_version=unknown
10760
10761case $host_os in
10762aix3*)
10763  version_type=linux
10764  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10765  shlibpath_var=LIBPATH
10766
10767  # AIX 3 has no versioning support, so we append a major version to the name.
10768  soname_spec='${libname}${release}${shared_ext}$major'
10769  ;;
10770
10771aix[4-9]*)
10772  version_type=linux
10773  need_lib_prefix=no
10774  need_version=no
10775  hardcode_into_libs=yes
10776  if test "$host_cpu" = ia64; then
10777    # AIX 5 supports IA64
10778    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10779    shlibpath_var=LD_LIBRARY_PATH
10780  else
10781    # With GCC up to 2.95.x, collect2 would create an import file
10782    # for dependence libraries.  The import file would start with
10783    # the line `#! .'.  This would cause the generated library to
10784    # depend on `.', always an invalid library.  This was fixed in
10785    # development snapshots of GCC prior to 3.0.
10786    case $host_os in
10787      aix4 | aix4.[01] | aix4.[01].*)
10788      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10789           echo ' yes '
10790           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10791        :
10792      else
10793        can_build_shared=no
10794      fi
10795      ;;
10796    esac
10797    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10798    # soname into executable. Probably we can add versioning support to
10799    # collect2, so additional links can be useful in future.
10800    if test "$aix_use_runtimelinking" = yes; then
10801      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10802      # instead of lib<name>.a to let people know that these are not
10803      # typical AIX shared libraries.
10804      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805    else
10806      # We preserve .a as extension for shared libraries through AIX4.2
10807      # and later when we are not doing run time linking.
10808      library_names_spec='${libname}${release}.a $libname.a'
10809      soname_spec='${libname}${release}${shared_ext}$major'
10810    fi
10811    shlibpath_var=LIBPATH
10812  fi
10813  ;;
10814
10815amigaos*)
10816  case $host_cpu in
10817  powerpc)
10818    # Since July 2007 AmigaOS4 officially supports .so libraries.
10819    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821    ;;
10822  m68k)
10823    library_names_spec='$libname.ixlibrary $libname.a'
10824    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10825    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10826    ;;
10827  esac
10828  ;;
10829
10830beos*)
10831  library_names_spec='${libname}${shared_ext}'
10832  dynamic_linker="$host_os ld.so"
10833  shlibpath_var=LIBRARY_PATH
10834  ;;
10835
10836bsdi[45]*)
10837  version_type=linux
10838  need_version=no
10839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840  soname_spec='${libname}${release}${shared_ext}$major'
10841  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10842  shlibpath_var=LD_LIBRARY_PATH
10843  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10844  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10845  # the default ld.so.conf also contains /usr/contrib/lib and
10846  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10847  # libtool to hard-code these into programs
10848  ;;
10849
10850cygwin* | mingw* | pw32* | cegcc*)
10851  version_type=windows
10852  shrext_cmds=".dll"
10853  need_version=no
10854  need_lib_prefix=no
10855
10856  case $GCC,$host_os in
10857  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10858    library_names_spec='$libname.dll.a'
10859    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10860    postinstall_cmds='base_file=`basename \${file}`~
10861      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10862      dldir=$destdir/`dirname \$dlpath`~
10863      test -d \$dldir || mkdir -p \$dldir~
10864      $install_prog $dir/$dlname \$dldir/$dlname~
10865      chmod a+x \$dldir/$dlname~
10866      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10867        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10868      fi'
10869    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10870      dlpath=$dir/\$dldll~
10871       $RM \$dlpath'
10872    shlibpath_overrides_runpath=yes
10873
10874    case $host_os in
10875    cygwin*)
10876      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10877      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10878      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10879      ;;
10880    mingw* | cegcc*)
10881      # MinGW DLLs use traditional 'lib' prefix
10882      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10883      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10884      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10885        # It is most probably a Windows format PATH printed by
10886        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10887        # path with ; separators, and with drive letters. We can handle the
10888        # drive letters (cygwin fileutils understands them), so leave them,
10889        # especially as we might pass files found there to a mingw objdump,
10890        # which wouldn't understand a cygwinified path. Ahh.
10891        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10892      else
10893        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10894      fi
10895      ;;
10896    pw32*)
10897      # pw32 DLLs use 'pw' prefix rather than 'lib'
10898      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899      ;;
10900    esac
10901    ;;
10902
10903  *)
10904    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10905    ;;
10906  esac
10907  dynamic_linker='Win32 ld.exe'
10908  # FIXME: first we should search . and the directory the executable is in
10909  shlibpath_var=PATH
10910  ;;
10911
10912darwin* | rhapsody*)
10913  dynamic_linker="$host_os dyld"
10914  version_type=darwin
10915  need_lib_prefix=no
10916  need_version=no
10917  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10918  soname_spec='${libname}${release}${major}$shared_ext'
10919  shlibpath_overrides_runpath=yes
10920  shlibpath_var=DYLD_LIBRARY_PATH
10921  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10922
10923  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10924  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10925  ;;
10926
10927dgux*)
10928  version_type=linux
10929  need_lib_prefix=no
10930  need_version=no
10931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10932  soname_spec='${libname}${release}${shared_ext}$major'
10933  shlibpath_var=LD_LIBRARY_PATH
10934  ;;
10935
10936freebsd1*)
10937  dynamic_linker=no
10938  ;;
10939
10940freebsd* | dragonfly*)
10941  # DragonFly does not have aout.  When/if they implement a new
10942  # versioning mechanism, adjust this.
10943  if test -x /usr/bin/objformat; then
10944    objformat=`/usr/bin/objformat`
10945  else
10946    case $host_os in
10947    freebsd[123]*) objformat=aout ;;
10948    *) objformat=elf ;;
10949    esac
10950  fi
10951  version_type=freebsd-$objformat
10952  case $version_type in
10953    freebsd-elf*)
10954      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10955      need_version=no
10956      need_lib_prefix=no
10957      ;;
10958    freebsd-*)
10959      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10960      need_version=yes