1#! /bin/sh
2# From configure.ac Id.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for LiDIA 2.3.0+latte-patches-2014-10-04.
5#
6# Report bugs to <lidia@cdc.informatik.tu-darmstadt.de>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210test \$(( 1 + 1 )) = 2 || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279$0: lidia@cdc.informatik.tu-darmstadt.de about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='LiDIA'
593PACKAGE_TARNAME='lidia'
594PACKAGE_VERSION='2.3.0+latte-patches-2014-10-04'
595PACKAGE_STRING='LiDIA 2.3.0+latte-patches-2014-10-04'
596PACKAGE_BUGREPORT='lidia@cdc.informatik.tu-darmstadt.de'
597PACKAGE_URL=''
598
599ac_unique_file=".LIDIA_SOURCE_DIR"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='LIDIA_BASE_XLTLIBOBJS
637LIDIA_LT_XLTLIBOBJS
638am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
641LIBOBJS
642PKG_DIRS
643LIDIA_LTCLIBS
644LIDIA_BASE_XLIBOBJS
645LIDIA_LT_XLIBOBJS
646BUNZIP2
647GUNZIP
648TEXI2DVI
649PDFLATEX
650LATEX2HTML
651DVIPS
652BIBTEX
653MAKEINDEX
654LATEX
655CPP
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
661MANIFEST_TOOL
662RANLIB
663ac_ct_AR
664AR
665DLLTOOL
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673EGREP
674GREP
675SED
676host_os
677host_vendor
678host_cpu
679host
680build_os
681build_vendor
682build_cpu
683build
684LIBTOOL
685CXXCPP
686am__fastdepCXX_FALSE
687am__fastdepCXX_TRUE
688CXXDEPMODE
689ac_ct_CXX
690CXXFLAGS
691CXX
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__quote
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713am__untar
714am__tar
715AMTAR
716am__leading_dot
717SET_MAKE
718AWK
719mkdir_p
720MKDIR_P
721INSTALL_STRIP_PROGRAM
722STRIP
723install_sh
724MAKEINFO
725AUTOHEADER
726AUTOMAKE
727AUTOCONF
728ACLOCAL
729VERSION
730PACKAGE
731CYGPATH_W
732am__isrc
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_silent_rules
778enable_dependency_tracking
779enable_namespaces
780enable_shared
781enable_static
782with_pic
783enable_fast_install
784with_gnu_ld
785with_sysroot
786enable_libtool_lock
787with_extra_includes
788with_extra_libs
789with_arithmetic
790enable_inline
791enable_exceptions
792enable_assert
793enable_ff
794enable_la
795enable_lt
796enable_nf
797enable_ec
798enable_eco
799enable_gec
800'
801      ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CXX
810CXXFLAGS
811CCC
812CXXCPP
813CPP'
814
815
816# Initialize some variables set by options.
817ac_init_help=
818ac_init_version=false
819ac_unrecognized_opts=
820ac_unrecognized_sep=
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
843# (The list follows the same order as the GNU Coding Standards.)
844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
852includedir='${prefix}/include'
853oldincludedir='/usr/include'
854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
863
864ac_prev=
865ac_dashdash=
866for ac_option
867do
868  # If the previous option needs an argument, assign it.
869  if test -n "$ac_prev"; then
870    eval $ac_prev=\$ac_option
871    ac_prev=
872    continue
873  fi
874
875  case $ac_option in
876  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877  *=)   ac_optarg= ;;
878  *)    ac_optarg=yes ;;
879  esac
880
881  # Accept the important Cygnus configure options, so we can diagnose typos.
882
883  case $ac_dashdash$ac_option in
884  --)
885    ac_dashdash=yes ;;
886
887  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888    ac_prev=bindir ;;
889  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890    bindir=$ac_optarg ;;
891
892  -build | --build | --buil | --bui | --bu)
893    ac_prev=build_alias ;;
894  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895    build_alias=$ac_optarg ;;
896
897  -cache-file | --cache-file | --cache-fil | --cache-fi \
898  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899    ac_prev=cache_file ;;
900  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902    cache_file=$ac_optarg ;;
903
904  --config-cache | -C)
905    cache_file=config.cache ;;
906
907  -datadir | --datadir | --datadi | --datad)
908    ac_prev=datadir ;;
909  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910    datadir=$ac_optarg ;;
911
912  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913  | --dataroo | --dataro | --datar)
914    ac_prev=datarootdir ;;
915  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917    datarootdir=$ac_optarg ;;
918
919  -disable-* | --disable-*)
920    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921    # Reject names that are not valid shell variable names.
922    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923      as_fn_error $? "invalid feature name: $ac_useropt"
924    ac_useropt_orig=$ac_useropt
925    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926    case $ac_user_opts in
927      *"
928"enable_$ac_useropt"
929"*) ;;
930      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931	 ac_unrecognized_sep=', ';;
932    esac
933    eval enable_$ac_useropt=no ;;
934
935  -docdir | --docdir | --docdi | --doc | --do)
936    ac_prev=docdir ;;
937  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938    docdir=$ac_optarg ;;
939
940  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941    ac_prev=dvidir ;;
942  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943    dvidir=$ac_optarg ;;
944
945  -enable-* | --enable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: $ac_useropt"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=\$ac_optarg ;;
960
961  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963  | --exec | --exe | --ex)
964    ac_prev=exec_prefix ;;
965  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967  | --exec=* | --exe=* | --ex=*)
968    exec_prefix=$ac_optarg ;;
969
970  -gas | --gas | --ga | --g)
971    # Obsolete; use --with-gas.
972    with_gas=yes ;;
973
974  -help | --help | --hel | --he | -h)
975    ac_init_help=long ;;
976  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977    ac_init_help=recursive ;;
978  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979    ac_init_help=short ;;
980
981  -host | --host | --hos | --ho)
982    ac_prev=host_alias ;;
983  -host=* | --host=* | --hos=* | --ho=*)
984    host_alias=$ac_optarg ;;
985
986  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987    ac_prev=htmldir ;;
988  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989  | --ht=*)
990    htmldir=$ac_optarg ;;
991
992  -includedir | --includedir | --includedi | --included | --include \
993  | --includ | --inclu | --incl | --inc)
994    ac_prev=includedir ;;
995  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996  | --includ=* | --inclu=* | --incl=* | --inc=*)
997    includedir=$ac_optarg ;;
998
999  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000    ac_prev=infodir ;;
1001  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002    infodir=$ac_optarg ;;
1003
1004  -libdir | --libdir | --libdi | --libd)
1005    ac_prev=libdir ;;
1006  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007    libdir=$ac_optarg ;;
1008
1009  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010  | --libexe | --libex | --libe)
1011    ac_prev=libexecdir ;;
1012  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013  | --libexe=* | --libex=* | --libe=*)
1014    libexecdir=$ac_optarg ;;
1015
1016  -localedir | --localedir | --localedi | --localed | --locale)
1017    ac_prev=localedir ;;
1018  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019    localedir=$ac_optarg ;;
1020
1021  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022  | --localstate | --localstat | --localsta | --localst | --locals)
1023    ac_prev=localstatedir ;;
1024  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026    localstatedir=$ac_optarg ;;
1027
1028  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029    ac_prev=mandir ;;
1030  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031    mandir=$ac_optarg ;;
1032
1033  -nfp | --nfp | --nf)
1034    # Obsolete; use --without-fp.
1035    with_fp=no ;;
1036
1037  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038  | --no-cr | --no-c | -n)
1039    no_create=yes ;;
1040
1041  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043    no_recursion=yes ;;
1044
1045  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047  | --oldin | --oldi | --old | --ol | --o)
1048    ac_prev=oldincludedir ;;
1049  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052    oldincludedir=$ac_optarg ;;
1053
1054  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055    ac_prev=prefix ;;
1056  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057    prefix=$ac_optarg ;;
1058
1059  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060  | --program-pre | --program-pr | --program-p)
1061    ac_prev=program_prefix ;;
1062  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064    program_prefix=$ac_optarg ;;
1065
1066  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067  | --program-suf | --program-su | --program-s)
1068    ac_prev=program_suffix ;;
1069  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071    program_suffix=$ac_optarg ;;
1072
1073  -program-transform-name | --program-transform-name \
1074  | --program-transform-nam | --program-transform-na \
1075  | --program-transform-n | --program-transform- \
1076  | --program-transform | --program-transfor \
1077  | --program-transfo | --program-transf \
1078  | --program-trans | --program-tran \
1079  | --progr-tra | --program-tr | --program-t)
1080    ac_prev=program_transform_name ;;
1081  -program-transform-name=* | --program-transform-name=* \
1082  | --program-transform-nam=* | --program-transform-na=* \
1083  | --program-transform-n=* | --program-transform-=* \
1084  | --program-transform=* | --program-transfor=* \
1085  | --program-transfo=* | --program-transf=* \
1086  | --program-trans=* | --program-tran=* \
1087  | --progr-tra=* | --program-tr=* | --program-t=*)
1088    program_transform_name=$ac_optarg ;;
1089
1090  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091    ac_prev=pdfdir ;;
1092  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093    pdfdir=$ac_optarg ;;
1094
1095  -psdir | --psdir | --psdi | --psd | --ps)
1096    ac_prev=psdir ;;
1097  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098    psdir=$ac_optarg ;;
1099
1100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101  | -silent | --silent | --silen | --sile | --sil)
1102    silent=yes ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information"
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269  elif test "x$build_alias" != "x$host_alias"; then
1270    cross_compiling=yes
1271  fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283  as_fn_error $? "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285  as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290  ac_srcdir_defaulted=yes
1291  # Try the directory containing this script, then the parent directory.
1292  ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295	 X"$as_myself" : 'X\(//\)$' \| \
1296	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
1298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)[^/].*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\).*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  s/.*/./; q'`
1315  srcdir=$ac_confdir
1316  if test ! -r "$srcdir/$ac_unique_file"; then
1317    srcdir=..
1318  fi
1319else
1320  ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329	pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332  srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_env_${ac_var}_value=\$${ac_var}
1343  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351  # Omit some internal or obsolete options to make the list less imposing.
1352  # This message is too long to be a string in the A/UX 3.1 sh.
1353  cat <<_ACEOF
1354\`configure' configures LiDIA 2.3.0+latte-patches-2014-10-04 to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364  -h, --help              display this help and exit
1365      --help=short        display options specific to this package
1366      --help=recursive    display the short help of all the included packages
1367  -V, --version           display version information and exit
1368  -q, --quiet, --silent   do not print \`checking ...' messages
1369      --cache-file=FILE   cache test results in FILE [disabled]
1370  -C, --config-cache      alias for \`--cache-file=config.cache'
1371  -n, --no-create         do not create output files
1372      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374Installation directories:
1375  --prefix=PREFIX         install architecture-independent files in PREFIX
1376                          [$ac_default_prefix]
1377  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                          [PREFIX]
1379
1380By default, \`make install' will install all the files in
1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383for instance \`--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
1388  --bindir=DIR            user executables [EPREFIX/bin]
1389  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394  --libdir=DIR            object code libraries [EPREFIX/lib]
1395  --includedir=DIR        C header files [PREFIX/include]
1396  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1397  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1398  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1399  --infodir=DIR           info documentation [DATAROOTDIR/info]
1400  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1401  --mandir=DIR            man documentation [DATAROOTDIR/man]
1402  --docdir=DIR            documentation root [DATAROOTDIR/doc/lidia]
1403  --htmldir=DIR           html documentation [DOCDIR]
1404  --dvidir=DIR            dvi documentation [DOCDIR]
1405  --pdfdir=DIR            pdf documentation [DOCDIR]
1406  --psdir=DIR             ps documentation [DOCDIR]
1407_ACEOF
1408
1409  cat <<\_ACEOF
1410
1411Program names:
1412  --program-prefix=PREFIX            prepend PREFIX to installed program names
1413  --program-suffix=SUFFIX            append SUFFIX to installed program names
1414  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1415
1416System types:
1417  --build=BUILD     configure for building on BUILD [guessed]
1418  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1419_ACEOF
1420fi
1421
1422if test -n "$ac_init_help"; then
1423  case $ac_init_help in
1424     short | recursive ) echo "Configuration of LiDIA 2.3.0+latte-patches-2014-10-04:";;
1425   esac
1426  cat <<\_ACEOF
1427
1428Optional Features:
1429  --disable-option-checking  ignore unrecognized --enable/--with options
1430  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432  --enable-silent-rules   less verbose build output (undo: "make V=1")
1433  --disable-silent-rules  verbose build output (undo: "make V=0")
1434  --enable-dependency-tracking
1435                          do not reject slow dependency extractors
1436  --disable-dependency-tracking
1437                          speeds up one-time build
1438  --enable-namespaces     use namespaces (default = yes)
1439  --enable-shared[=PKGS]  build shared libraries [default=no]
1440  --enable-static[=PKGS]  build static libraries [default=yes]
1441  --enable-fast-install[=PKGS]
1442                          optimize for fast installation [default=yes]
1443  --disable-libtool-lock  avoid locking (might break parallel builds)
1444  --enable-inline         inline multiprecision arithmetic functions (default = yes)
1445  --enable-exceptions     compile with error handling via exceptions activated (default = yes)
1446  --enable-assert         compile with assert macros activated (default = no)
1447  --enable-ff             compile the finite fields package (default = yes)
1448  --enable-la             compile the linear algebra package (default = yes)
1449  --enable-lt             compile the lattices package (default = yes)
1450  --enable-nf             compile the number fields package (default = yes)
1451  --enable-ec             compile the elliptic curves package (default = yes)
1452  --enable-eco            compile the elliptic curve order package (default = yes)
1453  --enable-gec            compile the elliptic curve generation package (default = yes)
1454
1455Optional Packages:
1456  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461  --with-sysroot=DIR Search for dependent libraries within DIR
1462                        (or the compiler's sysroot if not specified).
1463  --with-extra-includes=DIR
1464                          adds non standard include path
1465  --with-extra-libs=DIR   adds non standard library path
1466  --with-arithmetic=ARG   select multi-precision arithmetic:
1467                          gmp: GNU MP (default)
1468                          cln
1469                          piologie
1470                          libI
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479              you have headers in a nonstandard directory <include dir>
1480  CXX         C++ compiler command
1481  CXXFLAGS    C++ compiler flags
1482  CXXCPP      C++ preprocessor
1483  CPP         C preprocessor
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to <lidia@cdc.informatik.tu-darmstadt.de>.
1489_ACEOF
1490ac_status=$?
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494  # If there are subdirs, report their specific --help.
1495  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496    test -d "$ac_dir" ||
1497      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498      continue
1499    ac_builddir=.
1500
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505  # A ".." for each directory in $ac_dir_suffix.
1506  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507  case $ac_top_builddir_sub in
1508  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510  esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
1516
1517case $srcdir in
1518  .)  # We are building in place.
1519    ac_srcdir=.
1520    ac_top_srcdir=$ac_top_builddir_sub
1521    ac_abs_top_srcdir=$ac_pwd ;;
1522  [\\/]* | ?:[\\/]* )  # Absolute name.
1523    ac_srcdir=$srcdir$ac_dir_suffix;
1524    ac_top_srcdir=$srcdir
1525    ac_abs_top_srcdir=$srcdir ;;
1526  *) # Relative name.
1527    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528    ac_top_srcdir=$ac_top_build_prefix$srcdir
1529    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530esac
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533    cd "$ac_dir" || { ac_status=$?; continue; }
1534    # Check for guested configure.
1535    if test -f "$ac_srcdir/configure.gnu"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538    elif test -f "$ac_srcdir/configure"; then
1539      echo &&
1540      $SHELL "$ac_srcdir/configure" --help=recursive
1541    else
1542      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543    fi || ac_status=$?
1544    cd "$ac_pwd" || { ac_status=$?; break; }
1545  done
1546fi
1547
1548test -n "$ac_init_help" && exit $ac_status
1549if $ac_init_version; then
1550  cat <<\_ACEOF
1551LiDIA configure 2.3.0+latte-patches-2014-10-04
1552generated by GNU Autoconf 2.69
1553
1554Copyright (C) 2012 Free Software Foundation, Inc.
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
1558  exit
1559fi
1560
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
1564
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext
1572  if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_compile") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588	 test -z "$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       } && test -s conftest.$ac_objext; then :
1591  ac_retval=0
1592else
1593  $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_cxx_try_compile LINENO
1604# ----------------------------
1605# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_cxx_try_compile ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext
1610  if { { ac_try="$ac_compile"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_compile") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_cxx_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest.$ac_objext; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637  as_fn_set_status $ac_retval
1638
1639} # ac_fn_cxx_try_compile
1640
1641# ac_fn_cxx_try_cpp LINENO
1642# ------------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_cxx_try_cpp ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655  ac_status=$?
1656  if test -s conftest.err; then
1657    grep -v '^ *+' conftest.err >conftest.er1
1658    cat conftest.er1 >&5
1659    mv -f conftest.er1 conftest.err
1660  fi
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } > conftest.i && {
1663	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1664	 test ! -s conftest.err
1665       }; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671    ac_retval=1
1672fi
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_cxx_try_cpp
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext conftest$ac_exeext
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest$ac_exeext && {
1704	 test "$cross_compiling" = yes ||
1705	 test -x conftest$ac_exeext
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723
1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists and can be compiled using the include files in
1727# INCLUDES, setting the cache variable VAR accordingly.
1728ac_fn_c_check_header_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742  eval "$3=yes"
1743else
1744  eval "$3=no"
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753} # ac_fn_c_check_header_compile
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } > conftest.i && {
1777	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785    ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_cpp
1791
1792# ac_fn_c_try_run LINENO
1793# ----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795# that executables *can* be run.
1796ac_fn_c_try_run ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_link") 2>&5
1807  ac_status=$?
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810  { { case "(($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_try") 2>&5
1817  ac_status=$?
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; }; }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: program exited with status $ac_status" >&5
1823       $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826       ac_retval=$ac_status
1827fi
1828  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830  as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_run
1833
1834# ac_fn_c_check_func LINENO FUNC VAR
1835# ----------------------------------
1836# Tests whether FUNC exists, setting the cache variable VAR accordingly
1837ac_fn_c_check_func ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if eval \${$3+:} false; then :
1843  $as_echo_n "(cached) " >&6
1844else
1845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1849#define $2 innocuous_$2
1850
1851/* System header to define __stub macros and hopefully few prototypes,
1852    which can conflict with char $2 (); below.
1853    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854    <limits.h> exists even on freestanding compilers.  */
1855
1856#ifdef __STDC__
1857# include <limits.h>
1858#else
1859# include <assert.h>
1860#endif
1861
1862#undef $2
1863
1864/* Override any GCC internal prototype to avoid an error.
1865   Use char because int might match the return type of a GCC
1866   builtin and then its argument prototype would still apply.  */
1867#ifdef __cplusplus
1868extern "C"
1869#endif
1870char $2 ();
1871/* The GNU C library defines this for functions which it implements
1872    to always fail with ENOSYS.  Some functions are actually named
1873    something starting with __ and the normal name is an alias.  */
1874#if defined __stub_$2 || defined __stub___$2
1875choke me
1876#endif
1877
1878int
1879main ()
1880{
1881return $2 ();
1882  ;
1883  return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_link "$LINENO"; then :
1887  eval "$3=yes"
1888else
1889  eval "$3=no"
1890fi
1891rm -f core conftest.err conftest.$ac_objext \
1892    conftest$ac_exeext conftest.$ac_ext
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899} # ac_fn_c_check_func
1900
1901# ac_fn_cxx_try_link LINENO
1902# -------------------------
1903# Try to link conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_cxx_try_link ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  rm -f conftest.$ac_objext conftest$ac_exeext
1908  if { { ac_try="$ac_link"
1909case "(($ac_try" in
1910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911  *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915  (eval "$ac_link") 2>conftest.err
1916  ac_status=$?
1917  if test -s conftest.err; then
1918    grep -v '^ *+' conftest.err >conftest.er1
1919    cat conftest.er1 >&5
1920    mv -f conftest.er1 conftest.err
1921  fi
1922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923  test $ac_status = 0; } && {
1924	 test -z "$ac_cxx_werror_flag" ||
1925	 test ! -s conftest.err
1926       } && test -s conftest$ac_exeext && {
1927	 test "$cross_compiling" = yes ||
1928	 test -x conftest$ac_exeext
1929       }; then :
1930  ac_retval=0
1931else
1932  $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935	ac_retval=1
1936fi
1937  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939  # interfere with the next link command; also delete a directory that is
1940  # left behind by Apple's compiler.  We do this before executing the actions.
1941  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943  as_fn_set_status $ac_retval
1944
1945} # ac_fn_cxx_try_link
1946
1947# ac_fn_cxx_try_run LINENO
1948# ------------------------
1949# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950# that executables *can* be run.
1951ac_fn_cxx_try_run ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  if { { ac_try="$ac_link"
1955case "(($ac_try" in
1956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957  *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961  (eval "$ac_link") 2>&5
1962  ac_status=$?
1963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965  { { case "(($ac_try" in
1966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967  *) ac_try_echo=$ac_try;;
1968esac
1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970$as_echo "$ac_try_echo"; } >&5
1971  (eval "$ac_try") 2>&5
1972  ac_status=$?
1973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974  test $ac_status = 0; }; }; then :
1975  ac_retval=0
1976else
1977  $as_echo "$as_me: program exited with status $ac_status" >&5
1978       $as_echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981       ac_retval=$ac_status
1982fi
1983  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985  as_fn_set_status $ac_retval
1986
1987} # ac_fn_cxx_try_run
1988
1989# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1990# ---------------------------------------------------------
1991# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1992# the include files in INCLUDES and setting the cache variable VAR
1993# accordingly.
1994ac_fn_cxx_check_header_mongrel ()
1995{
1996  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997  if eval \${$3+:} false; then :
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002fi
2003eval ac_res=\$$3
2004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006else
2007  # Is the header compilable?
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2009$as_echo_n "checking $2 usability... " >&6; }
2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013#include <$2>
2014_ACEOF
2015if ac_fn_cxx_try_compile "$LINENO"; then :
2016  ac_header_compiler=yes
2017else
2018  ac_header_compiler=no
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2022$as_echo "$ac_header_compiler" >&6; }
2023
2024# Is the header present?
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2026$as_echo_n "checking $2 presence... " >&6; }
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029#include <$2>
2030_ACEOF
2031if ac_fn_cxx_try_cpp "$LINENO"; then :
2032  ac_header_preproc=yes
2033else
2034  ac_header_preproc=no
2035fi
2036rm -f conftest.err conftest.i conftest.$ac_ext
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2038$as_echo "$ac_header_preproc" >&6; }
2039
2040# So?  What about this header?
2041case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2042  yes:no: )
2043    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2044$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2045    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047    ;;
2048  no:yes:* )
2049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2050$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2052$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2054$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2055    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2056$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059( $as_echo "## --------------------------------------------------- ##
2060## Report this to lidia@cdc.informatik.tu-darmstadt.de ##
2061## --------------------------------------------------- ##"
2062     ) | sed "s/^/$as_me: WARNING:     /" >&2
2063    ;;
2064esac
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  eval "$3=\$ac_header_compiler"
2071fi
2072eval ac_res=\$$3
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075fi
2076  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_cxx_check_header_mongrel
2079
2080# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2081# ----------------------------------------------
2082# Tries to find the compile-time value of EXPR in a program that includes
2083# INCLUDES, setting VAR accordingly. Returns whether the value could be
2084# computed
2085ac_fn_cxx_compute_int ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  if test "$cross_compiling" = yes; then
2089    # Depending upon the size, compute the lo and hi bounds.
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= 0)];
2097test_array [0] = 0;
2098return test_array [0];
2099
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104if ac_fn_cxx_try_compile "$LINENO"; then :
2105  ac_lo=0 ac_mid=0
2106  while :; do
2107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h.  */
2109$4
2110int
2111main ()
2112{
2113static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114test_array [0] = 0;
2115return test_array [0];
2116
2117  ;
2118  return 0;
2119}
2120_ACEOF
2121if ac_fn_cxx_try_compile "$LINENO"; then :
2122  ac_hi=$ac_mid; break
2123else
2124  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2125			if test $ac_lo -le $ac_mid; then
2126			  ac_lo= ac_hi=
2127			  break
2128			fi
2129			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132  done
2133else
2134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h.  */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) < 0)];
2141test_array [0] = 0;
2142return test_array [0];
2143
2144  ;
2145  return 0;
2146}
2147_ACEOF
2148if ac_fn_cxx_try_compile "$LINENO"; then :
2149  ac_hi=-1 ac_mid=-1
2150  while :; do
2151    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153$4
2154int
2155main ()
2156{
2157static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2158test_array [0] = 0;
2159return test_array [0];
2160
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_cxx_try_compile "$LINENO"; then :
2166  ac_lo=$ac_mid; break
2167else
2168  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169			if test $ac_mid -le $ac_hi; then
2170			  ac_lo= ac_hi=
2171			  break
2172			fi
2173			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176  done
2177else
2178  ac_lo= ac_hi=
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183# Binary search between lo and hi bounds.
2184while test "x$ac_lo" != "x$ac_hi"; do
2185  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h.  */
2188$4
2189int
2190main ()
2191{
2192static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193test_array [0] = 0;
2194return test_array [0];
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200if ac_fn_cxx_try_compile "$LINENO"; then :
2201  ac_hi=$ac_mid
2202else
2203  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206done
2207case $ac_lo in #((
2208?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2209'') ac_retval=1 ;;
2210esac
2211  else
2212    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h.  */
2214$4
2215static long int longval () { return $2; }
2216static unsigned long int ulongval () { return $2; }
2217#include <stdio.h>
2218#include <stdlib.h>
2219int
2220main ()
2221{
2222
2223  FILE *f = fopen ("conftest.val", "w");
2224  if (! f)
2225    return 1;
2226  if (($2) < 0)
2227    {
2228      long int i = longval ();
2229      if (i != ($2))
2230	return 1;
2231      fprintf (f, "%ld", i);
2232    }
2233  else
2234    {
2235      unsigned long int i = ulongval ();
2236      if (i != ($2))
2237	return 1;
2238      fprintf (f, "%lu", i);
2239    }
2240  /* Do not output a trailing newline, as this causes \r\n confusion
2241     on some platforms.  */
2242  return ferror (f) || fclose (f) != 0;
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_cxx_try_run "$LINENO"; then :
2249  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2250else
2251  ac_retval=1
2252fi
2253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2254  conftest.$ac_objext conftest.beam conftest.$ac_ext
2255rm -f conftest.val
2256
2257  fi
2258  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259  as_fn_set_status $ac_retval
2260
2261} # ac_fn_cxx_compute_int
2262cat >config.log <<_ACEOF
2263This file contains any messages produced by compilers while
2264running configure, to aid debugging if configure makes a mistake.
2265
2266It was created by LiDIA $as_me 2.3.0+latte-patches-2014-10-04, which was
2267generated by GNU Autoconf 2.69.  Invocation command line was
2268
2269  $ $0 $@
2270
2271_ACEOF
2272exec 5>>config.log
2273{
2274cat <<_ASUNAME
2275## --------- ##
2276## Platform. ##
2277## --------- ##
2278
2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284
2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2287
2288/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2289/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2292/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2293/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2294/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2295
2296_ASUNAME
2297
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301  IFS=$as_save_IFS
2302  test -z "$as_dir" && as_dir=.
2303    $as_echo "PATH: $as_dir"
2304  done
2305IFS=$as_save_IFS
2306
2307} >&5
2308
2309cat >&5 <<_ACEOF
2310
2311
2312## ----------- ##
2313## Core tests. ##
2314## ----------- ##
2315
2316_ACEOF
2317
2318
2319# Keep a trace of the command line.
2320# Strip out --no-create and --no-recursion so they do not pile up.
2321# Strip out --silent because we don't want to record it for future runs.
2322# Also quote any args containing shell meta-characters.
2323# Make two passes to allow for proper duplicate-argument suppression.
2324ac_configure_args=
2325ac_configure_args0=
2326ac_configure_args1=
2327ac_must_keep_next=false
2328for ac_pass in 1 2
2329do
2330  for ac_arg
2331  do
2332    case $ac_arg in
2333    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335    | -silent | --silent | --silen | --sile | --sil)
2336      continue ;;
2337    *\'*)
2338      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339    esac
2340    case $ac_pass in
2341    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2342    2)
2343      as_fn_append ac_configure_args1 " '$ac_arg'"
2344      if test $ac_must_keep_next = true; then
2345	ac_must_keep_next=false # Got value, back to normal.
2346      else
2347	case $ac_arg in
2348	  *=* | --config-cache | -C | -disable-* | --disable-* \
2349	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351	  | -with-* | --with-* | -without-* | --without-* | --x)
2352	    case "$ac_configure_args0 " in
2353	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354	    esac
2355	    ;;
2356	  -* ) ac_must_keep_next=true ;;
2357	esac
2358      fi
2359      as_fn_append ac_configure_args " '$ac_arg'"
2360      ;;
2361    esac
2362  done
2363done
2364{ ac_configure_args0=; unset ac_configure_args0;}
2365{ ac_configure_args1=; unset ac_configure_args1;}
2366
2367# When interrupted or exit'd, cleanup temporary files, and complete
2368# config.log.  We remove comments because anyway the quotes in there
2369# would cause problems or look ugly.
2370# WARNING: Use '\'' to represent an apostrophe within the trap.
2371# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372trap 'exit_status=$?
2373  # Save into config.log some information that might help in debugging.
2374  {
2375    echo
2376
2377    $as_echo "## ---------------- ##
2378## Cache variables. ##
2379## ---------------- ##"
2380    echo
2381    # The following way of writing the cache mishandles newlines in values,
2382(
2383  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384    eval ac_val=\$$ac_var
2385    case $ac_val in #(
2386    *${as_nl}*)
2387      case $ac_var in #(
2388      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390      esac
2391      case $ac_var in #(
2392      _ | IFS | as_nl) ;; #(
2393      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394      *) { eval $ac_var=; unset $ac_var;} ;;
2395      esac ;;
2396    esac
2397  done
2398  (set) 2>&1 |
2399    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400    *${as_nl}ac_space=\ *)
2401      sed -n \
2402	"s/'\''/'\''\\\\'\'''\''/g;
2403	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404      ;; #(
2405    *)
2406      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2407      ;;
2408    esac |
2409    sort
2410)
2411    echo
2412
2413    $as_echo "## ----------------- ##
2414## Output variables. ##
2415## ----------------- ##"
2416    echo
2417    for ac_var in $ac_subst_vars
2418    do
2419      eval ac_val=\$$ac_var
2420      case $ac_val in
2421      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422      esac
2423      $as_echo "$ac_var='\''$ac_val'\''"
2424    done | sort
2425    echo
2426
2427    if test -n "$ac_subst_files"; then
2428      $as_echo "## ------------------- ##
2429## File substitutions. ##
2430## ------------------- ##"
2431      echo
2432      for ac_var in $ac_subst_files
2433      do
2434	eval ac_val=\$$ac_var
2435	case $ac_val in
2436	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437	esac
2438	$as_echo "$ac_var='\''$ac_val'\''"
2439      done | sort
2440      echo
2441    fi
2442
2443    if test -s confdefs.h; then
2444      $as_echo "## ----------- ##
2445## confdefs.h. ##
2446## ----------- ##"
2447      echo
2448      cat confdefs.h
2449      echo
2450    fi
2451    test "$ac_signal" != 0 &&
2452      $as_echo "$as_me: caught signal $ac_signal"
2453    $as_echo "$as_me: exit $exit_status"
2454  } >&5
2455  rm -f core *.core core.conftest.* &&
2456    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457    exit $exit_status
2458' 0
2459for ac_signal in 1 2 13 15; do
2460  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461done
2462ac_signal=0
2463
2464# confdefs.h avoids OS command line length limits that DEFS can exceed.
2465rm -f -r conftest* confdefs.h
2466
2467$as_echo "/* confdefs.h */" > confdefs.h
2468
2469# Predefined preprocessor variables.
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_NAME "$PACKAGE_NAME"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_VERSION "$PACKAGE_VERSION"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_STRING "$PACKAGE_STRING"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489_ACEOF
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_URL "$PACKAGE_URL"
2493_ACEOF
2494
2495
2496# Let the site file select an alternate cache file if it wants to.
2497# Prefer an explicitly selected file to automatically selected ones.
2498ac_site_file1=NONE
2499ac_site_file2=NONE
2500if test -n "$CONFIG_SITE"; then
2501  # We do not want a PATH search for config.site.
2502  case $CONFIG_SITE in #((
2503    -*)  ac_site_file1=./$CONFIG_SITE;;
2504    */*) ac_site_file1=$CONFIG_SITE;;
2505    *)   ac_site_file1=./$CONFIG_SITE;;
2506  esac
2507elif test "x$prefix" != xNONE; then
2508  ac_site_file1=$prefix/share/config.site
2509  ac_site_file2=$prefix/etc/config.site
2510else
2511  ac_site_file1=$ac_default_prefix/share/config.site
2512  ac_site_file2=$ac_default_prefix/etc/config.site
2513fi
2514for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2515do
2516  test "x$ac_site_file" = xNONE && continue
2517  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2518    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2519$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2520    sed 's/^/| /' "$ac_site_file" >&5
2521    . "$ac_site_file" \
2522      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524as_fn_error $? "failed to load site script $ac_site_file
2525See \`config.log' for more details" "$LINENO" 5; }
2526  fi
2527done
2528
2529if test -r "$cache_file"; then
2530  # Some versions of bash will fail to source /dev/null (special files
2531  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2532  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2533    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534$as_echo "$as_me: loading cache $cache_file" >&6;}
2535    case $cache_file in
2536      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537      *)                      . "./$cache_file";;
2538    esac
2539  fi
2540else
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542$as_echo "$as_me: creating cache $cache_file" >&6;}
2543  >$cache_file
2544fi
2545
2546# Check that the precious variables saved in the cache have kept the same
2547# value.
2548ac_cache_corrupted=false
2549for ac_var in $ac_precious_vars; do
2550  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2551  eval ac_new_set=\$ac_env_${ac_var}_set
2552  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2553  eval ac_new_val=\$ac_env_${ac_var}_value
2554  case $ac_old_set,$ac_new_set in
2555    set,)
2556      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2557$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2558      ac_cache_corrupted=: ;;
2559    ,set)
2560      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2561$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2562      ac_cache_corrupted=: ;;
2563    ,);;
2564    *)
2565      if test "x$ac_old_val" != "x$ac_new_val"; then
2566	# differences in whitespace do not lead to failure.
2567	ac_old_val_w=`echo x $ac_old_val`
2568	ac_new_val_w=`echo x $ac_new_val`
2569	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2570	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2571$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2572	  ac_cache_corrupted=:
2573	else
2574	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2575$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2576	  eval $ac_var=\$ac_old_val
2577	fi
2578	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2579$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2580	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2581$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2582      fi;;
2583  esac
2584  # Pass precious variables to config.status.
2585  if test "$ac_new_set" = set; then
2586    case $ac_new_val in
2587    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2588    *) ac_arg=$ac_var=$ac_new_val ;;
2589    esac
2590    case " $ac_configure_args " in
2591      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2592      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2593    esac
2594  fi
2595done
2596if $ac_cache_corrupted; then
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2600$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2601  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602fi
2603## -------------------- ##
2604## Main body of script. ##
2605## -------------------- ##
2606
2607ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612
2613
2614
2615
2616
2617am__api_version='1.13'
2618
2619ac_aux_dir=
2620for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621  if test -f "$ac_dir/install-sh"; then
2622    ac_aux_dir=$ac_dir
2623    ac_install_sh="$ac_aux_dir/install-sh -c"
2624    break
2625  elif test -f "$ac_dir/install.sh"; then
2626    ac_aux_dir=$ac_dir
2627    ac_install_sh="$ac_aux_dir/install.sh -c"
2628    break
2629  elif test -f "$ac_dir/shtool"; then
2630    ac_aux_dir=$ac_dir
2631    ac_install_sh="$ac_aux_dir/shtool install -c"
2632    break
2633  fi
2634done
2635if test -z "$ac_aux_dir"; then
2636  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2637fi
2638
2639# These three variables are undocumented and unsupported,
2640# and are intended to be withdrawn in a future Autoconf release.
2641# They can cause serious problems if a builder's source tree is in a directory
2642# whose full name contains unusual characters.
2643ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2644ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2645ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2646
2647
2648# Find a good install program.  We prefer a C program (faster),
2649# so one script is as good as another.  But avoid the broken or
2650# incompatible versions:
2651# SysV /etc/install, /usr/sbin/install
2652# SunOS /usr/etc/install
2653# IRIX /sbin/install
2654# AIX /bin/install
2655# AmigaOS /C/install, which installs bootblocks on floppy discs
2656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659# OS/2's system install, which has a completely different semantic
2660# ./install, which can be erroneously created by make from ./install.sh.
2661# Reject install programs that cannot install multiple files.
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2663$as_echo_n "checking for a BSD-compatible install... " >&6; }
2664if test -z "$INSTALL"; then
2665if ${ac_cv_path_install+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671  IFS=$as_save_IFS
2672  test -z "$as_dir" && as_dir=.
2673    # Account for people who put trailing slashes in PATH elements.
2674case $as_dir/ in #((
2675  ./ | .// | /[cC]/* | \
2676  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2677  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2678  /usr/ucb/* ) ;;
2679  *)
2680    # OSF1 and SCO ODT 3.0 have their own names for install.
2681    # Don't use installbsd from OSF since it installs stuff as root
2682    # by default.
2683    for ac_prog in ginstall scoinst install; do
2684      for ac_exec_ext in '' $ac_executable_extensions; do
2685	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2686	  if test $ac_prog = install &&
2687	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688	    # AIX install.  It has an incompatible calling convention.
2689	    :
2690	  elif test $ac_prog = install &&
2691	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692	    # program-specific install script used by HP pwplus--don't use.
2693	    :
2694	  else
2695	    rm -rf conftest.one conftest.two conftest.dir
2696	    echo one > conftest.one
2697	    echo two > conftest.two
2698	    mkdir conftest.dir
2699	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2700	      test -s conftest.one && test -s conftest.two &&
2701	      test -s conftest.dir/conftest.one &&
2702	      test -s conftest.dir/conftest.two
2703	    then
2704	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2705	      break 3
2706	    fi
2707	  fi
2708	fi
2709      done
2710    done
2711    ;;
2712esac
2713
2714  done
2715IFS=$as_save_IFS
2716
2717rm -rf conftest.one conftest.two conftest.dir
2718
2719fi
2720  if test "${ac_cv_path_install+set}" = set; then
2721    INSTALL=$ac_cv_path_install
2722  else
2723    # As a last resort, use the slow shell script.  Don't cache a
2724    # value for INSTALL within a source directory, because that will
2725    # break other packages using the cache if that directory is
2726    # removed, or if the value is a relative name.
2727    INSTALL=$ac_install_sh
2728  fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2731$as_echo "$INSTALL" >&6; }
2732
2733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2734# It thinks the first close brace ends the variable substitution.
2735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2736
2737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2738
2739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2742$as_echo_n "checking whether build environment is sane... " >&6; }
2743# Reject unsafe characters in $srcdir or the absolute working directory
2744# name.  Accept space and tab only in the latter.
2745am_lf='
2746'
2747case `pwd` in
2748  *[\\\"\#\$\&\'\`$am_lf]*)
2749    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2750esac
2751case $srcdir in
2752  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2753    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2754esac
2755
2756# Do 'set' in a subshell so we don't clobber the current shell's
2757# arguments.  Must try -L first in case configure is actually a
2758# symlink; some systems play weird games with the mod time of symlinks
2759# (eg FreeBSD returns the mod time of the symlink's containing
2760# directory).
2761if (
2762   am_has_slept=no
2763   for am_try in 1 2; do
2764     echo "timestamp, slept: $am_has_slept" > conftest.file
2765     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2766     if test "$*" = "X"; then
2767	# -L didn't work.
2768	set X `ls -t "$srcdir/configure" conftest.file`
2769     fi
2770     if test "$*" != "X $srcdir/configure conftest.file" \
2771	&& test "$*" != "X conftest.file $srcdir/configure"; then
2772
2773	# If neither matched, then we have a broken ls.  This can happen
2774	# if, for instance, CONFIG_SHELL is bash and it inherits a
2775	# broken ls alias from the environment.  This has actually
2776	# happened.  Such a system could not be considered "sane".
2777	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2778  alias in your environment" "$LINENO" 5
2779     fi
2780     if test "$2" = conftest.file || test $am_try -eq 2; then
2781       break
2782     fi
2783     # Just in case.
2784     sleep 1
2785     am_has_slept=yes
2786   done
2787   test "$2" = conftest.file
2788   )
2789then
2790   # Ok.
2791   :
2792else
2793   as_fn_error $? "newly created file is older than distributed files!
2794Check your system clock" "$LINENO" 5
2795fi
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797$as_echo "yes" >&6; }
2798# If we didn't sleep, we still need to ensure time stamps of config.status and
2799# generated files are strictly newer.
2800am_sleep_pid=
2801if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2802  ( sleep 1 ) &
2803  am_sleep_pid=$!
2804fi
2805
2806rm -f conftest.file
2807
2808test "$program_prefix" != NONE &&
2809  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2810# Use a double $ so make ignores it.
2811test "$program_suffix" != NONE &&
2812  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2813# Double any \ or $.
2814# By default was `s,x,x', remove it if useless.
2815ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2816program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2817
2818# expand $ac_aux_dir to an absolute path
2819am_aux_dir=`cd $ac_aux_dir && pwd`
2820
2821if test x"${MISSING+set}" != xset; then
2822  case $am_aux_dir in
2823  *\ * | *\	*)
2824    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2825  *)
2826    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2827  esac
2828fi
2829# Use eval to expand $SHELL
2830if eval "$MISSING --is-lightweight"; then
2831  am_missing_run="$MISSING "
2832else
2833  am_missing_run=
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2835$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2836fi
2837
2838if test x"${install_sh}" != xset; then
2839  case $am_aux_dir in
2840  *\ * | *\	*)
2841    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2842  *)
2843    install_sh="\${SHELL} $am_aux_dir/install-sh"
2844  esac
2845fi
2846
2847# Installed binaries are usually stripped using 'strip' when the user
2848# run "make install-strip".  However 'strip' might not be the right
2849# tool to use in cross-compilation environments, therefore Automake
2850# will honor the 'STRIP' environment variable to overrule this program.
2851if test "$cross_compiling" != no; then
2852  if test -n "$ac_tool_prefix"; then
2853  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2854set dummy ${ac_tool_prefix}strip; ac_word=$2
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856$as_echo_n "checking for $ac_word... " >&6; }
2857if ${ac_cv_prog_STRIP+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  if test -n "$STRIP"; then
2861  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868    for ac_exec_ext in '' $ac_executable_extensions; do
2869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875  done
2876IFS=$as_save_IFS
2877
2878fi
2879fi
2880STRIP=$ac_cv_prog_STRIP
2881if test -n "$STRIP"; then
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2883$as_echo "$STRIP" >&6; }
2884else
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886$as_echo "no" >&6; }
2887fi
2888
2889
2890fi
2891if test -z "$ac_cv_prog_STRIP"; then
2892  ac_ct_STRIP=$STRIP
2893  # Extract the first word of "strip", so it can be a program name with args.
2894set dummy strip; ac_word=$2
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896$as_echo_n "checking for $ac_word... " >&6; }
2897if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  if test -n "$ac_ct_STRIP"; then
2901  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2902else
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906  IFS=$as_save_IFS
2907  test -z "$as_dir" && as_dir=.
2908    for ac_exec_ext in '' $ac_executable_extensions; do
2909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910    ac_cv_prog_ac_ct_STRIP="strip"
2911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912    break 2
2913  fi
2914done
2915  done
2916IFS=$as_save_IFS
2917
2918fi
2919fi
2920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2921if test -n "$ac_ct_STRIP"; then
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2923$as_echo "$ac_ct_STRIP" >&6; }
2924else
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
2927fi
2928
2929  if test "x$ac_ct_STRIP" = x; then
2930    STRIP=":"
2931  else
2932    case $cross_compiling:$ac_tool_warned in
2933yes:)
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936ac_tool_warned=yes ;;
2937esac
2938    STRIP=$ac_ct_STRIP
2939  fi
2940else
2941  STRIP="$ac_cv_prog_STRIP"
2942fi
2943
2944fi
2945INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2946
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2948$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2949if test -z "$MKDIR_P"; then
2950  if ${ac_cv_path_mkdir+:} false; then :
2951  $as_echo_n "(cached) " >&6
2952else
2953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_prog in mkdir gmkdir; do
2959	 for ac_exec_ext in '' $ac_executable_extensions; do
2960	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2961	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2962	     'mkdir (GNU coreutils) '* | \
2963	     'mkdir (coreutils) '* | \
2964	     'mkdir (fileutils) '4.1*)
2965	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2966	       break 3;;
2967	   esac
2968	 done
2969       done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974
2975  test -d ./--version && rmdir ./--version
2976  if test "${ac_cv_path_mkdir+set}" = set; then
2977    MKDIR_P="$ac_cv_path_mkdir -p"
2978  else
2979    # As a last resort, use the slow shell script.  Don't cache a
2980    # value for MKDIR_P within a source directory, because that will
2981    # break other packages using the cache if that directory is
2982    # removed, or if the value is a relative name.
2983    MKDIR_P="$ac_install_sh -d"
2984  fi
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2987$as_echo "$MKDIR_P" >&6; }
2988
2989for ac_prog in gawk mawk nawk awk
2990do
2991  # Extract the first word of "$ac_prog", so it can be a program name with args.
2992set dummy $ac_prog; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_AWK+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$AWK"; then
2999  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_AWK="$ac_prog"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018AWK=$ac_cv_prog_AWK
3019if test -n "$AWK"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3021$as_echo "$AWK" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028  test -n "$AWK" && break
3029done
3030
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3032$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3033set x ${MAKE-make}
3034ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3035if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  cat >conftest.make <<\_ACEOF
3039SHELL = /bin/sh
3040all:
3041	@echo '@@@%%%=$(MAKE)=@@@%%%'
3042_ACEOF
3043# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3044case `${MAKE-make} -f conftest.make 2>/dev/null` in
3045  *@@@%%%=?*=@@@%%%*)
3046    eval ac_cv_prog_make_${ac_make}_set=yes;;
3047  *)
3048    eval ac_cv_prog_make_${ac_make}_set=no;;
3049esac
3050rm -f conftest.make
3051fi
3052if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
3055  SET_MAKE=
3056else
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059  SET_MAKE="MAKE=${MAKE-make}"
3060fi
3061
3062rm -rf .tst 2>/dev/null
3063mkdir .tst 2>/dev/null
3064if test -d .tst; then
3065  am__leading_dot=.
3066else
3067  am__leading_dot=_
3068fi
3069rmdir .tst 2>/dev/null
3070
3071# Check whether --enable-silent-rules was given.
3072if test "${enable_silent_rules+set}" = set; then :
3073  enableval=$enable_silent_rules;
3074fi
3075
3076case $enable_silent_rules in # (((
3077  yes) AM_DEFAULT_VERBOSITY=0;;
3078   no) AM_DEFAULT_VERBOSITY=1;;
3079    *) AM_DEFAULT_VERBOSITY=1;;
3080esac
3081am_make=${MAKE-make}
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3083$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3084if ${am_cv_make_support_nested_variables+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if $as_echo 'TRUE=$(BAR$(V))
3088BAR0=false
3089BAR1=true
3090V=1
3091am__doit:
3092	@$(TRUE)
3093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3094  am_cv_make_support_nested_variables=yes
3095else
3096  am_cv_make_support_nested_variables=no
3097fi
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3100$as_echo "$am_cv_make_support_nested_variables" >&6; }
3101if test $am_cv_make_support_nested_variables = yes; then
3102    AM_V='$(V)'
3103  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3104else
3105  AM_V=$AM_DEFAULT_VERBOSITY
3106  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3107fi
3108AM_BACKSLASH='\'
3109
3110if test "`cd $srcdir && pwd`" != "`pwd`"; then
3111  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3112  # is not polluted with repeated "-I."
3113  am__isrc=' -I$(srcdir)'
3114  # test to see if srcdir already configured
3115  if test -f $srcdir/config.status; then
3116    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3117  fi
3118fi
3119
3120# test whether we have cygpath
3121if test -z "$CYGPATH_W"; then
3122  if (cygpath --version) >/dev/null 2>/dev/null; then
3123    CYGPATH_W='cygpath -w'
3124  else
3125    CYGPATH_W=echo
3126  fi
3127fi
3128
3129
3130# Define the identity of the package.
3131 PACKAGE='lidia'
3132 VERSION='2.3.0+latte-patches-2014-10-04'
3133
3134
3135cat >>confdefs.h <<_ACEOF
3136#define PACKAGE "$PACKAGE"
3137_ACEOF
3138
3139
3140cat >>confdefs.h <<_ACEOF
3141#define VERSION "$VERSION"
3142_ACEOF
3143
3144# Some tools Automake needs.
3145
3146ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3147
3148
3149AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3150
3151
3152AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3153
3154
3155AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3156
3157
3158MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3159
3160# For better backward compatibility.  To be removed once Automake 1.9.x
3161# dies out for good.  For more background, see:
3162# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3164mkdir_p='$(MKDIR_P)'
3165
3166# We need awk for the "check" target.  The system "awk" is bad on
3167# some platforms.
3168# Always define AMTAR for backward compatibility.  Yes, it's still used
3169# in the wild :-(  We should find a proper way to deprecate it ...
3170AMTAR='$${TAR-tar}'
3171
3172
3173# We'll loop over all known methods to create a tar archive until one works.
3174_am_tools='gnutar plaintar pax cpio none'
3175
3176# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3177      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3178      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3179      # and bug#13588).
3180      am_max_uid=2097151 # 2^21 - 1
3181      am_max_gid=$am_max_uid
3182      # The $UID and $GID variables are not portable, so we need to resort
3183      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3184      # below are definitely unexpected, so allow the users to see them
3185      # (that is, avoid stderr redirection).
3186      am_uid=`id -u || echo unknown`
3187      am_gid=`id -g || echo unknown`
3188      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3189$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3190      if test $am_uid -le $am_max_uid; then
3191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192$as_echo "yes" >&6; }
3193      else
3194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196         _am_tools=none
3197      fi
3198      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3199$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3200      if test $am_gid -le $am_max_gid; then
3201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202$as_echo "yes" >&6; }
3203      else
3204        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206        _am_tools=none
3207      fi
3208
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3210$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3211
3212  # Go ahead even if we have the value already cached.  We do so because we
3213  # need to set the values for the 'am__tar' and 'am__untar' variables.
3214  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3215
3216  for _am_tool in $_am_tools; do
3217    case $_am_tool in
3218    gnutar)
3219      for _am_tar in tar gnutar gtar; do
3220        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3221   ($_am_tar --version) >&5 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); } && break
3225      done
3226      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3227      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3228      am__untar="$_am_tar -xf -"
3229      ;;
3230    plaintar)
3231      # Must skip GNU tar: if it does not support --format= it doesn't create
3232      # ustar tarball either.
3233      (tar --version) >/dev/null 2>&1 && continue
3234      am__tar='tar chf - "$$tardir"'
3235      am__tar_='tar chf - "$tardir"'
3236      am__untar='tar xf -'
3237      ;;
3238    pax)
3239      am__tar='pax -L -x ustar -w "$$tardir"'
3240      am__tar_='pax -L -x ustar -w "$tardir"'
3241      am__untar='pax -r'
3242      ;;
3243    cpio)
3244      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3245      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3246      am__untar='cpio -i -H ustar -d'
3247      ;;
3248    none)
3249      am__tar=false
3250      am__tar_=false
3251      am__untar=false
3252      ;;
3253    esac
3254
3255    # If the value was cached, stop now.  We just wanted to have am__tar
3256    # and am__untar set.
3257    test -n "${am_cv_prog_tar_ustar}" && break
3258
3259    # tar/untar a dummy directory, and stop if the command works.
3260    rm -rf conftest.dir
3261    mkdir conftest.dir
3262    echo GrepMe > conftest.dir/file
3263    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3264   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }
3268    rm -rf conftest.dir
3269    if test -s conftest.tar; then
3270      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3271   ($am__untar <conftest.tar) >&5 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }
3275      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3276   (cat conftest.dir/file) >&5 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }
3280      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3281    fi
3282  done
3283  rm -rf conftest.dir
3284
3285  if ${am_cv_prog_tar_ustar+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  am_cv_prog_tar_ustar=$_am_tool
3289fi
3290
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3292$as_echo "$am_cv_prog_tar_ustar" >&6; }
3293
3294
3295
3296
3297
3298
3299
3300# Update version info in some files for later distribution
3301ac_config_files="$ac_config_files LiDIA.spec"
3302
3303
3304# This disables the use of Autoheader for updating *.h.in
3305AUTOHEADER=:
3306
3307# <config.h> holds information about available headers, types, functions, etc.
3308# <LiDIA/LiDIA.h> holds information relevant for binary compatibility issues.
3309# <LiDIA/path.h> holds database installation paths.
3310ac_config_headers="$ac_config_headers include/config.h:config.h.in include/LiDIA/LiDIA.h:LiDIA.h.in include/LiDIA/path.h:path.h.in"
3311
3312
3313ac_ext=cpp
3314ac_cpp='$CXXCPP $CPPFLAGS'
3315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3318
3319
3320# Some definitions for <LiDIA/LiDIA.h>
3321$as_echo "#define LIDIA_MAJOR_VERSION 2" >>confdefs.h
3322
3323$as_echo "#define LIDIA_MINOR_VERSION 3" >>confdefs.h
3324
3325$as_echo "#define LIDIA_PATCH_VERSION 0" >>confdefs.h
3326
3327
3328# Automake defines `pkgdatadir' in the generated `Makefile.in's (though it
3329# does not set a corresponding shell variable here).
3330# Expand the (to-be-assigned) value of `pkgdatadir' recursively
3331# and use the result for defining the installation paths.
3332pkgdatadir_x='${datadir}/${PACKAGE}'
3333
3334# Caution: prefix=NONE exec_prefix=NONE are not resolved before AC_OUTPUT.
3335restore_NONE=""
3336case $prefix in NONE)
3337	prefix=$ac_default_prefix
3338	restore_NONE="$restore_NONE prefix=NONE"
3339	;;
3340esac
3341case $exec_prefix in NONE)
3342	exec_prefix='${prefix}'
3343	restore_NONE="$restore_NONE exec_prefix=NONE"
3344	;;
3345esac
3346while :; do
3347	case $pkgdatadir_x in
3348	*\${*}*)
3349		eval "lidia_expand_dirvar_tmp=\"$pkgdatadir_x\"" 2>/dev/null || break
3350		case $lidia_expand_dirvar_tmp in
3351		"" | "$pkgdatadir_x") break ;;
3352		*) pkgdatadir_x=$lidia_expand_dirvar_tmp ;;
3353		esac ;;
3354	*) break ;;
3355	esac
3356done
3357eval "$restore_NONE"
3358
3359
3360# Definitions for <LiDIA/path.h>
3361
3362cat >>confdefs.h <<_ACEOF
3363#define LIDIA_GF2N_DB "${pkgdatadir_x}/GF2n.database"
3364_ACEOF
3365
3366
3367cat >>confdefs.h <<_ACEOF
3368#define LIDIA_PRIMELIST_NAME "${pkgdatadir_x}/LIDIA_PRIMES"
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<_ACEOF
3373#define LIDIA_ECO_DB "${pkgdatadir_x}/MOD_EQ"
3374_ACEOF
3375
3376
3377cat >>confdefs.h <<_ACEOF
3378#define LIDIA_ECO2_DB "${pkgdatadir_x}/MOD_EQ_2"
3379_ACEOF
3380
3381
3382cat >>confdefs.h <<_ACEOF
3383#define LIDIA_DISCRIMINANTS_DB "${pkgdatadir_x}/Discriminants"
3384_ACEOF
3385
3386
3387cat >>confdefs.h <<_ACEOF
3388#define LIDIA_PRIME_DIFFS "${pkgdatadir_x}/LIDIA_PRIME_DIFFS"
3389_ACEOF
3390
3391
3392
3393
3394#
3395#	CHECKING FOR PROGRAMS
3396#
3397
3398
3399
3400ac_USER_DEFINED_CFLAGS="${CFLAGS}"
3401test -z "${CFLAGS}" && CFLAGS="-O2"
3402ac_ext=c
3403ac_cpp='$CPP $CPPFLAGS'
3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407if test -n "$ac_tool_prefix"; then
3408  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3409set dummy ${ac_tool_prefix}gcc; ac_word=$2
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411$as_echo_n "checking for $ac_word... " >&6; }
3412if ${ac_cv_prog_CC+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  if test -n "$CC"; then
3416  ac_cv_prog_CC="$CC" # Let the user override the test.
3417else
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421  IFS=$as_save_IFS
3422  test -z "$as_dir" && as_dir=.
3423    for ac_exec_ext in '' $ac_executable_extensions; do
3424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427    break 2
3428  fi
3429done
3430  done
3431IFS=$as_save_IFS
3432
3433fi
3434fi
3435CC=$ac_cv_prog_CC
3436if test -n "$CC"; then
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438$as_echo "$CC" >&6; }
3439else
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441$as_echo "no" >&6; }
3442fi
3443
3444
3445fi
3446if test -z "$ac_cv_prog_CC"; then
3447  ac_ct_CC=$CC
3448  # Extract the first word of "gcc", so it can be a program name with args.
3449set dummy gcc; ac_word=$2
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451$as_echo_n "checking for $ac_word... " >&6; }
3452if ${ac_cv_prog_ac_ct_CC+:} false; then :
3453  $as_echo_n "(cached) " >&6
3454else
3455  if test -n "$ac_ct_CC"; then
3456  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457else
3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459for as_dir in $PATH
3460do
3461  IFS=$as_save_IFS
3462  test -z "$as_dir" && as_dir=.
3463    for ac_exec_ext in '' $ac_executable_extensions; do
3464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465    ac_cv_prog_ac_ct_CC="gcc"
3466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467    break 2
3468  fi
3469done
3470  done
3471IFS=$as_save_IFS
3472
3473fi
3474fi
3475ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476if test -n "$ac_ct_CC"; then
3477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478$as_echo "$ac_ct_CC" >&6; }
3479else
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482fi
3483
3484  if test "x$ac_ct_CC" = x; then
3485    CC=""
3486  else
3487    case $cross_compiling:$ac_tool_warned in
3488yes:)
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491ac_tool_warned=yes ;;
3492esac
3493    CC=$ac_ct_CC
3494  fi
3495else
3496  CC="$ac_cv_prog_CC"
3497fi
3498
3499if test -z "$CC"; then
3500          if test -n "$ac_tool_prefix"; then
3501    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3502set dummy ${ac_tool_prefix}cc; ac_word=$2
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504$as_echo_n "checking for $ac_word... " >&6; }
3505if ${ac_cv_prog_CC+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  if test -n "$CC"; then
3509  ac_cv_prog_CC="$CC" # Let the user override the test.
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514  IFS=$as_save_IFS
3515  test -z "$as_dir" && as_dir=.
3516    for ac_exec_ext in '' $ac_executable_extensions; do
3517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518    ac_cv_prog_CC="${ac_tool_prefix}cc"
3519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520    break 2
3521  fi
3522done
3523  done
3524IFS=$as_save_IFS
3525
3526fi
3527fi
3528CC=$ac_cv_prog_CC
3529if test -n "$CC"; then
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531$as_echo "$CC" >&6; }
3532else
3533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534$as_echo "no" >&6; }
3535fi
3536
3537
3538  fi
3539fi
3540if test -z "$CC"; then
3541  # Extract the first word of "cc", so it can be a program name with args.
3542set dummy cc; ac_word=$2
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544$as_echo_n "checking for $ac_word... " >&6; }
3545if ${ac_cv_prog_CC+:} false; then :
3546  $as_echo_n "(cached) " >&6
3547else
3548  if test -n "$CC"; then
3549  ac_cv_prog_CC="$CC" # Let the user override the test.
3550else
3551  ac_prog_rejected=no
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555  IFS=$as_save_IFS
3556  test -z "$as_dir" && as_dir=.
3557    for ac_exec_ext in '' $ac_executable_extensions; do
3558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560       ac_prog_rejected=yes
3561       continue
3562     fi
3563    ac_cv_prog_CC="cc"
3564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565    break 2
3566  fi
3567done
3568  done
3569IFS=$as_save_IFS
3570
3571if test $ac_prog_rejected = yes; then
3572  # We found a bogon in the path, so make sure we never use it.
3573  set dummy $ac_cv_prog_CC
3574  shift
3575  if test $# != 0; then
3576    # We chose a different compiler from the bogus one.
3577    # However, it has the same basename, so the bogon will be chosen
3578    # first if we set CC to just the basename; use the full file name.
3579    shift
3580    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3581  fi
3582fi
3583fi
3584fi
3585CC=$ac_cv_prog_CC
3586if test -n "$CC"; then
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588$as_echo "$CC" >&6; }
3589else
3590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591$as_echo "no" >&6; }
3592fi
3593
3594
3595fi
3596if test -z "$CC"; then
3597  if test -n "$ac_tool_prefix"; then
3598  for ac_prog in cl.exe
3599  do
3600    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603$as_echo_n "checking for $ac_word... " >&6; }
3604if ${ac_cv_prog_CC+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  if test -n "$CC"; then
3608  ac_cv_prog_CC="$CC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613  IFS=$as_save_IFS
3614  test -z "$as_dir" && as_dir=.
3615    for ac_exec_ext in '' $ac_executable_extensions; do
3616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619    break 2
3620  fi
3621done
3622  done
3623IFS=$as_save_IFS
3624
3625fi
3626fi
3627CC=$ac_cv_prog_CC
3628if test -n "$CC"; then
3629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630$as_echo "$CC" >&6; }
3631else
3632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633$as_echo "no" >&6; }
3634fi
3635
3636
3637    test -n "$CC" && break
3638  done
3639fi
3640if test -z "$CC"; then
3641  ac_ct_CC=$CC
3642  for ac_prog in cl.exe
3643do
3644  # Extract the first word of "$ac_prog", so it can be a program name with args.
3645set dummy $ac_prog; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; }
3648if ${ac_cv_prog_ac_ct_CC+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -n "$ac_ct_CC"; then
3652  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657  IFS=$as_save_IFS
3658  test -z "$as_dir" && as_dir=.
3659    for ac_exec_ext in '' $ac_executable_extensions; do
3660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661    ac_cv_prog_ac_ct_CC="$ac_prog"
3662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663    break 2
3664  fi
3665done
3666  done
3667IFS=$as_save_IFS
3668
3669fi
3670fi
3671ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672if test -n "$ac_ct_CC"; then
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674$as_echo "$ac_ct_CC" >&6; }
3675else
3676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677$as_echo "no" >&6; }
3678fi
3679
3680
3681  test -n "$ac_ct_CC" && break
3682done
3683
3684  if test "x$ac_ct_CC" = x; then
3685    CC=""
3686  else
3687    case $cross_compiling:$ac_tool_warned in
3688yes:)
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691ac_tool_warned=yes ;;
3692esac
3693    CC=$ac_ct_CC
3694  fi
3695fi
3696
3697fi
3698
3699
3700test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702as_fn_error $? "no acceptable C compiler found in \$PATH
3703See \`config.log' for more details" "$LINENO" 5; }
3704
3705# Provide some information about the compiler.
3706$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3707set X $ac_compile
3708ac_compiler=$2
3709for ac_option in --version -v -V -qversion; do
3710  { { ac_try="$ac_compiler $ac_option >&5"
3711case "(($ac_try" in
3712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713  *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716$as_echo "$ac_try_echo"; } >&5
3717  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3718  ac_status=$?
3719  if test -s conftest.err; then
3720    sed '10a\
3721... rest of stderr output deleted ...
3722         10q' conftest.err >conftest.er1
3723    cat conftest.er1 >&5
3724  fi
3725  rm -f conftest.er1 conftest.err
3726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727  test $ac_status = 0; }
3728done
3729
3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741ac_clean_files_save=$ac_clean_files
3742ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743# Try to create an executable without -o first, disregard a.out.
3744# It will help us diagnose broken compilers, and finding out an intuition
3745# of exeext.
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747$as_echo_n "checking whether the C compiler works... " >&6; }
3748ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3749
3750# The possible output files:
3751ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3752
3753ac_rmfiles=
3754for ac_file in $ac_files
3755do
3756  case $ac_file in
3757    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759  esac
3760done
3761rm -f $ac_rmfiles
3762
3763if { { ac_try="$ac_link_default"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770  (eval "$ac_link_default") 2>&5
3771  ac_status=$?
3772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }; then :
3774  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3777# so that the user can short-circuit this test for compilers unknown to
3778# Autoconf.
3779for ac_file in $ac_files ''
3780do
3781  test -f "$ac_file" || continue
3782  case $ac_file in
3783    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3784	;;
3785    [ab].out )
3786	# We found the default executable, but exeext='' is most
3787	# certainly right.
3788	break;;
3789    *.* )
3790	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791	then :; else
3792	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793	fi
3794	# We set ac_cv_exeext here because the later test for it is not
3795	# safe: cross compilers may not add the suffix if given an `-o'
3796	# argument, so we may need to know it at that point already.
3797	# Even if this section looks crufty: it has the advantage of
3798	# actually working.
3799	break;;
3800    * )
3801	break;;
3802  esac
3803done
3804test "$ac_cv_exeext" = no && ac_cv_exeext=
3805
3806else
3807  ac_file=''
3808fi
3809if test -z "$ac_file"; then :
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
3812$as_echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817as_fn_error 77 "C compiler cannot create executables
3818See \`config.log' for more details" "$LINENO" 5; }
3819else
3820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821$as_echo "yes" >&6; }
3822fi
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3824$as_echo_n "checking for C compiler default output file name... " >&6; }
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3826$as_echo "$ac_file" >&6; }
3827ac_exeext=$ac_cv_exeext
3828
3829rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3830ac_clean_files=$ac_clean_files_save
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3832$as_echo_n "checking for suffix of executables... " >&6; }
3833if { { ac_try="$ac_link"
3834case "(($ac_try" in
3835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836  *) ac_try_echo=$ac_try;;
3837esac
3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839$as_echo "$ac_try_echo"; } >&5
3840  (eval "$ac_link") 2>&5
3841  ac_status=$?
3842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843  test $ac_status = 0; }; then :
3844  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3845# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3846# work properly (i.e., refer to `conftest.exe'), while it won't with
3847# `rm'.
3848for ac_file in conftest.exe conftest conftest.*; do
3849  test -f "$ac_file" || continue
3850  case $ac_file in
3851    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853	  break;;
3854    * ) break;;
3855  esac
3856done
3857else
3858  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3861See \`config.log' for more details" "$LINENO" 5; }
3862fi
3863rm -f conftest conftest$ac_cv_exeext
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865$as_echo "$ac_cv_exeext" >&6; }
3866
3867rm -f conftest.$ac_ext
3868EXEEXT=$ac_cv_exeext
3869ac_exeext=$EXEEXT
3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872#include <stdio.h>
3873int
3874main ()
3875{
3876FILE *f = fopen ("conftest.out", "w");
3877 return ferror (f) || fclose (f) != 0;
3878
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883ac_clean_files="$ac_clean_files conftest.out"
3884# Check that the compiler produces executables we can run.  If not, either
3885# the compiler is broken, or we cross compile.
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3887$as_echo_n "checking whether we are cross compiling... " >&6; }
3888if test "$cross_compiling" != yes; then
3889  { { ac_try="$ac_link"
3890case "(($ac_try" in
3891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892  *) ac_try_echo=$ac_try;;
3893esac
3894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895$as_echo "$ac_try_echo"; } >&5
3896  (eval "$ac_link") 2>&5
3897  ac_status=$?
3898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899  test $ac_status = 0; }
3900  if { ac_try='./conftest$ac_cv_exeext'
3901  { { case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907  (eval "$ac_try") 2>&5
3908  ac_status=$?
3909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910  test $ac_status = 0; }; }; then
3911    cross_compiling=no
3912  else
3913    if test "$cross_compiling" = maybe; then
3914	cross_compiling=yes
3915    else
3916	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918as_fn_error $? "cannot run C compiled programs.
3919If you meant to cross compile, use \`--host'.
3920See \`config.log' for more details" "$LINENO" 5; }
3921    fi
3922  fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3925$as_echo "$cross_compiling" >&6; }
3926
3927rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3928ac_clean_files=$ac_clean_files_save
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930$as_echo_n "checking for suffix of object files... " >&6; }
3931if ${ac_cv_objext+:} false; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h.  */
3936
3937int
3938main ()
3939{
3940
3941  ;
3942  return 0;
3943}
3944_ACEOF
3945rm -f conftest.o conftest.obj
3946if { { ac_try="$ac_compile"
3947case "(($ac_try" in
3948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949  *) ac_try_echo=$ac_try;;
3950esac
3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952$as_echo "$ac_try_echo"; } >&5
3953  (eval "$ac_compile") 2>&5
3954  ac_status=$?
3955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956  test $ac_status = 0; }; then :
3957  for ac_file in conftest.o conftest.obj conftest.*; do
3958  test -f "$ac_file" || continue;
3959  case $ac_file in
3960    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3961    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3962       break;;
3963  esac
3964done
3965else
3966  $as_echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971as_fn_error $? "cannot compute suffix of object files: cannot compile
3972See \`config.log' for more details" "$LINENO" 5; }
3973fi
3974rm -f conftest.$ac_cv_objext conftest.$ac_ext
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3977$as_echo "$ac_cv_objext" >&6; }
3978OBJEXT=$ac_cv_objext
3979ac_objext=$OBJEXT
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3981$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3982if ${ac_cv_c_compiler_gnu+:} false; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988int
3989main ()
3990{
3991#ifndef __GNUC__
3992       choke me
3993#endif
3994
3995  ;
3996  return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_compile "$LINENO"; then :
4000  ac_compiler_gnu=yes
4001else
4002  ac_compiler_gnu=no
4003fi
4004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005ac_cv_c_compiler_gnu=$ac_compiler_gnu
4006
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4009$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4010if test $ac_compiler_gnu = yes; then
4011  GCC=yes
4012else
4013  GCC=
4014fi
4015ac_test_CFLAGS=${CFLAGS+set}
4016ac_save_CFLAGS=$CFLAGS
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018$as_echo_n "checking whether $CC accepts -g... " >&6; }
4019if ${ac_cv_prog_cc_g+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  ac_save_c_werror_flag=$ac_c_werror_flag
4023   ac_c_werror_flag=yes
4024   ac_cv_prog_cc_g=no
4025   CFLAGS="-g"
4026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037if ac_fn_c_try_compile "$LINENO"; then :
4038  ac_cv_prog_cc_g=yes
4039else
4040  CFLAGS=""
4041      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042/* end confdefs.h.  */
4043
4044int
4045main ()
4046{
4047
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052if ac_fn_c_try_compile "$LINENO"; then :
4053
4054else
4055  ac_c_werror_flag=$ac_save_c_werror_flag
4056	 CFLAGS="-g"
4057	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059
4060int
4061main ()
4062{
4063
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068if ac_fn_c_try_compile "$LINENO"; then :
4069  ac_cv_prog_cc_g=yes
4070fi
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076   ac_c_werror_flag=$ac_save_c_werror_flag
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079$as_echo "$ac_cv_prog_cc_g" >&6; }
4080if test "$ac_test_CFLAGS" = set; then
4081  CFLAGS=$ac_save_CFLAGS
4082elif test $ac_cv_prog_cc_g = yes; then
4083  if test "$GCC" = yes; then
4084    CFLAGS="-g -O2"
4085  else
4086    CFLAGS="-g"
4087  fi
4088else
4089  if test "$GCC" = yes; then
4090    CFLAGS="-O2"
4091  else
4092    CFLAGS=
4093  fi
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4096$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4097if ${ac_cv_prog_cc_c89+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  ac_cv_prog_cc_c89=no
4101ac_save_CC=$CC
4102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h.  */
4104#include <stdarg.h>
4105#include <stdio.h>
4106struct stat;
4107/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4108struct buf { int x; };
4109FILE * (*rcsopen) (struct buf *, struct stat *, int);
4110static char *e (p, i)
4111     char **p;
4112     int i;
4113{
4114  return p[i];
4115}
4116static char *f (char * (*g) (char **, int), char **p, ...)
4117{
4118  char *s;
4119  va_list v;
4120  va_start (v,p);
4121  s = g (p, va_arg (v,int));
4122  va_end (v);
4123  return s;
4124}
4125
4126/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4127   function prototypes and stuff, but not '\xHH' hex character constants.
4128   These don't provoke an error unfortunately, instead are silently treated
4129   as 'x'.  The following induces an error, until -std is added to get
4130   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4131   array size at least.  It's necessary to write '\x00'==0 to get something
4132   that's true only with -std.  */
4133int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4134
4135/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4136   inside strings and character constants.  */
4137#define FOO(x) 'x'
4138int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4139
4140int test (int i, double x);
4141struct s1 {int (*f) (int a);};
4142struct s2 {int (*f) (double a);};
4143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4144int argc;
4145char **argv;
4146int
4147main ()
4148{
4149return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4155	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4156do
4157  CC="$ac_save_CC $ac_arg"
4158  if ac_fn_c_try_compile "$LINENO"; then :
4159  ac_cv_prog_cc_c89=$ac_arg
4160fi
4161rm -f core conftest.err conftest.$ac_objext
4162  test "x$ac_cv_prog_cc_c89" != "xno" && break
4163done
4164rm -f conftest.$ac_ext
4165CC=$ac_save_CC
4166
4167fi
4168# AC_CACHE_VAL
4169case "x$ac_cv_prog_cc_c89" in
4170  x)
4171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4172$as_echo "none needed" >&6; } ;;
4173  xno)
4174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175$as_echo "unsupported" >&6; } ;;
4176  *)
4177    CC="$CC $ac_cv_prog_cc_c89"
4178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4179$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4180esac
4181if test "x$ac_cv_prog_cc_c89" != xno; then :
4182
4183fi
4184
4185ac_ext=cpp
4186ac_cpp='$CXXCPP $CPPFLAGS'
4187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4190DEPDIR="${am__leading_dot}deps"
4191
4192ac_config_commands="$ac_config_commands depfiles"
4193
4194
4195am_make=${MAKE-make}
4196cat > confinc << 'END'
4197am__doit:
4198	@echo this is the am__doit target
4199.PHONY: am__doit
4200END
4201# If we don't find an include directive, just comment out the code.
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4203$as_echo_n "checking for style of include used by $am_make... " >&6; }
4204am__include="#"
4205am__quote=
4206_am_result=none
4207# First try GNU make style include.
4208echo "include confinc" > confmf
4209# Ignore all kinds of additional output from 'make'.
4210case `$am_make -s -f confmf 2> /dev/null` in #(
4211*the\ am__doit\ target*)
4212  am__include=include
4213  am__quote=
4214  _am_result=GNU
4215  ;;
4216esac
4217# Now try BSD make style include.
4218if test "$am__include" = "#"; then
4219   echo '.include "confinc"' > confmf
4220   case `$am_make -s -f confmf 2> /dev/null` in #(
4221   *the\ am__doit\ target*)
4222     am__include=.include
4223     am__quote="\""
4224     _am_result=BSD
4225     ;;
4226   esac
4227fi
4228
4229
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4231$as_echo "$_am_result" >&6; }
4232rm -f confinc confmf
4233
4234# Check whether --enable-dependency-tracking was given.
4235if test "${enable_dependency_tracking+set}" = set; then :
4236  enableval=$enable_dependency_tracking;
4237fi
4238
4239if test "x$enable_dependency_tracking" != xno; then
4240  am_depcomp="$ac_aux_dir/depcomp"
4241  AMDEPBACKSLASH='\'
4242  am__nodep='_no'
4243fi
4244 if test "x$enable_dependency_tracking" != xno; then
4245  AMDEP_TRUE=
4246  AMDEP_FALSE='#'
4247else
4248  AMDEP_TRUE='#'
4249  AMDEP_FALSE=
4250fi
4251
4252
4253
4254depcc="$CC"   am_compiler_list=
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4257$as_echo_n "checking dependency style of $depcc... " >&6; }
4258if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4262  # We make a subdir and do the tests there.  Otherwise we can end up
4263  # making bogus files that we don't know about and never remove.  For
4264  # instance it was reported that on HP-UX the gcc test will end up
4265  # making a dummy file named 'D' -- because '-MD' means "put the output
4266  # in D".
4267  rm -rf conftest.dir
4268  mkdir conftest.dir
4269  # Copy depcomp to subdir because otherwise we won't find it if we're
4270  # using a relative directory.
4271  cp "$am_depcomp" conftest.dir
4272  cd conftest.dir
4273  # We will build objects and dependencies in a subdirectory because
4274  # it helps to detect inapplicable dependency modes.  For instance
4275  # both Tru64's cc and ICC support -MD to output dependencies as a
4276  # side effect of compilation, but ICC will put the dependencies in
4277  # the current directory while Tru64 will put them in the object
4278  # directory.
4279  mkdir sub
4280
4281  am_cv_CC_dependencies_compiler_type=none
4282  if test "$am_compiler_list" = ""; then
4283     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284  fi
4285  am__universal=false
4286  case " $depcc " in #(
4287     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4288     esac
4289
4290  for depmode in $am_compiler_list; do
4291    # Setup a source with many dependencies, because some compilers
4292    # like to wrap large dependency lists on column 80 (with \), and
4293    # we should not choose a depcomp mode which is confused by this.
4294    #
4295    # We need to recreate these files for each test, as the compiler may
4296    # overwrite some of them when testing with obscure command lines.
4297    # This happens at least with the AIX C compiler.
4298    : > sub/conftest.c
4299    for i in 1 2 3 4 5 6; do
4300      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4301      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4302      # Solaris 10 /bin/sh.
4303      echo '/* dummy */' > sub/conftst$i.h
4304    done
4305    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4306
4307    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4308    # mode.  It turns out that the SunPro C++ compiler does not properly
4309    # handle '-M -o', and we need to detect this.  Also, some Intel
4310    # versions had trouble with output in subdirs.
4311    am__obj=sub/conftest.${OBJEXT-o}
4312    am__minus_obj="-o $am__obj"
4313    case $depmode in
4314    gcc)
4315      # This depmode causes a compiler race in universal mode.
4316      test "$am__universal" = false || continue
4317      ;;
4318    nosideeffect)
4319      # After this tag, mechanisms are not by side-effect, so they'll
4320      # only be used when explicitly requested.
4321      if test "x$enable_dependency_tracking" = xyes; then
4322	continue
4323      else
4324	break
4325      fi
4326      ;;
4327    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4328      # This compiler won't grok '-c -o', but also, the minuso test has
4329      # not run yet.  These depmodes are late enough in the game, and
4330      # so weak that their functioning should not be impacted.
4331      am__obj=conftest.${OBJEXT-o}
4332      am__minus_obj=
4333      ;;
4334    none) break ;;
4335    esac
4336    if depmode=$depmode \
4337       source=sub/conftest.c object=$am__obj \
4338       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4339       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4340         >/dev/null 2>conftest.err &&
4341       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4342       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4343       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4344       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4345      # icc doesn't choke on unknown options, it will just issue warnings
4346      # or remarks (even with -Werror).  So we grep stderr for any message
4347      # that says an option was ignored or not supported.
4348      # When given -MP, icc 7.0 and 7.1 complain thusly:
4349      #   icc: Command line warning: ignoring option '-M'; no argument required
4350      # The diagnosis changed in icc 8.0:
4351      #   icc: Command line remark: option '-MP' not supported
4352      if (grep 'ignoring option' conftest.err ||
4353          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4354        am_cv_CC_dependencies_compiler_type=$depmode
4355        break
4356      fi
4357    fi
4358  done
4359
4360  cd ..
4361  rm -rf conftest.dir
4362else
4363  am_cv_CC_dependencies_compiler_type=none
4364fi
4365
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4368$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4369CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4370
4371 if
4372  test "x$enable_dependency_tracking" != xno \
4373  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4374  am__fastdepCC_TRUE=
4375  am__fastdepCC_FALSE='#'
4376else
4377  am__fastdepCC_TRUE='#'
4378  am__fastdepCC_FALSE=
4379fi
4380
4381
4382
4383  if test "${GCC}" != "yes" && test -z "${ac_USER_DEFINED_CFLAGS}"; then
4384    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4385Currently, gcc is the only C compiler for which we know
4386how to set the compiler switches, but we found ${CC}.
4387We will assume CFLAGS = ${CFLAGS} and go on, but we strongly
4388recommend you set CFLAGS on the command line.
4389    " >&5
4390$as_echo "$as_me: WARNING:
4391Currently, gcc is the only C compiler for which we know
4392how to set the compiler switches, but we found ${CC}.
4393We will assume CFLAGS = ${CFLAGS} and go on, but we strongly
4394recommend you set CFLAGS on the command line.
4395    " >&2;}
4396  fi
4397
4398
4399ac_USER_DEFINED_CXXFLAGS="${CXXFLAGS}"
4400test -z "${CXXFLAGS}" && CXXFLAGS="-O2"
4401ac_ext=cpp
4402ac_cpp='$CXXCPP $CPPFLAGS'
4403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4406if test -z "$CXX"; then
4407  if test -n "$CCC"; then
4408    CXX=$CCC
4409  else
4410    if test -n "$ac_tool_prefix"; then
4411  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4412  do
4413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416$as_echo_n "checking for $ac_word... " >&6; }
4417if ${ac_cv_prog_CXX+:} false; then :
4418  $as_echo_n "(cached) " >&6
4419else
4420  if test -n "$CXX"; then
4421  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426  IFS=$as_save_IFS
4427  test -z "$as_dir" && as_dir=.
4428    for ac_exec_ext in '' $ac_executable_extensions; do
4429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432    break 2
4433  fi
4434done
4435  done
4436IFS=$as_save_IFS
4437
4438fi
4439fi
4440CXX=$ac_cv_prog_CXX
4441if test -n "$CXX"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4443$as_echo "$CXX" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450    test -n "$CXX" && break
4451  done
4452fi
4453if test -z "$CXX"; then
4454  ac_ct_CXX=$CXX
4455  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4456do
4457  # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460$as_echo_n "checking for $ac_word... " >&6; }
4461if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4462  $as_echo_n "(cached) " >&6
4463else
4464  if test -n "$ac_ct_CXX"; then
4465  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474    ac_cv_prog_ac_ct_CXX="$ac_prog"
4475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476    break 2
4477  fi
4478done
4479  done
4480IFS=$as_save_IFS
4481
4482fi
4483fi
4484ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4485if test -n "$ac_ct_CXX"; then
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4487$as_echo "$ac_ct_CXX" >&6; }
4488else
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
4492
4493
4494  test -n "$ac_ct_CXX" && break
4495done
4496
4497  if test "x$ac_ct_CXX" = x; then
4498    CXX="g++"
4499  else
4500    case $cross_compiling:$ac_tool_warned in
4501yes:)
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504ac_tool_warned=yes ;;
4505esac
4506    CXX=$ac_ct_CXX
4507  fi
4508fi
4509
4510  fi
4511fi
4512# Provide some information about the compiler.
4513$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4514set X $ac_compile
4515ac_compiler=$2
4516for ac_option in --version -v -V -qversion; do
4517  { { ac_try="$ac_compiler $ac_option >&5"
4518case "(($ac_try" in
4519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520  *) ac_try_echo=$ac_try;;
4521esac
4522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4523$as_echo "$ac_try_echo"; } >&5
4524  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4525  ac_status=$?
4526  if test -s conftest.err; then
4527    sed '10a\
4528... rest of stderr output deleted ...
4529         10q' conftest.err >conftest.er1
4530    cat conftest.er1 >&5
4531  fi
4532  rm -f conftest.er1 conftest.err
4533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534  test $ac_status = 0; }
4535done
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4538$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4539if ${ac_cv_cxx_compiler_gnu+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h.  */
4544
4545int
4546main ()
4547{
4548#ifndef __GNUC__
4549       choke me
4550#endif
4551
4552  ;
4553  return 0;
4554}
4555_ACEOF
4556if ac_fn_cxx_try_compile "$LINENO"; then :
4557  ac_compiler_gnu=yes
4558else
4559  ac_compiler_gnu=no
4560fi
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4563
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4566$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4567if test $ac_compiler_gnu = yes; then
4568  GXX=yes
4569else
4570  GXX=
4571fi
4572ac_test_CXXFLAGS=${CXXFLAGS+set}
4573ac_save_CXXFLAGS=$CXXFLAGS
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4575$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4576if ${ac_cv_prog_cxx_g+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4580   ac_cxx_werror_flag=yes
4581   ac_cv_prog_cxx_g=no
4582   CXXFLAGS="-g"
4583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h.  */
4585
4586int
4587main ()
4588{
4589
4590  ;
4591  return 0;
4592}
4593_ACEOF
4594if ac_fn_cxx_try_compile "$LINENO"; then :
4595  ac_cv_prog_cxx_g=yes
4596else
4597  CXXFLAGS=""
4598      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h.  */
4600
4601int
4602main ()
4603{
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609if ac_fn_cxx_try_compile "$LINENO"; then :
4610
4611else
4612  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4613	 CXXFLAGS="-g"
4614	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616
4617int
4618main ()
4619{
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625if ac_fn_cxx_try_compile "$LINENO"; then :
4626  ac_cv_prog_cxx_g=yes
4627fi
4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629fi
4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631fi
4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4636$as_echo "$ac_cv_prog_cxx_g" >&6; }
4637if test "$ac_test_CXXFLAGS" = set; then
4638  CXXFLAGS=$ac_save_CXXFLAGS
4639elif test $ac_cv_prog_cxx_g = yes; then
4640  if test "$GXX" = yes; then
4641    CXXFLAGS="-g -O2"
4642  else
4643    CXXFLAGS="-g"
4644  fi
4645else
4646  if test "$GXX" = yes; then
4647    CXXFLAGS="-O2"
4648  else
4649    CXXFLAGS=
4650  fi
4651fi
4652ac_ext=cpp
4653ac_cpp='$CXXCPP $CPPFLAGS'
4654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4657
4658depcc="$CXX"  am_compiler_list=
4659
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4661$as_echo_n "checking dependency style of $depcc... " >&6; }
4662if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4666  # We make a subdir and do the tests there.  Otherwise we can end up
4667  # making bogus files that we don't know about and never remove.  For
4668  # instance it was reported that on HP-UX the gcc test will end up
4669  # making a dummy file named 'D' -- because '-MD' means "put the output
4670  # in D".
4671  rm -rf conftest.dir
4672  mkdir conftest.dir
4673  # Copy depcomp to subdir because otherwise we won't find it if we're
4674  # using a relative directory.
4675  cp "$am_depcomp" conftest.dir
4676  cd conftest.dir
4677  # We will build objects and dependencies in a subdirectory because
4678  # it helps to detect inapplicable dependency modes.  For instance
4679  # both Tru64's cc and ICC support -MD to output dependencies as a
4680  # side effect of compilation, but ICC will put the dependencies in
4681  # the current directory while Tru64 will put them in the object
4682  # directory.
4683  mkdir sub
4684
4685  am_cv_CXX_dependencies_compiler_type=none
4686  if test "$am_compiler_list" = ""; then
4687     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4688  fi
4689  am__universal=false
4690  case " $depcc " in #(
4691     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4692     esac
4693
4694  for depmode in $am_compiler_list; do
4695    # Setup a source with many dependencies, because some compilers
4696    # like to wrap large dependency lists on column 80 (with \), and
4697    # we should not choose a depcomp mode which is confused by this.
4698    #
4699    # We need to recreate these files for each test, as the compiler may
4700    # overwrite some of them when testing with obscure command lines.
4701    # This happens at least with the AIX C compiler.
4702    : > sub/conftest.c
4703    for i in 1 2 3 4 5 6; do
4704      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4705      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4706      # Solaris 10 /bin/sh.
4707      echo '/* dummy */' > sub/conftst$i.h
4708    done
4709    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4710
4711    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4712    # mode.  It turns out that the SunPro C++ compiler does not properly
4713    # handle '-M -o', and we need to detect this.  Also, some Intel
4714    # versions had trouble with output in subdirs.
4715    am__obj=sub/conftest.${OBJEXT-o}
4716    am__minus_obj="-o $am__obj"
4717    case $depmode in
4718    gcc)
4719      # This depmode causes a compiler race in universal mode.
4720      test "$am__universal" = false || continue
4721      ;;
4722    nosideeffect)
4723      # After this tag, mechanisms are not by side-effect, so they'll
4724      # only be used when explicitly requested.
4725      if test "x$enable_dependency_tracking" = xyes; then
4726	continue
4727      else
4728	break
4729      fi
4730      ;;
4731    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4732      # This compiler won't grok '-c -o', but also, the minuso test has
4733      # not run yet.  These depmodes are late enough in the game, and
4734      # so weak that their functioning should not be impacted.
4735      am__obj=conftest.${OBJEXT-o}
4736      am__minus_obj=
4737      ;;
4738    none) break ;;
4739    esac
4740    if depmode=$depmode \
4741       source=sub/conftest.c object=$am__obj \
4742       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4743       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4744         >/dev/null 2>conftest.err &&
4745       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4746       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4747       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4748       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4749      # icc doesn't choke on unknown options, it will just issue warnings
4750      # or remarks (even with -Werror).  So we grep stderr for any message
4751      # that says an option was ignored or not supported.
4752      # When given -MP, icc 7.0 and 7.1 complain thusly:
4753      #   icc: Command line warning: ignoring option '-M'; no argument required
4754      # The diagnosis changed in icc 8.0:
4755      #   icc: Command line remark: option '-MP' not supported
4756      if (grep 'ignoring option' conftest.err ||
4757          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4758        am_cv_CXX_dependencies_compiler_type=$depmode
4759        break
4760      fi
4761    fi
4762  done
4763
4764  cd ..
4765  rm -rf conftest.dir
4766else
4767  am_cv_CXX_dependencies_compiler_type=none
4768fi
4769
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4772$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4773CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4774
4775 if
4776  test "x$enable_dependency_tracking" != xno \
4777  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4778  am__fastdepCXX_TRUE=
4779  am__fastdepCXX_FALSE='#'
4780else
4781  am__fastdepCXX_TRUE='#'
4782  am__fastdepCXX_FALSE=
4783fi
4784
4785
4786
4787  if test "$GXX" = "yes"; then
4788    case ${CXXFLAGS} in
4789      *)
4790        ;;
4791    esac
4792  elif test -z "${ac_USER_DEFINED_CXXFLAGS}"; then
4793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4794Currently, g++ is the only C++ compiler for which we know
4795how to set the compiler switches, but we found ${CXX}.
4796We will assume CXXFLAGS = \"${CXXFLAGS}\" and go on, but
4797we strongly recommend you set CXXFLAGS on the command
4798line.
4799    " >&5
4800$as_echo "$as_me: WARNING:
4801Currently, g++ is the only C++ compiler for which we know
4802how to set the compiler switches, but we found ${CXX}.
4803We will assume CXXFLAGS = \"${CXXFLAGS}\" and go on, but
4804we strongly recommend you set CXXFLAGS on the command
4805line.
4806    " >&2;}
4807  fi
4808
4809ac_ext=cpp
4810ac_cpp='$CXXCPP $CPPFLAGS'
4811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4815$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4816if test -z "$CXXCPP"; then
4817  if ${ac_cv_prog_CXXCPP+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820      # Double quotes because CXXCPP needs to be expanded
4821    for CXXCPP in "$CXX -E" "/lib/cpp"
4822    do
4823      ac_preproc_ok=false
4824for ac_cxx_preproc_warn_flag in '' yes
4825do
4826  # Use a header file that comes with gcc, so configuring glibc
4827  # with a fresh cross-compiler works.
4828  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829  # <limits.h> exists even on freestanding compilers.
4830  # On the NeXT, cc -E runs the code through the compiler's parser,
4831  # not just through cpp. "Syntax error" is here to catch this case.
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834#ifdef __STDC__
4835# include <limits.h>
4836#else
4837# include <assert.h>
4838#endif
4839		     Syntax error
4840_ACEOF
4841if ac_fn_cxx_try_cpp "$LINENO"; then :
4842
4843else
4844  # Broken: fails on valid input.
4845continue
4846fi
4847rm -f conftest.err conftest.i conftest.$ac_ext
4848
4849  # OK, works on sane cases.  Now check whether nonexistent headers
4850  # can be detected and how.
4851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h.  */
4853#include <ac_nonexistent.h>
4854_ACEOF
4855if ac_fn_cxx_try_cpp "$LINENO"; then :
4856  # Broken: success on invalid input.
4857continue
4858else
4859  # Passes both tests.
4860ac_preproc_ok=:
4861break
4862fi
4863rm -f conftest.err conftest.i conftest.$ac_ext
4864
4865done
4866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4867rm -f conftest.i conftest.err conftest.$ac_ext
4868if $ac_preproc_ok; then :
4869  break
4870fi
4871
4872    done
4873    ac_cv_prog_CXXCPP=$CXXCPP
4874
4875fi
4876  CXXCPP=$ac_cv_prog_CXXCPP
4877else
4878  ac_cv_prog_CXXCPP=$CXXCPP
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4881$as_echo "$CXXCPP" >&6; }
4882ac_preproc_ok=false
4883for ac_cxx_preproc_warn_flag in '' yes
4884do
4885  # Use a header file that comes with gcc, so configuring glibc
4886  # with a fresh cross-compiler works.
4887  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888  # <limits.h> exists even on freestanding compilers.
4889  # On the NeXT, cc -E runs the code through the compiler's parser,
4890  # not just through cpp. "Syntax error" is here to catch this case.
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893#ifdef __STDC__
4894# include <limits.h>
4895#else
4896# include <assert.h>
4897#endif
4898		     Syntax error
4899_ACEOF
4900if ac_fn_cxx_try_cpp "$LINENO"; then :
4901
4902else
4903  # Broken: fails on valid input.
4904continue
4905fi
4906rm -f conftest.err conftest.i conftest.$ac_ext
4907
4908  # OK, works on sane cases.  Now check whether nonexistent headers
4909  # can be detected and how.
4910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912#include <ac_nonexistent.h>
4913_ACEOF
4914if ac_fn_cxx_try_cpp "$LINENO"; then :
4915  # Broken: success on invalid input.
4916continue
4917else
4918  # Passes both tests.
4919ac_preproc_ok=:
4920break
4921fi
4922rm -f conftest.err conftest.i conftest.$ac_ext
4923
4924done
4925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926rm -f conftest.i conftest.err conftest.$ac_ext
4927if $ac_preproc_ok; then :
4928
4929else
4930  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4932as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4933See \`config.log' for more details" "$LINENO" 5; }
4934fi
4935
4936ac_ext=cpp
4937ac_cpp='$CXXCPP $CPPFLAGS'
4938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4941
4942
4943
4944#
4945#	check for some ISO C++ features --- they're absolutely mandatory!
4946#
4947
4948
4949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type bool" >&5
4950$as_echo_n "checking for type bool... " >&6; }
4951if ${lidia_cv_iso_bool+:} false; then :
4952  $as_echo_n "(cached) " >&6
4953else
4954
4955		cat > conftest.C << EOF
4956void frob(bool flag)
4957{
4958	if (flag == true) {
4959		flag = false;
4960	}
4961}
4962EOF
4963		if { ac_try='${CXX} -c conftest.C'
4964  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4965  (eval $ac_try) 2>&5
4966  ac_status=$?
4967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968  test $ac_status = 0; }; } > /dev/null 2>&1; then
4969			lidia_cv_iso_bool="yes"
4970		else
4971			lidia_cv_iso_cast="no"
4972			as_fn_error $? "Your compiler does not support the ISO C++ bool type." "$LINENO" 5
4973		fi
4974
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_bool" >&5
4977$as_echo "$lidia_cv_iso_bool" >&6; }
4978
4979
4980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C++ inline" >&5
4981$as_echo_n "checking for ISO C++ inline... " >&6; }
4982if ${lidia_cv_iso_inline+:} false; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985
4986		cat > conftest.C << EOF
4987inline long s(long i)
4988{
4989	return i * i;
4990}
4991
4992static long g(long i, long j)
4993{
4994	return s(i) + s(j);
4995}
4996EOF
4997		if { ac_try='${CXX} -c conftest.C'
4998  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4999  (eval $ac_try) 2>&5
5000  ac_status=$?
5001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002  test $ac_status = 0; }; } > /dev/null 2>&1; then
5003			lidia_cv_iso_inline="yes"
5004		else
5005			lidia_cv_iso_inline="no"
5006			as_fn_error $? "Your C++ compiler does not support the ISO C++ inline keyword." "$LINENO" 5
5007		fi
5008
5009fi
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_inline" >&5
5011$as_echo "$lidia_cv_iso_inline" >&6; }
5012
5013
5014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C++ casting" >&5
5015$as_echo_n "checking for ISO C++ casting... " >&6; }
5016if ${lidia_cv_iso_cast+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019
5020		cat > conftest.C << EOF
5021struct B { virtual void f(); };
5022struct A : public B { void f(); };
5023
5024void g (A*);
5025
5026void f(const A* a, B* b)
5027{
5028	const B* c = static_cast<const B*>(a);
5029	g(const_cast<A*>(a));
5030}
5031EOF
5032		if { ac_try='${CXX} -c conftest.C'
5033  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5034  (eval $ac_try) 2>&5
5035  ac_status=$?
5036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5037  test $ac_status = 0; }; } > /dev/null 2>&1; then
5038			lidia_cv_iso_cast="yes"
5039		else
5040			lidia_cv_iso_cast="no"
5041			as_fn_error $? "Your C++ compiler doesn't support ISO C++ casts." "$LINENO" 5
5042		fi
5043
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_cast" >&5
5046$as_echo "$lidia_cv_iso_cast" >&6; }
5047
5048
5049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit constructors by ISO C++" >&5
5050$as_echo_n "checking for explicit constructors by ISO C++... " >&6; }
5051if ${lidia_cv_iso_explicit+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054
5055		cat > conftest.C << EOF
5056class A {
5057public:
5058	A();
5059	explicit A(int);
5060};
5061
5062void f()
5063{
5064	A a(0);
5065}
5066EOF
5067		if { ac_try='${CXX} -c conftest.C'
5068  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5069  (eval $ac_try) 2>&5
5070  ac_status=$?
5071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072  test $ac_status = 0; }; } > /dev/null 2>&1; then
5073			lidia_cv_iso_explicit="yes"
5074		else
5075			lidia_cv_iso_explicit="no"
5076			as_fn_error $? "Your C++ compiler doesn't support explicit constructors by ISO C++." "$LINENO" 5
5077		fi
5078
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_explicit" >&5
5081$as_echo "$lidia_cv_iso_explicit" >&6; }
5082
5083
5084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mutable class members by ISO C++" >&5
5085$as_echo_n "checking for mutable class members by ISO C++... " >&6; }
5086if ${lidia_cv_iso_mutable+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089
5090		cat > conftest.C << EOF
5091class A {
5092private:
5093	mutable long	_m;
5094
5095public:
5096	long m() const;
5097};
5098
5099long A::m() const
5100{
5101	long m = _m;
5102	_m = 0;
5103	return m;
5104}
5105
5106long f(const A& a)
5107{
5108	return a.m();
5109}
5110EOF
5111		if { ac_try='${CXX} -c conftest.C'
5112  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5113  (eval $ac_try) 2>&5
5114  ac_status=$?
5115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116  test $ac_status = 0; }; } > /dev/null 2>&1; then
5117			lidia_cv_iso_mutable="yes"
5118		else
5119			lidia_cv_iso_mutable="no"
5120			as_fn_error $? "Your C++ compiler does not support the ISO C++ mutable keyword." "$LINENO" 5
5121		fi
5122
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_mutable" >&5
5125$as_echo "$lidia_cv_iso_mutable" >&6; }
5126
5127
5128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working template<>" >&5
5129$as_echo_n "checking for working template<>... " >&6; }
5130if ${lidia_cv_explicit_templates+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133
5134		cat > conftest.C << EOF
5135template <class T> class c { T t; };
5136template <> class c<int> { int x; };
5137EOF
5138		if { ac_try='${CXX} -c conftest.C'
5139  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5140  (eval $ac_try) 2>&5
5141  ac_status=$?
5142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143  test $ac_status = 0; }; } > /dev/null 2>&1; then
5144			lidia_cv_explicit_templates="yes"
5145		else
5146			lidia_cv_explicit_templates="no"
5147			as_fn_error $? "Your C++ compiler doesn't support ISO C++ template specialization." "$LINENO" 5
5148		fi
5149
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_explicit_templates" >&5
5152$as_echo "$lidia_cv_explicit_templates" >&6; }
5153
5154
5155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit template instantiation by ISO C++" >&5
5156$as_echo_n "checking for explicit template instantiation by ISO C++... " >&6; }
5157if ${lidia_cv_iso_templates+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160
5161		cat > conftest.C << EOF
5162template <class T> class X { T t; };
5163
5164template class X<int>;
5165EOF
5166		if { ac_try='${CXX} -c conftest.C'
5167  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171  test $ac_status = 0; }; } > /dev/null 2>&1; then
5172			lidia_cv_iso_templates="yes"
5173		else
5174			lidia_cv_iso_templates="no"
5175			as_fn_error $? "Your C++ compiler doesn't support explicit template instatiation by ISO C++." "$LINENO" 5
5176		fi
5177
5178fi
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_templates" >&5
5180$as_echo "$lidia_cv_iso_templates" >&6; }
5181
5182
5183# Check whether --enable-namespaces was given.
5184if test "${enable_namespaces+set}" = set; then :
5185  enableval=$enable_namespaces;
5186	if test "$enable_namespaces" = "yes"; then
5187
5188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C++ namespaces" >&5
5189$as_echo_n "checking for ISO C++ namespaces... " >&6; }
5190if ${lidia_cv_iso_namespaces+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193
5194		cat > conftest.C << EOF
5195int a();
5196int a(int);
5197
5198namespace A {
5199	int a(int);
5200}
5201
5202namespace A {
5203	int a();
5204}
5205
5206int a()
5207{
5208	return 0;
5209}
5210
5211int a(int i)
5212{
5213	return -i;
5214}
5215
5216namespace A {
5217int a(int i)
5218{
5219	return i;
5220}
5221}
5222
5223namespace B {
5224int a(int i)
5225{
5226	return 0;
5227}
5228}
5229
5230int A::a()
5231{
5232	return 1;
5233}
5234
5235int main(int, char**)
5236{
5237	if ((a() == 0) && (A::a() == 1) && (a(1) == -1) && (A::a(1) == 1) && (B::a(1) == 0)) {
5238		return 0;
5239	}
5240	return 4;
5241}
5242EOF
5243		lidia_cv_iso_namespaces="no"
5244		if { ac_try='${CXX} -o conftest conftest.C'
5245  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5246  (eval $ac_try) 2>&5
5247  ac_status=$?
5248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249  test $ac_status = 0; }; } > /dev/null 2>&1 ; then
5250			if ./conftest ; then
5251				lidia_cv_iso_namespaces="yes"
5252			fi
5253		fi
5254
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_namespaces" >&5
5257$as_echo "$lidia_cv_iso_namespaces" >&6; }
5258	if test "$lidia_cv_iso_namespaces" = "yes" ; then
5259		$as_echo "#define LIDIA_NAMESPACE 1" >>confdefs.h
5260
5261	fi
5262
5263	fi
5264
5265else
5266
5267
5268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C++ namespaces" >&5
5269$as_echo_n "checking for ISO C++ namespaces... " >&6; }
5270if ${lidia_cv_iso_namespaces+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273
5274		cat > conftest.C << EOF
5275int a();
5276int a(int);
5277
5278namespace A {
5279	int a(int);
5280}
5281
5282namespace A {
5283	int a();
5284}
5285
5286int a()
5287{
5288	return 0;
5289}
5290
5291int a(int i)
5292{
5293	return -i;
5294}
5295
5296namespace A {
5297int a(int i)
5298{
5299	return i;
5300}
5301}
5302
5303namespace B {
5304int a(int i)
5305{
5306	return 0;
5307}
5308}
5309
5310int A::a()
5311{
5312	return 1;
5313}
5314
5315int main(int, char**)
5316{
5317	if ((a() == 0) && (A::a() == 1) && (a(1) == -1) && (A::a(1) == 1) && (B::a(1) == 0)) {
5318		return 0;
5319	}
5320	return 4;
5321}
5322EOF
5323		lidia_cv_iso_namespaces="no"
5324		if { ac_try='${CXX} -o conftest conftest.C'
5325  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5326  (eval $ac_try) 2>&5
5327  ac_status=$?
5328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329  test $ac_status = 0; }; } > /dev/null 2>&1 ; then
5330			if ./conftest ; then
5331				lidia_cv_iso_namespaces="yes"
5332			fi
5333		fi
5334
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_iso_namespaces" >&5
5337$as_echo "$lidia_cv_iso_namespaces" >&6; }
5338	if test "$lidia_cv_iso_namespaces" = "yes" ; then
5339		$as_echo "#define LIDIA_NAMESPACE 1" >>confdefs.h
5340
5341	fi
5342
5343
5344fi
5345
5346
5347
5348# Check whether --enable-shared was given.
5349if test "${enable_shared+set}" = set; then :
5350  enableval=$enable_shared; p=${PACKAGE-default}
5351    case $enableval in
5352    yes) enable_shared=yes ;;
5353    no) enable_shared=no ;;
5354    *)
5355      enable_shared=no
5356      # Look at the argument we got.  We use all the common list separators.
5357      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5358      for pkg in $enableval; do
5359	IFS="$lt_save_ifs"
5360	if test "X$pkg" = "X$p"; then
5361	  enable_shared=yes
5362	fi
5363      done
5364      IFS="$lt_save_ifs"
5365      ;;
5366    esac
5367else
5368  enable_shared=no
5369fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379# Libtool 1.4 uses $CC for linking and manipulates CFLAGS for its tests :-(
5380lidia_CC=$CC		CC=$CXX
5381lidia_CFLAGS=$CFLAGS	CFLAGS=$CXXFLAGS
5382ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388case `pwd` in
5389  *\ * | *\	*)
5390    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5391$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5392esac
5393
5394
5395
5396macro_version='2.4.2'
5397macro_revision='1.3337'
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411ltmain="$ac_aux_dir/ltmain.sh"
5412
5413# Make sure we can run config.sub.
5414$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5415  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5418$as_echo_n "checking build system type... " >&6; }
5419if ${ac_cv_build+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  ac_build_alias=$build_alias
5423test "x$ac_build_alias" = x &&
5424  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5425test "x$ac_build_alias" = x &&
5426  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5427ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5428  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5429
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5432$as_echo "$ac_cv_build" >&6; }
5433case $ac_cv_build in
5434*-*-*) ;;
5435*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5436esac
5437build=$ac_cv_build
5438ac_save_IFS=$IFS; IFS='-'
5439set x $ac_cv_build
5440shift
5441build_cpu=$1
5442build_vendor=$2
5443shift; shift
5444# Remember, the first character of IFS is used to create $*,
5445# except with old shells:
5446build_os=$*
5447IFS=$ac_save_IFS
5448case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5452$as_echo_n "checking host system type... " >&6; }
5453if ${ac_cv_host+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  if test "x$host_alias" = x; then
5457  ac_cv_host=$ac_cv_build
5458else
5459  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5460    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5461fi
5462
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5465$as_echo "$ac_cv_host" >&6; }
5466case $ac_cv_host in
5467*-*-*) ;;
5468*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5469esac
5470host=$ac_cv_host
5471ac_save_IFS=$IFS; IFS='-'
5472set x $ac_cv_host
5473shift
5474host_cpu=$1
5475host_vendor=$2
5476shift; shift
5477# Remember, the first character of IFS is used to create $*,
5478# except with old shells:
5479host_os=$*
5480IFS=$ac_save_IFS
5481case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5482
5483
5484# Backslashify metacharacters that are still active within
5485# double-quoted strings.
5486sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5487
5488# Same as above, but do not quote variable references.
5489double_quote_subst='s/\(["`\\]\)/\\\1/g'
5490
5491# Sed substitution to delay expansion of an escaped shell variable in a
5492# double_quote_subst'ed string.
5493delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5494
5495# Sed substitution to delay expansion of an escaped single quote.
5496delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5497
5498# Sed substitution to avoid accidental globbing in evaled expressions
5499no_glob_subst='s/\*/\\\*/g'
5500
5501ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5502ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5503ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5504
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5506$as_echo_n "checking how to print strings... " >&6; }
5507# Test print first, because it will be a builtin if present.
5508if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5509   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5510  ECHO='print -r --'
5511elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5512  ECHO='printf %s\n'
5513else
5514  # Use this function as a fallback that always works.
5515  func_fallback_echo ()
5516  {
5517    eval 'cat <<_LTECHO_EOF
5518$1
5519_LTECHO_EOF'
5520  }
5521  ECHO='func_fallback_echo'
5522fi
5523
5524# func_echo_all arg...
5525# Invoke $ECHO with all args, space-separated.
5526func_echo_all ()
5527{
5528    $ECHO ""
5529}
5530
5531case "$ECHO" in
5532  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5533$as_echo "printf" >&6; } ;;
5534  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5535$as_echo "print -r" >&6; } ;;
5536  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5537$as_echo "cat" >&6; } ;;
5538esac
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5554$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5555if ${ac_cv_path_SED+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5559     for ac_i in 1 2 3 4 5 6 7; do
5560       ac_script="$ac_script$as_nl$ac_script"
5561     done
5562     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5563     { ac_script=; unset ac_script;}
5564     if test -z "$SED"; then
5565  ac_path_SED_found=false
5566  # Loop through the user's path and test for each of PROGNAME-LIST
5567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570  IFS=$as_save_IFS
5571  test -z "$as_dir" && as_dir=.
5572    for ac_prog in sed gsed; do
5573    for ac_exec_ext in '' $ac_executable_extensions; do
5574      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5575      as_fn_executable_p "$ac_path_SED" || continue
5576# Check for GNU ac_path_SED and select it if it is found.
5577  # Check for GNU $ac_path_SED
5578case `"$ac_path_SED" --version 2>&1` in
5579*GNU*)
5580  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5581*)
5582  ac_count=0
5583  $as_echo_n 0123456789 >"conftest.in"
5584  while :
5585  do
5586    cat "conftest.in" "conftest.in" >"conftest.tmp"
5587    mv "conftest.tmp" "conftest.in"
5588    cp "conftest.in" "conftest.nl"
5589    $as_echo '' >> "conftest.nl"
5590    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592    as_fn_arith $ac_count + 1 && ac_count=$as_val
5593    if test $ac_count -gt ${ac_path_SED_max-0}; then
5594      # Best one so far, save it but keep looking for a better one
5595      ac_cv_path_SED="$ac_path_SED"
5596      ac_path_SED_max=$ac_count
5597    fi
5598    # 10*(2^10) chars as input seems more than enough
5599    test $ac_count -gt 10 && break
5600  done
5601  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5602esac
5603
5604      $ac_path_SED_found && break 3
5605    done
5606  done
5607  done
5608IFS=$as_save_IFS
5609  if test -z "$ac_cv_path_SED"; then
5610    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5611  fi
5612else
5613  ac_cv_path_SED=$SED
5614fi
5615
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5618$as_echo "$ac_cv_path_SED" >&6; }
5619 SED="$ac_cv_path_SED"
5620  rm -f conftest.sed
5621
5622test -z "$SED" && SED=sed
5623Xsed="$SED -e 1s/^X//"
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5637if ${ac_cv_path_GREP+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  if test -z "$GREP"; then
5641  ac_path_GREP_found=false
5642  # Loop through the user's path and test for each of PROGNAME-LIST
5643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5645do
5646  IFS=$as_save_IFS
5647  test -z "$as_dir" && as_dir=.
5648    for ac_prog in grep ggrep; do
5649    for ac_exec_ext in '' $ac_executable_extensions; do
5650      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5651      as_fn_executable_p "$ac_path_GREP" || continue
5652# Check for GNU ac_path_GREP and select it if it is found.
5653  # Check for GNU $ac_path_GREP
5654case `"$ac_path_GREP" --version 2>&1` in
5655*GNU*)
5656  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5657*)
5658  ac_count=0
5659  $as_echo_n 0123456789 >"conftest.in"
5660  while :
5661  do
5662    cat "conftest.in" "conftest.in" >"conftest.tmp"
5663    mv "conftest.tmp" "conftest.in"
5664    cp "conftest.in" "conftest.nl"
5665    $as_echo 'GREP' >> "conftest.nl"
5666    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668    as_fn_arith $ac_count + 1 && ac_count=$as_val
5669    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5670      # Best one so far, save it but keep looking for a better one
5671      ac_cv_path_GREP="$ac_path_GREP"
5672      ac_path_GREP_max=$ac_count
5673    fi
5674    # 10*(2^10) chars as input seems more than enough
5675    test $ac_count -gt 10 && break
5676  done
5677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678esac
5679
5680      $ac_path_GREP_found && break 3
5681    done
5682  done
5683  done
5684IFS=$as_save_IFS
5685  if test -z "$ac_cv_path_GREP"; then
5686    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5687  fi
5688else
5689  ac_cv_path_GREP=$GREP
5690fi
5691
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5694$as_echo "$ac_cv_path_GREP" >&6; }
5695 GREP="$ac_cv_path_GREP"
5696
5697
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5699$as_echo_n "checking for egrep... " >&6; }
5700if ${ac_cv_path_EGREP+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5704   then ac_cv_path_EGREP="$GREP -E"
5705   else
5706     if test -z "$EGREP"; then
5707  ac_path_EGREP_found=false
5708  # Loop through the user's path and test for each of PROGNAME-LIST
5709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711do
5712  IFS=$as_save_IFS
5713  test -z "$as_dir" && as_dir=.
5714    for ac_prog in egrep; do
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5717      as_fn_executable_p "$ac_path_EGREP" || continue
5718# Check for GNU ac_path_EGREP and select it if it is found.
5719  # Check for GNU $ac_path_EGREP
5720case `"$ac_path_EGREP" --version 2>&1` in
5721*GNU*)
5722  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5723*)
5724  ac_count=0
5725  $as_echo_n 0123456789 >"conftest.in"
5726  while :
5727  do
5728    cat "conftest.in" "conftest.in" >"conftest.tmp"
5729    mv "conftest.tmp" "conftest.in"
5730    cp "conftest.in" "conftest.nl"
5731    $as_echo 'EGREP' >> "conftest.nl"
5732    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734    as_fn_arith $ac_count + 1 && ac_count=$as_val
5735    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5736      # Best one so far, save it but keep looking for a better one
5737      ac_cv_path_EGREP="$ac_path_EGREP"
5738      ac_path_EGREP_max=$ac_count
5739    fi
5740    # 10*(2^10) chars as input seems more than enough
5741    test $ac_count -gt 10 && break
5742  done
5743  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744esac
5745
5746      $ac_path_EGREP_found && break 3
5747    done
5748  done
5749  done
5750IFS=$as_save_IFS
5751  if test -z "$ac_cv_path_EGREP"; then
5752    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753  fi
5754else
5755  ac_cv_path_EGREP=$EGREP
5756fi
5757
5758   fi
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5761$as_echo "$ac_cv_path_EGREP" >&6; }
5762 EGREP="$ac_cv_path_EGREP"
5763
5764
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5766$as_echo_n "checking for fgrep... " >&6; }
5767if ${ac_cv_path_FGREP+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5771   then ac_cv_path_FGREP="$GREP -F"
5772   else
5773     if test -z "$FGREP"; then
5774  ac_path_FGREP_found=false
5775  # Loop through the user's path and test for each of PROGNAME-LIST
5776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_prog in fgrep; do
5782    for ac_exec_ext in '' $ac_executable_extensions; do
5783      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5784      as_fn_executable_p "$ac_path_FGREP" || continue
5785# Check for GNU ac_path_FGREP and select it if it is found.
5786  # Check for GNU $ac_path_FGREP
5787case `"$ac_path_FGREP" --version 2>&1` in
5788*GNU*)
5789  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5790*)
5791  ac_count=0
5792  $as_echo_n 0123456789 >"conftest.in"
5793  while :
5794  do
5795    cat "conftest.in" "conftest.in" >"conftest.tmp"
5796    mv "conftest.tmp" "conftest.in"
5797    cp "conftest.in" "conftest.nl"
5798    $as_echo 'FGREP' >> "conftest.nl"
5799    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801    as_fn_arith $ac_count + 1 && ac_count=$as_val
5802    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5803      # Best one so far, save it but keep looking for a better one
5804      ac_cv_path_FGREP="$ac_path_FGREP"
5805      ac_path_FGREP_max=$ac_count
5806    fi
5807    # 10*(2^10) chars as input seems more than enough
5808    test $ac_count -gt 10 && break
5809  done
5810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811esac
5812
5813      $ac_path_FGREP_found && break 3
5814    done
5815  done
5816  done
5817IFS=$as_save_IFS
5818  if test -z "$ac_cv_path_FGREP"; then
5819    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5820  fi
5821else
5822  ac_cv_path_FGREP=$FGREP
5823fi
5824
5825   fi
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5828$as_echo "$ac_cv_path_FGREP" >&6; }
5829 FGREP="$ac_cv_path_FGREP"
5830
5831
5832test -z "$GREP" && GREP=grep
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852# Check whether --with-gnu-ld was given.
5853if test "${with_gnu_ld+set}" = set; then :
5854  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5855else
5856  with_gnu_ld=no
5857fi
5858
5859ac_prog=ld
5860if test "$GCC" = yes; then
5861  # Check if gcc -print-prog-name=ld gives a path.
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5863$as_echo_n "checking for ld used by $CC... " >&6; }
5864  case $host in
5865  *-*-mingw*)
5866    # gcc leaves a trailing carriage return which upsets mingw
5867    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5868  *)
5869    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5870  esac
5871  case $ac_prog in
5872    # Accept absolute paths.
5873    [\\/]* | ?:[\\/]*)
5874      re_direlt='/[^/][^/]*/\.\./'
5875      # Canonicalize the pathname of ld
5876      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5877      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5878	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5879      done
5880      test -z "$LD" && LD="$ac_prog"
5881      ;;
5882  "")
5883    # If it fails, then pretend we aren't using GCC.
5884    ac_prog=ld
5885    ;;
5886  *)
5887    # If it is relative, then search for the first ld in PATH.
5888    with_gnu_ld=unknown
5889    ;;
5890  esac
5891elif test "$with_gnu_ld" = yes; then
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5893$as_echo_n "checking for GNU ld... " >&6; }
5894else
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5896$as_echo_n "checking for non-GNU ld... " >&6; }
5897fi
5898if ${lt_cv_path_LD+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  if test -z "$LD"; then
5902  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5903  for ac_dir in $PATH; do
5904    IFS="$lt_save_ifs"
5905    test -z "$ac_dir" && ac_dir=.
5906    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5907      lt_cv_path_LD="$ac_dir/$ac_prog"
5908      # Check to see if the program is GNU ld.  I'd rather use --version,
5909      # but apparently some variants of GNU ld only accept -v.
5910      # Break only if it was the GNU/non-GNU ld that we prefer.
5911      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5912      *GNU* | *'with BFD'*)
5913	test "$with_gnu_ld" != no && break
5914	;;
5915      *)
5916	test "$with_gnu_ld" != yes && break
5917	;;
5918      esac
5919    fi
5920  done
5921  IFS="$lt_save_ifs"
5922else
5923  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5924fi
5925fi
5926
5927LD="$lt_cv_path_LD"
5928if test -n "$LD"; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5930$as_echo "$LD" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5937$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5938if ${lt_cv_prog_gnu_ld+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5942case `$LD -v 2>&1 </dev/null` in
5943*GNU* | *'with BFD'*)
5944  lt_cv_prog_gnu_ld=yes
5945  ;;
5946*)
5947  lt_cv_prog_gnu_ld=no
5948  ;;
5949esac
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5952$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5953with_gnu_ld=$lt_cv_prog_gnu_ld
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5964$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5965if ${lt_cv_path_NM+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  if test -n "$NM"; then
5969  # Let the user override the test.
5970  lt_cv_path_NM="$NM"
5971else
5972  lt_nm_to_check="${ac_tool_prefix}nm"
5973  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5974    lt_nm_to_check="$lt_nm_to_check nm"
5975  fi
5976  for lt_tmp_nm in $lt_nm_to_check; do
5977    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5978    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5979      IFS="$lt_save_ifs"
5980      test -z "$ac_dir" && ac_dir=.
5981      tmp_nm="$ac_dir/$lt_tmp_nm"
5982      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5983	# Check to see if the nm accepts a BSD-compat flag.
5984	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5985	#   nm: unknown option "B" ignored
5986	# Tru64's nm complains that /dev/null is an invalid object file
5987	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5988	*/dev/null* | *'Invalid file or object type'*)
5989	  lt_cv_path_NM="$tmp_nm -B"
5990	  break
5991	  ;;
5992	*)
5993	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5994	  */dev/null*)
5995	    lt_cv_path_NM="$tmp_nm -p"
5996	    break
5997	    ;;
5998	  *)
5999	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6000	    continue # so that we can try to find one that supports BSD flags
6001	    ;;
6002	  esac
6003	  ;;
6004	esac
6005      fi
6006    done
6007    IFS="$lt_save_ifs"
6008  done
6009  : ${lt_cv_path_NM=no}
6010fi
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6013$as_echo "$lt_cv_path_NM" >&6; }
6014if test "$lt_cv_path_NM" != "no"; then
6015  NM="$lt_cv_path_NM"
6016else
6017  # Didn't find any BSD compatible name lister, look for dumpbin.
6018  if test -n "$DUMPBIN"; then :
6019    # Let the user override the test.
6020  else
6021    if test -n "$ac_tool_prefix"; then
6022  for ac_prog in dumpbin "link -dump"
6023  do
6024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027$as_echo_n "checking for $ac_word... " >&6; }
6028if ${ac_cv_prog_DUMPBIN+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  if test -n "$DUMPBIN"; then
6032  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6033else
6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037  IFS=$as_save_IFS
6038  test -z "$as_dir" && as_dir=.
6039    for ac_exec_ext in '' $ac_executable_extensions; do
6040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043    break 2
6044  fi
6045done
6046  done
6047IFS=$as_save_IFS
6048
6049fi
6050fi
6051DUMPBIN=$ac_cv_prog_DUMPBIN
6052if test -n "$DUMPBIN"; then
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6054$as_echo "$DUMPBIN" >&6; }
6055else
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060
6061    test -n "$DUMPBIN" && break
6062  done
6063fi
6064if test -z "$DUMPBIN"; then
6065  ac_ct_DUMPBIN=$DUMPBIN
6066  for ac_prog in dumpbin "link -dump"
6067do
6068  # Extract the first word of "$ac_prog", so it can be a program name with args.
6069set dummy $ac_prog; ac_word=$2
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071$as_echo_n "checking for $ac_word... " >&6; }
6072if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  if test -n "$ac_ct_DUMPBIN"; then
6076  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081  IFS=$as_save_IFS
6082  test -z "$as_dir" && as_dir=.
6083    for ac_exec_ext in '' $ac_executable_extensions; do
6084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087    break 2
6088  fi
6089done
6090  done
6091IFS=$as_save_IFS
6092
6093fi
6094fi
6095ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6096if test -n "$ac_ct_DUMPBIN"; then
6097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6098$as_echo "$ac_ct_DUMPBIN" >&6; }
6099else
6100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101$as_echo "no" >&6; }
6102fi
6103
6104
6105  test -n "$ac_ct_DUMPBIN" && break
6106done
6107
6108  if test "x$ac_ct_DUMPBIN" = x; then
6109    DUMPBIN=":"
6110  else
6111    case $cross_compiling:$ac_tool_warned in
6112yes:)
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115ac_tool_warned=yes ;;
6116esac
6117    DUMPBIN=$ac_ct_DUMPBIN
6118  fi
6119fi
6120
6121    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6122    *COFF*)
6123      DUMPBIN="$DUMPBIN -symbols"
6124      ;;
6125    *)
6126      DUMPBIN=:
6127      ;;
6128    esac
6129  fi
6130
6131  if test "$DUMPBIN" != ":"; then
6132    NM="$DUMPBIN"
6133  fi
6134fi
6135test -z "$NM" && NM=nm
6136
6137
6138
6139
6140
6141
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6143$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6144if ${lt_cv_nm_interface+:} false; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  lt_cv_nm_interface="BSD nm"
6148  echo "int some_variable = 0;" > conftest.$ac_ext
6149  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6150  (eval "$ac_compile" 2>conftest.err)
6151  cat conftest.err >&5
6152  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6153  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6154  cat conftest.err >&5
6155  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6156  cat conftest.out >&5
6157  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6158    lt_cv_nm_interface="MS dumpbin"
6159  fi
6160  rm -rf conftest*
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6163$as_echo "$lt_cv_nm_interface" >&6; }
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6166$as_echo_n "checking whether ln -s works... " >&6; }
6167LN_S=$as_ln_s
6168if test "$LN_S" = "ln -s"; then
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6170$as_echo "yes" >&6; }
6171else
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6173$as_echo "no, using $LN_S" >&6; }
6174fi
6175
6176# find the maximum length of command line arguments
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6178$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6179if ${lt_cv_sys_max_cmd_len+:} false; then :
6180  $as_echo_n "(cached) " >&6
6181else
6182    i=0
6183  teststring="ABCD"
6184
6185  case $build_os in
6186  msdosdjgpp*)
6187    # On DJGPP, this test can blow up pretty badly due to problems in libc
6188    # (any single argument exceeding 2000 bytes causes a buffer overrun
6189    # during glob expansion).  Even if it were fixed, the result of this
6190    # check would be larger than it should be.
6191    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6192    ;;
6193
6194  gnu*)
6195    # Under GNU Hurd, this test is not required because there is
6196    # no limit to the length of command line arguments.
6197    # Libtool will interpret -1 as no limit whatsoever
6198    lt_cv_sys_max_cmd_len=-1;
6199    ;;
6200
6201  cygwin* | mingw* | cegcc*)
6202    # On Win9x/ME, this test blows up -- it succeeds, but takes
6203    # about 5 minutes as the teststring grows exponentially.
6204    # Worse, since 9x/ME are not pre-emptively multitasking,
6205    # you end up with a "frozen" computer, even though with patience
6206    # the test eventually succeeds (with a max line length of 256k).
6207    # Instead, let's just punt: use the minimum linelength reported by
6208    # all of the supported platforms: 8192 (on NT/2K/XP).
6209    lt_cv_sys_max_cmd_len=8192;
6210    ;;
6211
6212  mint*)
6213    # On MiNT this can take a long time and run out of memory.
6214    lt_cv_sys_max_cmd_len=8192;
6215    ;;
6216
6217  amigaos*)
6218    # On AmigaOS with pdksh, this test takes hours, literally.
6219    # So we just punt and use a minimum line length of 8192.
6220    lt_cv_sys_max_cmd_len=8192;
6221    ;;
6222
6223  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6224    # This has been around since 386BSD, at least.  Likely further.
6225    if test -x /sbin/sysctl; then
6226      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6227    elif test -x /usr/sbin/sysctl; then
6228      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6229    else
6230      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6231    fi
6232    # And add a safety zone
6233    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6235    ;;
6236
6237  interix*)
6238    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6239    lt_cv_sys_max_cmd_len=196608
6240    ;;
6241
6242  os2*)
6243    # The test takes a long time on OS/2.
6244    lt_cv_sys_max_cmd_len=8192
6245    ;;
6246
6247  osf*)
6248    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6249    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6250    # nice to cause kernel panics so lets avoid the loop below.
6251    # First set a reasonable default.
6252    lt_cv_sys_max_cmd_len=16384
6253    #
6254    if test -x /sbin/sysconfig; then
6255      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6256        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6257      esac
6258    fi
6259    ;;
6260  sco3.2v5*)
6261    lt_cv_sys_max_cmd_len=102400
6262    ;;
6263  sysv5* | sco5v6* | sysv4.2uw2*)
6264    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6265    if test -n "$kargmax"; then
6266      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6267    else
6268      lt_cv_sys_max_cmd_len=32768
6269    fi
6270    ;;
6271  *)
6272    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6273    if test -n "$lt_cv_sys_max_cmd_len"; then
6274      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6275      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6276    else
6277      # Make teststring a little bigger before we do anything with it.
6278      # a 1K string should be a reasonable start.
6279      for i in 1 2 3 4 5 6 7 8 ; do
6280        teststring=$teststring$teststring
6281      done
6282      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6283      # If test is not a shell built-in, we'll probably end up computing a
6284      # maximum length that is only half of the actual maximum length, but
6285      # we can't tell.
6286      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6287	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6288	      test $i != 17 # 1/2 MB should be enough
6289      do
6290        i=`expr $i + 1`
6291        teststring=$teststring$teststring
6292      done
6293      # Only check the string length outside the loop.
6294      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6295      teststring=
6296      # Add a significant safety factor because C++ compilers can tack on
6297      # massive amounts of additional arguments before passing them to the
6298      # linker.  It appears as though 1/2 is a usable value.
6299      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6300    fi
6301    ;;
6302  esac
6303
6304fi
6305
6306if test -n $lt_cv_sys_max_cmd_len ; then
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6308$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6309else
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6311$as_echo "none" >&6; }
6312fi
6313max_cmd_len=$lt_cv_sys_max_cmd_len
6314
6315
6316
6317
6318
6319
6320: ${CP="cp -f"}
6321: ${MV="mv -f"}
6322: ${RM="rm -f"}
6323
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6325$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6326# Try some XSI features
6327xsi_shell=no
6328( _lt_dummy="a/b/c"
6329  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6330      = c,a/b,b/c, \
6331    && eval 'test $(( 1 + 1 )) -eq 2 \
6332    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6333  && xsi_shell=yes
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6335$as_echo "$xsi_shell" >&6; }
6336
6337
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6339$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6340lt_shell_append=no
6341( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6342    >/dev/null 2>&1 \
6343  && lt_shell_append=yes
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6345$as_echo "$lt_shell_append" >&6; }
6346
6347
6348if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6349  lt_unset=unset
6350else
6351  lt_unset=false
6352fi
6353
6354
6355
6356
6357
6358# test EBCDIC or ASCII
6359case `echo X|tr X '\101'` in
6360 A) # ASCII based system
6361    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6362  lt_SP2NL='tr \040 \012'
6363  lt_NL2SP='tr \015\012 \040\040'
6364  ;;
6365 *) # EBCDIC based system
6366  lt_SP2NL='tr \100 \n'
6367  lt_NL2SP='tr \r\n \100\100'
6368  ;;
6369esac
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6380$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6381if ${lt_cv_to_host_file_cmd+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  case $host in
6385  *-*-mingw* )
6386    case $build in
6387      *-*-mingw* ) # actually msys
6388        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6389        ;;
6390      *-*-cygwin* )
6391        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6392        ;;
6393      * ) # otherwise, assume *nix
6394        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6395        ;;
6396    esac
6397    ;;
6398  *-*-cygwin* )
6399    case $build in
6400      *-*-mingw* ) # actually msys
6401        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6402        ;;
6403      *-*-cygwin* )
6404        lt_cv_to_host_file_cmd=func_convert_file_noop
6405        ;;
6406      * ) # otherwise, assume *nix
6407        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6408        ;;
6409    esac
6410    ;;
6411  * ) # unhandled hosts (and "normal" native builds)
6412    lt_cv_to_host_file_cmd=func_convert_file_noop
6413    ;;
6414esac
6415
6416fi
6417
6418to_host_file_cmd=$lt_cv_to_host_file_cmd
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6420$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6421
6422
6423
6424
6425
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6427$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6428if ${lt_cv_to_tool_file_cmd+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  #assume ordinary cross tools, or native build.
6432lt_cv_to_tool_file_cmd=func_convert_file_noop
6433case $host in
6434  *-*-mingw* )
6435    case $build in
6436      *-*-mingw* ) # actually msys
6437        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6438        ;;
6439    esac
6440    ;;
6441esac
6442
6443fi
6444
6445to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6447$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6448
6449
6450
6451
6452
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6454$as_echo_n "checking for $LD option to reload object files... " >&6; }
6455if ${lt_cv_ld_reload_flag+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  lt_cv_ld_reload_flag='-r'
6459fi
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6461$as_echo "$lt_cv_ld_reload_flag" >&6; }
6462reload_flag=$lt_cv_ld_reload_flag
6463case $reload_flag in
6464"" | " "*) ;;
6465*) reload_flag=" $reload_flag" ;;
6466esac
6467reload_cmds='$LD$reload_flag -o $output$reload_objs'
6468case $host_os in
6469  cygwin* | mingw* | pw32* | cegcc*)
6470    if test "$GCC" != yes; then
6471      reload_cmds=false
6472    fi
6473    ;;
6474  darwin*)
6475    if test "$GCC" = yes; then
6476      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6477    else
6478      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6479    fi
6480    ;;
6481esac
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491if test -n "$ac_tool_prefix"; then
6492  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6493set dummy ${ac_tool_prefix}objdump; 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 ${ac_cv_prog_OBJDUMP+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  if test -n "$OBJDUMP"; then
6500  ac_cv_prog_OBJDUMP="$OBJDUMP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
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
6519OBJDUMP=$ac_cv_prog_OBJDUMP
6520if test -n "$OBJDUMP"; then
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6522$as_echo "$OBJDUMP" >&6; }
6523else
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529fi
6530if test -z "$ac_cv_prog_OBJDUMP"; then
6531  ac_ct_OBJDUMP=$OBJDUMP
6532  # Extract the first word of "objdump", so it can be a program name with args.
6533set dummy objdump; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  if test -n "$ac_ct_OBJDUMP"; then
6540  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545  IFS=$as_save_IFS
6546  test -z "$as_dir" && as_dir=.
6547    for ac_exec_ext in '' $ac_executable_extensions; do
6548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551    break 2
6552  fi
6553done
6554  done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6560if test -n "$ac_ct_OBJDUMP"; then
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6562$as_echo "$ac_ct_OBJDUMP" >&6; }
6563else
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568  if test "x$ac_ct_OBJDUMP" = x; then
6569    OBJDUMP="false"
6570  else
6571    case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577    OBJDUMP=$ac_ct_OBJDUMP
6578  fi
6579else
6580  OBJDUMP="$ac_cv_prog_OBJDUMP"
6581fi
6582
6583test -z "$OBJDUMP" && OBJDUMP=objdump
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6594$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6595if ${lt_cv_deplibs_check_method+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  lt_cv_file_magic_cmd='$MAGIC_CMD'
6599lt_cv_file_magic_test_file=
6600lt_cv_deplibs_check_method='unknown'
6601# Need to set the preceding variable on all platforms that support
6602# interlibrary dependencies.
6603# 'none' -- dependencies not supported.
6604# `unknown' -- same as none, but documents that we really don't know.
6605# 'pass_all' -- all dependencies passed with no checks.
6606# 'test_compile' -- check by making test program.
6607# 'file_magic [[regex]]' -- check by looking for files in library path
6608# which responds to the $file_magic_cmd with a given extended regex.
6609# If you have `file' or equivalent on your system and you're not sure
6610# whether `pass_all' will *always* work, you probably want this one.
6611
6612case $host_os in
6613aix[4-9]*)
6614  lt_cv_deplibs_check_method=pass_all
6615  ;;
6616
6617beos*)
6618  lt_cv_deplibs_check_method=pass_all
6619  ;;
6620
6621bsdi[45]*)
6622  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6623  lt_cv_file_magic_cmd='/usr/bin/file -L'
6624  lt_cv_file_magic_test_file=/shlib/libc.so
6625  ;;
6626
6627cygwin*)
6628  # func_win32_libid is a shell function defined in ltmain.sh
6629  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630  lt_cv_file_magic_cmd='func_win32_libid'
6631  ;;
6632
6633mingw* | pw32*)
6634  # Base MSYS/MinGW do not provide the 'file' command needed by
6635  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6636  # unless we find 'file', for example because we are cross-compiling.
6637  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6638  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6639    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6640    lt_cv_file_magic_cmd='func_win32_libid'
6641  else
6642    # Keep this pattern in sync with the one in func_win32_libid.
6643    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6644    lt_cv_file_magic_cmd='$OBJDUMP -f'
6645  fi
6646  ;;
6647
6648cegcc*)
6649  # use the weaker test based on 'objdump'. See mingw*.
6650  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6651  lt_cv_file_magic_cmd='$OBJDUMP -f'
6652  ;;
6653
6654darwin* | rhapsody*)
6655  lt_cv_deplibs_check_method=pass_all
6656  ;;
6657
6658freebsd* | dragonfly*)
6659  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6660    case $host_cpu in
6661    i*86 )
6662      # Not sure whether the presence of OpenBSD here was a mistake.
6663      # Let's accept both of them until this is cleared up.
6664      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6665      lt_cv_file_magic_cmd=/usr/bin/file
6666      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6667      ;;
6668    esac
6669  else
6670    lt_cv_deplibs_check_method=pass_all
6671  fi
6672  ;;
6673
6674gnu*)
6675  lt_cv_deplibs_check_method=pass_all
6676  ;;
6677
6678haiku*)
6679  lt_cv_deplibs_check_method=pass_all
6680  ;;
6681
6682hpux10.20* | hpux11*)
6683  lt_cv_file_magic_cmd=/usr/bin/file
6684  case $host_cpu in
6685  ia64*)
6686    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6687    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6688    ;;
6689  hppa*64*)
6690    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6691    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6692    ;;
6693  *)
6694    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6695    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6696    ;;
6697  esac
6698  ;;
6699
6700interix[3-9]*)
6701  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6702  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6703  ;;
6704
6705irix5* | irix6* | nonstopux*)
6706  case $LD in
6707  *-32|*"-32 ") libmagic=32-bit;;
6708  *-n32|*"-n32 ") libmagic=N32;;
6709  *-64|*"-64 ") libmagic=64-bit;;
6710  *) libmagic=never-match;;
6711  esac
6712  lt_cv_deplibs_check_method=pass_all
6713  ;;
6714
6715# This must be glibc/ELF.
6716linux* | k*bsd*-gnu | kopensolaris*-gnu)
6717  lt_cv_deplibs_check_method=pass_all
6718  ;;
6719
6720netbsd*)
6721  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6722    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6723  else
6724    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6725  fi
6726  ;;
6727
6728newos6*)
6729  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6730  lt_cv_file_magic_cmd=/usr/bin/file
6731  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6732  ;;
6733
6734*nto* | *qnx*)
6735  lt_cv_deplibs_check_method=pass_all
6736  ;;
6737
6738openbsd*)
6739  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6740    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6741  else
6742    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6743  fi
6744  ;;
6745
6746osf3* | osf4* | osf5*)
6747  lt_cv_deplibs_check_method=pass_all
6748  ;;
6749
6750rdos*)
6751  lt_cv_deplibs_check_method=pass_all
6752  ;;
6753
6754solaris*)
6755  lt_cv_deplibs_check_method=pass_all
6756  ;;
6757
6758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6759  lt_cv_deplibs_check_method=pass_all
6760  ;;
6761
6762sysv4 | sysv4.3*)
6763  case $host_vendor in
6764  motorola)
6765    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]'
6766    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6767    ;;
6768  ncr)
6769    lt_cv_deplibs_check_method=pass_all
6770    ;;
6771  sequent)
6772    lt_cv_file_magic_cmd='/bin/file'
6773    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6774    ;;
6775  sni)
6776    lt_cv_file_magic_cmd='/bin/file'
6777    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6778    lt_cv_file_magic_test_file=/lib/libc.so
6779    ;;
6780  siemens)
6781    lt_cv_deplibs_check_method=pass_all
6782    ;;
6783  pc)
6784    lt_cv_deplibs_check_method=pass_all
6785    ;;
6786  esac
6787  ;;
6788
6789tpf*)
6790  lt_cv_deplibs_check_method=pass_all
6791  ;;
6792esac
6793
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6796$as_echo "$lt_cv_deplibs_check_method" >&6; }
6797
6798file_magic_glob=
6799want_nocaseglob=no
6800if test "$build" = "$host"; then
6801  case $host_os in
6802  mingw* | pw32*)
6803    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6804      want_nocaseglob=yes
6805    else
6806      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6807    fi
6808    ;;
6809  esac
6810fi
6811
6812file_magic_cmd=$lt_cv_file_magic_cmd
6813deplibs_check_method=$lt_cv_deplibs_check_method
6814test -z "$deplibs_check_method" && deplibs_check_method=unknown
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837if test -n "$ac_tool_prefix"; then
6838  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6839set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if ${ac_cv_prog_DLLTOOL+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  if test -n "$DLLTOOL"; then
6846  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi
6864fi
6865DLLTOOL=$ac_cv_prog_DLLTOOL
6866if test -n "$DLLTOOL"; then
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6868$as_echo "$DLLTOOL" >&6; }
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
6872fi
6873
6874
6875fi
6876if test -z "$ac_cv_prog_DLLTOOL"; then
6877  ac_ct_DLLTOOL=$DLLTOOL
6878  # Extract the first word of "dlltool", so it can be a program name with args.
6879set dummy dlltool; ac_word=$2
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  if test -n "$ac_ct_DLLTOOL"; then
6886  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891  IFS=$as_save_IFS
6892  test -z "$as_dir" && as_dir=.
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6906if test -n "$ac_ct_DLLTOOL"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6908$as_echo "$ac_ct_DLLTOOL" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914  if test "x$ac_ct_DLLTOOL" = x; then
6915    DLLTOOL="false"
6916  else
6917    case $cross_compiling:$ac_tool_warned in
6918yes:)
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921ac_tool_warned=yes ;;
6922esac
6923    DLLTOOL=$ac_ct_DLLTOOL
6924  fi
6925else
6926  DLLTOOL="$ac_cv_prog_DLLTOOL"
6927fi
6928
6929test -z "$DLLTOOL" && DLLTOOL=dlltool
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6941$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6942if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  lt_cv_sharedlib_from_linklib_cmd='unknown'
6946
6947case $host_os in
6948cygwin* | mingw* | pw32* | cegcc*)
6949  # two different shell functions defined in ltmain.sh
6950  # decide which to use based on capabilities of $DLLTOOL
6951  case `$DLLTOOL --help 2>&1` in
6952  *--identify-strict*)
6953    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6954    ;;
6955  *)
6956    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6957    ;;
6958  esac
6959  ;;
6960*)
6961  # fallback: assume linklib IS sharedlib
6962  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6963  ;;
6964esac
6965
6966fi
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6968$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6969sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6970test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6971
6972
6973
6974
6975
6976
6977
6978
6979if test -n "$ac_tool_prefix"; then
6980  for ac_prog in ar
6981  do
6982    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
6986if ${ac_cv_prog_AR+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  if test -n "$AR"; then
6990  ac_cv_prog_AR="$AR" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995  IFS=$as_save_IFS
6996  test -z "$as_dir" && as_dir=.
6997    for ac_exec_ext in '' $ac_executable_extensions; do
6998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001    break 2
7002  fi
7003done
7004  done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009AR=$ac_cv_prog_AR
7010if test -n "$AR"; then
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7012$as_echo "$AR" >&6; }
7013else
7014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
7016fi
7017
7018
7019    test -n "$AR" && break
7020  done
7021fi
7022if test -z "$AR"; then
7023  ac_ct_AR=$AR
7024  for ac_prog in ar
7025do
7026  # Extract the first word of "$ac_prog", so it can be a program name with args.
7027set dummy $ac_prog; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_ac_ct_AR+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$ac_ct_AR"; then
7034  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_ac_ct_AR="$ac_prog"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_AR=$ac_cv_prog_ac_ct_AR
7054if test -n "$ac_ct_AR"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7056$as_echo "$ac_ct_AR" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062
7063  test -n "$ac_ct_AR" && break
7064done
7065
7066  if test "x$ac_ct_AR" = x; then
7067    AR="false"
7068  else
7069    case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075    AR=$ac_ct_AR
7076  fi
7077fi
7078
7079: ${AR=ar}
7080: ${AR_FLAGS=cru}
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7093$as_echo_n "checking for archiver @FILE support... " >&6; }
7094if ${lt_cv_ar_at_file+:} false; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  lt_cv_ar_at_file=no
7098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h.  */
7100
7101int
7102main ()
7103{
7104
7105  ;
7106  return 0;
7107}
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"; then :
7110  echo conftest.$ac_objext > conftest.lst
7111      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7112      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7113  (eval $lt_ar_try) 2>&5
7114  ac_status=$?
7115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116  test $ac_status = 0; }
7117      if test "$ac_status" -eq 0; then
7118	# Ensure the archiver fails upon bogus file names.
7119	rm -f conftest.$ac_objext libconftest.a
7120	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7121  (eval $lt_ar_try) 2>&5
7122  ac_status=$?
7123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7124  test $ac_status = 0; }
7125	if test "$ac_status" -ne 0; then
7126          lt_cv_ar_at_file=@
7127        fi
7128      fi
7129      rm -f conftest.* libconftest.a
7130
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7136$as_echo "$lt_cv_ar_at_file" >&6; }
7137
7138if test "x$lt_cv_ar_at_file" = xno; then
7139  archiver_list_spec=
7140else
7141  archiver_list_spec=$lt_cv_ar_at_file
7142fi
7143
7144
7145
7146
7147
7148
7149
7150if test -n "$ac_tool_prefix"; then
7151  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}strip; ac_word=$2
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154$as_echo_n "checking for $ac_word... " >&6; }
7155if ${ac_cv_prog_STRIP+:} false; then :
7156  $as_echo_n "(cached) " >&6
7157else
7158  if test -n "$STRIP"; then
7159  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164  IFS=$as_save_IFS
7165  test -z "$as_dir" && as_dir=.
7166    for ac_exec_ext in '' $ac_executable_extensions; do
7167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170    break 2
7171  fi
7172done
7173  done
7174IFS=$as_save_IFS
7175
7176fi
7177fi
7178STRIP=$ac_cv_prog_STRIP
7179if test -n "$STRIP"; then
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7181$as_echo "$STRIP" >&6; }
7182else
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184$as_echo "no" >&6; }
7185fi
7186
7187
7188fi
7189if test -z "$ac_cv_prog_STRIP"; then
7190  ac_ct_STRIP=$STRIP
7191  # Extract the first word of "strip", so it can be a program name with args.
7192set dummy strip; ac_word=$2
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194$as_echo_n "checking for $ac_word... " >&6; }
7195if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  if test -n "$ac_ct_STRIP"; then
7199  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  test -z "$as_dir" && as_dir=.
7206    for ac_exec_ext in '' $ac_executable_extensions; do
7207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208    ac_cv_prog_ac_ct_STRIP="strip"
7209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210    break 2
7211  fi
7212done
7213  done
7214IFS=$as_save_IFS
7215
7216fi
7217fi
7218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7219if test -n "$ac_ct_STRIP"; then
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7221$as_echo "$ac_ct_STRIP" >&6; }
7222else
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226
7227  if test "x$ac_ct_STRIP" = x; then
7228    STRIP=":"
7229  else
7230    case $cross_compiling:$ac_tool_warned in
7231yes:)
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234ac_tool_warned=yes ;;
7235esac
7236    STRIP=$ac_ct_STRIP
7237  fi
7238else
7239  STRIP="$ac_cv_prog_STRIP"
7240fi
7241
7242test -z "$STRIP" && STRIP=:
7243
7244
7245
7246
7247
7248
7249if test -n "$ac_tool_prefix"; then
7250  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7251set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
7254if ${ac_cv_prog_RANLIB+:} false; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  if test -n "$RANLIB"; then
7258  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263  IFS=$as_save_IFS
7264  test -z "$as_dir" && as_dir=.
7265    for ac_exec_ext in '' $ac_executable_extensions; do
7266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269    break 2
7270  fi
7271done
7272  done
7273IFS=$as_save_IFS
7274
7275fi
7276fi
7277RANLIB=$ac_cv_prog_RANLIB
7278if test -n "$RANLIB"; then
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7280$as_echo "$RANLIB" >&6; }
7281else
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
7284fi
7285
7286
7287fi
7288if test -z "$ac_cv_prog_RANLIB"; then
7289  ac_ct_RANLIB=$RANLIB
7290  # Extract the first word of "ranlib", so it can be a program name with args.
7291set dummy ranlib; ac_word=$2
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  if test -n "$ac_ct_RANLIB"; then
7298  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303  IFS=$as_save_IFS
7304  test -z "$as_dir" && as_dir=.
7305    for ac_exec_ext in '' $ac_executable_extensions; do
7306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307    ac_cv_prog_ac_ct_RANLIB="ranlib"
7308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309    break 2
7310  fi
7311done
7312  done
7313IFS=$as_save_IFS
7314
7315fi
7316fi
7317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7318if test -n "$ac_ct_RANLIB"; then
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7320$as_echo "$ac_ct_RANLIB" >&6; }
7321else
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323$as_echo "no" >&6; }
7324fi
7325
7326  if test "x$ac_ct_RANLIB" = x; then
7327    RANLIB=":"
7328  else
7329    case $cross_compiling:$ac_tool_warned in
7330yes:)
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333ac_tool_warned=yes ;;
7334esac
7335    RANLIB=$ac_ct_RANLIB
7336  fi
7337else
7338  RANLIB="$ac_cv_prog_RANLIB"
7339fi
7340
7341test -z "$RANLIB" && RANLIB=:
7342
7343
7344
7345
7346
7347
7348# Determine commands to create old-style static archives.
7349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7350old_postinstall_cmds='chmod 644 $oldlib'
7351old_postuninstall_cmds=
7352
7353if test -n "$RANLIB"; then
7354  case $host_os in
7355  openbsd*)
7356    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7357    ;;
7358  *)
7359    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7360    ;;
7361  esac
7362  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7363fi
7364
7365case $host_os in
7366  darwin*)
7367    lock_old_archive_extraction=yes ;;
7368  *)
7369    lock_old_archive_extraction=no ;;
7370esac
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410# If no C compiler was specified, use CC.
7411LTCC=${LTCC-"$CC"}
7412
7413# If no C compiler flags were specified, use CFLAGS.
7414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7415
7416# Allow CC to be a program name with arguments.
7417compiler=$CC
7418
7419
7420# Check for command to grab the raw symbol name followed by C symbol from nm.
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7422$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7423if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426
7427# These are sane defaults that work on at least a few old systems.
7428# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7429
7430# Character class describing NM global symbol codes.
7431symcode='[BCDEGRST]'
7432
7433# Regexp to match symbols that can be accessed directly from C.
7434sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7435
7436# Define system-specific variables.
7437case $host_os in
7438aix*)
7439  symcode='[BCDT]'
7440  ;;
7441cygwin* | mingw* | pw32* | cegcc*)
7442  symcode='[ABCDGISTW]'
7443  ;;
7444hpux*)
7445  if test "$host_cpu" = ia64; then
7446    symcode='[ABCDEGRST]'
7447  fi
7448  ;;
7449irix* | nonstopux*)
7450  symcode='[BCDEGRST]'
7451  ;;
7452osf*)
7453  symcode='[BCDEGQRST]'
7454  ;;
7455solaris*)
7456  symcode='[BDRT]'
7457  ;;
7458sco3.2v5*)
7459  symcode='[DT]'
7460  ;;
7461sysv4.2uw2*)
7462  symcode='[DT]'
7463  ;;
7464sysv5* | sco5v6* | unixware* | OpenUNIX*)
7465  symcode='[ABDT]'
7466  ;;
7467sysv4)
7468  symcode='[DFNSTU]'
7469  ;;
7470esac
7471
7472# If we're using GNU nm, then use its standard symbol codes.
7473case `$NM -V 2>&1` in
7474*GNU* | *'with BFD'*)
7475  symcode='[ABCDGIRSTW]' ;;
7476esac
7477
7478# Transform an extracted symbol line into a proper C declaration.
7479# Some systems (esp. on ia64) link data and code symbols differently,
7480# so use this general approach.
7481lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7482
7483# Transform an extracted symbol line into symbol name and symbol address
7484lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7485lt_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'"
7486
7487# Handle CRLF in mingw tool chain
7488opt_cr=
7489case $build_os in
7490mingw*)
7491  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7492  ;;
7493esac
7494
7495# Try without a prefix underscore, then with it.
7496for ac_symprfx in "" "_"; do
7497
7498  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7499  symxfrm="\\1 $ac_symprfx\\2 \\2"
7500
7501  # Write the raw and C identifiers.
7502  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7503    # Fake it for dumpbin and say T for any non-static function
7504    # and D for any global variable.
7505    # Also find C++ and __fastcall symbols from MSVC++,
7506    # which start with @ or ?.
7507    lt_cv_sys_global_symbol_pipe="$AWK '"\
7508"     {last_section=section; section=\$ 3};"\
7509"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7510"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7511"     \$ 0!~/External *\|/{next};"\
7512"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7513"     {if(hide[section]) next};"\
7514"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7515"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7516"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7517"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7518"     ' prfx=^$ac_symprfx"
7519  else
7520    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7521  fi
7522  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7523
7524  # Check to see that the pipe works correctly.
7525  pipe_works=no
7526
7527  rm -rf conftest*
7528  cat > conftest.$ac_ext <<_LT_EOF
7529#ifdef __cplusplus
7530extern "C" {
7531#endif
7532char nm_test_var;
7533void nm_test_func(void);
7534void nm_test_func(void){}
7535#ifdef __cplusplus
7536}
7537#endif
7538int main(){nm_test_var='a';nm_test_func();return(0);}
7539_LT_EOF
7540
7541  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7542  (eval $ac_compile) 2>&5
7543  ac_status=$?
7544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545  test $ac_status = 0; }; then
7546    # Now try to grab the symbols.
7547    nlist=conftest.nm
7548    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7549  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7550  ac_status=$?
7551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552  test $ac_status = 0; } && test -s "$nlist"; then
7553      # Try sorting and uniquifying the output.
7554      if sort "$nlist" | uniq > "$nlist"T; then
7555	mv -f "$nlist"T "$nlist"
7556      else
7557	rm -f "$nlist"T
7558      fi
7559
7560      # Make sure that we snagged all the symbols we need.
7561      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7562	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7563	  cat <<_LT_EOF > conftest.$ac_ext
7564/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7565#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7566/* DATA imports from DLLs on WIN32 con't be const, because runtime
7567   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7568# define LT_DLSYM_CONST
7569#elif defined(__osf__)
7570/* This system does not cope well with relocations in const data.  */
7571# define LT_DLSYM_CONST
7572#else
7573# define LT_DLSYM_CONST const
7574#endif
7575
7576#ifdef __cplusplus
7577extern "C" {
7578#endif
7579
7580_LT_EOF
7581	  # Now generate the symbol file.
7582	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7583
7584	  cat <<_LT_EOF >> conftest.$ac_ext
7585
7586/* The mapping between symbol names and symbols.  */
7587LT_DLSYM_CONST struct {
7588  const char *name;
7589  void       *address;
7590}
7591lt__PROGRAM__LTX_preloaded_symbols[] =
7592{
7593  { "@PROGRAM@", (void *) 0 },
7594_LT_EOF
7595	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7596	  cat <<\_LT_EOF >> conftest.$ac_ext
7597  {0, (void *) 0}
7598};
7599
7600/* This works around a problem in FreeBSD linker */
7601#ifdef FREEBSD_WORKAROUND
7602static const void *lt_preloaded_setup() {
7603  return lt__PROGRAM__LTX_preloaded_symbols;
7604}
7605#endif
7606
7607#ifdef __cplusplus
7608}
7609#endif
7610_LT_EOF
7611	  # Now try linking the two files.
7612	  mv conftest.$ac_objext conftstm.$ac_objext
7613	  lt_globsym_save_LIBS=$LIBS
7614	  lt_globsym_save_CFLAGS=$CFLAGS
7615	  LIBS="conftstm.$ac_objext"
7616	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7617	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7618  (eval $ac_link) 2>&5
7619  ac_status=$?
7620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7622	    pipe_works=yes
7623	  fi
7624	  LIBS=$lt_globsym_save_LIBS
7625	  CFLAGS=$lt_globsym_save_CFLAGS
7626	else
7627	  echo "cannot find nm_test_func in $nlist" >&5
7628	fi
7629      else
7630	echo "cannot find nm_test_var in $nlist" >&5
7631      fi
7632    else
7633      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7634    fi
7635  else
7636    echo "$progname: failed program was:" >&5
7637    cat conftest.$ac_ext >&5
7638  fi
7639  rm -rf conftest* conftst*
7640
7641  # Do not use the global_symbol_pipe unless it works.
7642  if test "$pipe_works" = yes; then
7643    break
7644  else
7645    lt_cv_sys_global_symbol_pipe=
7646  fi
7647done
7648
7649fi
7650
7651if test -z "$lt_cv_sys_global_symbol_pipe"; then
7652  lt_cv_sys_global_symbol_to_cdecl=
7653fi
7654if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7656$as_echo "failed" >&6; }
7657else
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7659$as_echo "ok" >&6; }
7660fi
7661
7662# Response file support.
7663if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7664  nm_file_list_spec='@'
7665elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7666  nm_file_list_spec='@'
7667fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7696$as_echo_n "checking for sysroot... " >&6; }
7697
7698# Check whether --with-sysroot was given.
7699if test "${with_sysroot+set}" = set; then :
7700  withval=$with_sysroot;
7701else
7702  with_sysroot=no
7703fi
7704
7705
7706lt_sysroot=
7707case ${with_sysroot} in #(
7708 yes)
7709   if test "$GCC" = yes; then
7710     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7711   fi
7712   ;; #(
7713 /*)
7714   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7715   ;; #(
7716 no|'')
7717   ;; #(
7718 *)
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7720$as_echo "${with_sysroot}" >&6; }
7721   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7722   ;;
7723esac
7724
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7726$as_echo "${lt_sysroot:-no}" >&6; }
7727
7728
7729
7730
7731
7732# Check whether --enable-libtool-lock was given.
7733if test "${enable_libtool_lock+set}" = set; then :
7734  enableval=$enable_libtool_lock;
7735fi
7736
7737test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7738
7739# Some flags need to be propagated to the compiler or linker for good
7740# libtool support.
7741case $host in
7742ia64-*-hpux*)
7743  # Find out which ABI we are using.
7744  echo 'int i;' > conftest.$ac_ext
7745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7746  (eval $ac_compile) 2>&5
7747  ac_status=$?
7748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749  test $ac_status = 0; }; then
7750    case `/usr/bin/file conftest.$ac_objext` in
7751      *ELF-32*)
7752	HPUX_IA64_MODE="32"
7753	;;
7754      *ELF-64*)
7755	HPUX_IA64_MODE="64"
7756	;;
7757    esac
7758  fi
7759  rm -rf conftest*
7760  ;;
7761*-*-irix6*)
7762  # Find out which ABI we are using.
7763  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7764  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7765  (eval $ac_compile) 2>&5
7766  ac_status=$?
7767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768  test $ac_status = 0; }; then
7769    if test "$lt_cv_prog_gnu_ld" = yes; then
7770      case `/usr/bin/file conftest.$ac_objext` in
7771	*32-bit*)
7772	  LD="${LD-ld} -melf32bsmip"
7773	  ;;
7774	*N32*)
7775	  LD="${LD-ld} -melf32bmipn32"
7776	  ;;
7777	*64-bit*)
7778	  LD="${LD-ld} -melf64bmip"
7779	;;
7780      esac
7781    else
7782      case `/usr/bin/file conftest.$ac_objext` in
7783	*32-bit*)
7784	  LD="${LD-ld} -32"
7785	  ;;
7786	*N32*)
7787	  LD="${LD-ld} -n32"
7788	  ;;
7789	*64-bit*)
7790	  LD="${LD-ld} -64"
7791	  ;;
7792      esac
7793    fi
7794  fi
7795  rm -rf conftest*
7796  ;;
7797
7798x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7799s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7800  # Find out which ABI we are using.
7801  echo 'int i;' > conftest.$ac_ext
7802  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7803  (eval $ac_compile) 2>&5
7804  ac_status=$?
7805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806  test $ac_status = 0; }; then
7807    case `/usr/bin/file conftest.o` in
7808      *32-bit*)
7809	case $host in
7810	  x86_64-*kfreebsd*-gnu)
7811	    LD="${LD-ld} -m elf_i386_fbsd"
7812	    ;;
7813	  x86_64-*linux*)
7814	    LD="${LD-ld} -m elf_i386"
7815	    ;;
7816	  ppc64-*linux*|powerpc64-*linux*)
7817	    LD="${LD-ld} -m elf32ppclinux"
7818	    ;;
7819	  s390x-*linux*)
7820	    LD="${LD-ld} -m elf_s390"
7821	    ;;
7822	  sparc64-*linux*)
7823	    LD="${LD-ld} -m elf32_sparc"
7824	    ;;
7825	esac
7826	;;
7827      *64-bit*)
7828	case $host in
7829	  x86_64-*kfreebsd*-gnu)
7830	    LD="${LD-ld} -m elf_x86_64_fbsd"
7831	    ;;
7832	  x86_64-*linux*)
7833	    LD="${LD-ld} -m elf_x86_64"
7834	    ;;
7835	  ppc*-*linux*|powerpc*-*linux*)
7836	    LD="${LD-ld} -m elf64ppc"
7837	    ;;
7838	  s390*-*linux*|s390*-*tpf*)
7839	    LD="${LD-ld} -m elf64_s390"
7840	    ;;
7841	  sparc*-*linux*)
7842	    LD="${LD-ld} -m elf64_sparc"
7843	    ;;
7844	esac
7845	;;
7846    esac
7847  fi
7848  rm -rf conftest*
7849  ;;
7850
7851*-*-sco3.2v5*)
7852  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7853  SAVE_CFLAGS="$CFLAGS"
7854  CFLAGS="$CFLAGS -belf"
7855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7856$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7857if ${lt_cv_cc_needs_belf+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  ac_ext=c
7861ac_cpp='$CPP $CPPFLAGS'
7862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865
7866     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868
7869int
7870main ()
7871{
7872
7873  ;
7874  return 0;
7875}
7876_ACEOF
7877if ac_fn_c_try_link "$LINENO"; then :
7878  lt_cv_cc_needs_belf=yes
7879else
7880  lt_cv_cc_needs_belf=no
7881fi
7882rm -f core conftest.err conftest.$ac_objext \
7883    conftest$ac_exeext conftest.$ac_ext
7884     ac_ext=c
7885ac_cpp='$CPP $CPPFLAGS'
7886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7892$as_echo "$lt_cv_cc_needs_belf" >&6; }
7893  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7894    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7895    CFLAGS="$SAVE_CFLAGS"
7896  fi
7897  ;;
7898*-*solaris*)
7899  # Find out which ABI we are using.
7900  echo 'int i;' > conftest.$ac_ext
7901  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7902  (eval $ac_compile) 2>&5
7903  ac_status=$?
7904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905  test $ac_status = 0; }; then
7906    case `/usr/bin/file conftest.o` in
7907    *64-bit*)
7908      case $lt_cv_prog_gnu_ld in
7909      yes*)
7910        case $host in
7911        i?86-*-solaris*)
7912          LD="${LD-ld} -m elf_x86_64"
7913          ;;
7914        sparc*-*-solaris*)
7915          LD="${LD-ld} -m elf64_sparc"
7916          ;;
7917        esac
7918        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7919        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7920          LD="${LD-ld}_sol2"
7921        fi
7922        ;;
7923      *)
7924	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7925	  LD="${LD-ld} -64"
7926	fi
7927	;;
7928      esac
7929      ;;
7930    esac
7931  fi
7932  rm -rf conftest*
7933  ;;
7934esac
7935
7936need_locks="$enable_libtool_lock"
7937
7938if test -n "$ac_tool_prefix"; then
7939  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7940set dummy ${ac_tool_prefix}mt; 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 ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  if test -n "$MANIFEST_TOOL"; then
7947  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
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
7966MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7967if test -n "$MANIFEST_TOOL"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7969$as_echo "$MANIFEST_TOOL" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975
7976fi
7977if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7978  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7979  # Extract the first word of "mt", so it can be a program name with args.
7980set dummy mt; ac_word=$2
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7984  $as_echo_n "(cached) " >&6
7985else
7986  if test -n "$ac_ct_MANIFEST_TOOL"; then
7987  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992  IFS=$as_save_IFS
7993  test -z "$as_dir" && as_dir=.
7994    for ac_exec_ext in '' $ac_executable_extensions; do
7995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998    break 2
7999  fi
8000done
8001  done
8002IFS=$as_save_IFS
8003
8004fi
8005fi
8006ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8007if test -n "$ac_ct_MANIFEST_TOOL"; then
8008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8009$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8010else
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
8013fi
8014
8015  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8016    MANIFEST_TOOL=":"
8017  else
8018    case $cross_compiling:$ac_tool_warned in
8019yes:)
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022ac_tool_warned=yes ;;
8023esac
8024    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8025  fi
8026else
8027  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8028fi
8029
8030test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8032$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8033if ${lt_cv_path_mainfest_tool+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  lt_cv_path_mainfest_tool=no
8037  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8038  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8039  cat conftest.err >&5
8040  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8041    lt_cv_path_mainfest_tool=yes
8042  fi
8043  rm -rf conftest*
8044fi
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8046$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8047if test "x$lt_cv_path_mainfest_tool" != xyes; then
8048  MANIFEST_TOOL=:
8049fi
8050
8051
8052
8053
8054
8055
8056  case $host_os in
8057    rhapsody* | darwin*)
8058    if test -n "$ac_tool_prefix"; then
8059  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8060set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if ${ac_cv_prog_DSYMUTIL+:} false; then :
8064  $as_echo_n "(cached) " >&6
8065else
8066  if test -n "$DSYMUTIL"; then
8067  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  test -z "$as_dir" && as_dir=.
8074    for ac_exec_ext in '' $ac_executable_extensions; do
8075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078    break 2
8079  fi
8080done
8081  done
8082IFS=$as_save_IFS
8083
8084fi
8085fi
8086DSYMUTIL=$ac_cv_prog_DSYMUTIL
8087if test -n "$DSYMUTIL"; then
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8089$as_echo "$DSYMUTIL" >&6; }
8090else
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
8093fi
8094
8095
8096fi
8097if test -z "$ac_cv_prog_DSYMUTIL"; then
8098  ac_ct_DSYMUTIL=$DSYMUTIL
8099  # Extract the first word of "dsymutil", so it can be a program name with args.
8100set dummy dsymutil; ac_word=$2
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102$as_echo_n "checking for $ac_word... " >&6; }
8103if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8104  $as_echo_n "(cached) " >&6
8105else
8106  if test -n "$ac_ct_DSYMUTIL"; then
8107  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8108else
8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112  IFS=$as_save_IFS
8113  test -z "$as_dir" && as_dir=.
8114    for ac_exec_ext in '' $ac_executable_extensions; do
8115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118    break 2
8119  fi
8120done
8121  done
8122IFS=$as_save_IFS
8123
8124fi
8125fi
8126ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8127if test -n "$ac_ct_DSYMUTIL"; then
8128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8129$as_echo "$ac_ct_DSYMUTIL" >&6; }
8130else
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
8133fi
8134
8135  if test "x$ac_ct_DSYMUTIL" = x; then
8136    DSYMUTIL=":"
8137  else
8138    case $cross_compiling:$ac_tool_warned in
8139yes:)
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142ac_tool_warned=yes ;;
8143esac
8144    DSYMUTIL=$ac_ct_DSYMUTIL
8145  fi
8146else
8147  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8148fi
8149
8150    if test -n "$ac_tool_prefix"; then
8151  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8152set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if ${ac_cv_prog_NMEDIT+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  if test -n "$NMEDIT"; then
8159  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166    for ac_exec_ext in '' $ac_executable_extensions; do
8167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170    break 2
8171  fi
8172done
8173  done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178NMEDIT=$ac_cv_prog_NMEDIT
8179if test -n "$NMEDIT"; then
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8181$as_echo "$NMEDIT" >&6; }
8182else
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187
8188fi
8189if test -z "$ac_cv_prog_NMEDIT"; then
8190  ac_ct_NMEDIT=$NMEDIT
8191  # Extract the first word of "nmedit", so it can be a program name with args.
8192set dummy nmedit; ac_word=$2
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194$as_echo_n "checking for $ac_word... " >&6; }
8195if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  if test -n "$ac_ct_NMEDIT"; then
8199  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204  IFS=$as_save_IFS
8205  test -z "$as_dir" && as_dir=.
8206    for ac_exec_ext in '' $ac_executable_extensions; do
8207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210    break 2
8211  fi
8212done
8213  done
8214IFS=$as_save_IFS
8215
8216fi
8217fi
8218ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8219if test -n "$ac_ct_NMEDIT"; then
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8221$as_echo "$ac_ct_NMEDIT" >&6; }
8222else
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224$as_echo "no" >&6; }
8225fi
8226
8227  if test "x$ac_ct_NMEDIT" = x; then
8228    NMEDIT=":"
8229  else
8230    case $cross_compiling:$ac_tool_warned in
8231yes:)
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234ac_tool_warned=yes ;;
8235esac
8236    NMEDIT=$ac_ct_NMEDIT
8237  fi
8238else
8239  NMEDIT="$ac_cv_prog_NMEDIT"
8240fi
8241
8242    if test -n "$ac_tool_prefix"; then
8243  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8244set dummy ${ac_tool_prefix}lipo; ac_word=$2
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246$as_echo_n "checking for $ac_word... " >&6; }
8247if ${ac_cv_prog_LIPO+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  if test -n "$LIPO"; then
8251  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8252else
8253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254for as_dir in $PATH
8255do
8256  IFS=$as_save_IFS
8257  test -z "$as_dir" && as_dir=.
8258    for ac_exec_ext in '' $ac_executable_extensions; do
8259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262    break 2
8263  fi
8264done
8265  done
8266IFS=$as_save_IFS
8267
8268fi
8269fi
8270LIPO=$ac_cv_prog_LIPO
8271if test -n "$LIPO"; then
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8273$as_echo "$LIPO" >&6; }
8274else
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280fi
8281if test -z "$ac_cv_prog_LIPO"; then
8282  ac_ct_LIPO=$LIPO
8283  # Extract the first word of "lipo", so it can be a program name with args.
8284set dummy lipo; ac_word=$2
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286$as_echo_n "checking for $ac_word... " >&6; }
8287if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8288  $as_echo_n "(cached) " >&6
8289else
8290  if test -n "$ac_ct_LIPO"; then
8291  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8292else
8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296  IFS=$as_save_IFS
8297  test -z "$as_dir" && as_dir=.
8298    for ac_exec_ext in '' $ac_executable_extensions; do
8299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300    ac_cv_prog_ac_ct_LIPO="lipo"
8301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302    break 2
8303  fi
8304done
8305  done
8306IFS=$as_save_IFS
8307
8308fi
8309fi
8310ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8311if test -n "$ac_ct_LIPO"; then
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8313$as_echo "$ac_ct_LIPO" >&6; }
8314else
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316$as_echo "no" >&6; }
8317fi
8318
8319  if test "x$ac_ct_LIPO" = x; then
8320    LIPO=":"
8321  else
8322    case $cross_compiling:$ac_tool_warned in
8323yes:)
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326ac_tool_warned=yes ;;
8327esac
8328    LIPO=$ac_ct_LIPO
8329  fi
8330else
8331  LIPO="$ac_cv_prog_LIPO"
8332fi
8333
8334    if test -n "$ac_tool_prefix"; then
8335  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8336set dummy ${ac_tool_prefix}otool; ac_word=$2
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338$as_echo_n "checking for $ac_word... " >&6; }
8339if ${ac_cv_prog_OTOOL+:} false; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  if test -n "$OTOOL"; then
8343  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8344else
8345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH
8347do
8348  IFS=$as_save_IFS
8349  test -z "$as_dir" && as_dir=.
8350    for ac_exec_ext in '' $ac_executable_extensions; do
8351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354    break 2
8355  fi
8356done
8357  done
8358IFS=$as_save_IFS
8359
8360fi
8361fi
8362OTOOL=$ac_cv_prog_OTOOL
8363if test -n "$OTOOL"; then
8364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8365$as_echo "$OTOOL" >&6; }
8366else
8367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368$as_echo "no" >&6; }
8369fi
8370
8371
8372fi
8373if test -z "$ac_cv_prog_OTOOL"; then
8374  ac_ct_OTOOL=$OTOOL
8375  # Extract the first word of "otool", so it can be a program name with args.
8376set dummy otool; ac_word=$2
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8380  $as_echo_n "(cached) " >&6
8381else
8382  if test -n "$ac_ct_OTOOL"; then
8383  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388  IFS=$as_save_IFS
8389  test -z "$as_dir" && as_dir=.
8390    for ac_exec_ext in '' $ac_executable_extensions; do
8391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392    ac_cv_prog_ac_ct_OTOOL="otool"
8393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394    break 2
8395  fi
8396done
8397  done
8398IFS=$as_save_IFS
8399
8400fi
8401fi
8402ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8403if test -n "$ac_ct_OTOOL"; then
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8405$as_echo "$ac_ct_OTOOL" >&6; }
8406else
8407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
8409fi
8410
8411  if test "x$ac_ct_OTOOL" = x; then
8412    OTOOL=":"
8413  else
8414    case $cross_compiling:$ac_tool_warned in
8415yes:)
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8418ac_tool_warned=yes ;;
8419esac
8420    OTOOL=$ac_ct_OTOOL
8421  fi
8422else
8423  OTOOL="$ac_cv_prog_OTOOL"
8424fi
8425
8426    if test -n "$ac_tool_prefix"; then
8427  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8428set dummy ${ac_tool_prefix}otool64; ac_word=$2
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
8431if ${ac_cv_prog_OTOOL64+:} false; then :
8432  $as_echo_n "(cached) " >&6
8433else
8434  if test -n "$OTOOL64"; then
8435  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8436else
8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438for as_dir in $PATH
8439do
8440  IFS=$as_save_IFS
8441  test -z "$as_dir" && as_dir=.
8442    for ac_exec_ext in '' $ac_executable_extensions; do
8443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446    break 2
8447  fi
8448done
8449  done
8450IFS=$as_save_IFS
8451
8452fi
8453fi
8454OTOOL64=$ac_cv_prog_OTOOL64
8455if test -n "$OTOOL64"; then
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8457$as_echo "$OTOOL64" >&6; }
8458else
8459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460$as_echo "no" >&6; }
8461fi
8462
8463
8464fi
8465if test -z "$ac_cv_prog_OTOOL64"; then
8466  ac_ct_OTOOL64=$OTOOL64
8467  # Extract the first word of "otool64", so it can be a program name with args.
8468set dummy otool64; ac_word=$2
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470$as_echo_n "checking for $ac_word... " >&6; }
8471if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8472  $as_echo_n "(cached) " >&6
8473else
8474  if test -n "$ac_ct_OTOOL64"; then
8475  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8476else
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480  IFS=$as_save_IFS
8481  test -z "$as_dir" && as_dir=.
8482    for ac_exec_ext in '' $ac_executable_extensions; do
8483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484    ac_cv_prog_ac_ct_OTOOL64="otool64"
8485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486    break 2
8487  fi
8488done
8489  done
8490IFS=$as_save_IFS
8491
8492fi
8493fi
8494ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8495if test -n "$ac_ct_OTOOL64"; then
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8497$as_echo "$ac_ct_OTOOL64" >&6; }
8498else
8499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501fi
8502
8503  if test "x$ac_ct_OTOOL64" = x; then
8504    OTOOL64=":"
8505  else
8506    case $cross_compiling:$ac_tool_warned in
8507yes:)
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510ac_tool_warned=yes ;;
8511esac
8512    OTOOL64=$ac_ct_OTOOL64
8513  fi
8514else
8515  OTOOL64="$ac_cv_prog_OTOOL64"
8516fi
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8545$as_echo_n "checking for -single_module linker flag... " >&6; }
8546if ${lt_cv_apple_cc_single_mod+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  lt_cv_apple_cc_single_mod=no
8550      if test -z "${LT_MULTI_MODULE}"; then
8551	# By default we will add the -single_module flag. You can override
8552	# by either setting the environment variable LT_MULTI_MODULE
8553	# non-empty at configure time, or by adding -multi_module to the
8554	# link flags.
8555	rm -rf libconftest.dylib*
8556	echo "int foo(void){return 1;}" > conftest.c
8557	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8558-dynamiclib -Wl,-single_module conftest.c" >&5
8559	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8560	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8561        _lt_result=$?
8562	# If there is a non-empty error log, and "single_module"
8563	# appears in it, assume the flag caused a linker warning
8564        if test -s conftest.err && $GREP single_module conftest.err; then
8565	  cat conftest.err >&5
8566	# Otherwise, if the output was created with a 0 exit code from
8567	# the compiler, it worked.
8568	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8569	  lt_cv_apple_cc_single_mod=yes
8570	else
8571	  cat conftest.err >&5
8572	fi
8573	rm -rf libconftest.dylib*
8574	rm -f conftest.*
8575      fi
8576fi
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8578$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8579
8580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8581$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8582if ${lt_cv_ld_exported_symbols_list+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  lt_cv_ld_exported_symbols_list=no
8586      save_LDFLAGS=$LDFLAGS
8587      echo "_main" > conftest.sym
8588      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8589      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h.  */
8591
8592int
8593main ()
8594{
8595
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600if ac_fn_c_try_link "$LINENO"; then :
8601  lt_cv_ld_exported_symbols_list=yes
8602else
8603  lt_cv_ld_exported_symbols_list=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext \
8606    conftest$ac_exeext conftest.$ac_ext
8607	LDFLAGS="$save_LDFLAGS"
8608
8609fi
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8611$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8612
8613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8614$as_echo_n "checking for -force_load linker flag... " >&6; }
8615if ${lt_cv_ld_force_load+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618  lt_cv_ld_force_load=no
8619      cat > conftest.c << _LT_EOF
8620int forced_loaded() { return 2;}
8621_LT_EOF
8622      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8623      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8624      echo "$AR cru libconftest.a conftest.o" >&5
8625      $AR cru libconftest.a conftest.o 2>&5
8626      echo "$RANLIB libconftest.a" >&5
8627      $RANLIB libconftest.a 2>&5
8628      cat > conftest.c << _LT_EOF
8629int main() { return 0;}
8630_LT_EOF
8631      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8632      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8633      _lt_result=$?
8634      if test -s conftest.err && $GREP force_load conftest.err; then
8635	cat conftest.err >&5
8636      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8637	lt_cv_ld_force_load=yes
8638      else
8639	cat conftest.err >&5
8640      fi
8641        rm -f conftest.err libconftest.a conftest conftest.c
8642        rm -rf conftest.dSYM
8643
8644fi
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8646$as_echo "$lt_cv_ld_force_load" >&6; }
8647    case $host_os in
8648    rhapsody* | darwin1.[012])
8649      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8650    darwin1.*)
8651      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8652    darwin*) # darwin 5.x on
8653      # if running on 10.5 or later, the deployment target defaults
8654      # to the OS version, if on x86, and 10.4, the deployment
8655      # target defaults to 10.4. Don't you love it?
8656      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8657	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8658	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8659	10.[012]*)
8660	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8661	10.*)
8662	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8663      esac
8664    ;;
8665  esac
8666    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8667      _lt_dar_single_mod='$single_module'
8668    fi
8669    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8670      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8671    else
8672      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8673    fi
8674    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8675      _lt_dsymutil='~$DSYMUTIL $lib || :'
8676    else
8677      _lt_dsymutil=
8678    fi
8679    ;;
8680  esac
8681
8682ac_ext=c
8683ac_cpp='$CPP $CPPFLAGS'
8684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8688$as_echo_n "checking how to run the C preprocessor... " >&6; }
8689# On Suns, sometimes $CPP names a directory.
8690if test -n "$CPP" && test -d "$CPP"; then
8691  CPP=
8692fi
8693if test -z "$CPP"; then
8694  if ${ac_cv_prog_CPP+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697      # Double quotes because CPP needs to be expanded
8698    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8699    do
8700      ac_preproc_ok=false
8701for ac_c_preproc_warn_flag in '' yes
8702do
8703  # Use a header file that comes with gcc, so configuring glibc
8704  # with a fresh cross-compiler works.
8705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706  # <limits.h> exists even on freestanding compilers.
8707  # On the NeXT, cc -E runs the code through the compiler's parser,
8708  # not just through cpp. "Syntax error" is here to catch this case.
8709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710/* end confdefs.h.  */
8711#ifdef __STDC__
8712# include <limits.h>
8713#else
8714# include <assert.h>
8715#endif
8716		     Syntax error
8717_ACEOF
8718if ac_fn_c_try_cpp "$LINENO"; then :
8719
8720else
8721  # Broken: fails on valid input.
8722continue
8723fi
8724rm -f conftest.err conftest.i conftest.$ac_ext
8725
8726  # OK, works on sane cases.  Now check whether nonexistent headers
8727  # can be detected and how.
8728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730#include <ac_nonexistent.h>
8731_ACEOF
8732if ac_fn_c_try_cpp "$LINENO"; then :
8733  # Broken: success on invalid input.
8734continue
8735else
8736  # Passes both tests.
8737ac_preproc_ok=:
8738break
8739fi
8740rm -f conftest.err conftest.i conftest.$ac_ext
8741
8742done
8743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8744rm -f conftest.i conftest.err conftest.$ac_ext
8745if $ac_preproc_ok; then :
8746  break
8747fi
8748
8749    done
8750    ac_cv_prog_CPP=$CPP
8751
8752fi
8753  CPP=$ac_cv_prog_CPP
8754else
8755  ac_cv_prog_CPP=$CPP
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8758$as_echo "$CPP" >&6; }
8759ac_preproc_ok=false
8760for ac_c_preproc_warn_flag in '' yes
8761do
8762  # Use a header file that comes with gcc, so configuring glibc
8763  # with a fresh cross-compiler works.
8764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765  # <limits.h> exists even on freestanding compilers.
8766  # On the NeXT, cc -E runs the code through the compiler's parser,
8767  # not just through cpp. "Syntax error" is here to catch this case.
8768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770#ifdef __STDC__
8771# include <limits.h>
8772#else
8773# include <assert.h>
8774#endif
8775		     Syntax error
8776_ACEOF
8777if ac_fn_c_try_cpp "$LINENO"; then :
8778
8779else
8780  # Broken: fails on valid input.
8781continue
8782fi
8783rm -f conftest.err conftest.i conftest.$ac_ext
8784
8785  # OK, works on sane cases.  Now check whether nonexistent headers
8786  # can be detected and how.
8787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h.  */
8789#include <ac_nonexistent.h>
8790_ACEOF
8791if ac_fn_c_try_cpp "$LINENO"; then :
8792  # Broken: success on invalid input.
8793continue
8794else
8795  # Passes both tests.
8796ac_preproc_ok=:
8797break
8798fi
8799rm -f conftest.err conftest.i conftest.$ac_ext
8800
8801done
8802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8803rm -f conftest.i conftest.err conftest.$ac_ext
8804if $ac_preproc_ok; then :
8805
8806else
8807  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8809as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8810See \`config.log' for more details" "$LINENO" 5; }
8811fi
8812
8813ac_ext=c
8814ac_cpp='$CPP $CPPFLAGS'
8815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8821$as_echo_n "checking for ANSI C header files... " >&6; }
8822if ${ac_cv_header_stdc+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h.  */
8827#include <stdlib.h>
8828#include <stdarg.h>
8829#include <string.h>
8830#include <float.h>
8831
8832int
8833main ()
8834{
8835
8836  ;
8837  return 0;
8838}
8839_ACEOF
8840if ac_fn_c_try_compile "$LINENO"; then :
8841  ac_cv_header_stdc=yes
8842else
8843  ac_cv_header_stdc=no
8844fi
8845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846
8847if test $ac_cv_header_stdc = yes; then
8848  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851#include <string.h>
8852
8853_ACEOF
8854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8855  $EGREP "memchr" >/dev/null 2>&1; then :
8856
8857else
8858  ac_cv_header_stdc=no
8859fi
8860rm -f conftest*
8861
8862fi
8863
8864if test $ac_cv_header_stdc = yes; then
8865  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868#include <stdlib.h>
8869
8870_ACEOF
8871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8872  $EGREP "free" >/dev/null 2>&1; then :
8873
8874else
8875  ac_cv_header_stdc=no
8876fi
8877rm -f conftest*
8878
8879fi
8880
8881if test $ac_cv_header_stdc = yes; then
8882  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8883  if test "$cross_compiling" = yes; then :
8884  :
8885else
8886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887/* end confdefs.h.  */
8888#include <ctype.h>
8889#include <stdlib.h>
8890#if ((' ' & 0x0FF) == 0x020)
8891# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8892# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8893#else
8894# define ISLOWER(c) \
8895		   (('a' <= (c) && (c) <= 'i') \
8896		     || ('j' <= (c) && (c) <= 'r') \
8897		     || ('s' <= (c) && (c) <= 'z'))
8898# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8899#endif
8900
8901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8902int
8903main ()
8904{
8905  int i;
8906  for (i = 0; i < 256; i++)
8907    if (XOR (islower (i), ISLOWER (i))
8908	|| toupper (i) != TOUPPER (i))
8909      return 2;
8910  return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_run "$LINENO"; then :
8914
8915else
8916  ac_cv_header_stdc=no
8917fi
8918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8919  conftest.$ac_objext conftest.beam conftest.$ac_ext
8920fi
8921
8922fi
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8925$as_echo "$ac_cv_header_stdc" >&6; }
8926if test $ac_cv_header_stdc = yes; then
8927
8928$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8929
8930fi
8931
8932# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8933for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8934		  inttypes.h stdint.h unistd.h
8935do :
8936  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8937ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8938"
8939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8940  cat >>confdefs.h <<_ACEOF
8941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942_ACEOF
8943
8944fi
8945
8946done
8947
8948
8949for ac_header in dlfcn.h
8950do :
8951  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8952"
8953if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8954  cat >>confdefs.h <<_ACEOF
8955#define HAVE_DLFCN_H 1
8956_ACEOF
8957
8958fi
8959
8960done
8961
8962
8963
8964
8965func_stripname_cnf ()
8966{
8967  case ${2} in
8968  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8969  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8970  esac
8971} # func_stripname_cnf
8972
8973
8974
8975
8976
8977# Set options
8978
8979
8980
8981        enable_dlopen=no
8982
8983
8984  enable_win32_dll=no
8985
8986
8987
8988  # Check whether --enable-static was given.
8989if test "${enable_static+set}" = set; then :
8990  enableval=$enable_static; p=${PACKAGE-default}
8991    case $enableval in
8992    yes) enable_static=yes ;;
8993    no) enable_static=no ;;
8994    *)
8995     enable_static=no
8996      # Look at the argument we got.  We use all the common list separators.
8997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8998      for pkg in $enableval; do
8999	IFS="$lt_save_ifs"
9000	if test "X$pkg" = "X$p"; then
9001	  enable_static=yes
9002	fi
9003      done
9004      IFS="$lt_save_ifs"
9005      ;;
9006    esac
9007else
9008  enable_static=yes
9009fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020# Check whether --with-pic was given.
9021if test "${with_pic+set}" = set; then :
9022  withval=$with_pic; lt_p=${PACKAGE-default}
9023    case $withval in
9024    yes|no) pic_mode=$withval ;;
9025    *)
9026      pic_mode=default
9027      # Look at the argument we got.  We use all the common list separators.
9028      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9029      for lt_pkg in $withval; do
9030	IFS="$lt_save_ifs"
9031	if test "X$lt_pkg" = "X$lt_p"; then
9032	  pic_mode=yes
9033	fi
9034      done
9035      IFS="$lt_save_ifs"
9036      ;;
9037    esac
9038else
9039  pic_mode=default
9040fi
9041
9042
9043test -z "$pic_mode" && pic_mode=default
9044
9045
9046
9047
9048
9049
9050
9051  # Check whether --enable-fast-install was given.
9052if test "${enable_fast_install+set}" = set; then :
9053  enableval=$enable_fast_install; p=${PACKAGE-default}
9054    case $enableval in
9055    yes) enable_fast_install=yes ;;
9056    no) enable_fast_install=no ;;
9057    *)
9058      enable_fast_install=no
9059      # Look at the argument we got.  We use all the common list separators.
9060      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9061      for pkg in $enableval; do
9062	IFS="$lt_save_ifs"
9063	if test "X$pkg" = "X$p"; then
9064	  enable_fast_install=yes
9065	fi
9066      done
9067      IFS="$lt_save_ifs"
9068      ;;
9069    esac
9070else
9071  enable_fast_install=yes
9072fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084# This can be used to rebuild libtool when needed
9085LIBTOOL_DEPS="$ltmain"
9086
9087# Always use our own libtool.
9088LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119test -z "$LN_S" && LN_S="ln -s"
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134if test -n "${ZSH_VERSION+set}" ; then
9135   setopt NO_GLOB_SUBST
9136fi
9137
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9139$as_echo_n "checking for objdir... " >&6; }
9140if ${lt_cv_objdir+:} false; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  rm -f .libs 2>/dev/null
9144mkdir .libs 2>/dev/null
9145if test -d .libs; then
9146  lt_cv_objdir=.libs
9147else
9148  # MS-DOS does not allow filenames that begin with a dot.
9149  lt_cv_objdir=_libs
9150fi
9151rmdir .libs 2>/dev/null
9152fi
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9154$as_echo "$lt_cv_objdir" >&6; }
9155objdir=$lt_cv_objdir
9156
9157
9158
9159
9160
9161cat >>confdefs.h <<_ACEOF
9162#define LT_OBJDIR "$lt_cv_objdir/"
9163_ACEOF
9164
9165
9166
9167
9168case $host_os in
9169aix3*)
9170  # AIX sometimes has problems with the GCC collect2 program.  For some
9171  # reason, if we set the COLLECT_NAMES environment variable, the problems
9172  # vanish in a puff of smoke.
9173  if test "X${COLLECT_NAMES+set}" != Xset; then
9174    COLLECT_NAMES=
9175    export COLLECT_NAMES
9176  fi
9177  ;;
9178esac
9179
9180# Global variables:
9181ofile=libtool
9182can_build_shared=yes
9183
9184# All known linkers require a `.a' archive for static linking (except MSVC,
9185# which needs '.lib').
9186libext=a
9187
9188with_gnu_ld="$lt_cv_prog_gnu_ld"
9189
9190old_CC="$CC"
9191old_CFLAGS="$CFLAGS"
9192
9193# Set sane defaults for various variables
9194test -z "$CC" && CC=cc
9195test -z "$LTCC" && LTCC=$CC
9196test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197test -z "$LD" && LD=ld
9198test -z "$ac_objext" && ac_objext=o
9199
9200for cc_temp in $compiler""; do
9201  case $cc_temp in
9202    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204    \-*) ;;
9205    *) break;;
9206  esac
9207done
9208cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9209
9210
9211# Only perform the check for file, if the check method requires it
9212test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213case $deplibs_check_method in
9214file_magic*)
9215  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9217$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9218if ${lt_cv_path_MAGIC_CMD+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  case $MAGIC_CMD in
9222[\\/*] |  ?:[\\/]*)
9223  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224  ;;
9225*)
9226  lt_save_MAGIC_CMD="$MAGIC_CMD"
9227  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229  for ac_dir in $ac_dummy; do
9230    IFS="$lt_save_ifs"
9231    test -z "$ac_dir" && ac_dir=.
9232    if test -f $ac_dir/${ac_tool_prefix}file; then
9233      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234      if test -n "$file_magic_test_file"; then
9235	case $deplibs_check_method in
9236	"file_magic "*)
9237	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240	    $EGREP "$file_magic_regex" > /dev/null; then
9241	    :
9242	  else
9243	    cat <<_LT_EOF 1>&2
9244
9245*** Warning: the command libtool uses to detect shared libraries,
9246*** $file_magic_cmd, produces output that libtool cannot recognize.
9247*** The result is that libtool may fail to recognize shared libraries
9248*** as such.  This will affect the creation of libtool libraries that
9249*** depend on shared libraries, but programs linked with such libtool
9250*** libraries will work regardless of this problem.  Nevertheless, you
9251*** may want to report the problem to your system manager and/or to
9252*** bug-libtool@gnu.org
9253
9254_LT_EOF
9255	  fi ;;
9256	esac
9257      fi
9258      break
9259    fi
9260  done
9261  IFS="$lt_save_ifs"
9262  MAGIC_CMD="$lt_save_MAGIC_CMD"
9263  ;;
9264esac
9265fi
9266
9267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268if test -n "$MAGIC_CMD"; then
9269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9270$as_echo "$MAGIC_CMD" >&6; }
9271else
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273$as_echo "no" >&6; }
9274fi
9275
9276
9277
9278
9279
9280if test -z "$lt_cv_path_MAGIC_CMD"; then
9281  if test -n "$ac_tool_prefix"; then
9282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9283$as_echo_n "checking for file... " >&6; }
9284if ${lt_cv_path_MAGIC_CMD+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  case $MAGIC_CMD in
9288[\\/*] |  ?:[\\/]*)
9289  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9290  ;;
9291*)
9292  lt_save_MAGIC_CMD="$MAGIC_CMD"
9293  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295  for ac_dir in $ac_dummy; do
9296    IFS="$lt_save_ifs"
9297    test -z "$ac_dir" && ac_dir=.
9298    if test -f $ac_dir/file; then
9299      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300      if test -n "$file_magic_test_file"; then
9301	case $deplibs_check_method in
9302	"file_magic "*)
9303	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306	    $EGREP "$file_magic_regex" > /dev/null; then
9307	    :
9308	  else
9309	    cat <<_LT_EOF 1>&2
9310
9311*** Warning: the command libtool uses to detect shared libraries,
9312*** $file_magic_cmd, produces output that libtool cannot recognize.
9313*** The result is that libtool may fail to recognize shared libraries
9314*** as such.  This will affect the creation of libtool libraries that
9315*** depend on shared libraries, but programs linked with such libtool
9316*** libraries will work regardless of this problem.  Nevertheless, you
9317*** may want to report the problem to your system manager and/or to
9318*** bug-libtool@gnu.org
9319
9320_LT_EOF
9321	  fi ;;
9322	esac
9323      fi
9324      break
9325    fi
9326  done
9327  IFS="$lt_save_ifs"
9328  MAGIC_CMD="$lt_save_MAGIC_CMD"
9329  ;;
9330esac
9331fi
9332
9333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334if test -n "$MAGIC_CMD"; then
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9336$as_echo "$MAGIC_CMD" >&6; }
9337else
9338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339$as_echo "no" >&6; }
9340fi
9341
9342
9343  else
9344    MAGIC_CMD=:
9345  fi
9346fi
9347
9348  fi
9349  ;;
9350esac
9351
9352# Use C for the default configuration in the libtool script
9353
9354lt_save_CC="$CC"
9355ac_ext=c
9356ac_cpp='$CPP $CPPFLAGS'
9357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
9362# Source file extension for C test sources.
9363ac_ext=c
9364
9365# Object file extension for compiled C test sources.
9366objext=o
9367objext=$objext
9368
9369# Code to be used in simple compile tests
9370lt_simple_compile_test_code="int some_variable = 0;"
9371
9372# Code to be used in simple link tests
9373lt_simple_link_test_code='int main(){return(0);}'
9374
9375
9376
9377
9378
9379
9380
9381# If no C compiler was specified, use CC.
9382LTCC=${LTCC-"$CC"}
9383
9384# If no C compiler flags were specified, use CFLAGS.
9385LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386
9387# Allow CC to be a program name with arguments.
9388compiler=$CC
9389
9390# Save the default compiler, since it gets overwritten when the other
9391# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392compiler_DEFAULT=$CC
9393
9394# save warnings/boilerplate of simple test code
9395ac_outfile=conftest.$ac_objext
9396echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398_lt_compiler_boilerplate=`cat conftest.err`
9399$RM -r conftest*
9400
9401ac_outfile=conftest.$ac_objext
9402echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404_lt_linker_boilerplate=`cat conftest.err`
9405$RM -r conftest*
9406
9407
9408if test -n "$compiler"; then
9409
9410lt_prog_compiler_no_builtin_flag=
9411
9412if test "$GCC" = yes; then
9413  case $cc_basename in
9414  nvcc*)
9415    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9416  *)
9417    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9418  esac
9419
9420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9421$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9422if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9423  $as_echo_n "(cached) " >&6
9424else
9425  lt_cv_prog_compiler_rtti_exceptions=no
9426   ac_outfile=conftest.$ac_objext
9427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9428   lt_compiler_flag="-fno-rtti -fno-exceptions"
9429   # Insert the option either (1) after the last *FLAGS variable, or
9430   # (2) before a word containing "conftest.", or (3) at the end.
9431   # Note that $ac_compile itself does not contain backslashes and begins
9432   # with a dollar sign (not a hyphen), so the echo should work correctly.
9433   # The option is referenced via a variable to avoid confusing sed.
9434   lt_compile=`echo "$ac_compile" | $SED \
9435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9437   -e 's:$: $lt_compiler_flag:'`
9438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9439   (eval "$lt_compile" 2>conftest.err)
9440   ac_status=$?
9441   cat conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   if (exit $ac_status) && test -s "$ac_outfile"; then
9444     # The compiler can only warn and ignore the option if not recognized
9445     # So say no if there are warnings other than the usual output.
9446     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9447     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9449       lt_cv_prog_compiler_rtti_exceptions=yes
9450     fi
9451   fi
9452   $RM -r conftest*
9453
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9456$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9457
9458if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9459    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9460else
9461    :
9462fi
9463
9464fi
9465
9466
9467
9468
9469
9470
9471  lt_prog_compiler_wl=
9472lt_prog_compiler_pic=
9473lt_prog_compiler_static=
9474
9475
9476  if test "$GCC" = yes; then
9477    lt_prog_compiler_wl='-Wl,'
9478    lt_prog_compiler_static='-static'
9479
9480    case $host_os in
9481      aix*)
9482      # All AIX code is PIC.
9483      if test "$host_cpu" = ia64; then
9484	# AIX 5 now supports IA64 processor
9485	lt_prog_compiler_static='-Bstatic'
9486      fi
9487      ;;
9488
9489    amigaos*)
9490      case $host_cpu in
9491      powerpc)
9492            # see comment about AmigaOS4 .so support
9493            lt_prog_compiler_pic='-fPIC'
9494        ;;
9495      m68k)
9496            # FIXME: we need at least 68020 code to build shared libraries, but
9497            # adding the `-m68020' flag to GCC prevents building anything better,
9498            # like `-m68040'.
9499            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9500        ;;
9501      esac
9502      ;;
9503
9504    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9505      # PIC is the default for these OSes.
9506      ;;
9507
9508    mingw* | cygwin* | pw32* | os2* | cegcc*)
9509      # This hack is so that the source file can tell whether it is being
9510      # built for inclusion in a dll (and should export symbols for example).
9511      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9512      # (--disable-auto-import) libraries
9513      lt_prog_compiler_pic='-DDLL_EXPORT'
9514      ;;
9515
9516    darwin* | rhapsody*)
9517      # PIC is the default on this platform
9518      # Common symbols not allowed in MH_DYLIB files
9519      lt_prog_compiler_pic='-fno-common'
9520      ;;
9521
9522    haiku*)
9523      # PIC is the default for Haiku.
9524      # The "-static" flag exists, but is broken.
9525      lt_prog_compiler_static=
9526      ;;
9527
9528    hpux*)
9529      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9530      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9531      # sets the default TLS model and affects inlining.
9532      case $host_cpu in
9533      hppa*64*)
9534	# +Z the default
9535	;;
9536      *)
9537	lt_prog_compiler_pic='-fPIC'
9538	;;
9539      esac
9540      ;;
9541
9542    interix[3-9]*)
9543      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9544      # Instead, we relocate shared libraries at runtime.
9545      ;;
9546
9547    msdosdjgpp*)
9548      # Just because we use GCC doesn't mean we suddenly get shared libraries
9549      # on systems that don't support them.
9550      lt_prog_compiler_can_build_shared=no
9551      enable_shared=no
9552      ;;
9553
9554    *nto* | *qnx*)
9555      # QNX uses GNU C++, but need to define -shared option too, otherwise
9556      # it will coredump.
9557      lt_prog_compiler_pic='-fPIC -shared'
9558      ;;
9559
9560    sysv4*MP*)
9561      if test -d /usr/nec; then
9562	lt_prog_compiler_pic=-Kconform_pic
9563      fi
9564      ;;
9565
9566    *)
9567      lt_prog_compiler_pic='-fPIC'
9568      ;;
9569    esac
9570
9571    case $cc_basename in
9572    nvcc*) # Cuda Compiler Driver 2.2
9573      lt_prog_compiler_wl='-Xlinker '
9574      if test -n "$lt_prog_compiler_pic"; then
9575        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9576      fi
9577      ;;
9578    esac
9579  else
9580    # PORTME Check for flag to pass linker flags through the system compiler.
9581    case $host_os in
9582    aix*)
9583      lt_prog_compiler_wl='-Wl,'
9584      if test "$host_cpu" = ia64; then
9585	# AIX 5 now supports IA64 processor
9586	lt_prog_compiler_static='-Bstatic'
9587      else
9588	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9589      fi
9590      ;;
9591
9592    mingw* | cygwin* | pw32* | os2* | cegcc*)
9593      # This hack is so that the source file can tell whether it is being
9594      # built for inclusion in a dll (and should export symbols for example).
9595      lt_prog_compiler_pic='-DDLL_EXPORT'
9596      ;;
9597
9598    hpux9* | hpux10* | hpux11*)
9599      lt_prog_compiler_wl='-Wl,'
9600      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9601      # not for PA HP-UX.
9602      case $host_cpu in
9603      hppa*64*|ia64*)
9604	# +Z the default
9605	;;
9606      *)
9607	lt_prog_compiler_pic='+Z'
9608	;;
9609      esac
9610      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9611      lt_prog_compiler_static='${wl}-a ${wl}archive'
9612      ;;
9613
9614    irix5* | irix6* | nonstopux*)
9615      lt_prog_compiler_wl='-Wl,'
9616      # PIC (with -KPIC) is the default.
9617      lt_prog_compiler_static='-non_shared'
9618      ;;
9619
9620    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9621      case $cc_basename in
9622      # old Intel for x86_64 which still supported -KPIC.
9623      ecc*)
9624	lt_prog_compiler_wl='-Wl,'
9625	lt_prog_compiler_pic='-KPIC'
9626	lt_prog_compiler_static='-static'
9627        ;;
9628      # icc used to be incompatible with GCC.
9629      # ICC 10 doesn't accept -KPIC any more.
9630      icc* | ifort*)
9631	lt_prog_compiler_wl='-Wl,'
9632	lt_prog_compiler_pic='-fPIC'
9633	lt_prog_compiler_static='-static'
9634        ;;
9635      # Lahey Fortran 8.1.
9636      lf95*)
9637	lt_prog_compiler_wl='-Wl,'
9638	lt_prog_compiler_pic='--shared'
9639	lt_prog_compiler_static='--static'
9640	;;
9641      nagfor*)
9642	# NAG Fortran compiler
9643	lt_prog_compiler_wl='-Wl,-Wl,,'
9644	lt_prog_compiler_pic='-PIC'
9645	lt_prog_compiler_static='-Bstatic'
9646	;;
9647      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9648        # Portland Group compilers (*not* the Pentium gcc compiler,
9649	# which looks to be a dead project)
9650	lt_prog_compiler_wl='-Wl,'
9651	lt_prog_compiler_pic='-fpic'
9652	lt_prog_compiler_static='-Bstatic'
9653        ;;
9654      ccc*)
9655        lt_prog_compiler_wl='-Wl,'
9656        # All Alpha code is PIC.
9657        lt_prog_compiler_static='-non_shared'
9658        ;;
9659      xl* | bgxl* | bgf* | mpixl*)
9660	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9661	lt_prog_compiler_wl='-Wl,'
9662	lt_prog_compiler_pic='-qpic'
9663	lt_prog_compiler_static='-qstaticlink'
9664	;;
9665      *)
9666	case `$CC -V 2>&1 | sed 5q` in
9667	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9668	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9669	  lt_prog_compiler_pic='-KPIC'
9670	  lt_prog_compiler_static='-Bstatic'
9671	  lt_prog_compiler_wl=''
9672	  ;;
9673	*Sun\ F* | *Sun*Fortran*)
9674	  lt_prog_compiler_pic='-KPIC'
9675	  lt_prog_compiler_static='-Bstatic'
9676	  lt_prog_compiler_wl='-Qoption ld '
9677	  ;;
9678	*Sun\ C*)
9679	  # Sun C 5.9
9680	  lt_prog_compiler_pic='-KPIC'
9681	  lt_prog_compiler_static='-Bstatic'
9682	  lt_prog_compiler_wl='-Wl,'
9683	  ;;
9684        *Intel*\ [CF]*Compiler*)
9685	  lt_prog_compiler_wl='-Wl,'
9686	  lt_prog_compiler_pic='-fPIC'
9687	  lt_prog_compiler_static='-static'
9688	  ;;
9689	*Portland\ Group*)
9690	  lt_prog_compiler_wl='-Wl,'
9691	  lt_prog_compiler_pic='-fpic'
9692	  lt_prog_compiler_static='-Bstatic'
9693	  ;;
9694	esac
9695	;;
9696      esac
9697      ;;
9698
9699    newsos6)
9700      lt_prog_compiler_pic='-KPIC'
9701      lt_prog_compiler_static='-Bstatic'
9702      ;;
9703
9704    *nto* | *qnx*)
9705      # QNX uses GNU C++, but need to define -shared option too, otherwise
9706      # it will coredump.
9707      lt_prog_compiler_pic='-fPIC -shared'
9708      ;;
9709
9710    osf3* | osf4* | osf5*)
9711      lt_prog_compiler_wl='-Wl,'
9712      # All OSF/1 code is PIC.
9713      lt_prog_compiler_static='-non_shared'
9714      ;;
9715
9716    rdos*)
9717      lt_prog_compiler_static='-non_shared'
9718      ;;
9719
9720    solaris*)
9721      lt_prog_compiler_pic='-KPIC'
9722      lt_prog_compiler_static='-Bstatic'
9723      case $cc_basename in
9724      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9725	lt_prog_compiler_wl='-Qoption ld ';;
9726      *)
9727	lt_prog_compiler_wl='-Wl,';;
9728      esac
9729      ;;
9730
9731    sunos4*)
9732      lt_prog_compiler_wl='-Qoption ld '
9733      lt_prog_compiler_pic='-PIC'
9734      lt_prog_compiler_static='-Bstatic'
9735      ;;
9736
9737    sysv4 | sysv4.2uw2* | sysv4.3*)
9738      lt_prog_compiler_wl='-Wl,'
9739      lt_prog_compiler_pic='-KPIC'
9740      lt_prog_compiler_static='-Bstatic'
9741      ;;
9742
9743    sysv4*MP*)
9744      if test -d /usr/nec ;then
9745	lt_prog_compiler_pic='-Kconform_pic'
9746	lt_prog_compiler_static='-Bstatic'
9747      fi
9748      ;;
9749
9750    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9751      lt_prog_compiler_wl='-Wl,'
9752      lt_prog_compiler_pic='-KPIC'
9753      lt_prog_compiler_static='-Bstatic'
9754      ;;
9755
9756    unicos*)
9757      lt_prog_compiler_wl='-Wl,'
9758      lt_prog_compiler_can_build_shared=no
9759      ;;
9760
9761    uts4*)
9762      lt_prog_compiler_pic='-pic'
9763      lt_prog_compiler_static='-Bstatic'
9764      ;;
9765
9766    *)
9767      lt_prog_compiler_can_build_shared=no
9768      ;;
9769    esac
9770  fi
9771
9772case $host_os in
9773  # For platforms which do not support PIC, -DPIC is meaningless:
9774  *djgpp*)
9775    lt_prog_compiler_pic=
9776    ;;
9777  *)
9778    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9779    ;;
9780esac
9781
9782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9783$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9784if ${lt_cv_prog_compiler_pic+:} false; then :
9785  $as_echo_n "(cached) " >&6
9786else
9787  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9788fi
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9790$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9791lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9792
9793#
9794# Check to make sure the PIC flag actually works.
9795#
9796if test -n "$lt_prog_compiler_pic"; then
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9799if ${lt_cv_prog_compiler_pic_works+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  lt_cv_prog_compiler_pic_works=no
9803   ac_outfile=conftest.$ac_objext
9804   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9805   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9806   # Insert the option either (1) after the last *FLAGS variable, or
9807   # (2) before a word containing "conftest.", or (3) at the end.
9808   # Note that $ac_compile itself does not contain backslashes and begins
9809   # with a dollar sign (not a hyphen), so the echo should work correctly.
9810   # The option is referenced via a variable to avoid confusing sed.
9811   lt_compile=`echo "$ac_compile" | $SED \
9812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9814   -e 's:$: $lt_compiler_flag:'`
9815   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9816   (eval "$lt_compile" 2>conftest.err)
9817   ac_status=$?
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   if (exit $ac_status) && test -s "$ac_outfile"; then
9821     # The compiler can only warn and ignore the option if not recognized
9822     # So say no if there are warnings other than the usual output.
9823     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9824     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9826       lt_cv_prog_compiler_pic_works=yes
9827     fi
9828   fi
9829   $RM -r conftest*
9830
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9834
9835if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9836    case $lt_prog_compiler_pic in
9837     "" | " "*) ;;
9838     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9839     esac
9840else
9841    lt_prog_compiler_pic=
9842     lt_prog_compiler_can_build_shared=no
9843fi
9844
9845fi
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857#
9858# Check to make sure the static flag actually works.
9859#
9860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9863if ${lt_cv_prog_compiler_static_works+:} false; then :
9864  $as_echo_n "(cached) " >&6
9865else
9866  lt_cv_prog_compiler_static_works=no
9867   save_LDFLAGS="$LDFLAGS"
9868   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9869   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9870   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9871     # The linker can only warn and ignore the option if not recognized
9872     # So say no if there are warnings
9873     if test -s conftest.err; then
9874       # Append any errors to the config.log.
9875       cat conftest.err 1>&5
9876       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9877       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9878       if diff conftest.exp conftest.er2 >/dev/null; then
9879         lt_cv_prog_compiler_static_works=yes
9880       fi
9881     else
9882       lt_cv_prog_compiler_static_works=yes
9883     fi
9884   fi
9885   $RM -r conftest*
9886   LDFLAGS="$save_LDFLAGS"
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9890$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9891
9892if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9893    :
9894else
9895    lt_prog_compiler_static=
9896fi
9897
9898
9899
9900
9901
9902
9903
9904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9906if ${lt_cv_prog_compiler_c_o+:} false; then :
9907  $as_echo_n "(cached) " >&6
9908else
9909  lt_cv_prog_compiler_c_o=no
9910   $RM -r conftest 2>/dev/null
9911   mkdir conftest
9912   cd conftest
9913   mkdir out
9914   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9915
9916   lt_compiler_flag="-o out/conftest2.$ac_objext"
9917   # Insert the option either (1) after the last *FLAGS variable, or
9918   # (2) before a word containing "conftest.", or (3) at the end.
9919   # Note that $ac_compile itself does not contain backslashes and begins
9920   # with a dollar sign (not a hyphen), so the echo should work correctly.
9921   lt_compile=`echo "$ac_compile" | $SED \
9922   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9924   -e 's:$: $lt_compiler_flag:'`
9925   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9926   (eval "$lt_compile" 2>out/conftest.err)
9927   ac_status=$?
9928   cat out/conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9931   then
9932     # The compiler can only warn and ignore the option if not recognized
9933     # So say no if there are warnings
9934     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9935     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9936     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9937       lt_cv_prog_compiler_c_o=yes
9938     fi
9939   fi
9940   chmod u+w . 2>&5
9941   $RM -r conftest*
9942   # SGI C++ compiler will create directory out/ii_files/ for
9943   # template instantiation
9944   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9945   $RM out/* && rmdir out
9946   cd ..
9947   $RM -r conftest
9948   $RM -r conftest*
9949
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9952$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9953
9954
9955
9956
9957
9958
9959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9961if ${lt_cv_prog_compiler_c_o+:} false; then :
9962  $as_echo_n "(cached) " >&6
9963else
9964  lt_cv_prog_compiler_c_o=no
9965   $RM -r conftest 2>/dev/null
9966   mkdir conftest
9967   cd conftest
9968   mkdir out
9969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9970
9971   lt_compiler_flag="-o out/conftest2.$ac_objext"
9972   # Insert the option either (1) after the last *FLAGS variable, or
9973   # (2) before a word containing "conftest.", or (3) at the end.
9974   # Note that $ac_compile itself does not contain backslashes and begins
9975   # with a dollar sign (not a hyphen), so the echo should work correctly.
9976   lt_compile=`echo "$ac_compile" | $SED \
9977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9979   -e 's:$: $lt_compiler_flag:'`
9980   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9981   (eval "$lt_compile" 2>out/conftest.err)
9982   ac_status=$?
9983   cat out/conftest.err >&5
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9986   then
9987     # The compiler can only warn and ignore the option if not recognized
9988     # So say no if there are warnings
9989     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9992       lt_cv_prog_compiler_c_o=yes
9993     fi
9994   fi
9995   chmod u+w . 2>&5
9996   $RM -r conftest*
9997   # SGI C++ compiler will create directory out/ii_files/ for
9998   # template instantiation
9999   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10000   $RM out/* && rmdir out
10001   cd ..
10002   $RM -r conftest
10003   $RM -r conftest*
10004
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10008
10009
10010
10011
10012hard_links="nottested"
10013if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10014  # do not overwrite the value of need_locks provided by the user
10015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10016$as_echo_n "checking if we can lock with hard links... " >&6; }
10017  hard_links=yes
10018  $RM -r conftest*
10019  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10020  touch conftest.a
10021  ln conftest.a conftest.b 2>&5 || hard_links=no
10022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10024$as_echo "$hard_links" >&6; }
10025  if test "$hard_links" = no; then
10026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10027$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10028    need_locks=warn
10029  fi
10030else
10031  need_locks=no
10032fi
10033
10034
10035
10036
10037
10038
10039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10041
10042  runpath_var=
10043  allow_undefined_flag=
10044  always_export_symbols=no
10045  archive_cmds=
10046  archive_expsym_cmds=
10047  compiler_needs_object=no
10048  enable_shared_with_static_runtimes=no
10049  export_dynamic_flag_spec=
10050  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10051  hardcode_automatic=no
10052  hardcode_direct=no
10053  hardcode_direct_absolute=no
10054  hardcode_libdir_flag_spec=
10055  hardcode_libdir_separator=
10056  hardcode_minus_L=no
10057  hardcode_shlibpath_var=unsupported
10058  inherit_rpath=no
10059  link_all_deplibs=unknown
10060  module_cmds=
10061  module_expsym_cmds=
10062  old_archive_from_new_cmds=
10063  old_archive_from_expsyms_cmds=
10064  thread_safe_flag_spec=
10065  whole_archive_flag_spec=
10066  # include_expsyms should be a list of space-separated symbols to be *always*
10067  # included in the symbol list
10068  include_expsyms=
10069  # exclude_expsyms can be an extended regexp of symbols to exclude
10070  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10071  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10072  # as well as any symbol that contains `d'.
10073  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10074  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10075  # platforms (ab)use it in PIC code, but their linkers get confused if
10076  # the symbol is explicitly referenced.  Since portable code cannot
10077  # rely on this symbol name, it's probably fine to never include it in
10078  # preloaded symbol tables.
10079  # Exclude shared library initialization/finalization symbols.
10080  extract_expsyms_cmds=
10081
10082  case $host_os in
10083  cygwin* | mingw* | pw32* | cegcc*)
10084    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10085    # When not using gcc, we currently assume that we are using
10086    # Microsoft Visual C++.
10087    if test "$GCC" != yes; then
10088      with_gnu_ld=no
10089    fi
10090    ;;
10091  interix*)
10092    # we just hope/assume this is gcc and not c89 (= MSVC++)
10093    with_gnu_ld=yes
10094    ;;
10095  openbsd*)
10096    with_gnu_ld=no
10097    ;;
10098  esac
10099
10100  ld_shlibs=yes
10101
10102  # On some targets, GNU ld is compatible enough with the native linker
10103  # that we're better off using the native interface for both.
10104  lt_use_gnu_ld_interface=no
10105  if test "$with_gnu_ld" = yes; then
10106    case $host_os in
10107      aix*)
10108	# The AIX port of GNU ld has always aspired to compatibility
10109	# with the native linker.  However, as the warning in the GNU ld
10110	# block says, versions before 2.19.5* couldn't really create working
10111	# shared libraries, regardless of the interface used.
10112	case `$LD -v 2>&1` in
10113	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10114	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10115	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10116	  *)
10117	    lt_use_gnu_ld_interface=yes
10118	    ;;
10119	esac
10120	;;
10121      *)
10122	lt_use_gnu_ld_interface=yes
10123	;;
10124    esac
10125  fi
10126
10127  if test "$lt_use_gnu_ld_interface" = yes; then
10128    # If archive_cmds runs LD, not CC, wlarc should be empty
10129    wlarc='${wl}'
10130
10131    # Set some defaults for GNU ld with shared library support. These
10132    # are reset later if shared libraries are not supported. Putting them
10133    # here allows them to be overridden if necessary.
10134    runpath_var=LD_RUN_PATH
10135    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136    export_dynamic_flag_spec='${wl}--export-dynamic'
10137    # ancient GNU ld didn't support --whole-archive et. al.
10138    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10139      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10140    else
10141      whole_archive_flag_spec=
10142    fi
10143    supports_anon_versioning=no
10144    case `$LD -v 2>&1` in
10145      *GNU\ gold*) supports_anon_versioning=yes ;;
10146      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10147      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10148      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10149      *\ 2.11.*) ;; # other 2.11 versions
10150      *) supports_anon_versioning=yes ;;
10151    esac
10152
10153    # See if GNU ld supports shared libraries.
10154    case $host_os in
10155    aix[3-9]*)
10156      # On AIX/PPC, the GNU linker is very broken
10157      if test "$host_cpu" != ia64; then
10158	ld_shlibs=no
10159	cat <<_LT_EOF 1>&2
10160
10161*** Warning: the GNU linker, at least up to release 2.19, is reported
10162*** to be unable to reliably create shared libraries on AIX.
10163*** Therefore, libtool is disabling shared libraries support.  If you
10164*** really care for shared libraries, you may want to install binutils
10165*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10166*** You will then need to restart the configuration process.
10167
10168_LT_EOF
10169      fi
10170      ;;
10171
10172    amigaos*)
10173      case $host_cpu in
10174      powerpc)
10175            # see comment about AmigaOS4 .so support
10176            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177            archive_expsym_cmds=''
10178        ;;
10179      m68k)
10180            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)'
10181            hardcode_libdir_flag_spec='-L$libdir'
10182            hardcode_minus_L=yes
10183        ;;
10184      esac
10185      ;;
10186
10187    beos*)
10188      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189	allow_undefined_flag=unsupported
10190	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10191	# support --undefined.  This deserves some investigation.  FIXME
10192	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193      else
10194	ld_shlibs=no
10195      fi
10196      ;;
10197
10198    cygwin* | mingw* | pw32* | cegcc*)
10199      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10200      # as there is no search path for DLLs.
10201      hardcode_libdir_flag_spec='-L$libdir'
10202      export_dynamic_flag_spec='${wl}--export-all-symbols'
10203      allow_undefined_flag=unsupported
10204      always_export_symbols=no
10205      enable_shared_with_static_runtimes=yes
10206      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10207      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10208
10209      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10210        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10211	# If the export-symbols file already is a .def file (1st line
10212	# is EXPORTS), use it as is; otherwise, prepend...
10213	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10214	  cp $export_symbols $output_objdir/$soname.def;
10215	else
10216	  echo EXPORTS > $output_objdir/$soname.def;
10217	  cat $export_symbols >> $output_objdir/$soname.def;
10218	fi~
10219	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10220      else
10221	ld_shlibs=no
10222      fi
10223      ;;
10224
10225    haiku*)
10226      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227      link_all_deplibs=yes
10228      ;;
10229
10230    interix[3-9]*)
10231      hardcode_direct=no
10232      hardcode_shlibpath_var=no
10233      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234      export_dynamic_flag_spec='${wl}-E'
10235      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10236      # Instead, shared libraries are loaded at an image base (0x10000000 by
10237      # default) and relocated if they conflict, which is a slow very memory
10238      # consuming and fragmenting process.  To avoid this, we pick a random,
10239      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10240      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10241      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10242      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'
10243      ;;
10244
10245    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10246      tmp_diet=no
10247      if test "$host_os" = linux-dietlibc; then
10248	case $cc_basename in
10249	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10250	esac
10251      fi
10252      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10253	 && test "$tmp_diet" = no
10254      then
10255	tmp_addflag=' $pic_flag'
10256	tmp_sharedflag='-shared'
10257	case $cc_basename,$host_cpu in
10258        pgcc*)				# Portland Group C compiler
10259	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10260	  tmp_addflag=' $pic_flag'
10261	  ;;
10262	pgf77* | pgf90* | pgf95* | pgfortran*)
10263					# Portland Group f77 and f90 compilers
10264	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10265	  tmp_addflag=' $pic_flag -Mnomain' ;;
10266	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10267	  tmp_addflag=' -i_dynamic' ;;
10268	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10269	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10270	ifc* | ifort*)			# Intel Fortran compiler
10271	  tmp_addflag=' -nofor_main' ;;
10272	lf95*)				# Lahey Fortran 8.1
10273	  whole_archive_flag_spec=
10274	  tmp_sharedflag='--shared' ;;
10275	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10276	  tmp_sharedflag='-qmkshrobj'
10277	  tmp_addflag= ;;
10278	nvcc*)	# Cuda Compiler Driver 2.2
10279	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10280	  compiler_needs_object=yes
10281	  ;;
10282	esac
10283	case `$CC -V 2>&1 | sed 5q` in
10284	*Sun\ C*)			# Sun C 5.9
10285	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10286	  compiler_needs_object=yes
10287	  tmp_sharedflag='-G' ;;
10288	*Sun\ F*)			# Sun Fortran 8.3
10289	  tmp_sharedflag='-G' ;;
10290	esac
10291	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292
10293        if test "x$supports_anon_versioning" = xyes; then
10294          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10295	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10296	    echo "local: *; };" >> $output_objdir/$libname.ver~
10297	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10298        fi
10299
10300	case $cc_basename in
10301	xlf* | bgf* | bgxlf* | mpixlf*)
10302	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10303	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10304	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10306	  if test "x$supports_anon_versioning" = xyes; then
10307	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10308	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10309	      echo "local: *; };" >> $output_objdir/$libname.ver~
10310	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10311	  fi
10312	  ;;
10313	esac
10314      else
10315        ld_shlibs=no
10316      fi
10317      ;;
10318
10319    netbsd*)
10320      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10321	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10322	wlarc=
10323      else
10324	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10326      fi
10327      ;;
10328
10329    solaris*)
10330      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10331	ld_shlibs=no
10332	cat <<_LT_EOF 1>&2
10333
10334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10335*** create shared libraries on Solaris systems.  Therefore, libtool
10336*** is disabling shared libraries support.  We urge you to upgrade GNU
10337*** binutils to release 2.9.1 or newer.  Another option is to modify
10338*** your PATH or compiler configuration so that the native linker is
10339*** used, and then restart.
10340
10341_LT_EOF
10342      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10343	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10345      else
10346	ld_shlibs=no
10347      fi
10348      ;;
10349
10350    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10351      case `$LD -v 2>&1` in
10352        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10353	ld_shlibs=no
10354	cat <<_LT_EOF 1>&2
10355
10356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10357*** reliably create shared libraries on SCO systems.  Therefore, libtool
10358*** is disabling shared libraries support.  We urge you to upgrade GNU
10359*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10360*** your PATH or compiler configuration so that the native linker is
10361*** used, and then restart.
10362
10363_LT_EOF
10364	;;
10365	*)
10366	  # For security reasons, it is highly recommended that you always
10367	  # use absolute paths for naming shared libraries, and exclude the
10368	  # DT_RUNPATH tag from executables and libraries.  But doing so
10369	  # requires that you compile everything twice, which is a pain.
10370	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10371	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10372	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10374	  else
10375	    ld_shlibs=no
10376	  fi
10377	;;
10378      esac
10379      ;;
10380
10381    sunos4*)
10382      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10383      wlarc=
10384      hardcode_direct=yes
10385      hardcode_shlibpath_var=no
10386      ;;
10387
10388    *)
10389      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10390	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10391	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10392      else
10393	ld_shlibs=no
10394      fi
10395      ;;
10396    esac
10397
10398    if test "$ld_shlibs" = no; then
10399      runpath_var=
10400      hardcode_libdir_flag_spec=
10401      export_dynamic_flag_spec=
10402      whole_archive_flag_spec=
10403    fi
10404  else
10405    # PORTME fill in a description of your system's linker (not GNU ld)
10406    case $host_os in
10407    aix3*)
10408      allow_undefined_flag=unsupported
10409      always_export_symbols=yes
10410      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'
10411      # Note: this linker hardcodes the directories in LIBPATH if there
10412      # are no directories specified by -L.
10413      hardcode_minus_L=yes
10414      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10415	# Neither direct hardcoding nor static linking is supported with a
10416	# broken collect2.
10417	hardcode_direct=unsupported
10418      fi
10419      ;;
10420
10421    aix[4-9]*)
10422      if test "$host_cpu" = ia64; then
10423	# On IA64, the linker does run time linking by default, so we don't
10424	# have to do anything special.
10425	aix_use_runtimelinking=no
10426	exp_sym_flag='-Bexport'
10427	no_entry_flag=""
10428      else
10429	# If we're using GNU nm, then we don't want the "-C" option.
10430	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10431	# Also, AIX nm treats weak defined symbols like other global
10432	# defined symbols, whereas GNU nm marks them as "W".
10433	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10434	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10435	else
10436	  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'
10437	fi
10438	aix_use_runtimelinking=no
10439
10440	# Test if we are trying to use run time linking or normal
10441	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10442	# need to do runtime linking.
10443	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10444	  for ld_flag in $LDFLAGS; do
10445	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10446	    aix_use_runtimelinking=yes
10447	    break
10448	  fi
10449	  done
10450	  ;;
10451	esac
10452
10453	exp_sym_flag='-bexport'
10454	no_entry_flag='-bnoentry'
10455      fi
10456
10457      # When large executables or shared objects are built, AIX ld can
10458      # have problems creating the table of contents.  If linking a library
10459      # or program results in "error TOC overflow" add -mminimal-toc to
10460      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10461      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10462
10463      archive_cmds=''
10464      hardcode_direct=yes
10465      hardcode_direct_absolute=yes
10466      hardcode_libdir_separator=':'
10467      link_all_deplibs=yes
10468      file_list_spec='${wl}-f,'
10469
10470      if test "$GCC" = yes; then
10471	case $host_os in aix4.[012]|aix4.[012].*)
10472	# We only want to do this on AIX 4.2 and lower, the check
10473	# below for broken collect2 doesn't work under 4.3+
10474	  collect2name=`${CC} -print-prog-name=collect2`
10475	  if test -f "$collect2name" &&
10476	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10477	  then
10478	  # We have reworked collect2
10479	  :
10480	  else
10481	  # We have old collect2
10482	  hardcode_direct=unsupported
10483	  # It fails to find uninstalled libraries when the uninstalled
10484	  # path is not listed in the libpath.  Setting hardcode_minus_L
10485	  # to unsupported forces relinking
10486	  hardcode_minus_L=yes
10487	  hardcode_libdir_flag_spec='-L$libdir'
10488	  hardcode_libdir_separator=
10489	  fi
10490	  ;;
10491	esac
10492	shared_flag='-shared'
10493	if test "$aix_use_runtimelinking" = yes; then
10494	  shared_flag="$shared_flag "'${wl}-G'
10495	fi
10496      else
10497	# not using gcc
10498	if test "$host_cpu" = ia64; then
10499	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500	# chokes on -Wl,-G. The following line is correct:
10501	  shared_flag='-G'
10502	else
10503	  if test "$aix_use_runtimelinking" = yes; then
10504	    shared_flag='${wl}-G'
10505	  else
10506	    shared_flag='${wl}-bM:SRE'
10507	  fi
10508	fi
10509      fi
10510
10511      export_dynamic_flag_spec='${wl}-bexpall'
10512      # It seems that -bexpall does not export symbols beginning with
10513      # underscore (_), so it is better to generate a list of symbols to export.
10514      always_export_symbols=yes
10515      if test "$aix_use_runtimelinking" = yes; then
10516	# Warning - without using the other runtime loading flags (-brtl),
10517	# -berok will link without error, but may produce a broken library.
10518	allow_undefined_flag='-berok'
10519        # Determine the default libpath from the value encoded in an
10520        # empty executable.
10521        if test "${lt_cv_aix_libpath+set}" = set; then
10522  aix_libpath=$lt_cv_aix_libpath
10523else
10524  if ${lt_cv_aix_libpath_+:} false; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h.  */
10529
10530int
10531main ()
10532{
10533
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538if ac_fn_c_try_link "$LINENO"; then :
10539
10540  lt_aix_libpath_sed='
10541      /Import File Strings/,/^$/ {
10542	  /^0/ {
10543	      s/^0  *\([^ ]*\) *$/\1/
10544	      p
10545	  }
10546      }'
10547  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548  # Check for a 64-bit object if we didn't find anything.
10549  if test -z "$lt_cv_aix_libpath_"; then
10550    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551  fi
10552fi
10553rm -f core conftest.err conftest.$ac_objext \
10554    conftest$ac_exeext conftest.$ac_ext
10555  if test -z "$lt_cv_aix_libpath_"; then
10556    lt_cv_aix_libpath_="/usr/lib:/lib"
10557  fi
10558
10559fi
10560
10561  aix_libpath=$lt_cv_aix_libpath_
10562fi
10563
10564        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10565        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10566      else
10567	if test "$host_cpu" = ia64; then
10568	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10569	  allow_undefined_flag="-z nodefs"
10570	  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"
10571	else
10572	 # Determine the default libpath from the value encoded in an
10573	 # empty executable.
10574	 if test "${lt_cv_aix_libpath+set}" = set; then
10575  aix_libpath=$lt_cv_aix_libpath
10576else
10577  if ${lt_cv_aix_libpath_+:} false; then :
10578  $as_echo_n "(cached) " >&6
10579else
10580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581/* end confdefs.h.  */
10582
10583int
10584main ()
10585{
10586
10587  ;
10588  return 0;
10589}
10590_ACEOF
10591if ac_fn_c_try_link "$LINENO"; then :
10592
10593  lt_aix_libpath_sed='
10594      /Import File Strings/,/^$/ {
10595	  /^0/ {
10596	      s/^0  *\([^ ]*\) *$/\1/
10597	      p
10598	  }
10599      }'
10600  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10601  # Check for a 64-bit object if we didn't find anything.
10602  if test -z "$lt_cv_aix_libpath_"; then
10603    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10604  fi
10605fi
10606rm -f core conftest.err conftest.$ac_objext \
10607    conftest$ac_exeext conftest.$ac_ext
10608  if test -z "$lt_cv_aix_libpath_"; then
10609    lt_cv_aix_libpath_="/usr/lib:/lib"
10610  fi
10611
10612fi
10613
10614  aix_libpath=$lt_cv_aix_libpath_
10615fi
10616
10617	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10618	  # Warning - without using the other run time loading flags,
10619	  # -berok will link without error, but may produce a broken library.
10620	  no_undefined_flag=' ${wl}-bernotok'
10621	  allow_undefined_flag=' ${wl}-berok'
10622	  if test "$with_gnu_ld" = yes; then
10623	    # We only use this code for GNU lds that support --whole-archive.
10624	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10625	  else
10626	    # Exported symbols can be pulled into shared objects from archives
10627	    whole_archive_flag_spec='$convenience'
10628	  fi
10629	  archive_cmds_need_lc=yes
10630	  # This is similar to how AIX traditionally builds its shared libraries.
10631	  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'
10632	fi
10633      fi
10634      ;;
10635
10636    amigaos*)
10637      case $host_cpu in
10638      powerpc)
10639            # see comment about AmigaOS4 .so support
10640            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10641            archive_expsym_cmds=''
10642        ;;
10643      m68k)
10644            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)'
10645            hardcode_libdir_flag_spec='-L$libdir'
10646            hardcode_minus_L=yes
10647        ;;
10648      esac
10649      ;;
10650
10651    bsdi[45]*)
10652      export_dynamic_flag_spec=-rdynamic
10653      ;;
10654
10655    cygwin* | mingw* | pw32* | cegcc*)
10656      # When not using gcc, we currently assume that we are using
10657      # Microsoft Visual C++.
10658      # hardcode_libdir_flag_spec is actually meaningless, as there is
10659      # no search path for DLLs.
10660      case $cc_basename in
10661      cl*)
10662	# Native MSVC
10663	hardcode_libdir_flag_spec=' '
10664	allow_undefined_flag=unsupported
10665	always_export_symbols=yes
10666	file_list_spec='@'
10667	# Tell ltmain to make .lib files, not .a files.
10668	libext=lib
10669	# Tell ltmain to make .dll files, not .so files.
10670	shrext_cmds=".dll"
10671	# FIXME: Setting linknames here is a bad hack.
10672	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10673	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10674	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10675	  else
10676	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10677	  fi~
10678	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10679	  linknames='
10680	# The linker will not automatically build a static lib if we build a DLL.
10681	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10682	enable_shared_with_static_runtimes=yes
10683	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10684	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10685	# Don't use ranlib
10686	old_postinstall_cmds='chmod 644 $oldlib'
10687	postlink_cmds='lt_outputfile="@OUTPUT@"~
10688	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10689	  case $lt_outputfile in
10690	    *.exe|*.EXE) ;;
10691	    *)
10692	      lt_outputfile="$lt_outputfile.exe"
10693	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10694	      ;;
10695	  esac~
10696	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10697	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10698	    $RM "$lt_outputfile.manifest";
10699	  fi'
10700	;;
10701      *)
10702	# Assume MSVC wrapper
10703	hardcode_libdir_flag_spec=' '
10704	allow_undefined_flag=unsupported
10705	# Tell ltmain to make .lib files, not .a files.
10706	libext=lib
10707	# Tell ltmain to make .dll files, not .so files.
10708	shrext_cmds=".dll"
10709	# FIXME: Setting linknames here is a bad hack.
10710	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10711	# The linker will automatically build a .lib file if we build a DLL.
10712	old_archive_from_new_cmds='true'
10713	# FIXME: Should let the user specify the lib program.
10714	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10715	enable_shared_with_static_runtimes=yes
10716	;;
10717      esac
10718      ;;
10719
10720    darwin* | rhapsody*)
10721
10722
10723  archive_cmds_need_lc=no
10724  hardcode_direct=no
10725  hardcode_automatic=yes
10726  hardcode_shlibpath_var=unsupported
10727  if test "$lt_cv_ld_force_load" = "yes"; then
10728    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10729
10730  else
10731    whole_archive_flag_spec=''
10732  fi
10733  link_all_deplibs=yes
10734  allow_undefined_flag="$_lt_dar_allow_undefined"
10735  case $cc_basename in
10736     ifort*) _lt_dar_can_shared=yes ;;
10737     *) _lt_dar_can_shared=$GCC ;;
10738  esac
10739  if test "$_lt_dar_can_shared" = "yes"; then
10740    output_verbose_link_cmd=func_echo_all
10741    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10742    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10743    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}"
10744    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}"
10745
10746  else
10747  ld_shlibs=no
10748  fi
10749
10750      ;;
10751
10752    dgux*)
10753      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754      hardcode_libdir_flag_spec='-L$libdir'
10755      hardcode_shlibpath_var=no
10756      ;;
10757
10758    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10759    # support.  Future versions do this automatically, but an explicit c++rt0.o
10760    # does not break anything, and helps significantly (at the cost of a little
10761    # extra space).
10762    freebsd2.2*)
10763      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10764      hardcode_libdir_flag_spec='-R$libdir'
10765      hardcode_direct=yes
10766      hardcode_shlibpath_var=no
10767      ;;
10768
10769    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10770    freebsd2.*)
10771      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10772      hardcode_direct=yes
10773      hardcode_minus_L=yes
10774      hardcode_shlibpath_var=no
10775      ;;
10776
10777    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10778    freebsd* | dragonfly*)
10779      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10780      hardcode_libdir_flag_spec='-R$libdir'
10781      hardcode_direct=yes
10782      hardcode_shlibpath_var=no
10783      ;;
10784
10785    hpux9*)
10786      if test "$GCC" = yes; then
10787	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10788      else
10789	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'
10790      fi
10791      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10792      hardcode_libdir_separator=:
10793      hardcode_direct=yes
10794
10795      # hardcode_minus_L: Not really in the search PATH,
10796      # but as the default location of the library.
10797      hardcode_minus_L=yes
10798      export_dynamic_flag_spec='${wl}-E'
10799      ;;
10800
10801    hpux10*)
10802      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10803	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10804      else
10805	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10806      fi
10807      if test "$with_gnu_ld" = no; then
10808	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10809	hardcode_libdir_separator=:
10810	hardcode_direct=yes
10811	hardcode_direct_absolute=yes
10812	export_dynamic_flag_spec='${wl}-E'
10813	# hardcode_minus_L: Not really in the search PATH,
10814	# but as the default location of the library.
10815	hardcode_minus_L=yes
10816      fi
10817      ;;
10818
10819    hpux11*)
10820      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10821	case $host_cpu in
10822	hppa*64*)
10823	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10824	  ;;
10825	ia64*)
10826	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10827	  ;;
10828	*)
10829	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10830	  ;;
10831	esac
10832      else
10833	case $host_cpu in
10834	hppa*64*)
10835	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10836	  ;;
10837	ia64*)
10838	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10839	  ;;
10840	*)
10841
10842	  # Older versions of the 11.00 compiler do not understand -b yet
10843	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10844	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10845$as_echo_n "checking if $CC understands -b... " >&6; }
10846if ${lt_cv_prog_compiler__b+:} false; then :
10847  $as_echo_n "(cached) " >&6
10848else
10849  lt_cv_prog_compiler__b=no
10850   save_LDFLAGS="$LDFLAGS"
10851   LDFLAGS="$LDFLAGS -b"
10852   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10853   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10854     # The linker can only warn and ignore the option if not recognized
10855     # So say no if there are warnings
10856     if test -s conftest.err; then
10857       # Append any errors to the config.log.
10858       cat conftest.err 1>&5
10859       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10860       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10861       if diff conftest.exp conftest.er2 >/dev/null; then
10862         lt_cv_prog_compiler__b=yes
10863       fi
10864     else
10865       lt_cv_prog_compiler__b=yes
10866     fi
10867   fi
10868   $RM -r conftest*
10869   LDFLAGS="$save_LDFLAGS"
10870
10871fi
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10873$as_echo "$lt_cv_prog_compiler__b" >&6; }
10874
10875if test x"$lt_cv_prog_compiler__b" = xyes; then
10876    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10877else
10878    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10879fi
10880
10881	  ;;
10882	esac
10883      fi
10884      if test "$with_gnu_ld" = no; then
10885	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10886	hardcode_libdir_separator=:
10887
10888	case $host_cpu in
10889	hppa*64*|ia64*)
10890	  hardcode_direct=no
10891	  hardcode_shlibpath_var=no
10892	  ;;
10893	*)
10894	  hardcode_direct=yes
10895	  hardcode_direct_absolute=yes
10896	  export_dynamic_flag_spec='${wl}-E'
10897
10898	  # hardcode_minus_L: Not really in the search PATH,
10899	  # but as the default location of the library.
10900	  hardcode_minus_L=yes
10901	  ;;
10902	esac
10903      fi
10904      ;;
10905
10906    irix5* | irix6* | nonstopux*)
10907      if test "$GCC" = yes; then
10908	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10909	# Try to use the -exported_symbol ld option, if it does not
10910	# work, assume that -exports_file does not work either and
10911	# implicitly export all symbols.
10912	# This should be the same for all languages, so no per-tag cache variable.
10913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10914$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10915if ${lt_cv_irix_exported_symbol+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  save_LDFLAGS="$LDFLAGS"
10919	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10920	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922int foo (void) { return 0; }
10923_ACEOF
10924if ac_fn_c_try_link "$LINENO"; then :
10925  lt_cv_irix_exported_symbol=yes
10926else
10927  lt_cv_irix_exported_symbol=no
10928fi
10929rm -f core conftest.err conftest.$ac_objext \
10930    conftest$ac_exeext conftest.$ac_ext
10931           LDFLAGS="$save_LDFLAGS"
10932fi
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10934$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10935	if test "$lt_cv_irix_exported_symbol" = yes; then
10936          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10937	fi
10938      else
10939	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10940	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10941      fi
10942      archive_cmds_need_lc='no'
10943      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10944      hardcode_libdir_separator=:
10945      inherit_rpath=yes
10946      link_all_deplibs=yes
10947      ;;
10948
10949    netbsd*)
10950      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10951	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10952      else
10953	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10954      fi
10955      hardcode_libdir_flag_spec='-R$libdir'
10956      hardcode_direct=yes
10957      hardcode_shlibpath_var=no
10958      ;;
10959
10960    newsos6)
10961      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962      hardcode_direct=yes
10963      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10964      hardcode_libdir_separator=:
10965      hardcode_shlibpath_var=no
10966      ;;
10967
10968    *nto* | *qnx*)
10969      ;;
10970
10971    openbsd*)
10972      if test -f /usr/libexec/ld.so; then
10973	hardcode_direct=yes
10974	hardcode_shlibpath_var=no
10975	hardcode_direct_absolute=yes
10976	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10977	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10978	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10979	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10980	  export_dynamic_flag_spec='${wl}-E'
10981	else
10982	  case $host_os in
10983	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10984	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10985	     hardcode_libdir_flag_spec='-R$libdir'
10986	     ;;
10987	   *)
10988	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10989	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10990	     ;;
10991	  esac
10992	fi
10993      else
10994	ld_shlibs=no
10995      fi
10996      ;;
10997
10998    os2*)
10999      hardcode_libdir_flag_spec='-L$libdir'
11000      hardcode_minus_L=yes
11001      allow_undefined_flag=unsupported
11002      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'
11003      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11004      ;;
11005
11006    osf3*)
11007      if test "$GCC" = yes; then
11008	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11009	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11010      else
11011	allow_undefined_flag=' -expect_unresolved \*'
11012	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11013      fi
11014      archive_cmds_need_lc='no'
11015      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11016      hardcode_libdir_separator=:
11017      ;;
11018
11019    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11020      if test "$GCC" = yes; then
11021	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11022	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11023	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11024      else
11025	allow_undefined_flag=' -expect_unresolved \*'
11026	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11027	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~
11028	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11029
11030	# Both c and cxx compiler support -rpath directly
11031	hardcode_libdir_flag_spec='-rpath $libdir'
11032      fi
11033      archive_cmds_need_lc='no'
11034      hardcode_libdir_separator=:
11035      ;;
11036
11037    solaris*)
11038      no_undefined_flag=' -z defs'
11039      if test "$GCC" = yes; then
11040	wlarc='${wl}'
11041	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11043	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11044      else
11045	case `$CC -V 2>&1` in
11046	*"Compilers 5.0"*)
11047	  wlarc=''
11048	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11049	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11050	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11051	  ;;
11052	*)
11053	  wlarc='${wl}'
11054	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11055	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11056	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11057	  ;;
11058	esac
11059      fi
11060      hardcode_libdir_flag_spec='-R$libdir'
11061      hardcode_shlibpath_var=no
11062      case $host_os in
11063      solaris2.[0-5] | solaris2.[0-5].*) ;;
11064      *)
11065	# The compiler driver will combine and reorder linker options,
11066	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11067	# but is careful enough not to reorder.
11068	# Supported since Solaris 2.6 (maybe 2.5.1?)
11069	if test "$GCC" = yes; then
11070	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11071	else
11072	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11073	fi
11074	;;
11075      esac
11076      link_all_deplibs=yes
11077      ;;
11078
11079    sunos4*)
11080      if test "x$host_vendor" = xsequent; then
11081	# Use $CC to link under sequent, because it throws in some extra .o
11082	# files that make .init and .fini sections work.
11083	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11084      else
11085	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11086      fi
11087      hardcode_libdir_flag_spec='-L$libdir'
11088      hardcode_direct=yes
11089      hardcode_minus_L=yes
11090      hardcode_shlibpath_var=no
11091      ;;
11092
11093    sysv4)
11094      case $host_vendor in
11095	sni)
11096	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11097	  hardcode_direct=yes # is this really true???
11098	;;
11099	siemens)
11100	  ## LD is ld it makes a PLAMLIB
11101	  ## CC just makes a GrossModule.
11102	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11103	  reload_cmds='$CC -r -o $output$reload_objs'
11104	  hardcode_direct=no
11105        ;;
11106	motorola)
11107	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11108	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11109	;;
11110      esac
11111      runpath_var='LD_RUN_PATH'
11112      hardcode_shlibpath_var=no
11113      ;;
11114
11115    sysv4.3*)
11116      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117      hardcode_shlibpath_var=no
11118      export_dynamic_flag_spec='-Bexport'
11119      ;;
11120
11121    sysv4*MP*)
11122      if test -d /usr/nec; then
11123	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11124	hardcode_shlibpath_var=no
11125	runpath_var=LD_RUN_PATH
11126	hardcode_runpath_var=yes
11127	ld_shlibs=yes
11128      fi
11129      ;;
11130
11131    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11132      no_undefined_flag='${wl}-z,text'
11133      archive_cmds_need_lc=no
11134      hardcode_shlibpath_var=no
11135      runpath_var='LD_RUN_PATH'
11136
11137      if test "$GCC" = yes; then
11138	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11139	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140      else
11141	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11142	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11143      fi
11144      ;;
11145
11146    sysv5* | sco3.2v5* | sco5v6*)
11147      # Note: We can NOT use -z defs as we might desire, because we do not
11148      # link with -lc, and that would cause any symbols used from libc to
11149      # always be unresolved, which means just about no library would
11150      # ever link correctly.  If we're not using GNU ld we use -z text
11151      # though, which does catch some bad symbols but isn't as heavy-handed
11152      # as -z defs.
11153      no_undefined_flag='${wl}-z,text'
11154      allow_undefined_flag='${wl}-z,nodefs'
11155      archive_cmds_need_lc=no
11156      hardcode_shlibpath_var=no
11157      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11158      hardcode_libdir_separator=':'
11159      link_all_deplibs=yes
11160      export_dynamic_flag_spec='${wl}-Bexport'
11161      runpath_var='LD_RUN_PATH'
11162
11163      if test "$GCC" = yes; then
11164	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11165	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11166      else
11167	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11168	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169      fi
11170      ;;
11171
11172    uts4*)
11173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174      hardcode_libdir_flag_spec='-L$libdir'
11175      hardcode_shlibpath_var=no
11176      ;;
11177
11178    *)
11179      ld_shlibs=no
11180      ;;
11181    esac
11182
11183    if test x$host_vendor = xsni; then
11184      case $host in
11185      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11186	export_dynamic_flag_spec='${wl}-Blargedynsym'
11187	;;
11188      esac
11189    fi
11190  fi
11191
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11193$as_echo "$ld_shlibs" >&6; }
11194test "$ld_shlibs" = no && can_build_shared=no
11195
11196with_gnu_ld=$with_gnu_ld
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212#
11213# Do we need to explicitly link libc?
11214#
11215case "x$archive_cmds_need_lc" in
11216x|xyes)
11217  # Assume -lc should be added
11218  archive_cmds_need_lc=yes
11219
11220  if test "$enable_shared" = yes && test "$GCC" = yes; then
11221    case $archive_cmds in
11222    *'~'*)
11223      # FIXME: we may have to deal with multi-command sequences.
11224      ;;
11225    '$CC '*)
11226      # Test whether the compiler implicitly links with -lc since on some
11227      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11228      # to ld, don't add -lc before -lgcc.
11229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11230$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11231if ${lt_cv_archive_cmds_need_lc+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  $RM -r conftest*
11235	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11236
11237	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11238  (eval $ac_compile) 2>&5
11239  ac_status=$?
11240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11241  test $ac_status = 0; } 2>conftest.err; then
11242	  soname=conftest
11243	  lib=conftest
11244	  libobjs=conftest.$ac_objext
11245	  deplibs=
11246	  wl=$lt_prog_compiler_wl
11247	  pic_flag=$lt_prog_compiler_pic
11248	  compiler_flags=-v
11249	  linker_flags=-v
11250	  verstring=
11251	  output_objdir=.
11252	  libname=conftest
11253	  lt_save_allow_undefined_flag=$allow_undefined_flag
11254	  allow_undefined_flag=
11255	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11256  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11257  ac_status=$?
11258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11259  test $ac_status = 0; }
11260	  then
11261	    lt_cv_archive_cmds_need_lc=no
11262	  else
11263	    lt_cv_archive_cmds_need_lc=yes
11264	  fi
11265	  allow_undefined_flag=$lt_save_allow_undefined_flag
11266	else
11267	  cat conftest.err 1>&5
11268	fi
11269	$RM -r conftest*
11270
11271fi
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11273$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11274      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11275      ;;
11276    esac
11277  fi
11278  ;;
11279esac
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11433$as_echo_n "checking dynamic linker characteristics... " >&6; }
11434
11435if test "$GCC" = yes; then
11436  case $host_os in
11437    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11438    *) lt_awk_arg="/^libraries:/" ;;
11439  esac
11440  case $host_os in
11441    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11442    *) lt_sed_strip_eq="s,=/,/,g" ;;
11443  esac
11444  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11445  case $lt_search_path_spec in
11446  *\;*)
11447    # if the path contains ";" then we assume it to be the separator
11448    # otherwise default to the standard path separator (i.e. ":") - it is
11449    # assumed that no part of a normal pathname contains ";" but that should
11450    # okay in the real world where ";" in dirpaths is itself problematic.
11451    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11452    ;;
11453  *)
11454    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11455    ;;
11456  esac
11457  # Ok, now we have the path, separated by spaces, we can step through it
11458  # and add multilib dir if necessary.
11459  lt_tmp_lt_search_path_spec=
11460  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11461  for lt_sys_path in $lt_search_path_spec; do
11462    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11463      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11464    else
11465      test -d "$lt_sys_path" && \
11466	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11467    fi
11468  done
11469  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11470BEGIN {RS=" "; FS="/|\n";} {
11471  lt_foo="";
11472  lt_count=0;
11473  for (lt_i = NF; lt_i > 0; lt_i--) {
11474    if ($lt_i != "" && $lt_i != ".") {
11475      if ($lt_i == "..") {
11476        lt_count++;
11477      } else {
11478        if (lt_count == 0) {
11479          lt_foo="/" $lt_i lt_foo;
11480        } else {
11481          lt_count--;
11482        }
11483      }
11484    }
11485  }
11486  if (lt_foo != "") { lt_freq[lt_foo]++; }
11487  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11488}'`
11489  # AWK program above erroneously prepends '/' to C:/dos/paths
11490  # for these hosts.
11491  case $host_os in
11492    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11493      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11494  esac
11495  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11496else
11497  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11498fi
11499library_names_spec=
11500libname_spec='lib$name'
11501soname_spec=
11502shrext_cmds=".so"
11503postinstall_cmds=
11504postuninstall_cmds=
11505finish_cmds=
11506finish_eval=
11507shlibpath_var=
11508shlibpath_overrides_runpath=unknown
11509version_type=none
11510dynamic_linker="$host_os ld.so"
11511sys_lib_dlsearch_path_spec="/lib /usr/lib"
11512need_lib_prefix=unknown
11513hardcode_into_libs=no
11514
11515# when you set need_version to no, make sure it does not cause -set_version
11516# flags to be left without arguments
11517need_version=unknown
11518
11519case $host_os in
11520aix3*)
11521  version_type=linux # correct to gnu/linux during the next big refactor
11522  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11523  shlibpath_var=LIBPATH
11524
11525  # AIX 3 has no versioning support, so we append a major version to the name.
11526  soname_spec='${libname}${release}${shared_ext}$major'
11527  ;;
11528
11529aix[4-9]*)
11530  version_type=linux # correct to gnu/linux during the next big refactor
11531  need_lib_prefix=no
11532  need_version=no
11533  hardcode_into_libs=yes
11534  if test "$host_cpu" = ia64; then
11535    # AIX 5 supports IA64
11536    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11537    shlibpath_var=LD_LIBRARY_PATH
11538  else
11539    # With GCC up to 2.95.x, collect2 would create an import file
11540    # for dependence libraries.  The import file would start with
11541    # the line `#! .'.  This would cause the generated library to
11542    # depend on `.', always an invalid library.  This was fixed in
11543    # development snapshots of GCC prior to 3.0.
11544    case $host_os in
11545      aix4 | aix4.[01] | aix4.[01].*)
11546      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11547	   echo ' yes '
11548	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11549	:
11550      else
11551	can_build_shared=no
11552      fi
11553      ;;
11554    esac
11555    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11556    # soname into executable. Probably we can add versioning support to
11557    # collect2, so additional links can be useful in future.
11558    if test "$aix_use_runtimelinking" = yes; then
11559      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11560      # instead of lib<name>.a to let people know that these are not
11561      # typical AIX shared libraries.
11562      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563    else
11564      # We preserve .a as extension for shared libraries through AIX4.2
11565      # and later when we are not doing run time linking.
11566      library_names_spec='${libname}${release}.a $libname.a'
11567      soname_spec='${libname}${release}${shared_ext}$major'
11568    fi
11569    shlibpath_var=LIBPATH
11570  fi
11571  ;;
11572
11573amigaos*)
11574  case $host_cpu in
11575  powerpc)
11576    # Since July 2007 AmigaOS4 officially supports .so libraries.
11577    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11578    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579    ;;
11580  m68k)
11581    library_names_spec='$libname.ixlibrary $libname.a'
11582    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11583    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11584    ;;
11585  esac
11586  ;;
11587
11588beos*)
11589  library_names_spec='${libname}${shared_ext}'
11590  dynamic_linker="$host_os ld.so"
11591  shlibpath_var=LIBRARY_PATH
11592  ;;
11593
11594bsdi[45]*)
11595  version_type=linux # correct to gnu/linux during the next big refactor
11596  need_version=no
11597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598  soname_spec='${libname}${release}${shared_ext}$major'
11599  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11600  shlibpath_var=LD_LIBRARY_PATH
11601  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11602  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11603  # the default ld.so.conf also contains /usr/contrib/lib and
11604  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11605  # libtool to hard-code these into programs
11606  ;;
11607
11608cygwin* | mingw* | pw32* | cegcc*)
11609  version_type=windows
11610  shrext_cmds=".dll"
11611  need_version=no
11612  need_lib_prefix=no
11613
11614  case $GCC,$cc_basename in
11615  yes,*)
11616    # gcc
11617    library_names_spec='$libname.dll.a'
11618    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11619    postinstall_cmds='base_file=`basename \${file}`~
11620      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11621      dldir=$destdir/`dirname \$dlpath`~
11622      test -d \$dldir || mkdir -p \$dldir~
11623      $install_prog $dir/$dlname \$dldir/$dlname~
11624      chmod a+x \$dldir/$dlname~
11625      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11626        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11627      fi'
11628    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11629      dlpath=$dir/\$dldll~
11630       $RM \$dlpath'
11631    shlibpath_overrides_runpath=yes
11632
11633    case $host_os in
11634    cygwin*)
11635      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11636      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11637
11638      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11639      ;;
11640    mingw* | cegcc*)
11641      # MinGW DLLs use traditional 'lib' prefix
11642      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11643      ;;
11644    pw32*)
11645      # pw32 DLLs use 'pw' prefix rather than 'lib'
11646      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647      ;;
11648    esac
11649    dynamic_linker='Win32 ld.exe'
11650    ;;
11651
11652  *,cl*)
11653    # Native MSVC
11654    libname_spec='$name'
11655    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11656    library_names_spec='${libname}.dll.lib'
11657
11658    case $build_os in
11659    mingw*)
11660      sys_lib_search_path_spec=
11661      lt_save_ifs=$IFS
11662      IFS=';'
11663      for lt_path in $LIB
11664      do
11665        IFS=$lt_save_ifs
11666        # Let DOS variable expansion print the short 8.3 style file name.
11667        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11668        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11669      done
11670      IFS=$lt_save_ifs
11671      # Convert to MSYS style.
11672      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11673      ;;
11674    cygwin*)
11675      # Convert to unix form, then to dos form, then back to unix form
11676      # but this time dos style (no spaces!) so that the unix form looks
11677      # like /cygdrive/c/PROGRA~1:/cygdr...
11678      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11679      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11680      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11681      ;;
11682    *)
11683      sys_lib_search_path_spec="$LIB"
11684      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11685        # It is most probably a Windows format PATH.
11686        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11687      else
11688        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11689      fi
11690      # FIXME: find the short name or the path components, as spaces are
11691      # common. (e.g. "Program Files" -> "PROGRA~1")
11692      ;;
11693    esac
11694
11695    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11696    postinstall_cmds='base_file=`basename \${file}`~
11697      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11698      dldir=$destdir/`dirname \$dlpath`~
11699      test -d \$dldir || mkdir -p \$dldir~
11700      $install_prog $dir/$dlname \$dldir/$dlname'
11701    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11702      dlpath=$dir/\$dldll~
11703       $RM \$dlpath'
11704    shlibpath_overrides_runpath=yes
11705    dynamic_linker='Win32 link.exe'
11706    ;;
11707
11708  *)
11709    # Assume MSVC wrapper
11710    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11711    dynamic_linker='Win32 ld.exe'
11712    ;;
11713  esac
11714  # FIXME: first we should search . and the directory the executable is in
11715  shlibpath_var=PATH
11716  ;;
11717
11718darwin* | rhapsody*)
11719  dynamic_linker="$host_os dyld"
11720  version_type=darwin
11721  need_lib_prefix=no
11722  need_version=no
11723  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11724  soname_spec='${libname}${release}${major}$shared_ext'
11725  shlibpath_overrides_runpath=yes
11726  shlibpath_var=DYLD_LIBRARY_PATH
11727  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11728
11729  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11730  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11731  ;;
11732
11733dgux*)
11734  version_type=linux # correct to gnu/linux during the next big refactor
11735  need_lib_prefix=no
11736  need_version=no
11737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11738  soname_spec='${libname}${release}${shared_ext}$major'
11739  shlibpath_var=LD_LIBRARY_PATH
11740  ;;
11741
11742freebsd* | dragonfly*)
11743  # DragonFly does not have aout.  When/if they implement a new
11744  # versioning mechanism, adjust this.
11745  if test -x /usr/bin/objformat; then
11746    objformat=`/usr/bin/objformat`
11747  else
11748    case $host_os in
11749    freebsd[23].*) objformat=aout ;;
11750    *) objformat=elf ;;
11751    esac
11752  fi
11753  version_type=freebsd-$objformat
11754  case $version_type in
11755    freebsd-elf*)
11756      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11757      need_version=no
11758      need_lib_prefix=no
11759      ;;
11760    freebsd-*)
11761      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11762      need_version=yes
11763      ;;
11764  esac
11765  shlibpath_var=LD_LIBRARY_PATH
11766  case $host_os in
11767  freebsd2.*)
11768    shlibpath_overrides_runpath=yes
11769    ;;
11770  freebsd3.[01]* | freebsdelf3.[01]*)
11771    shlibpath_overrides_runpath=yes
11772    hardcode_into_libs=yes
11773    ;;
11774  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11775  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11776    shlibpath_overrides_runpath=no
11777    hardcode_into_libs=yes
11778    ;;
11779  *) # from 4.6 on, and DragonFly
11780    shlibpath_overrides_runpath=yes
11781    hardcode_into_libs=yes
11782    ;;
11783  esac
11784  ;;
11785
11786gnu*)
11787  version_type=linux # correct to gnu/linux during the next big refactor
11788  need_lib_prefix=no
11789  need_version=no
11790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11791  soname_spec='${libname}${release}${shared_ext}$major'
11792  shlibpath_var=LD_LIBRARY_PATH
11793  shlibpath_overrides_runpath=no
11794  hardcode_into_libs=yes
11795  ;;
11796
11797haiku*)
11798  version_type=linux # correct to gnu/linux during the next big refactor
11799  need_lib_prefix=no
11800  need_version=no
11801  dynamic_linker="$host_os runtime_loader"
11802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11803  soname_spec='${libname}${release}${shared_ext}$major'
11804  shlibpath_var=LIBRARY_PATH
11805  shlibpath_overrides_runpath=yes
11806  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11807  hardcode_into_libs=yes
11808  ;;
11809
11810hpux9* | hpux10* | hpux11*)
11811  # Give a soname corresponding to the major version so that dld.sl refuses to
11812  # link against other versions.
11813  version_type=sunos
11814  need_lib_prefix=no
11815  need_version=no
11816  case $host_cpu in
11817  ia64*)
11818    shrext_cmds='.so'
11819    hardcode_into_libs=yes
11820    dynamic_linker="$host_os dld.so"
11821    shlibpath_var=LD_LIBRARY_PATH
11822    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11823    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824    soname_spec='${libname}${release}${shared_ext}$major'
11825    if test "X$HPUX_IA64_MODE" = X32; then
11826      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11827    else
11828      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11829    fi
11830    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11831    ;;
11832  hppa*64*)
11833    shrext_cmds='.sl'
11834    hardcode_into_libs=yes
11835    dynamic_linker="$host_os dld.sl"
11836    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11837    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839    soname_spec='${libname}${release}${shared_ext}$major'
11840    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11841    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11842    ;;
11843  *)
11844    shrext_cmds='.sl'
11845    dynamic_linker="$host_os dld.sl"
11846    shlibpath_var=SHLIB_PATH
11847    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11848    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849    soname_spec='${libname}${release}${shared_ext}$major'
11850    ;;
11851  esac
11852  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11853  postinstall_cmds='chmod 555 $lib'
11854  # or fails outright, so override atomically:
11855  install_override_mode=555
11856  ;;
11857
11858interix[3-9]*)
11859  version_type=linux # correct to gnu/linux during the next big refactor
11860  need_lib_prefix=no
11861  need_version=no
11862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11863  soname_spec='${libname}${release}${shared_ext}$major'
11864  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11865  shlibpath_var=LD_LIBRARY_PATH
11866  shlibpath_overrides_runpath=no
11867  hardcode_into_libs=yes
11868  ;;
11869
11870irix5* | irix6* | nonstopux*)
11871  case $host_os in
11872    nonstopux*) version_type=nonstopux ;;
11873    *)
11874	if test "$lt_cv_prog_gnu_ld" = yes; then
11875		version_type=linux # correct to gnu/linux during the next big refactor
11876	else
11877		version_type=irix
11878	fi ;;
11879  esac
11880  need_lib_prefix=no
11881  need_version=no
11882  soname_spec='${libname}${release}${shared_ext}$major'
11883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11884  case $host_os in
11885  irix5* | nonstopux*)
11886    libsuff= shlibsuff=
11887    ;;
11888  *)
11889    case $LD in # libtool.m4 will add one of these switches to LD
11890    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11891      libsuff= shlibsuff= libmagic=32-bit;;
11892    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11893      libsuff=32 shlibsuff=N32 libmagic=N32;;
11894    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11895      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11896    *) libsuff= shlibsuff= libmagic=never-match;;
11897    esac
11898    ;;
11899  esac
11900  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11901  shlibpath_overrides_runpath=no
11902  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11903  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11904  hardcode_into_libs=yes
11905  ;;
11906
11907# No shared lib support for Linux oldld, aout, or coff.
11908linux*oldld* | linux*aout* | linux*coff*)
11909  dynamic_linker=no
11910  ;;
11911
11912# This must be glibc/ELF.
11913linux* | k*bsd*-gnu | kopensolaris*-gnu)
11914  version_type=linux # correct to gnu/linux during the next big refactor
11915  need_lib_prefix=no
11916  need_version=no
11917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918  soname_spec='${libname}${release}${shared_ext}$major'
11919  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11920  shlibpath_var=LD_LIBRARY_PATH
11921  shlibpath_overrides_runpath=no
11922
11923  # Some binutils ld are patched to set DT_RUNPATH
11924  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11925  $as_echo_n "(cached) " >&6
11926else
11927  lt_cv_shlibpath_overrides_runpath=no
11928    save_LDFLAGS=$LDFLAGS
11929    save_libdir=$libdir
11930    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11931	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11932    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h.  */
11934
11935int
11936main ()
11937{
11938
11939  ;
11940  return 0;
11941}
11942_ACEOF
11943if ac_fn_c_try_link "$LINENO"; then :
11944  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11945  lt_cv_shlibpath_overrides_runpath=yes
11946fi
11947fi
11948rm -f core conftest.err conftest.$ac_objext \
11949    conftest$ac_exeext conftest.$ac_ext
11950    LDFLAGS=$save_LDFLAGS
11951    libdir=$save_libdir
11952
11953fi
11954
11955  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11956
11957  # This implies no fast_install, which is unacceptable.
11958  # Some rework will be needed to allow for fast_install
11959  # before this can be enabled.
11960  hardcode_into_libs=yes
11961
11962  # Append ld.so.conf contents to the search path
11963  if test -f /etc/ld.so.conf; then
11964    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11965    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11966  fi
11967
11968  # We used to test for /lib/ld.so.1 and disable shared libraries on
11969  # powerpc, because MkLinux only supported shared libraries with the
11970  # GNU dynamic linker.  Since this was broken with cross compilers,
11971  # most powerpc-linux boxes support dynamic linking these days and
11972  # people can always --disable-shared, the test was removed, and we
11973  # assume the GNU/Linux dynamic linker is in use.
11974  dynamic_linker='GNU/Linux ld.so'
11975  ;;
11976
11977netbsd*)
11978  version_type=sunos
11979  need_lib_prefix=no
11980  need_version=no
11981  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11983    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11984    dynamic_linker='NetBSD (a.out) ld.so'
11985  else
11986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11987    soname_spec='${libname}${release}${shared_ext}$major'
11988    dynamic_linker='NetBSD ld.elf_so'
11989  fi
11990  shlibpath_var=LD_LIBRARY_PATH
11991  shlibpath_overrides_runpath=yes
11992  hardcode_into_libs=yes
11993  ;;
11994
11995newsos6)
11996  version_type=linux # correct to gnu/linux during the next big refactor
11997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998  shlibpath_var=LD_LIBRARY_PATH
11999  shlibpath_overrides_runpath=yes
12000  ;;
12001
12002*nto* | *qnx*)
12003  version_type=qnx
12004  need_lib_prefix=no
12005  need_version=no
12006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007  soname_spec='${libname}${release}${shared_ext}$major'
12008  shlibpath_var=LD_LIBRARY_PATH
12009  shlibpath_overrides_runpath=no
12010  hardcode_into_libs=yes
12011  dynamic_linker='ldqnx.so'
12012  ;;
12013
12014openbsd*)
12015  version_type=sunos
12016  sys_lib_dlsearch_path_spec="/usr/lib"
12017  need_lib_prefix=no
12018  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12019  case $host_os in
12020    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12021    *)				need_version=no  ;;
12022  esac
12023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12024  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12025  shlibpath_var=LD_LIBRARY_PATH
12026  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12027    case $host_os in
12028      openbsd2.[89] | openbsd2.[89].*)
12029	shlibpath_overrides_runpath=no
12030	;;
12031      *)
12032	shlibpath_overrides_runpath=yes
12033	;;
12034      esac
12035  else
12036    shlibpath_overrides_runpath=yes
12037  fi
12038  ;;
12039
12040os2*)
12041  libname_spec='$name'
12042  shrext_cmds=".dll"
12043  need_lib_prefix=no
12044  library_names_spec='$libname${shared_ext} $libname.a'
12045  dynamic_linker='OS/2 ld.exe'
12046  shlibpath_var=LIBPATH
12047  ;;
12048
12049osf3* | osf4* | osf5*)
12050  version_type=osf
12051  need_lib_prefix=no
12052  need_version=no
12053  soname_spec='${libname}${release}${shared_ext}$major'
12054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055  shlibpath_var=LD_LIBRARY_PATH
12056  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12057  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12058  ;;
12059
12060rdos*)
12061  dynamic_linker=no
12062  ;;
12063
12064solaris*)
12065  version_type=linux # correct to gnu/linux during the next big refactor
12066  need_lib_prefix=no
12067  need_version=no
12068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069  soname_spec='${libname}${release}${shared_ext}$major'
12070  shlibpath_var=LD_LIBRARY_PATH
12071  shlibpath_overrides_runpath=yes
12072  hardcode_into_libs=yes
12073  # ldd complains unless libraries are executable
12074  postinstall_cmds='chmod +x $lib'
12075  ;;
12076
12077sunos4*)
12078  version_type=sunos
12079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12080  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12081  shlibpath_var=LD_LIBRARY_PATH
12082  shlibpath_overrides_runpath=yes
12083  if test "$with_gnu_ld" = yes; then
12084    need_lib_prefix=no
12085  fi
12086  need_version=yes
12087  ;;
12088
12089sysv4 | sysv4.3*)
12090  version_type=linux # correct to gnu/linux during the next big refactor
12091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092  soname_spec='${libname}${release}${shared_ext}$major'
12093  shlibpath_var=LD_LIBRARY_PATH
12094  case $host_vendor in
12095    sni)
12096      shlibpath_overrides_runpath=no
12097      need_lib_prefix=no
12098      runpath_var=LD_RUN_PATH
12099      ;;
12100    siemens)
12101      need_lib_prefix=no
12102      ;;
12103    motorola)
12104      need_lib_prefix=no
12105      need_version=no
12106      shlibpath_overrides_runpath=no
12107      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12108      ;;
12109  esac
12110  ;;
12111
12112sysv4*MP*)
12113  if test -d /usr/nec ;then
12114    version_type=linux # correct to gnu/linux during the next big refactor
12115    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12116    soname_spec='$libname${shared_ext}.$major'
12117    shlibpath_var=LD_LIBRARY_PATH
12118  fi
12119  ;;
12120
12121sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12122  version_type=freebsd-elf
12123  need_lib_prefix=no
12124  need_version=no
12125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12126  soname_spec='${libname}${release}${shared_ext}$major'
12127  shlibpath_var=LD_LIBRARY_PATH
12128  shlibpath_overrides_runpath=yes
12129  hardcode_into_libs=yes
12130  if test "$with_gnu_ld" = yes; then
12131    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12132  else
12133    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12134    case $host_os in
12135      sco3.2v5*)
12136        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12137	;;
12138    esac
12139  fi
12140  sys_lib_dlsearch_path_spec='/usr/lib'
12141  ;;
12142
12143tpf*)
12144  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12145  version_type=linux # correct to gnu/linux during the next big refactor
12146  need_lib_prefix=no
12147  need_version=no
12148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149  shlibpath_var=LD_LIBRARY_PATH
12150  shlibpath_overrides_runpath=no
12151  hardcode_into_libs=yes
12152  ;;
12153
12154uts4*)
12155  version_type=linux # correct to gnu/linux during the next big refactor
12156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157  soname_spec='${libname}${release}${shared_ext}$major'
12158  shlibpath_var=LD_LIBRARY_PATH
12159  ;;
12160
12161*)
12162  dynamic_linker=no
12163  ;;
12164esac
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12166$as_echo "$dynamic_linker" >&6; }
12167test "$dynamic_linker" = no && can_build_shared=no
12168
12169variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12170if test "$GCC" = yes; then
12171  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12172fi
12173
12174if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12175  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12176fi
12177if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12178  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12179fi
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12273$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12274hardcode_action=
12275if test -n "$hardcode_libdir_flag_spec" ||
12276   test -n "$runpath_var" ||
12277   test "X$hardcode_automatic" = "Xyes" ; then
12278
12279  # We can hardcode non-existent directories.
12280  if test "$hardcode_direct" != no &&
12281     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12282     # have to relink, otherwise we might link with an installed library
12283     # when we should be linking with a yet-to-be-installed one
12284     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12285     test "$hardcode_minus_L" != no; then
12286    # Linking always hardcodes the temporary library directory.
12287    hardcode_action=relink
12288  else
12289    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12290    hardcode_action=immediate
12291  fi
12292else
12293  # We cannot hardcode anything, or else we can only hardcode existing
12294  # directories.
12295  hardcode_action=unsupported
12296fi
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12298$as_echo "$hardcode_action" >&6; }
12299
12300if test "$hardcode_action" = relink ||
12301   test "$inherit_rpath" = yes; then
12302  # Fast installation is not supported
12303  enable_fast_install=no
12304elif test "$shlibpath_overrides_runpath" = yes ||
12305     test "$enable_shared" = no; then
12306  # Fast installation is not necessary
12307  enable_fast_install=needless
12308fi
12309
12310
12311
12312
12313
12314
12315  if test "x$enable_dlopen" != xyes; then
12316  enable_dlopen=unknown
12317  enable_dlopen_self=unknown
12318  enable_dlopen_self_static=unknown
12319else
12320  lt_cv_dlopen=no
12321  lt_cv_dlopen_libs=
12322
12323  case $host_os in
12324  beos*)
12325    lt_cv_dlopen="load_add_on"
12326    lt_cv_dlopen_libs=
12327    lt_cv_dlopen_self=yes
12328    ;;
12329
12330  mingw* | pw32* | cegcc*)
12331    lt_cv_dlopen="LoadLibrary"
12332    lt_cv_dlopen_libs=
12333    ;;
12334
12335  cygwin*)
12336    lt_cv_dlopen="dlopen"
12337    lt_cv_dlopen_libs=
12338    ;;
12339
12340  darwin*)
12341  # if libdl is installed we need to link against it
12342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12343$as_echo_n "checking for dlopen in -ldl... " >&6; }
12344if ${ac_cv_lib_dl_dlopen+:} false; then :
12345  $as_echo_n "(cached) " >&6
12346else
12347  ac_check_lib_save_LIBS=$LIBS
12348LIBS="-ldl  $LIBS"
12349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353   Use char because int might match the return type of a GCC
12354   builtin and then its argument prototype would still apply.  */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char dlopen ();
12359int
12360main ()
12361{
12362return dlopen ();
12363  ;
12364  return 0;
12365}
12366_ACEOF
12367if ac_fn_c_try_link "$LINENO"; then :
12368  ac_cv_lib_dl_dlopen=yes
12369else
12370  ac_cv_lib_dl_dlopen=no
12371fi
12372rm -f core conftest.err conftest.$ac_objext \
12373    conftest$ac_exeext conftest.$ac_ext
12374LIBS=$ac_check_lib_save_LIBS
12375fi
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12377$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12378if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12379  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12380else
12381
12382    lt_cv_dlopen="dyld"
12383    lt_cv_dlopen_libs=
12384    lt_cv_dlopen_self=yes
12385
12386fi
12387
12388    ;;
12389
12390  *)
12391    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12392if test "x$ac_cv_func_shl_load" = xyes; then :
12393  lt_cv_dlopen="shl_load"
12394else
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12396$as_echo_n "checking for shl_load in -ldld... " >&6; }
12397if ${ac_cv_lib_dld_shl_load+:} false; then :
12398  $as_echo_n "(cached) " >&6
12399else
12400  ac_check_lib_save_LIBS=$LIBS
12401LIBS="-ldld  $LIBS"
12402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h.  */
12404
12405/* Override any GCC internal prototype to avoid an error.
12406   Use char because int might match the return type of a GCC
12407   builtin and then its argument prototype would still apply.  */
12408#ifdef __cplusplus
12409extern "C"
12410#endif
12411char shl_load ();
12412int
12413main ()
12414{
12415return shl_load ();
12416  ;
12417  return 0;
12418}
12419_ACEOF
12420if ac_fn_c_try_link "$LINENO"; then :
12421  ac_cv_lib_dld_shl_load=yes
12422else
12423  ac_cv_lib_dld_shl_load=no
12424fi
12425rm -f core conftest.err conftest.$ac_objext \
12426    conftest$ac_exeext conftest.$ac_ext
12427LIBS=$ac_check_lib_save_LIBS
12428fi
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12430$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12431if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12432  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12433else
12434  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12435if test "x$ac_cv_func_dlopen" = xyes; then :
12436  lt_cv_dlopen="dlopen"
12437else
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12439$as_echo_n "checking for dlopen in -ldl... " >&6; }
12440if ${ac_cv_lib_dl_dlopen+:} false; then :
12441  $as_echo_n "(cached) " >&6
12442else
12443  ac_check_lib_save_LIBS=$LIBS
12444LIBS="-ldl  $LIBS"
12445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h.  */
12447
12448/* Override any GCC internal prototype to avoid an error.
12449   Use char because int might match the return type of a GCC
12450   builtin and then its argument prototype would still apply.  */
12451#ifdef __cplusplus
12452extern "C"
12453#endif
12454char dlopen ();
12455int
12456main ()
12457{
12458return dlopen ();
12459  ;
12460  return 0;
12461}
12462_ACEOF
12463if ac_fn_c_try_link "$LINENO"; then :
12464  ac_cv_lib_dl_dlopen=yes
12465else
12466  ac_cv_lib_dl_dlopen=no
12467fi
12468rm -f core conftest.err conftest.$ac_objext \
12469    conftest$ac_exeext conftest.$ac_ext
12470LIBS=$ac_check_lib_save_LIBS
12471fi
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12473$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12474if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12475  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12476else
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12478$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12479if ${ac_cv_lib_svld_dlopen+:} false; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482  ac_check_lib_save_LIBS=$LIBS
12483LIBS="-lsvld  $LIBS"
12484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h.  */
12486
12487/* Override any GCC internal prototype to avoid an error.
12488   Use char because int might match the return type of a GCC
12489   builtin and then its argument prototype would still apply.  */
12490#ifdef __cplusplus
12491extern "C"
12492#endif
12493char dlopen ();
12494int
12495main ()
12496{
12497return dlopen ();
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502if ac_fn_c_try_link "$LINENO"; then :
12503  ac_cv_lib_svld_dlopen=yes
12504else
12505  ac_cv_lib_svld_dlopen=no
12506fi
12507rm -f core conftest.err conftest.$ac_objext \
12508    conftest$ac_exeext conftest.$ac_ext
12509LIBS=$ac_check_lib_save_LIBS
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12512$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12513if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12514  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12515else
12516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12517$as_echo_n "checking for dld_link in -ldld... " >&6; }
12518if ${ac_cv_lib_dld_dld_link+:} false; then :
12519  $as_echo_n "(cached) " >&6
12520else
12521  ac_check_lib_save_LIBS=$LIBS
12522LIBS="-ldld  $LIBS"
12523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524/* end confdefs.h.  */
12525
12526/* Override any GCC internal prototype to avoid an error.
12527   Use char because int might match the return type of a GCC
12528   builtin and then its argument prototype would still apply.  */
12529#ifdef __cplusplus
12530extern "C"
12531#endif
12532char dld_link ();
12533int
12534main ()
12535{
12536return dld_link ();
12537  ;
12538  return 0;
12539}
12540_ACEOF
12541if ac_fn_c_try_link "$LINENO"; then :
12542  ac_cv_lib_dld_dld_link=yes
12543else
12544  ac_cv_lib_dld_dld_link=no
12545fi
12546rm -f core conftest.err conftest.$ac_objext \
12547    conftest$ac_exeext conftest.$ac_ext
12548LIBS=$ac_check_lib_save_LIBS
12549fi
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12551$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12552if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12553  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12554fi
12555
12556
12557fi
12558
12559
12560fi
12561
12562
12563fi
12564
12565
12566fi
12567
12568
12569fi
12570
12571    ;;
12572  esac
12573
12574  if test "x$lt_cv_dlopen" != xno; then
12575    enable_dlopen=yes
12576  else
12577    enable_dlopen=no
12578  fi
12579
12580  case $lt_cv_dlopen in
12581  dlopen)
12582    save_CPPFLAGS="$CPPFLAGS"
12583    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12584
12585    save_LDFLAGS="$LDFLAGS"
12586    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12587
12588    save_LIBS="$LIBS"
12589    LIBS="$lt_cv_dlopen_libs $LIBS"
12590
12591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12592$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12593if ${lt_cv_dlopen_self+:} false; then :
12594  $as_echo_n "(cached) " >&6
12595else
12596  	  if test "$cross_compiling" = yes; then :
12597  lt_cv_dlopen_self=cross
12598else
12599  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600  lt_status=$lt_dlunknown
12601  cat > conftest.$ac_ext <<_LT_EOF
12602#line $LINENO "configure"
12603#include "confdefs.h"
12604
12605#if HAVE_DLFCN_H
12606#include <dlfcn.h>
12607#endif
12608
12609#include <stdio.h>
12610
12611#ifdef RTLD_GLOBAL
12612#  define LT_DLGLOBAL		RTLD_GLOBAL
12613#else
12614#  ifdef DL_GLOBAL
12615#    define LT_DLGLOBAL		DL_GLOBAL
12616#  else
12617#    define LT_DLGLOBAL		0
12618#  endif
12619#endif
12620
12621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622   find out it does not work in some platform. */
12623#ifndef LT_DLLAZY_OR_NOW
12624#  ifdef RTLD_LAZY
12625#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12626#  else
12627#    ifdef DL_LAZY
12628#      define LT_DLLAZY_OR_NOW		DL_LAZY
12629#    else
12630#      ifdef RTLD_NOW
12631#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12632#      else
12633#        ifdef DL_NOW
12634#          define LT_DLLAZY_OR_NOW	DL_NOW
12635#        else
12636#          define LT_DLLAZY_OR_NOW	0
12637#        endif
12638#      endif
12639#    endif
12640#  endif
12641#endif
12642
12643/* When -fvisbility=hidden is used, assume the code has been annotated
12644   correspondingly for the symbols needed.  */
12645#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12646int fnord () __attribute__((visibility("default")));
12647#endif
12648
12649int fnord () { return 42; }
12650int main ()
12651{
12652  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12653  int status = $lt_dlunknown;
12654
12655  if (self)
12656    {
12657      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12658      else
12659        {
12660	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12661          else puts (dlerror ());
12662	}
12663      /* dlclose (self); */
12664    }
12665  else
12666    puts (dlerror ());
12667
12668  return status;
12669}
12670_LT_EOF
12671  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12672  (eval $ac_link) 2>&5
12673  ac_status=$?
12674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12676    (./conftest; exit; ) >&5 2>/dev/null
12677    lt_status=$?
12678    case x$lt_status in
12679      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12680      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12681      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12682    esac
12683  else :
12684    # compilation failed
12685    lt_cv_dlopen_self=no
12686  fi
12687fi
12688rm -fr conftest*
12689
12690
12691fi
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12693$as_echo "$lt_cv_dlopen_self" >&6; }
12694
12695    if test "x$lt_cv_dlopen_self" = xyes; then
12696      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12697      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12698$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12699if ${lt_cv_dlopen_self_static+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  	  if test "$cross_compiling" = yes; then :
12703  lt_cv_dlopen_self_static=cross
12704else
12705  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12706  lt_status=$lt_dlunknown
12707  cat > conftest.$ac_ext <<_LT_EOF
12708#line $LINENO "configure"
12709#include "confdefs.h"
12710
12711#if HAVE_DLFCN_H
12712#include <dlfcn.h>
12713#endif
12714
12715#include <stdio.h>
12716
12717#ifdef RTLD_GLOBAL
12718#  define LT_DLGLOBAL		RTLD_GLOBAL
12719#else
12720#  ifdef DL_GLOBAL
12721#    define LT_DLGLOBAL		DL_GLOBAL
12722#  else
12723#    define LT_DLGLOBAL		0
12724#  endif
12725#endif
12726
12727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12728   find out it does not work in some platform. */
12729#ifndef LT_DLLAZY_OR_NOW
12730#  ifdef RTLD_LAZY
12731#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12732#  else
12733#    ifdef DL_LAZY
12734#      define LT_DLLAZY_OR_NOW		DL_LAZY
12735#    else
12736#      ifdef RTLD_NOW
12737#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12738#      else
12739#        ifdef DL_NOW
12740#          define LT_DLLAZY_OR_NOW	DL_NOW
12741#        else
12742#          define LT_DLLAZY_OR_NOW	0
12743#        endif
12744#      endif
12745#    endif
12746#  endif
12747#endif
12748
12749/* When -fvisbility=hidden is used, assume the code has been annotated
12750   correspondingly for the symbols needed.  */
12751#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12752int fnord () __attribute__((visibility("default")));
12753#endif
12754
12755int fnord () { return 42; }
12756int main ()
12757{
12758  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12759  int status = $lt_dlunknown;
12760
12761  if (self)
12762    {
12763      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12764      else
12765        {
12766	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12767          else puts (dlerror ());
12768	}
12769      /* dlclose (self); */
12770    }
12771  else
12772    puts (dlerror ());
12773
12774  return status;
12775}
12776_LT_EOF
12777  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12778  (eval $ac_link) 2>&5
12779  ac_status=$?
12780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12782    (./conftest; exit; ) >&5 2>/dev/null
12783    lt_status=$?
12784    case x$lt_status in
12785      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12786      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12787      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12788    esac
12789  else :
12790    # compilation failed
12791    lt_cv_dlopen_self_static=no
12792  fi
12793fi
12794rm -fr conftest*
12795
12796
12797fi
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12799$as_echo "$lt_cv_dlopen_self_static" >&6; }
12800    fi
12801
12802    CPPFLAGS="$save_CPPFLAGS"
12803    LDFLAGS="$save_LDFLAGS"
12804    LIBS="$save_LIBS"
12805    ;;
12806  esac
12807
12808  case $lt_cv_dlopen_self in
12809  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12810  *) enable_dlopen_self=unknown ;;
12811  esac
12812
12813  case $lt_cv_dlopen_self_static in
12814  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12815  *) enable_dlopen_self_static=unknown ;;
12816  esac
12817fi
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835striplib=
12836old_striplib=
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12838$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12839if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12840  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12841  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843$as_echo "yes" >&6; }
12844else
12845# FIXME - insert some real tests, host_os isn't really good enough
12846  case $host_os in
12847  darwin*)
12848    if test -n "$STRIP" ; then
12849      striplib="$STRIP -x"
12850      old_striplib="$STRIP -S"
12851      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852$as_echo "yes" >&6; }
12853    else
12854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855$as_echo "no" >&6; }
12856    fi
12857    ;;
12858  *)
12859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
12861    ;;
12862  esac
12863fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876  # Report which library types will actually be built
12877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12878$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12880$as_echo "$can_build_shared" >&6; }
12881
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12883$as_echo_n "checking whether to build shared libraries... " >&6; }
12884  test "$can_build_shared" = "no" && enable_shared=no
12885
12886  # On AIX, shared libraries and static libraries use the same namespace, and
12887  # are all built from PIC.
12888  case $host_os in
12889  aix3*)
12890    test "$enable_shared" = yes && enable_static=no
12891    if test -n "$RANLIB"; then
12892      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893      postinstall_cmds='$RANLIB $lib'
12894    fi
12895    ;;
12896
12897  aix[4-9]*)
12898    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12899      test "$enable_shared" = yes && enable_static=no
12900    fi
12901    ;;
12902  esac
12903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12904$as_echo "$enable_shared" >&6; }
12905
12906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12907$as_echo_n "checking whether to build static libraries... " >&6; }
12908  # Make sure either enable_shared or enable_static is yes.
12909  test "$enable_shared" = yes || enable_static=yes
12910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12911$as_echo "$enable_static" >&6; }
12912
12913
12914
12915
12916fi
12917ac_ext=c
12918ac_cpp='$CPP $CPPFLAGS'
12919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921ac_compiler_gnu=$ac_cv_c_compiler_gnu
12922
12923CC="$lt_save_CC"
12924
12925      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12926    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12927    (test "X$CXX" != "Xg++"))) ; then
12928  ac_ext=cpp
12929ac_cpp='$CXXCPP $CPPFLAGS'
12930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12934$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12935if test -z "$CXXCPP"; then
12936  if ${ac_cv_prog_CXXCPP+:} false; then :
12937  $as_echo_n "(cached) " >&6
12938else
12939      # Double quotes because CXXCPP needs to be expanded
12940    for CXXCPP in "$CXX -E" "/lib/cpp"
12941    do
12942      ac_preproc_ok=false
12943for ac_cxx_preproc_warn_flag in '' yes
12944do
12945  # Use a header file that comes with gcc, so configuring glibc
12946  # with a fresh cross-compiler works.
12947  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12948  # <limits.h> exists even on freestanding compilers.
12949  # On the NeXT, cc -E runs the code through the compiler's parser,
12950  # not just through cpp. "Syntax error" is here to catch this case.
12951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h.  */
12953#ifdef __STDC__
12954# include <limits.h>
12955#else
12956# include <assert.h>
12957#endif
12958		     Syntax error
12959_ACEOF
12960if ac_fn_cxx_try_cpp "$LINENO"; then :
12961
12962else
12963  # Broken: fails on valid input.
12964continue
12965fi
12966rm -f conftest.err conftest.i conftest.$ac_ext
12967
12968  # OK, works on sane cases.  Now check whether nonexistent headers
12969  # can be detected and how.
12970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971/* end confdefs.h.  */
12972#include <ac_nonexistent.h>
12973_ACEOF
12974if ac_fn_cxx_try_cpp "$LINENO"; then :
12975  # Broken: success on invalid input.
12976continue
12977else
12978  # Passes both tests.
12979ac_preproc_ok=:
12980break
12981fi
12982rm -f conftest.err conftest.i conftest.$ac_ext
12983
12984done
12985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12986rm -f conftest.i conftest.err conftest.$ac_ext
12987if $ac_preproc_ok; then :
12988  break
12989fi
12990
12991    done
12992    ac_cv_prog_CXXCPP=$CXXCPP
12993
12994fi
12995  CXXCPP=$ac_cv_prog_CXXCPP
12996else
12997  ac_cv_prog_CXXCPP=$CXXCPP
12998fi
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13000$as_echo "$CXXCPP" >&6; }
13001ac_preproc_ok=false
13002for ac_cxx_preproc_warn_flag in '' yes
13003do
13004  # Use a header file that comes with gcc, so configuring glibc
13005  # with a fresh cross-compiler works.
13006  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13007  # <limits.h> exists even on freestanding compilers.
13008  # On the NeXT, cc -E runs the code through the compiler's parser,
13009  # not just through cpp. "Syntax error" is here to catch this case.
13010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011/* end confdefs.h.  */
13012#ifdef __STDC__
13013# include <limits.h>
13014#else
13015# include <assert.h>
13016#endif
13017		     Syntax error
13018_ACEOF
13019if ac_fn_cxx_try_cpp "$LINENO"; then :
13020
13021else
13022  # Broken: fails on valid input.
13023continue
13024fi
13025rm -f conftest.err conftest.i conftest.$ac_ext
13026
13027  # OK, works on sane cases.  Now check whether nonexistent headers
13028  # can be detected and how.
13029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h.  */
13031#include <ac_nonexistent.h>
13032_ACEOF
13033if ac_fn_cxx_try_cpp "$LINENO"; then :
13034  # Broken: success on invalid input.
13035continue
13036else
13037  # Passes both tests.
13038ac_preproc_ok=:
13039break
13040fi
13041rm -f conftest.err conftest.i conftest.$ac_ext
13042
13043done
13044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13045rm -f conftest.i conftest.err conftest.$ac_ext
13046if $ac_preproc_ok; then :
13047
13048else
13049  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13051as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13052See \`config.log' for more details" "$LINENO" 5; }
13053fi
13054
13055ac_ext=c
13056ac_cpp='$CPP $CPPFLAGS'
13057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13059ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060
13061else
13062  _lt_caught_CXX_error=yes
13063fi
13064
13065ac_ext=cpp
13066ac_cpp='$CXXCPP $CPPFLAGS'
13067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13070
13071archive_cmds_need_lc_CXX=no
13072allow_undefined_flag_CXX=
13073always_export_symbols_CXX=no
13074archive_expsym_cmds_CXX=
13075compiler_needs_object_CXX=no
13076export_dynamic_flag_spec_CXX=
13077hardcode_direct_CXX=no
13078hardcode_direct_absolute_CXX=no
13079hardcode_libdir_flag_spec_CXX=
13080hardcode_libdir_separator_CXX=
13081hardcode_minus_L_CXX=no
13082hardcode_shlibpath_var_CXX=unsupported
13083hardcode_automatic_CXX=no
13084inherit_rpath_CXX=no
13085module_cmds_CXX=
13086module_expsym_cmds_CXX=
13087link_all_deplibs_CXX=unknown
13088old_archive_cmds_CXX=$old_archive_cmds
13089reload_flag_CXX=$reload_flag
13090reload_cmds_CXX=$reload_cmds
13091no_undefined_flag_CXX=
13092whole_archive_flag_spec_CXX=
13093enable_shared_with_static_runtimes_CXX=no
13094
13095# Source file extension for C++ test sources.
13096ac_ext=cpp
13097
13098# Object file extension for compiled C++ test sources.
13099objext=o
13100objext_CXX=$objext
13101
13102# No sense in running all these tests if we already determined that
13103# the CXX compiler isn't working.  Some variables (like enable_shared)
13104# are currently assumed to apply to all compilers on this platform,
13105# and will be corrupted by setting them based on a non-working compiler.
13106if test "$_lt_caught_CXX_error" != yes; then
13107  # Code to be used in simple compile tests
13108  lt_simple_compile_test_code="int some_variable = 0;"
13109
13110  # Code to be used in simple link tests
13111  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13112
13113  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13114
13115
13116
13117
13118
13119
13120# If no C compiler was specified, use CC.
13121LTCC=${LTCC-"$CC"}
13122
13123# If no C compiler flags were specified, use CFLAGS.
13124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13125
13126# Allow CC to be a program name with arguments.
13127compiler=$CC
13128
13129
13130  # save warnings/boilerplate of simple test code
13131  ac_outfile=conftest.$ac_objext
13132echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13134_lt_compiler_boilerplate=`cat conftest.err`
13135$RM -r conftest*
13136
13137  ac_outfile=conftest.$ac_objext
13138echo "$lt_simple_link_test_code" >conftest.$ac_ext
13139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13140_lt_linker_boilerplate=`cat conftest.err`
13141$RM -r conftest*
13142
13143
13144  # Allow CC to be a program name with arguments.
13145  lt_save_CC=$CC
13146  lt_save_CFLAGS=$CFLAGS
13147  lt_save_LD=$LD
13148  lt_save_GCC=$GCC
13149  GCC=$GXX
13150  lt_save_with_gnu_ld=$with_gnu_ld
13151  lt_save_path_LD=$lt_cv_path_LD
13152  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13153    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13154  else
13155    $as_unset lt_cv_prog_gnu_ld
13156  fi
13157  if test -n "${lt_cv_path_LDCXX+set}"; then
13158    lt_cv_path_LD=$lt_cv_path_LDCXX
13159  else
13160    $as_unset lt_cv_path_LD
13161  fi
13162  test -z "${LDCXX+set}" || LD=$LDCXX
13163  CC=${CXX-"c++"}
13164  CFLAGS=$CXXFLAGS
13165  compiler=$CC
13166  compiler_CXX=$CC
13167  for cc_temp in $compiler""; do
13168  case $cc_temp in
13169    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13170    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13171    \-*) ;;
13172    *) break;;
13173  esac
13174done
13175cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13176
13177
13178  if test -n "$compiler"; then
13179    # We don't want -fno-exception when compiling C++ code, so set the
13180    # no_builtin_flag separately
13181    if test "$GXX" = yes; then
13182      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13183    else
13184      lt_prog_compiler_no_builtin_flag_CXX=
13185    fi
13186
13187    if test "$GXX" = yes; then
13188      # Set up default GNU C++ configuration
13189
13190
13191
13192# Check whether --with-gnu-ld was given.
13193if test "${with_gnu_ld+set}" = set; then :
13194  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13195else
13196  with_gnu_ld=no
13197fi
13198
13199ac_prog=ld
13200if test "$GCC" = yes; then
13201  # Check if gcc -print-prog-name=ld gives a path.
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13203$as_echo_n "checking for ld used by $CC... " >&6; }
13204  case $host in
13205  *-*-mingw*)
13206    # gcc leaves a trailing carriage return which upsets mingw
13207    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13208  *)
13209    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13210  esac
13211  case $ac_prog in
13212    # Accept absolute paths.
13213    [\\/]* | ?:[\\/]*)
13214      re_direlt='/[^/][^/]*/\.\./'
13215      # Canonicalize the pathname of ld
13216      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13217      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13218	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13219      done
13220      test -z "$LD" && LD="$ac_prog"
13221      ;;
13222  "")
13223    # If it fails, then pretend we aren't using GCC.
13224    ac_prog=ld
13225    ;;
13226  *)
13227    # If it is relative, then search for the first ld in PATH.
13228    with_gnu_ld=unknown
13229    ;;
13230  esac
13231elif test "$with_gnu_ld" = yes; then
13232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13233$as_echo_n "checking for GNU ld... " >&6; }
13234else
13235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13236$as_echo_n "checking for non-GNU ld... " >&6; }
13237fi
13238if ${lt_cv_path_LD+:} false; then :
13239  $as_echo_n "(cached) " >&6
13240else
13241  if test -z "$LD"; then
13242  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13243  for ac_dir in $PATH; do
13244    IFS="$lt_save_ifs"
13245    test -z "$ac_dir" && ac_dir=.
13246    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13247      lt_cv_path_LD="$ac_dir/$ac_prog"
13248      # Check to see if the program is GNU ld.  I'd rather use --version,
13249      # but apparently some variants of GNU ld only accept -v.
13250      # Break only if it was the GNU/non-GNU ld that we prefer.
13251      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13252      *GNU* | *'with BFD'*)
13253	test "$with_gnu_ld" != no && break
13254	;;
13255      *)
13256	test "$with_gnu_ld" != yes && break
13257	;;
13258      esac
13259    fi
13260  done
13261  IFS="$lt_save_ifs"
13262else
13263  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13264fi
13265fi
13266
13267LD="$lt_cv_path_LD"
13268if test -n "$LD"; then
13269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13270$as_echo "$LD" >&6; }
13271else
13272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274fi
13275test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13277$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13278if ${lt_cv_prog_gnu_ld+:} false; then :
13279  $as_echo_n "(cached) " >&6
13280else
13281  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13282case `$LD -v 2>&1 </dev/null` in
13283*GNU* | *'with BFD'*)
13284  lt_cv_prog_gnu_ld=yes
13285  ;;
13286*)
13287  lt_cv_prog_gnu_ld=no
13288  ;;
13289esac
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13292$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13293with_gnu_ld=$lt_cv_prog_gnu_ld
13294
13295
13296
13297
13298
13299
13300
13301      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13302      # archiving commands below assume that GNU ld is being used.
13303      if test "$with_gnu_ld" = yes; then
13304        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13306
13307        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13308        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13309
13310        # If archive_cmds runs LD, not CC, wlarc should be empty
13311        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13312        #     investigate it a little bit more. (MM)
13313        wlarc='${wl}'
13314
13315        # ancient GNU ld didn't support --whole-archive et. al.
13316        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13317	  $GREP 'no-whole-archive' > /dev/null; then
13318          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13319        else
13320          whole_archive_flag_spec_CXX=
13321        fi
13322      else
13323        with_gnu_ld=no
13324        wlarc=
13325
13326        # A generic and very simple default shared library creation
13327        # command for GNU C++ for the case where it uses the native
13328        # linker, instead of GNU ld.  If possible, this setting should
13329        # overridden to take advantage of the native linker features on
13330        # the platform it is being used on.
13331        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13332      fi
13333
13334      # Commands to make compiler produce verbose output that lists
13335      # what "hidden" libraries, object files and flags are used when
13336      # linking a shared library.
13337      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13338
13339    else
13340      GXX=no
13341      with_gnu_ld=no
13342      wlarc=
13343    fi
13344
13345    # PORTME: fill in a description of your system's C++ link characteristics
13346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13347$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13348    ld_shlibs_CXX=yes
13349    case $host_os in
13350      aix3*)
13351        # FIXME: insert proper C++ library support
13352        ld_shlibs_CXX=no
13353        ;;
13354      aix[4-9]*)
13355        if test "$host_cpu" = ia64; then
13356          # On IA64, the linker does run time linking by default, so we don't
13357          # have to do anything special.
13358          aix_use_runtimelinking=no
13359          exp_sym_flag='-Bexport'
13360          no_entry_flag=""
13361        else
13362          aix_use_runtimelinking=no
13363
13364          # Test if we are trying to use run time linking or normal
13365          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13366          # need to do runtime linking.
13367          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13368	    for ld_flag in $LDFLAGS; do
13369	      case $ld_flag in
13370	      *-brtl*)
13371	        aix_use_runtimelinking=yes
13372	        break
13373	        ;;
13374	      esac
13375	    done
13376	    ;;
13377          esac
13378
13379          exp_sym_flag='-bexport'
13380          no_entry_flag='-bnoentry'
13381        fi
13382
13383        # When large executables or shared objects are built, AIX ld can
13384        # have problems creating the table of contents.  If linking a library
13385        # or program results in "error TOC overflow" add -mminimal-toc to
13386        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13387        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13388
13389        archive_cmds_CXX=''
13390        hardcode_direct_CXX=yes
13391        hardcode_direct_absolute_CXX=yes
13392        hardcode_libdir_separator_CXX=':'
13393        link_all_deplibs_CXX=yes
13394        file_list_spec_CXX='${wl}-f,'
13395
13396        if test "$GXX" = yes; then
13397          case $host_os in aix4.[012]|aix4.[012].*)
13398          # We only want to do this on AIX 4.2 and lower, the check
13399          # below for broken collect2 doesn't work under 4.3+
13400	  collect2name=`${CC} -print-prog-name=collect2`
13401	  if test -f "$collect2name" &&
13402	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13403	  then
13404	    # We have reworked collect2
13405	    :
13406	  else
13407	    # We have old collect2
13408	    hardcode_direct_CXX=unsupported
13409	    # It fails to find uninstalled libraries when the uninstalled
13410	    # path is not listed in the libpath.  Setting hardcode_minus_L
13411	    # to unsupported forces relinking
13412	    hardcode_minus_L_CXX=yes
13413	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13414	    hardcode_libdir_separator_CXX=
13415	  fi
13416          esac
13417          shared_flag='-shared'
13418	  if test "$aix_use_runtimelinking" = yes; then
13419	    shared_flag="$shared_flag "'${wl}-G'
13420	  fi
13421        else
13422          # not using gcc
13423          if test "$host_cpu" = ia64; then
13424	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13425	  # chokes on -Wl,-G. The following line is correct:
13426	  shared_flag='-G'
13427          else
13428	    if test "$aix_use_runtimelinking" = yes; then
13429	      shared_flag='${wl}-G'
13430	    else
13431	      shared_flag='${wl}-bM:SRE'
13432	    fi
13433          fi
13434        fi
13435
13436        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13437        # It seems that -bexpall does not export symbols beginning with
13438        # underscore (_), so it is better to generate a list of symbols to
13439	# export.
13440        always_export_symbols_CXX=yes
13441        if test "$aix_use_runtimelinking" = yes; then
13442          # Warning - without using the other runtime loading flags (-brtl),
13443          # -berok will link without error, but may produce a broken library.
13444          allow_undefined_flag_CXX='-berok'
13445          # Determine the default libpath from the value encoded in an empty
13446          # executable.
13447          if test "${lt_cv_aix_libpath+set}" = set; then
13448  aix_libpath=$lt_cv_aix_libpath
13449else
13450  if ${lt_cv_aix_libpath__CXX+:} false; then :
13451  $as_echo_n "(cached) " >&6
13452else
13453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454/* end confdefs.h.  */
13455
13456int
13457main ()
13458{
13459
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_cxx_try_link "$LINENO"; then :
13465
13466  lt_aix_libpath_sed='
13467      /Import File Strings/,/^$/ {
13468	  /^0/ {
13469	      s/^0  *\([^ ]*\) *$/\1/
13470	      p
13471	  }
13472      }'
13473  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13474  # Check for a 64-bit object if we didn't find anything.
13475  if test -z "$lt_cv_aix_libpath__CXX"; then
13476    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13477  fi
13478fi
13479rm -f core conftest.err conftest.$ac_objext \
13480    conftest$ac_exeext conftest.$ac_ext
13481  if test -z "$lt_cv_aix_libpath__CXX"; then
13482    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13483  fi
13484
13485fi
13486
13487  aix_libpath=$lt_cv_aix_libpath__CXX
13488fi
13489
13490          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13491
13492          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13493        else
13494          if test "$host_cpu" = ia64; then
13495	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13496	    allow_undefined_flag_CXX="-z nodefs"
13497	    archive_expsym_cmds_CXX="\$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"
13498          else
13499	    # Determine the default libpath from the value encoded in an
13500	    # empty executable.
13501	    if test "${lt_cv_aix_libpath+set}" = set; then
13502  aix_libpath=$lt_cv_aix_libpath
13503else
13504  if ${lt_cv_aix_libpath__CXX+:} false; then :
13505  $as_echo_n "(cached) " >&6
13506else
13507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508/* end confdefs.h.  */
13509
13510int
13511main ()
13512{
13513
13514  ;
13515  return 0;
13516}
13517_ACEOF
13518if ac_fn_cxx_try_link "$LINENO"; then :
13519
13520  lt_aix_libpath_sed='
13521      /Import File Strings/,/^$/ {
13522	  /^0/ {
13523	      s/^0  *\([^ ]*\) *$/\1/
13524	      p
13525	  }
13526      }'
13527  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13528  # Check for a 64-bit object if we didn't find anything.
13529  if test -z "$lt_cv_aix_libpath__CXX"; then
13530    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13531  fi
13532fi
13533rm -f core conftest.err conftest.$ac_objext \
13534    conftest$ac_exeext conftest.$ac_ext
13535  if test -z "$lt_cv_aix_libpath__CXX"; then
13536    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13537  fi
13538
13539fi
13540
13541  aix_libpath=$lt_cv_aix_libpath__CXX
13542fi
13543
13544	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13545	    # Warning - without using the other run time loading flags,
13546	    # -berok will link without error, but may produce a broken library.
13547	    no_undefined_flag_CXX=' ${wl}-bernotok'
13548	    allow_undefined_flag_CXX=' ${wl}-berok'
13549	    if test "$with_gnu_ld" = yes; then
13550	      # We only use this code for GNU lds that support --whole-archive.
13551	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13552	    else
13553	      # Exported symbols can be pulled into shared objects from archives
13554	      whole_archive_flag_spec_CXX='$convenience'
13555	    fi
13556	    archive_cmds_need_lc_CXX=yes
13557	    # This is similar to how AIX traditionally builds its shared
13558	    # libraries.
13559	    archive_expsym_cmds_CXX="\$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'
13560          fi
13561        fi
13562        ;;
13563
13564      beos*)
13565	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13566	  allow_undefined_flag_CXX=unsupported
13567	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13568	  # support --undefined.  This deserves some investigation.  FIXME
13569	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13570	else
13571	  ld_shlibs_CXX=no
13572	fi
13573	;;
13574
13575      chorus*)
13576        case $cc_basename in
13577          *)
13578	  # FIXME: insert proper C++ library support
13579	  ld_shlibs_CXX=no
13580	  ;;
13581        esac
13582        ;;
13583
13584      cygwin* | mingw* | pw32* | cegcc*)
13585	case $GXX,$cc_basename in
13586	,cl* | no,cl*)
13587	  # Native MSVC
13588	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13589	  # no search path for DLLs.
13590	  hardcode_libdir_flag_spec_CXX=' '
13591	  allow_undefined_flag_CXX=unsupported
13592	  always_export_symbols_CXX=yes
13593	  file_list_spec_CXX='@'
13594	  # Tell ltmain to make .lib files, not .a files.
13595	  libext=lib
13596	  # Tell ltmain to make .dll files, not .so files.
13597	  shrext_cmds=".dll"
13598	  # FIXME: Setting linknames here is a bad hack.
13599	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13600	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13601	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13602	    else
13603	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13604	    fi~
13605	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13606	    linknames='
13607	  # The linker will not automatically build a static lib if we build a DLL.
13608	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13609	  enable_shared_with_static_runtimes_CXX=yes
13610	  # Don't use ranlib
13611	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13612	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13613	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13614	    case $lt_outputfile in
13615	      *.exe|*.EXE) ;;
13616	      *)
13617		lt_outputfile="$lt_outputfile.exe"
13618		lt_tool_outputfile="$lt_tool_outputfile.exe"
13619		;;
13620	    esac~
13621	    func_to_tool_file "$lt_outputfile"~
13622	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13623	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13624	      $RM "$lt_outputfile.manifest";
13625	    fi'
13626	  ;;
13627	*)
13628	  # g++
13629	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13630	  # as there is no search path for DLLs.
13631	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13632	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13633	  allow_undefined_flag_CXX=unsupported
13634	  always_export_symbols_CXX=no
13635	  enable_shared_with_static_runtimes_CXX=yes
13636
13637	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13638	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13639	    # If the export-symbols file already is a .def file (1st line
13640	    # is EXPORTS), use it as is; otherwise, prepend...
13641	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13642	      cp $export_symbols $output_objdir/$soname.def;
13643	    else
13644	      echo EXPORTS > $output_objdir/$soname.def;
13645	      cat $export_symbols >> $output_objdir/$soname.def;
13646	    fi~
13647	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13648	  else
13649	    ld_shlibs_CXX=no
13650	  fi
13651	  ;;
13652	esac
13653	;;
13654      darwin* | rhapsody*)
13655
13656
13657  archive_cmds_need_lc_CXX=no
13658  hardcode_direct_CXX=no
13659  hardcode_automatic_CXX=yes
13660  hardcode_shlibpath_var_CXX=unsupported
13661  if test "$lt_cv_ld_force_load" = "yes"; then
13662    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13663
13664  else
13665    whole_archive_flag_spec_CXX=''
13666  fi
13667  link_all_deplibs_CXX=yes
13668  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13669  case $cc_basename in
13670     ifort*) _lt_dar_can_shared=yes ;;
13671     *) _lt_dar_can_shared=$GCC ;;
13672  esac
13673  if test "$_lt_dar_can_shared" = "yes"; then
13674    output_verbose_link_cmd=func_echo_all
13675    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13676    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13677    archive_expsym_cmds_CXX="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}"
13678    module_expsym_cmds_CXX="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}"
13679       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13680      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13681      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13682    fi
13683
13684  else
13685  ld_shlibs_CXX=no
13686  fi
13687
13688	;;
13689
13690      dgux*)
13691        case $cc_basename in
13692          ec++*)
13693	    # FIXME: insert proper C++ library support
13694	    ld_shlibs_CXX=no
13695	    ;;
13696          ghcx*)
13697	    # Green Hills C++ Compiler
13698	    # FIXME: insert proper C++ library support
13699	    ld_shlibs_CXX=no
13700	    ;;
13701          *)
13702	    # FIXME: insert proper C++ library support
13703	    ld_shlibs_CXX=no
13704	    ;;
13705        esac
13706        ;;
13707
13708      freebsd2.*)
13709        # C++ shared libraries reported to be fairly broken before
13710	# switch to ELF
13711        ld_shlibs_CXX=no
13712        ;;
13713
13714      freebsd-elf*)
13715        archive_cmds_need_lc_CXX=no
13716        ;;
13717
13718      freebsd* | dragonfly*)
13719        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13720        # conventions
13721        ld_shlibs_CXX=yes
13722        ;;
13723
13724      gnu*)
13725        ;;
13726
13727      haiku*)
13728        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729        link_all_deplibs_CXX=yes
13730        ;;
13731
13732      hpux9*)
13733        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13734        hardcode_libdir_separator_CXX=:
13735        export_dynamic_flag_spec_CXX='${wl}-E'
13736        hardcode_direct_CXX=yes
13737        hardcode_minus_L_CXX=yes # Not in the search PATH,
13738				             # but as the default
13739				             # location of the library.
13740
13741        case $cc_basename in
13742          CC*)
13743            # FIXME: insert proper C++ library support
13744            ld_shlibs_CXX=no
13745            ;;
13746          aCC*)
13747            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13748            # Commands to make compiler produce verbose output that lists
13749            # what "hidden" libraries, object files and flags are used when
13750            # linking a shared library.
13751            #
13752            # There doesn't appear to be a way to prevent this compiler from
13753            # explicitly linking system object files so we need to strip them
13754            # from the output so that they don't get included in the library
13755            # dependencies.
13756            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13757            ;;
13758          *)
13759            if test "$GXX" = yes; then
13760              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13761            else
13762              # FIXME: insert proper C++ library support
13763              ld_shlibs_CXX=no
13764            fi
13765            ;;
13766        esac
13767        ;;
13768
13769      hpux10*|hpux11*)
13770        if test $with_gnu_ld = no; then
13771	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13772	  hardcode_libdir_separator_CXX=:
13773
13774          case $host_cpu in
13775            hppa*64*|ia64*)
13776              ;;
13777            *)
13778	      export_dynamic_flag_spec_CXX='${wl}-E'
13779              ;;
13780          esac
13781        fi
13782        case $host_cpu in
13783          hppa*64*|ia64*)
13784            hardcode_direct_CXX=no
13785            hardcode_shlibpath_var_CXX=no
13786            ;;
13787          *)
13788            hardcode_direct_CXX=yes
13789            hardcode_direct_absolute_CXX=yes
13790            hardcode_minus_L_CXX=yes # Not in the search PATH,
13791					         # but as the default
13792					         # location of the library.
13793            ;;
13794        esac
13795
13796        case $cc_basename in
13797          CC*)
13798	    # FIXME: insert proper C++ library support
13799	    ld_shlibs_CXX=no
13800	    ;;
13801          aCC*)
13802	    case $host_cpu in
13803	      hppa*64*)
13804	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13805	        ;;
13806	      ia64*)
13807	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13808	        ;;
13809	      *)
13810	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13811	        ;;
13812	    esac
13813	    # Commands to make compiler produce verbose output that lists
13814	    # what "hidden" libraries, object files and flags are used when
13815	    # linking a shared library.
13816	    #
13817	    # There doesn't appear to be a way to prevent this compiler from
13818	    # explicitly linking system object files so we need to strip them
13819	    # from the output so that they don't get included in the library
13820	    # dependencies.
13821	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13822	    ;;
13823          *)
13824	    if test "$GXX" = yes; then
13825	      if test $with_gnu_ld = no; then
13826	        case $host_cpu in
13827	          hppa*64*)
13828	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13829	            ;;
13830	          ia64*)
13831	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13832	            ;;
13833	          *)
13834	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835	            ;;
13836	        esac
13837	      fi
13838	    else
13839	      # FIXME: insert proper C++ library support
13840	      ld_shlibs_CXX=no
13841	    fi
13842	    ;;
13843        esac
13844        ;;
13845
13846      interix[3-9]*)
13847	hardcode_direct_CXX=no
13848	hardcode_shlibpath_var_CXX=no
13849	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13850	export_dynamic_flag_spec_CXX='${wl}-E'
13851	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13852	# Instead, shared libraries are loaded at an image base (0x10000000 by
13853	# default) and relocated if they conflict, which is a slow very memory
13854	# consuming and fragmenting process.  To avoid this, we pick a random,
13855	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13856	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13857	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13858	archive_expsym_cmds_CXX='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'
13859	;;
13860      irix5* | irix6*)
13861        case $cc_basename in
13862          CC*)
13863	    # SGI C++
13864	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13865
13866	    # Archives containing C++ object files must be created using
13867	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13868	    # necessary to make sure instantiated templates are included
13869	    # in the archive.
13870	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13871	    ;;
13872          *)
13873	    if test "$GXX" = yes; then
13874	      if test "$with_gnu_ld" = no; then
13875	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13876	      else
13877	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13878	      fi
13879	    fi
13880	    link_all_deplibs_CXX=yes
13881	    ;;
13882        esac
13883        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13884        hardcode_libdir_separator_CXX=:
13885        inherit_rpath_CXX=yes
13886        ;;
13887
13888      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13889        case $cc_basename in
13890          KCC*)
13891	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13892
13893	    # KCC will only create a shared library if the output file
13894	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13895	    # to its proper name (with version) after linking.
13896	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13897	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13898	    # Commands to make compiler produce verbose output that lists
13899	    # what "hidden" libraries, object files and flags are used when
13900	    # linking a shared library.
13901	    #
13902	    # There doesn't appear to be a way to prevent this compiler from
13903	    # explicitly linking system object files so we need to strip them
13904	    # from the output so that they don't get included in the library
13905	    # dependencies.
13906	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13907
13908	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13909	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13910
13911	    # Archives containing C++ object files must be created using
13912	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13913	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13914	    ;;
13915	  icpc* | ecpc* )
13916	    # Intel C++
13917	    with_gnu_ld=yes
13918	    # version 8.0 and above of icpc choke on multiply defined symbols
13919	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13920	    # earlier do not add the objects themselves.
13921	    case `$CC -V 2>&1` in
13922	      *"Version 7."*)
13923	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13925		;;
13926	      *)  # Version 8.0 or newer
13927	        tmp_idyn=
13928	        case $host_cpu in
13929		  ia64*) tmp_idyn=' -i_dynamic';;
13930		esac
13931	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13932		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13933		;;
13934	    esac
13935	    archive_cmds_need_lc_CXX=no
13936	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13937	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13938	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13939	    ;;
13940          pgCC* | pgcpp*)
13941            # Portland Group C++ compiler
13942	    case `$CC -V` in
13943	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13944	      prelink_cmds_CXX='tpldir=Template.dir~
13945		rm -rf $tpldir~
13946		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13947		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13948	      old_archive_cmds_CXX='tpldir=Template.dir~
13949		rm -rf $tpldir~
13950		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13951		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13952		$RANLIB $oldlib'
13953	      archive_cmds_CXX='tpldir=Template.dir~
13954		rm -rf $tpldir~
13955		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13956		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13957	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13958		rm -rf $tpldir~
13959		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13960		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13961	      ;;
13962	    *) # Version 6 and above use weak symbols
13963	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13964	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13965	      ;;
13966	    esac
13967
13968	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13969	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13970	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13971            ;;
13972	  cxx*)
13973	    # Compaq C++
13974	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13975	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13976
13977	    runpath_var=LD_RUN_PATH
13978	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13979	    hardcode_libdir_separator_CXX=:
13980
13981	    # Commands to make compiler produce verbose output that lists
13982	    # what "hidden" libraries, object files and flags are used when
13983	    # linking a shared library.
13984	    #
13985	    # There doesn't appear to be a way to prevent this compiler from
13986	    # explicitly linking system object files so we need to strip them
13987	    # from the output so that they don't get included in the library
13988	    # dependencies.
13989	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13990	    ;;
13991	  xl* | mpixl* | bgxl*)
13992	    # IBM XL 8.0 on PPC, with GNU ld
13993	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13994	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13995	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996	    if test "x$supports_anon_versioning" = xyes; then
13997	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13998		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13999		echo "local: *; };" >> $output_objdir/$libname.ver~
14000		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14001	    fi
14002	    ;;
14003	  *)
14004	    case `$CC -V 2>&1 | sed 5q` in
14005	    *Sun\ C*)
14006	      # Sun C++ 5.9
14007	      no_undefined_flag_CXX=' -zdefs'
14008	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14009	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14010	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14011	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14012	      compiler_needs_object_CXX=yes
14013
14014	      # Not sure whether something based on
14015	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14016	      # would be better.
14017	      output_verbose_link_cmd='func_echo_all'
14018
14019	      # Archives containing C++ object files must be created using
14020	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14021	      # necessary to make sure instantiated templates are included
14022	      # in the archive.
14023	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14024	      ;;
14025	    esac
14026	    ;;
14027	esac
14028	;;
14029
14030      lynxos*)
14031        # FIXME: insert proper C++ library support
14032	ld_shlibs_CXX=no
14033	;;
14034
14035      m88k*)
14036        # FIXME: insert proper C++ library support
14037        ld_shlibs_CXX=no
14038	;;
14039
14040      mvs*)
14041        case $cc_basename in
14042          cxx*)
14043	    # FIXME: insert proper C++ library support
14044	    ld_shlibs_CXX=no
14045	    ;;
14046	  *)
14047	    # FIXME: insert proper C++ library support
14048	    ld_shlibs_CXX=no
14049	    ;;
14050	esac
14051	;;
14052
14053      netbsd*)
14054        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14055	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14056	  wlarc=
14057	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14058	  hardcode_direct_CXX=yes
14059	  hardcode_shlibpath_var_CXX=no
14060	fi
14061	# Workaround some broken pre-1.5 toolchains
14062	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14063	;;
14064
14065      *nto* | *qnx*)
14066        ld_shlibs_CXX=yes
14067	;;
14068
14069      openbsd2*)
14070        # C++ shared libraries are fairly broken
14071	ld_shlibs_CXX=no
14072	;;
14073
14074      openbsd*)
14075	if test -f /usr/libexec/ld.so; then
14076	  hardcode_direct_CXX=yes
14077	  hardcode_shlibpath_var_CXX=no
14078	  hardcode_direct_absolute_CXX=yes
14079	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14080	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14081	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14082	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14083	    export_dynamic_flag_spec_CXX='${wl}-E'
14084	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14085	  fi
14086	  output_verbose_link_cmd=func_echo_all
14087	else
14088	  ld_shlibs_CXX=no
14089	fi
14090	;;
14091
14092      osf3* | osf4* | osf5*)
14093        case $cc_basename in
14094          KCC*)
14095	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14096
14097	    # KCC will only create a shared library if the output file
14098	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14099	    # to its proper name (with version) after linking.
14100	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14101
14102	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14103	    hardcode_libdir_separator_CXX=:
14104
14105	    # Archives containing C++ object files must be created using
14106	    # the KAI C++ compiler.
14107	    case $host in
14108	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14109	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14110	    esac
14111	    ;;
14112          RCC*)
14113	    # Rational C++ 2.4.1
14114	    # FIXME: insert proper C++ library support
14115	    ld_shlibs_CXX=no
14116	    ;;
14117          cxx*)
14118	    case $host in
14119	      osf3*)
14120	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14121	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14122	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14123		;;
14124	      *)
14125	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14126	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14127	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14128	          echo "-hidden">> $lib.exp~
14129	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14130	          $RM $lib.exp'
14131	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14132		;;
14133	    esac
14134
14135	    hardcode_libdir_separator_CXX=:
14136
14137	    # Commands to make compiler produce verbose output that lists
14138	    # what "hidden" libraries, object files and flags are used when
14139	    # linking a shared library.
14140	    #
14141	    # There doesn't appear to be a way to prevent this compiler from
14142	    # explicitly linking system object files so we need to strip them
14143	    # from the output so that they don't get included in the library
14144	    # dependencies.
14145	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14146	    ;;
14147	  *)
14148	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14149	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14150	      case $host in
14151	        osf3*)
14152	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14153		  ;;
14154	        *)
14155	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14156		  ;;
14157	      esac
14158
14159	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14160	      hardcode_libdir_separator_CXX=:
14161
14162	      # Commands to make compiler produce verbose output that lists
14163	      # what "hidden" libraries, object files and flags are used when
14164	      # linking a shared library.
14165	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14166
14167	    else
14168	      # FIXME: insert proper C++ library support
14169	      ld_shlibs_CXX=no
14170	    fi
14171	    ;;
14172        esac
14173        ;;
14174
14175      psos*)
14176        # FIXME: insert proper C++ library support
14177        ld_shlibs_CXX=no
14178        ;;
14179
14180      sunos4*)
14181        case $cc_basename in
14182          CC*)
14183	    # Sun C++ 4.x
14184	    # FIXME: insert proper C++ library support
14185	    ld_shlibs_CXX=no
14186	    ;;
14187          lcc*)
14188	    # Lucid
14189	    # FIXME: insert proper C++ library support
14190	    ld_shlibs_CXX=no
14191	    ;;
14192          *)
14193	    # FIXME: insert proper C++ library support
14194	    ld_shlibs_CXX=no
14195	    ;;
14196        esac
14197        ;;
14198
14199      solaris*)
14200        case $cc_basename in
14201          CC* | sunCC*)
14202	    # Sun C++ 4.2, 5.x and Centerline C++
14203            archive_cmds_need_lc_CXX=yes
14204	    no_undefined_flag_CXX=' -zdefs'
14205	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14206	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14207	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14208
14209	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14210	    hardcode_shlibpath_var_CXX=no
14211	    case $host_os in
14212	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14213	      *)
14214		# The compiler driver will combine and reorder linker options,
14215		# but understands `-z linker_flag'.
14216	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14217		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14218	        ;;
14219	    esac
14220	    link_all_deplibs_CXX=yes
14221
14222	    output_verbose_link_cmd='func_echo_all'
14223
14224	    # Archives containing C++ object files must be created using
14225	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14226	    # necessary to make sure instantiated templates are included
14227	    # in the archive.
14228	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14229	    ;;
14230          gcx*)
14231	    # Green Hills C++ Compiler
14232	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14233
14234	    # The C++ compiler must be used to create the archive.
14235	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14236	    ;;
14237          *)
14238	    # GNU C++ compiler with Solaris linker
14239	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14240	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14241	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14242	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14243	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14244		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14245
14246	        # Commands to make compiler produce verbose output that lists
14247	        # what "hidden" libraries, object files and flags are used when
14248	        # linking a shared library.
14249	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14250	      else
14251	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14252	        # platform.
14253	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14254	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14255		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14256
14257	        # Commands to make compiler produce verbose output that lists
14258	        # what "hidden" libraries, object files and flags are used when
14259	        # linking a shared library.
14260	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14261	      fi
14262
14263	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14264	      case $host_os in
14265		solaris2.[0-5] | solaris2.[0-5].*) ;;
14266		*)
14267		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14268		  ;;
14269	      esac
14270	    fi
14271	    ;;
14272        esac
14273        ;;
14274
14275    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14276      no_undefined_flag_CXX='${wl}-z,text'
14277      archive_cmds_need_lc_CXX=no
14278      hardcode_shlibpath_var_CXX=no
14279      runpath_var='LD_RUN_PATH'
14280
14281      case $cc_basename in
14282        CC*)
14283	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14285	  ;;
14286	*)
14287	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14288	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14289	  ;;
14290      esac
14291      ;;
14292
14293      sysv5* | sco3.2v5* | sco5v6*)
14294	# Note: We can NOT use -z defs as we might desire, because we do not
14295	# link with -lc, and that would cause any symbols used from libc to
14296	# always be unresolved, which means just about no library would
14297	# ever link correctly.  If we're not using GNU ld we use -z text
14298	# though, which does catch some bad symbols but isn't as heavy-handed
14299	# as -z defs.
14300	no_undefined_flag_CXX='${wl}-z,text'
14301	allow_undefined_flag_CXX='${wl}-z,nodefs'
14302	archive_cmds_need_lc_CXX=no
14303	hardcode_shlibpath_var_CXX=no
14304	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14305	hardcode_libdir_separator_CXX=':'
14306	link_all_deplibs_CXX=yes
14307	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14308	runpath_var='LD_RUN_PATH'
14309
14310	case $cc_basename in
14311          CC*)
14312	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14314	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14315	      '"$old_archive_cmds_CXX"
14316	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14317	      '"$reload_cmds_CXX"
14318	    ;;
14319	  *)
14320	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14322	    ;;
14323	esac
14324      ;;
14325
14326      tandem*)
14327        case $cc_basename in
14328          NCC*)
14329	    # NonStop-UX NCC 3.20
14330	    # FIXME: insert proper C++ library support
14331	    ld_shlibs_CXX=no
14332	    ;;
14333          *)
14334	    # FIXME: insert proper C++ library support
14335	    ld_shlibs_CXX=no
14336	    ;;
14337        esac
14338        ;;
14339
14340      vxworks*)
14341        # FIXME: insert proper C++ library support
14342        ld_shlibs_CXX=no
14343        ;;
14344
14345      *)
14346        # FIXME: insert proper C++ library support
14347        ld_shlibs_CXX=no
14348        ;;
14349    esac
14350
14351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14352$as_echo "$ld_shlibs_CXX" >&6; }
14353    test "$ld_shlibs_CXX" = no && can_build_shared=no
14354
14355    GCC_CXX="$GXX"
14356    LD_CXX="$LD"
14357
14358    ## CAVEAT EMPTOR:
14359    ## There is no encapsulation within the following macros, do not change
14360    ## the running order or otherwise move them around unless you know exactly
14361    ## what you are doing...
14362    # Dependencies to place before and after the object being linked:
14363predep_objects_CXX=
14364postdep_objects_CXX=
14365predeps_CXX=
14366postdeps_CXX=
14367compiler_lib_search_path_CXX=
14368
14369cat > conftest.$ac_ext <<_LT_EOF
14370class Foo
14371{
14372public:
14373  Foo (void) { a = 0; }
14374private:
14375  int a;
14376};
14377_LT_EOF
14378
14379
14380_lt_libdeps_save_CFLAGS=$CFLAGS
14381case "$CC $CFLAGS " in #(
14382*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14383*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14384*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14385esac
14386
14387if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14388  (eval $ac_compile) 2>&5
14389  ac_status=$?
14390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14391  test $ac_status = 0; }; then
14392  # Parse the compiler output and extract the necessary
14393  # objects, libraries and library flags.
14394
14395  # Sentinel used to keep track of whether or not we are before
14396  # the conftest object file.
14397  pre_test_object_deps_done=no
14398
14399  for p in `eval "$output_verbose_link_cmd"`; do
14400    case ${prev}${p} in
14401
14402    -L* | -R* | -l*)
14403       # Some compilers place space between "-{L,R}" and the path.
14404       # Remove the space.
14405       if test $p = "-L" ||
14406          test $p = "-R"; then
14407	 prev=$p
14408	 continue
14409       fi
14410
14411       # Expand the sysroot to ease extracting the directories later.
14412       if test -z "$prev"; then
14413         case $p in
14414         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14415         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14416         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14417         esac
14418       fi
14419       case $p in
14420       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14421       esac
14422       if test "$pre_test_object_deps_done" = no; then
14423	 case ${prev} in
14424	 -L | -R)
14425	   # Internal compiler library paths should come after those
14426	   # provided the user.  The postdeps already come after the
14427	   # user supplied libs so there is no need to process them.
14428	   if test -z "$compiler_lib_search_path_CXX"; then
14429	     compiler_lib_search_path_CXX="${prev}${p}"
14430	   else
14431	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14432	   fi
14433	   ;;
14434	 # The "-l" case would never come before the object being
14435	 # linked, so don't bother handling this case.
14436	 esac
14437       else
14438	 if test -z "$postdeps_CXX"; then
14439	   postdeps_CXX="${prev}${p}"
14440	 else
14441	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14442	 fi
14443       fi
14444       prev=
14445       ;;
14446
14447    *.lto.$objext) ;; # Ignore GCC LTO objects
14448    *.$objext)
14449       # This assumes that the test object file only shows up
14450       # once in the compiler output.
14451       if test "$p" = "conftest.$objext"; then
14452	 pre_test_object_deps_done=yes
14453	 continue
14454       fi
14455
14456       if test "$pre_test_object_deps_done" = no; then
14457	 if test -z "$predep_objects_CXX"; then
14458	   predep_objects_CXX="$p"
14459	 else
14460	   predep_objects_CXX="$predep_objects_CXX $p"
14461	 fi
14462       else
14463	 if test -z "$postdep_objects_CXX"; then
14464	   postdep_objects_CXX="$p"
14465	 else
14466	   postdep_objects_CXX="$postdep_objects_CXX $p"
14467	 fi
14468       fi
14469       ;;
14470
14471    *) ;; # Ignore the rest.
14472
14473    esac
14474  done
14475
14476  # Clean up.
14477  rm -f a.out a.exe
14478else
14479  echo "libtool.m4: error: problem compiling CXX test program"
14480fi
14481
14482$RM -f confest.$objext
14483CFLAGS=$_lt_libdeps_save_CFLAGS
14484
14485# PORTME: override above test on systems where it is broken
14486case $host_os in
14487interix[3-9]*)
14488  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14489  # hack all around it, let's just trust "g++" to DTRT.
14490  predep_objects_CXX=
14491  postdep_objects_CXX=
14492  postdeps_CXX=
14493  ;;
14494
14495linux*)
14496  case `$CC -V 2>&1 | sed 5q` in
14497  *Sun\ C*)
14498    # Sun C++ 5.9
14499
14500    # The more standards-conforming stlport4 library is
14501    # incompatible with the Cstd library. Avoid specifying
14502    # it if it's in CXXFLAGS. Ignore libCrun as
14503    # -library=stlport4 depends on it.
14504    case " $CXX $CXXFLAGS " in
14505    *" -library=stlport4 "*)
14506      solaris_use_stlport4=yes
14507      ;;
14508    esac
14509
14510    if test "$solaris_use_stlport4" != yes; then
14511      postdeps_CXX='-library=Cstd -library=Crun'
14512    fi
14513    ;;
14514  esac
14515  ;;
14516
14517solaris*)
14518  case $cc_basename in
14519  CC* | sunCC*)
14520    # The more standards-conforming stlport4 library is
14521    # incompatible with the Cstd library. Avoid specifying
14522    # it if it's in CXXFLAGS. Ignore libCrun as
14523    # -library=stlport4 depends on it.
14524    case " $CXX $CXXFLAGS " in
14525    *" -library=stlport4 "*)
14526      solaris_use_stlport4=yes
14527      ;;
14528    esac
14529
14530    # Adding this requires a known-good setup of shared libraries for
14531    # Sun compiler versions before 5.6, else PIC objects from an old
14532    # archive will be linked into the output, leading to subtle bugs.
14533    if test "$solaris_use_stlport4" != yes; then
14534      postdeps_CXX='-library=Cstd -library=Crun'
14535    fi
14536    ;;
14537  esac
14538  ;;
14539esac
14540
14541
14542case " $postdeps_CXX " in
14543*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14544esac
14545 compiler_lib_search_dirs_CXX=
14546if test -n "${compiler_lib_search_path_CXX}"; then
14547 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14548fi
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580    lt_prog_compiler_wl_CXX=
14581lt_prog_compiler_pic_CXX=
14582lt_prog_compiler_static_CXX=
14583
14584
14585  # C++ specific cases for pic, static, wl, etc.
14586  if test "$GXX" = yes; then
14587    lt_prog_compiler_wl_CXX='-Wl,'
14588    lt_prog_compiler_static_CXX='-static'
14589
14590    case $host_os in
14591    aix*)
14592      # All AIX code is PIC.
14593      if test "$host_cpu" = ia64; then
14594	# AIX 5 now supports IA64 processor
14595	lt_prog_compiler_static_CXX='-Bstatic'
14596      fi
14597      ;;
14598
14599    amigaos*)
14600      case $host_cpu in
14601      powerpc)
14602            # see comment about AmigaOS4 .so support
14603            lt_prog_compiler_pic_CXX='-fPIC'
14604        ;;
14605      m68k)
14606            # FIXME: we need at least 68020 code to build shared libraries, but
14607            # adding the `-m68020' flag to GCC prevents building anything better,
14608            # like `-m68040'.
14609            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14610        ;;
14611      esac
14612      ;;
14613
14614    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14615      # PIC is the default for these OSes.
14616      ;;
14617    mingw* | cygwin* | os2* | pw32* | cegcc*)
14618      # This hack is so that the source file can tell whether it is being
14619      # built for inclusion in a dll (and should export symbols for example).
14620      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14621      # (--disable-auto-import) libraries
14622      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14623      ;;
14624    darwin* | rhapsody*)
14625      # PIC is the default on this platform
14626      # Common symbols not allowed in MH_DYLIB files
14627      lt_prog_compiler_pic_CXX='-fno-common'
14628      ;;
14629    *djgpp*)
14630      # DJGPP does not support shared libraries at all
14631      lt_prog_compiler_pic_CXX=
14632      ;;
14633    haiku*)
14634      # PIC is the default for Haiku.
14635      # The "-static" flag exists, but is broken.
14636      lt_prog_compiler_static_CXX=
14637      ;;
14638    interix[3-9]*)
14639      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14640      # Instead, we relocate shared libraries at runtime.
14641      ;;
14642    sysv4*MP*)
14643      if test -d /usr/nec; then
14644	lt_prog_compiler_pic_CXX=-Kconform_pic
14645      fi
14646      ;;
14647    hpux*)
14648      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14649      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14650      # sets the default TLS model and affects inlining.
14651      case $host_cpu in
14652      hppa*64*)
14653	;;
14654      *)
14655	lt_prog_compiler_pic_CXX='-fPIC'
14656	;;
14657      esac
14658      ;;
14659    *qnx* | *nto*)
14660      # QNX uses GNU C++, but need to define -shared option too, otherwise
14661      # it will coredump.
14662      lt_prog_compiler_pic_CXX='-fPIC -shared'
14663      ;;
14664    *)
14665      lt_prog_compiler_pic_CXX='-fPIC'
14666      ;;
14667    esac
14668  else
14669    case $host_os in
14670      aix[4-9]*)
14671	# All AIX code is PIC.
14672	if test "$host_cpu" = ia64; then
14673	  # AIX 5 now supports IA64 processor
14674	  lt_prog_compiler_static_CXX='-Bstatic'
14675	else
14676	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14677	fi
14678	;;
14679      chorus*)
14680	case $cc_basename in
14681	cxch68*)
14682	  # Green Hills C++ Compiler
14683	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14684	  ;;
14685	esac
14686	;;
14687      mingw* | cygwin* | os2* | pw32* | cegcc*)
14688	# This hack is so that the source file can tell whether it is being
14689	# built for inclusion in a dll (and should export symbols for example).
14690	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14691	;;
14692      dgux*)
14693	case $cc_basename in
14694	  ec++*)
14695	    lt_prog_compiler_pic_CXX='-KPIC'
14696	    ;;
14697	  ghcx*)
14698	    # Green Hills C++ Compiler
14699	    lt_prog_compiler_pic_CXX='-pic'
14700	    ;;
14701	  *)
14702	    ;;
14703	esac
14704	;;
14705      freebsd* | dragonfly*)
14706	# FreeBSD uses GNU C++
14707	;;
14708      hpux9* | hpux10* | hpux11*)
14709	case $cc_basename in
14710	  CC*)
14711	    lt_prog_compiler_wl_CXX='-Wl,'
14712	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14713	    if test "$host_cpu" != ia64; then
14714	      lt_prog_compiler_pic_CXX='+Z'
14715	    fi
14716	    ;;
14717	  aCC*)
14718	    lt_prog_compiler_wl_CXX='-Wl,'
14719	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14720	    case $host_cpu in
14721	    hppa*64*|ia64*)
14722	      # +Z the default
14723	      ;;
14724	    *)
14725	      lt_prog_compiler_pic_CXX='+Z'
14726	      ;;
14727	    esac
14728	    ;;
14729	  *)
14730	    ;;
14731	esac
14732	;;
14733      interix*)
14734	# This is c89, which is MS Visual C++ (no shared libs)
14735	# Anyone wants to do a port?
14736	;;
14737      irix5* | irix6* | nonstopux*)
14738	case $cc_basename in
14739	  CC*)
14740	    lt_prog_compiler_wl_CXX='-Wl,'
14741	    lt_prog_compiler_static_CXX='-non_shared'
14742	    # CC pic flag -KPIC is the default.
14743	    ;;
14744	  *)
14745	    ;;
14746	esac
14747	;;
14748      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14749	case $cc_basename in
14750	  KCC*)
14751	    # KAI C++ Compiler
14752	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14753	    lt_prog_compiler_pic_CXX='-fPIC'
14754	    ;;
14755	  ecpc* )
14756	    # old Intel C++ for x86_64 which still supported -KPIC.
14757	    lt_prog_compiler_wl_CXX='-Wl,'
14758	    lt_prog_compiler_pic_CXX='-KPIC'
14759	    lt_prog_compiler_static_CXX='-static'
14760	    ;;
14761	  icpc* )
14762	    # Intel C++, used to be incompatible with GCC.
14763	    # ICC 10 doesn't accept -KPIC any more.
14764	    lt_prog_compiler_wl_CXX='-Wl,'
14765	    lt_prog_compiler_pic_CXX='-fPIC'
14766	    lt_prog_compiler_static_CXX='-static'
14767	    ;;
14768	  pgCC* | pgcpp*)
14769	    # Portland Group C++ compiler
14770	    lt_prog_compiler_wl_CXX='-Wl,'
14771	    lt_prog_compiler_pic_CXX='-fpic'
14772	    lt_prog_compiler_static_CXX='-Bstatic'
14773	    ;;
14774	  cxx*)
14775	    # Compaq C++
14776	    # Make sure the PIC flag is empty.  It appears that all Alpha
14777	    # Linux and Compaq Tru64 Unix objects are PIC.
14778	    lt_prog_compiler_pic_CXX=
14779	    lt_prog_compiler_static_CXX='-non_shared'
14780	    ;;
14781	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14782	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14783	    lt_prog_compiler_wl_CXX='-Wl,'
14784	    lt_prog_compiler_pic_CXX='-qpic'
14785	    lt_prog_compiler_static_CXX='-qstaticlink'
14786	    ;;
14787	  *)
14788	    case `$CC -V 2>&1 | sed 5q` in
14789	    *Sun\ C*)
14790	      # Sun C++ 5.9
14791	      lt_prog_compiler_pic_CXX='-KPIC'
14792	      lt_prog_compiler_static_CXX='-Bstatic'
14793	      lt_prog_compiler_wl_CXX='-Qoption ld '
14794	      ;;
14795	    esac
14796	    ;;
14797	esac
14798	;;
14799      lynxos*)
14800	;;
14801      m88k*)
14802	;;
14803      mvs*)
14804	case $cc_basename in
14805	  cxx*)
14806	    lt_prog_compiler_pic_CXX='-W c,exportall'
14807	    ;;
14808	  *)
14809	    ;;
14810	esac
14811	;;
14812      netbsd*)
14813	;;
14814      *qnx* | *nto*)
14815        # QNX uses GNU C++, but need to define -shared option too, otherwise
14816        # it will coredump.
14817        lt_prog_compiler_pic_CXX='-fPIC -shared'
14818        ;;
14819      osf3* | osf4* | osf5*)
14820	case $cc_basename in
14821	  KCC*)
14822	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14823	    ;;
14824	  RCC*)
14825	    # Rational C++ 2.4.1
14826	    lt_prog_compiler_pic_CXX='-pic'
14827	    ;;
14828	  cxx*)
14829	    # Digital/Compaq C++
14830	    lt_prog_compiler_wl_CXX='-Wl,'
14831	    # Make sure the PIC flag is empty.  It appears that all Alpha
14832	    # Linux and Compaq Tru64 Unix objects are PIC.
14833	    lt_prog_compiler_pic_CXX=
14834	    lt_prog_compiler_static_CXX='-non_shared'
14835	    ;;
14836	  *)
14837	    ;;
14838	esac
14839	;;
14840      psos*)
14841	;;
14842      solaris*)
14843	case $cc_basename in
14844	  CC* | sunCC*)
14845	    # Sun C++ 4.2, 5.x and Centerline C++
14846	    lt_prog_compiler_pic_CXX='-KPIC'
14847	    lt_prog_compiler_static_CXX='-Bstatic'
14848	    lt_prog_compiler_wl_CXX='-Qoption ld '
14849	    ;;
14850	  gcx*)
14851	    # Green Hills C++ Compiler
14852	    lt_prog_compiler_pic_CXX='-PIC'
14853	    ;;
14854	  *)
14855	    ;;
14856	esac
14857	;;
14858      sunos4*)
14859	case $cc_basename in
14860	  CC*)
14861	    # Sun C++ 4.x
14862	    lt_prog_compiler_pic_CXX='-pic'
14863	    lt_prog_compiler_static_CXX='-Bstatic'
14864	    ;;
14865	  lcc*)
14866	    # Lucid
14867	    lt_prog_compiler_pic_CXX='-pic'
14868	    ;;
14869	  *)
14870	    ;;
14871	esac
14872	;;
14873      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14874	case $cc_basename in
14875	  CC*)
14876	    lt_prog_compiler_wl_CXX='-Wl,'
14877	    lt_prog_compiler_pic_CXX='-KPIC'
14878	    lt_prog_compiler_static_CXX='-Bstatic'
14879	    ;;
14880	esac
14881	;;
14882      tandem*)
14883	case $cc_basename in
14884	  NCC*)
14885	    # NonStop-UX NCC 3.20
14886	    lt_prog_compiler_pic_CXX='-KPIC'
14887	    ;;
14888	  *)
14889	    ;;
14890	esac
14891	;;
14892      vxworks*)
14893	;;
14894      *)
14895	lt_prog_compiler_can_build_shared_CXX=no
14896	;;
14897    esac
14898  fi
14899
14900case $host_os in
14901  # For platforms which do not support PIC, -DPIC is meaningless:
14902  *djgpp*)
14903    lt_prog_compiler_pic_CXX=
14904    ;;
14905  *)
14906    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14907    ;;
14908esac
14909
14910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14911$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14912if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14913  $as_echo_n "(cached) " >&6
14914else
14915  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14916fi
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14918$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14919lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14920
14921#
14922# Check to make sure the PIC flag actually works.
14923#
14924if test -n "$lt_prog_compiler_pic_CXX"; then
14925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14926$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14927if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14928  $as_echo_n "(cached) " >&6
14929else
14930  lt_cv_prog_compiler_pic_works_CXX=no
14931   ac_outfile=conftest.$ac_objext
14932   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14933   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14934   # Insert the option either (1) after the last *FLAGS variable, or
14935   # (2) before a word containing "conftest.", or (3) at the end.
14936   # Note that $ac_compile itself does not contain backslashes and begins
14937   # with a dollar sign (not a hyphen), so the echo should work correctly.
14938   # The option is referenced via a variable to avoid confusing sed.
14939   lt_compile=`echo "$ac_compile" | $SED \
14940   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14941   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14942   -e 's:$: $lt_compiler_flag:'`
14943   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14944   (eval "$lt_compile" 2>conftest.err)
14945   ac_status=$?
14946   cat conftest.err >&5
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   if (exit $ac_status) && test -s "$ac_outfile"; then
14949     # The compiler can only warn and ignore the option if not recognized
14950     # So say no if there are warnings other than the usual output.
14951     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14952     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14953     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14954       lt_cv_prog_compiler_pic_works_CXX=yes
14955     fi
14956   fi
14957   $RM -r conftest*
14958
14959fi
14960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14961$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14962
14963if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14964    case $lt_prog_compiler_pic_CXX in
14965     "" | " "*) ;;
14966     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14967     esac
14968else
14969    lt_prog_compiler_pic_CXX=
14970     lt_prog_compiler_can_build_shared_CXX=no
14971fi
14972
14973fi
14974
14975
14976
14977
14978
14979#
14980# Check to make sure the static flag actually works.
14981#
14982wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14984$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14985if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14986  $as_echo_n "(cached) " >&6
14987else
14988  lt_cv_prog_compiler_static_works_CXX=no
14989   save_LDFLAGS="$LDFLAGS"
14990   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14991   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14992   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14993     # The linker can only warn and ignore the option if not recognized
14994     # So say no if there are warnings
14995     if test -s conftest.err; then
14996       # Append any errors to the config.log.
14997       cat conftest.err 1>&5
14998       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14999       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15000       if diff conftest.exp conftest.er2 >/dev/null; then
15001         lt_cv_prog_compiler_static_works_CXX=yes
15002       fi
15003     else
15004       lt_cv_prog_compiler_static_works_CXX=yes
15005     fi
15006   fi
15007   $RM -r conftest*
15008   LDFLAGS="$save_LDFLAGS"
15009
15010fi
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15012$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15013
15014if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15015    :
15016else
15017    lt_prog_compiler_static_CXX=
15018fi
15019
15020
15021
15022
15023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15025if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15026  $as_echo_n "(cached) " >&6
15027else
15028  lt_cv_prog_compiler_c_o_CXX=no
15029   $RM -r conftest 2>/dev/null
15030   mkdir conftest
15031   cd conftest
15032   mkdir out
15033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15034
15035   lt_compiler_flag="-o out/conftest2.$ac_objext"
15036   # Insert the option either (1) after the last *FLAGS variable, or
15037   # (2) before a word containing "conftest.", or (3) at the end.
15038   # Note that $ac_compile itself does not contain backslashes and begins
15039   # with a dollar sign (not a hyphen), so the echo should work correctly.
15040   lt_compile=`echo "$ac_compile" | $SED \
15041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15043   -e 's:$: $lt_compiler_flag:'`
15044   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15045   (eval "$lt_compile" 2>out/conftest.err)
15046   ac_status=$?
15047   cat out/conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15050   then
15051     # The compiler can only warn and ignore the option if not recognized
15052     # So say no if there are warnings
15053     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15056       lt_cv_prog_compiler_c_o_CXX=yes
15057     fi
15058   fi
15059   chmod u+w . 2>&5
15060   $RM -r conftest*
15061   # SGI C++ compiler will create directory out/ii_files/ for
15062   # template instantiation
15063   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15064   $RM out/* && rmdir out
15065   cd ..
15066   $RM -r conftest
15067   $RM -r conftest*
15068
15069fi
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15071$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15072
15073
15074
15075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15076$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15077if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15078  $as_echo_n "(cached) " >&6
15079else
15080  lt_cv_prog_compiler_c_o_CXX=no
15081   $RM -r conftest 2>/dev/null
15082   mkdir conftest
15083   cd conftest
15084   mkdir out
15085   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15086
15087   lt_compiler_flag="-o out/conftest2.$ac_objext"
15088   # Insert the option either (1) after the last *FLAGS variable, or
15089   # (2) before a word containing "conftest.", or (3) at the end.
15090   # Note that $ac_compile itself does not contain backslashes and begins
15091   # with a dollar sign (not a hyphen), so the echo should work correctly.
15092   lt_compile=`echo "$ac_compile" | $SED \
15093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15095   -e 's:$: $lt_compiler_flag:'`
15096   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15097   (eval "$lt_compile" 2>out/conftest.err)
15098   ac_status=$?
15099   cat out/conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15102   then
15103     # The compiler can only warn and ignore the option if not recognized
15104     # So say no if there are warnings
15105     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15106     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15107     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15108       lt_cv_prog_compiler_c_o_CXX=yes
15109     fi
15110   fi
15111   chmod u+w . 2>&5
15112   $RM -r conftest*
15113   # SGI C++ compiler will create directory out/ii_files/ for
15114   # template instantiation
15115   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15116   $RM out/* && rmdir out
15117   cd ..
15118   $RM -r conftest
15119   $RM -r conftest*
15120
15121fi
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15123$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15124
15125
15126
15127
15128hard_links="nottested"
15129if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15130  # do not overwrite the value of need_locks provided by the user
15131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15132$as_echo_n "checking if we can lock with hard links... " >&6; }
15133  hard_links=yes
15134  $RM -r conftest*
15135  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15136  touch conftest.a
15137  ln conftest.a conftest.b 2>&5 || hard_links=no
15138  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15140$as_echo "$hard_links" >&6; }
15141  if test "$hard_links" = no; then
15142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15143$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15144    need_locks=warn
15145  fi
15146else
15147  need_locks=no
15148fi
15149
15150
15151
15152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15153$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15154
15155  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15156  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15157  case $host_os in
15158  aix[4-9]*)
15159    # If we're using GNU nm, then we don't want the "-C" option.
15160    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15161    # Also, AIX nm treats weak defined symbols like other global defined
15162    # symbols, whereas GNU nm marks them as "W".
15163    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15164      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15165    else
15166      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15167    fi
15168    ;;
15169  pw32*)
15170    export_symbols_cmds_CXX="$ltdll_cmds"
15171    ;;
15172  cygwin* | mingw* | cegcc*)
15173    case $cc_basename in
15174    cl*)
15175      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15176      ;;
15177    *)
15178      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15179      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15180      ;;
15181    esac
15182    ;;
15183  *)
15184    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15185    ;;
15186  esac
15187
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15189$as_echo "$ld_shlibs_CXX" >&6; }
15190test "$ld_shlibs_CXX" = no && can_build_shared=no
15191
15192with_gnu_ld_CXX=$with_gnu_ld
15193
15194
15195
15196
15197
15198
15199#
15200# Do we need to explicitly link libc?
15201#
15202case "x$archive_cmds_need_lc_CXX" in
15203x|xyes)
15204  # Assume -lc should be added
15205  archive_cmds_need_lc_CXX=yes
15206
15207  if test "$enable_shared" = yes && test "$GCC" = yes; then
15208    case $archive_cmds_CXX in
15209    *'~'*)
15210      # FIXME: we may have to deal with multi-command sequences.
15211      ;;
15212    '$CC '*)
15213      # Test whether the compiler implicitly links with -lc since on some
15214      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15215      # to ld, don't add -lc before -lgcc.
15216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15218if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15219  $as_echo_n "(cached) " >&6
15220else
15221  $RM -r conftest*
15222	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15223
15224	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15225  (eval $ac_compile) 2>&5
15226  ac_status=$?
15227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15228  test $ac_status = 0; } 2>conftest.err; then
15229	  soname=conftest
15230	  lib=conftest
15231	  libobjs=conftest.$ac_objext
15232	  deplibs=
15233	  wl=$lt_prog_compiler_wl_CXX
15234	  pic_flag=$lt_prog_compiler_pic_CXX
15235	  compiler_flags=-v
15236	  linker_flags=-v
15237	  verstring=
15238	  output_objdir=.
15239	  libname=conftest
15240	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15241	  allow_undefined_flag_CXX=
15242	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15243  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15244  ac_status=$?
15245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15246  test $ac_status = 0; }
15247	  then
15248	    lt_cv_archive_cmds_need_lc_CXX=no
15249	  else
15250	    lt_cv_archive_cmds_need_lc_CXX=yes
15251	  fi
15252	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15253	else
15254	  cat conftest.err 1>&5
15255	fi
15256	$RM -r conftest*
15257
15258fi
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15260$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15261      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15262      ;;
15263    esac
15264  fi
15265  ;;
15266esac
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15330$as_echo_n "checking dynamic linker characteristics... " >&6; }
15331
15332library_names_spec=
15333libname_spec='lib$name'
15334soname_spec=
15335shrext_cmds=".so"
15336postinstall_cmds=
15337postuninstall_cmds=
15338finish_cmds=
15339finish_eval=
15340shlibpath_var=
15341shlibpath_overrides_runpath=unknown
15342version_type=none
15343dynamic_linker="$host_os ld.so"
15344sys_lib_dlsearch_path_spec="/lib /usr/lib"
15345need_lib_prefix=unknown
15346hardcode_into_libs=no
15347
15348# when you set need_version to no, make sure it does not cause -set_version
15349# flags to be left without arguments
15350need_version=unknown
15351
15352case $host_os in
15353aix3*)
15354  version_type=linux # correct to gnu/linux during the next big refactor
15355  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15356  shlibpath_var=LIBPATH
15357
15358  # AIX 3 has no versioning support, so we append a major version to the name.
15359  soname_spec='${libname}${release}${shared_ext}$major'
15360  ;;
15361
15362aix[4-9]*)
15363  version_type=linux # correct to gnu/linux during the next big refactor
15364  need_lib_prefix=no
15365  need_version=no
15366  hardcode_into_libs=yes
15367  if test "$host_cpu" = ia64; then
15368    # AIX 5 supports IA64
15369    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15370    shlibpath_var=LD_LIBRARY_PATH
15371  else
15372    # With GCC up to 2.95.x, collect2 would create an import file
15373    # for dependence libraries.  The import file would start with
15374    # the line `#! .'.  This would cause the generated library to
15375    # depend on `.', always an invalid library.  This was fixed in
15376    # development snapshots of GCC prior to 3.0.
15377    case $host_os in
15378      aix4 | aix4.[01] | aix4.[01].*)
15379      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15380	   echo ' yes '
15381	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15382	:
15383      else
15384	can_build_shared=no
15385      fi
15386      ;;
15387    esac
15388    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15389    # soname into executable. Probably we can add versioning support to
15390    # collect2, so additional links can be useful in future.
15391    if test "$aix_use_runtimelinking" = yes; then
15392      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15393      # instead of lib<name>.a to let people know that these are not
15394      # typical AIX shared libraries.
15395      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396    else
15397      # We preserve .a as extension for shared libraries through AIX4.2
15398      # and later when we are not doing run time linking.
15399      library_names_spec='${libname}${release}.a $libname.a'
15400      soname_spec='${libname}${release}${shared_ext}$major'
15401    fi
15402    shlibpath_var=LIBPATH
15403  fi
15404  ;;
15405
15406amigaos*)
15407  case $host_cpu in
15408  powerpc)
15409    # Since July 2007 AmigaOS4 officially supports .so libraries.
15410    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412    ;;
15413  m68k)
15414    library_names_spec='$libname.ixlibrary $libname.a'
15415    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15416    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15417    ;;
15418  esac
15419  ;;
15420
15421beos*)
15422  library_names_spec='${libname}${shared_ext}'
15423  dynamic_linker="$host_os ld.so"
15424  shlibpath_var=LIBRARY_PATH
15425  ;;
15426
15427bsdi[45]*)
15428  version_type=linux # correct to gnu/linux during the next big refactor
15429  need_version=no
15430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431  soname_spec='${libname}${release}${shared_ext}$major'
15432  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15433  shlibpath_var=LD_LIBRARY_PATH
15434  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15435  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15436  # the default ld.so.conf also contains /usr/contrib/lib and
15437  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15438  # libtool to hard-code these into programs
15439  ;;
15440
15441cygwin* | mingw* | pw32* | cegcc*)
15442  version_type=windows
15443  shrext_cmds=".dll"
15444  need_version=no
15445  need_lib_prefix=no
15446
15447  case $GCC,$cc_basename in
15448  yes,*)
15449    # gcc
15450    library_names_spec='$libname.dll.a'
15451    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15452    postinstall_cmds='base_file=`basename \${file}`~
15453      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15454      dldir=$destdir/`dirname \$dlpath`~
15455      test -d \$dldir || mkdir -p \$dldir~
15456      $install_prog $dir/$dlname \$dldir/$dlname~
15457      chmod a+x \$dldir/$dlname~
15458      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15459        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15460      fi'
15461    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15462      dlpath=$dir/\$dldll~
15463       $RM \$dlpath'
15464    shlibpath_overrides_runpath=yes
15465
15466    case $host_os in
15467    cygwin*)
15468      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15469      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15470
15471      ;;
15472    mingw* | cegcc*)
15473      # MinGW DLLs use traditional 'lib' prefix
15474      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15475      ;;
15476    pw32*)
15477      # pw32 DLLs use 'pw' prefix rather than 'lib'
15478      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479      ;;
15480    esac
15481    dynamic_linker='Win32 ld.exe'
15482    ;;
15483
15484  *,cl*)
15485    # Native MSVC
15486    libname_spec='$name'
15487    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488    library_names_spec='${libname}.dll.lib'
15489
15490    case $build_os in
15491    mingw*)
15492      sys_lib_search_path_spec=
15493      lt_save_ifs=$IFS
15494      IFS=';'
15495      for lt_path in $LIB
15496      do
15497        IFS=$lt_save_ifs
15498        # Let DOS variable expansion print the short 8.3 style file name.
15499        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15500        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15501      done
15502      IFS=$lt_save_ifs
15503      # Convert to MSYS style.
15504      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15505      ;;
15506    cygwin*)
15507      # Convert to unix form, then to dos form, then back to unix form
15508      # but this time dos style (no spaces!) so that the unix form looks
15509      # like /cygdrive/c/PROGRA~1:/cygdr...
15510      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15511      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15512      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15513      ;;
15514    *)
15515      sys_lib_search_path_spec="$LIB"
15516      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15517        # It is most probably a Windows format PATH.
15518        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15519      else
15520        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15521      fi
15522      # FIXME: find the short name or the path components, as spaces are
15523      # common. (e.g. "Program Files" -> "PROGRA~1")
15524      ;;
15525    esac
15526
15527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15528    postinstall_cmds='base_file=`basename \${file}`~
15529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15530      dldir=$destdir/`dirname \$dlpath`~
15531      test -d \$dldir || mkdir -p \$dldir~
15532      $install_prog $dir/$dlname \$dldir/$dlname'
15533    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15534      dlpath=$dir/\$dldll~
15535       $RM \$dlpath'
15536    shlibpath_overrides_runpath=yes
15537    dynamic_linker='Win32 link.exe'
15538    ;;
15539
15540  *)
15541    # Assume MSVC wrapper
15542    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15543    dynamic_linker='Win32 ld.exe'
15544    ;;
15545  esac
15546  # FIXME: first we should search . and the directory the executable is in
15547  shlibpath_var=PATH
15548  ;;
15549
15550darwin* | rhapsody*)
15551  dynamic_linker="$host_os dyld"
15552  version_type=darwin
15553  need_lib_prefix=no
15554  need_version=no
15555  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15556  soname_spec='${libname}${release}${major}$shared_ext'
15557  shlibpath_overrides_runpath=yes
15558  shlibpath_var=DYLD_LIBRARY_PATH
15559  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15560
15561  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15562  ;;
15563
15564dgux*)
15565  version_type=linux # correct to gnu/linux during the next big refactor
15566  need_lib_prefix=no
15567  need_version=no
15568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15569  soname_spec='${libname}${release}${shared_ext}$major'
15570  shlibpath_var=LD_LIBRARY_PATH
15571  ;;
15572
15573freebsd* | dragonfly*)
15574  # DragonFly does not have aout.  When/if they implement a new
15575  # versioning mechanism, adjust this.
15576  if test -x /usr/bin/objformat; then
15577    objformat=`/usr/bin/objformat`
15578  else
15579    case $host_os in
15580    freebsd[23].*) objformat=aout ;;
15581    *) objformat=elf ;;
15582    esac
15583  fi
15584  version_type=freebsd-$objformat
15585  case $version_type in
15586    freebsd-elf*)
15587      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15588      need_version=no
15589      need_lib_prefix=no
15590      ;;
15591    freebsd-*)
15592      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15593      need_version=yes
15594      ;;
15595  esac
15596  shlibpath_var=LD_LIBRARY_PATH
15597  case $host_os in
15598  freebsd2.*)
15599    shlibpath_overrides_runpath=yes
15600    ;;
15601  freebsd3.[01]* | freebsdelf3.[01]*)
15602    shlibpath_overrides_runpath=yes
15603    hardcode_into_libs=yes
15604    ;;
15605  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15606  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15607    shlibpath_overrides_runpath=no
15608    hardcode_into_libs=yes
15609    ;;
15610  *) # from 4.6 on, and DragonFly
15611    shlibpath_overrides_runpath=yes
15612    hardcode_into_libs=yes
15613    ;;
15614  esac
15615  ;;
15616
15617gnu*)
15618  version_type=linux # correct to gnu/linux during the next big refactor
15619  need_lib_prefix=no
15620  need_version=no
15621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15622  soname_spec='${libname}${release}${shared_ext}$major'
15623  shlibpath_var=LD_LIBRARY_PATH
15624  shlibpath_overrides_runpath=no
15625  hardcode_into_libs=yes
15626  ;;
15627
15628haiku*)
15629  version_type=linux # correct to gnu/linux during the next big refactor
15630  need_lib_prefix=no
15631  need_version=no
15632  dynamic_linker="$host_os runtime_loader"
15633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15634  soname_spec='${libname}${release}${shared_ext}$major'
15635  shlibpath_var=LIBRARY_PATH
15636  shlibpath_overrides_runpath=yes
15637  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15638  hardcode_into_libs=yes
15639  ;;
15640
15641hpux9* | hpux10* | hpux11*)
15642  # Give a soname corresponding to the major version so that dld.sl refuses to
15643  # link against other versions.
15644  version_type=sunos
15645  need_lib_prefix=no
15646  need_version=no
15647  case $host_cpu in
15648  ia64*)
15649    shrext_cmds='.so'
15650    hardcode_into_libs=yes
15651    dynamic_linker="$host_os dld.so"
15652    shlibpath_var=LD_LIBRARY_PATH
15653    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15654    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655    soname_spec='${libname}${release}${shared_ext}$major'
15656    if test "X$HPUX_IA64_MODE" = X32; then
15657      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15658    else
15659      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15660    fi
15661    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15662    ;;
15663  hppa*64*)
15664    shrext_cmds='.sl'
15665    hardcode_into_libs=yes
15666    dynamic_linker="$host_os dld.sl"
15667    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15668    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670    soname_spec='${libname}${release}${shared_ext}$major'
15671    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15672    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15673    ;;
15674  *)
15675    shrext_cmds='.sl'
15676    dynamic_linker="$host_os dld.sl"
15677    shlibpath_var=SHLIB_PATH
15678    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15679    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680    soname_spec='${libname}${release}${shared_ext}$major'
15681    ;;
15682  esac
15683  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15684  postinstall_cmds='chmod 555 $lib'
15685  # or fails outright, so override atomically:
15686  install_override_mode=555
15687  ;;
15688
15689interix[3-9]*)
15690  version_type=linux # correct to gnu/linux during the next big refactor
15691  need_lib_prefix=no
15692  need_version=no
15693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15694  soname_spec='${libname}${release}${shared_ext}$major'
15695  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15696  shlibpath_var=LD_LIBRARY_PATH
15697  shlibpath_overrides_runpath=no
15698  hardcode_into_libs=yes
15699  ;;
15700
15701irix5* | irix6* | nonstopux*)
15702  case $host_os in
15703    nonstopux*) version_type=nonstopux ;;
15704    *)
15705	if test "$lt_cv_prog_gnu_ld" = yes; then
15706		version_type=linux # correct to gnu/linux during the next big refactor
15707	else
15708		version_type=irix
15709	fi ;;
15710  esac
15711  need_lib_prefix=no
15712  need_version=no
15713  soname_spec='${libname}${release}${shared_ext}$major'
15714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15715  case $host_os in
15716  irix5* | nonstopux*)
15717    libsuff= shlibsuff=
15718    ;;
15719  *)
15720    case $LD in # libtool.m4 will add one of these switches to LD
15721    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15722      libsuff= shlibsuff= libmagic=32-bit;;
15723    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15724      libsuff=32 shlibsuff=N32 libmagic=N32;;
15725    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15726      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15727    *) libsuff= shlibsuff= libmagic=never-match;;
15728    esac
15729    ;;
15730  esac
15731  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15732  shlibpath_overrides_runpath=no
15733  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15734  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15735  hardcode_into_libs=yes
15736  ;;
15737
15738# No shared lib support for Linux oldld, aout, or coff.
15739linux*oldld* | linux*aout* | linux*coff*)
15740  dynamic_linker=no
15741  ;;
15742
15743# This must be glibc/ELF.
15744linux* | k*bsd*-gnu | kopensolaris*-gnu)
15745  version_type=linux # correct to gnu/linux during the next big refactor
15746  need_lib_prefix=no
15747  need_version=no
15748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749  soname_spec='${libname}${release}${shared_ext}$major'
15750  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15751  shlibpath_var=LD_LIBRARY_PATH
15752  shlibpath_overrides_runpath=no
15753
15754  # Some binutils ld are patched to set DT_RUNPATH
15755  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15756  $as_echo_n "(cached) " >&6
15757else
15758  lt_cv_shlibpath_overrides_runpath=no
15759    save_LDFLAGS=$LDFLAGS
15760    save_libdir=$libdir
15761    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15762	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h.  */
15765
15766int
15767main ()
15768{
15769
15770  ;
15771  return 0;
15772}
15773_ACEOF
15774if ac_fn_cxx_try_link "$LINENO"; then :
15775  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15776  lt_cv_shlibpath_overrides_runpath=yes
15777fi
15778fi
15779rm -f core conftest.err conftest.$ac_objext \
15780    conftest$ac_exeext conftest.$ac_ext
15781    LDFLAGS=$save_LDFLAGS
15782    libdir=$save_libdir
15783
15784fi
15785
15786  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15787
15788  # This implies no fast_install, which is unacceptable.
15789  # Some rework will be needed to allow for fast_install
15790  # before this can be enabled.
15791  hardcode_into_libs=yes
15792
15793  # Append ld.so.conf contents to the search path
15794  if test -f /etc/ld.so.conf; then
15795    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15796    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15797  fi
15798
15799  # We used to test for /lib/ld.so.1 and disable shared libraries on
15800  # powerpc, because MkLinux only supported shared libraries with the
15801  # GNU dynamic linker.  Since this was broken with cross compilers,
15802  # most powerpc-linux boxes support dynamic linking these days and
15803  # people can always --disable-shared, the test was removed, and we
15804  # assume the GNU/Linux dynamic linker is in use.
15805  dynamic_linker='GNU/Linux ld.so'
15806  ;;
15807
15808netbsd*)
15809  version_type=sunos
15810  need_lib_prefix=no
15811  need_version=no
15812  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15814    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15815    dynamic_linker='NetBSD (a.out) ld.so'
15816  else
15817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15818    soname_spec='${libname}${release}${shared_ext}$major'
15819    dynamic_linker='NetBSD ld.elf_so'
15820  fi
15821  shlibpath_var=LD_LIBRARY_PATH
15822  shlibpath_overrides_runpath=yes
15823  hardcode_into_libs=yes
15824  ;;
15825
15826newsos6)
15827  version_type=linux # correct to gnu/linux during the next big refactor
15828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829  shlibpath_var=LD_LIBRARY_PATH
15830  shlibpath_overrides_runpath=yes
15831  ;;
15832
15833*nto* | *qnx*)
15834  version_type=qnx
15835  need_lib_prefix=no
15836  need_version=no
15837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838  soname_spec='${libname}${release}${shared_ext}$major'
15839  shlibpath_var=LD_LIBRARY_PATH
15840  shlibpath_overrides_runpath=no
15841  hardcode_into_libs=yes
15842  dynamic_linker='ldqnx.so'
15843  ;;
15844
15845openbsd*)
15846  version_type=sunos
15847  sys_lib_dlsearch_path_spec="/usr/lib"
15848  need_lib_prefix=no
15849  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15850  case $host_os in
15851    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15852    *)				need_version=no  ;;
15853  esac
15854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15855  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15856  shlibpath_var=LD_LIBRARY_PATH
15857  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15858    case $host_os in
15859      openbsd2.[89] | openbsd2.[89].*)
15860	shlibpath_overrides_runpath=no
15861	;;
15862      *)
15863	shlibpath_overrides_runpath=yes
15864	;;
15865      esac
15866  else
15867    shlibpath_overrides_runpath=yes
15868  fi
15869  ;;
15870
15871os2*)
15872  libname_spec='$name'
15873  shrext_cmds=".dll"
15874  need_lib_prefix=no
15875  library_names_spec='$libname${shared_ext} $libname.a'
15876  dynamic_linker='OS/2 ld.exe'
15877  shlibpath_var=LIBPATH
15878  ;;
15879
15880osf3* | osf4* | osf5*)
15881  version_type=osf
15882  need_lib_prefix=no
15883  need_version=no
15884  soname_spec='${libname}${release}${shared_ext}$major'
15885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886  shlibpath_var=LD_LIBRARY_PATH
15887  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15888  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15889  ;;
15890
15891rdos*)
15892  dynamic_linker=no
15893  ;;
15894
15895solaris*)
15896  version_type=linux # correct to gnu/linux during the next big refactor
15897  need_lib_prefix=no
15898  need_version=no
15899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900  soname_spec='${libname}${release}${shared_ext}$major'
15901  shlibpath_var=LD_LIBRARY_PATH
15902  shlibpath_overrides_runpath=yes
15903  hardcode_into_libs=yes
15904  # ldd complains unless libraries are executable
15905  postinstall_cmds='chmod +x $lib'
15906  ;;
15907
15908sunos4*)
15909  version_type=sunos
15910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15911  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15912  shlibpath_var=LD_LIBRARY_PATH
15913  shlibpath_overrides_runpath=yes
15914  if test "$with_gnu_ld" = yes; then
15915    need_lib_prefix=no
15916  fi
15917  need_version=yes
15918  ;;
15919
15920sysv4 | sysv4.3*)
15921  version_type=linux # correct to gnu/linux during the next big refactor
15922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923  soname_spec='${libname}${release}${shared_ext}$major'
15924  shlibpath_var=LD_LIBRARY_PATH
15925  case $host_vendor in
15926    sni)
15927      shlibpath_overrides_runpath=no
15928      need_lib_prefix=no
15929      runpath_var=LD_RUN_PATH
15930      ;;
15931    siemens)
15932      need_lib_prefix=no
15933      ;;
15934    motorola)
15935      need_lib_prefix=no
15936      need_version=no
15937      shlibpath_overrides_runpath=no
15938      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15939      ;;
15940  esac
15941  ;;
15942
15943sysv4*MP*)
15944  if test -d /usr/nec ;then
15945    version_type=linux # correct to gnu/linux during the next big refactor
15946    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15947    soname_spec='$libname${shared_ext}.$major'
15948    shlibpath_var=LD_LIBRARY_PATH
15949  fi
15950  ;;
15951
15952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15953  version_type=freebsd-elf
15954  need_lib_prefix=no
15955  need_version=no
15956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15957  soname_spec='${libname}${release}${shared_ext}$major'
15958  shlibpath_var=LD_LIBRARY_PATH
15959  shlibpath_overrides_runpath=yes
15960  hardcode_into_libs=yes
15961  if test "$with_gnu_ld" = yes; then
15962    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15963  else
15964    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15965    case $host_os in
15966      sco3.2v5*)
15967        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15968	;;
15969    esac
15970  fi
15971  sys_lib_dlsearch_path_spec='/usr/lib'
15972  ;;
15973
15974tpf*)
15975  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15976  version_type=linux # correct to gnu/linux during the next big refactor
15977  need_lib_prefix=no
15978  need_version=no
15979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980  shlibpath_var=LD_LIBRARY_PATH
15981  shlibpath_overrides_runpath=no
15982  hardcode_into_libs=yes
15983  ;;
15984
15985uts4*)
15986  version_type=linux # correct to gnu/linux during the next big refactor
15987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988  soname_spec='${libname}${release}${shared_ext}$major'
15989  shlibpath_var=LD_LIBRARY_PATH
15990  ;;
15991
15992*)
15993  dynamic_linker=no
15994  ;;
15995esac
15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15997$as_echo "$dynamic_linker" >&6; }
15998test "$dynamic_linker" = no && can_build_shared=no
15999
16000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16001if test "$GCC" = yes; then
16002  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16003fi
16004
16005if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16006  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16007fi
16008if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16009  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16010fi
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16050$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16051hardcode_action_CXX=
16052if test -n "$hardcode_libdir_flag_spec_CXX" ||
16053   test -n "$runpath_var_CXX" ||
16054   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16055
16056  # We can hardcode non-existent directories.
16057  if test "$hardcode_direct_CXX" != no &&
16058     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16059     # have to relink, otherwise we might link with an installed library
16060     # when we should be linking with a yet-to-be-installed one
16061     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16062     test "$hardcode_minus_L_CXX" != no; then
16063    # Linking always hardcodes the temporary library directory.
16064    hardcode_action_CXX=relink
16065  else
16066    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16067    hardcode_action_CXX=immediate
16068  fi
16069else
16070  # We cannot hardcode anything, or else we can only hardcode existing
16071  # directories.
16072  hardcode_action_CXX=unsupported
16073fi
16074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16075$as_echo "$hardcode_action_CXX" >&6; }
16076
16077if test "$hardcode_action_CXX" = relink ||
16078   test "$inherit_rpath_CXX" = yes; then
16079  # Fast installation is not supported
16080  enable_fast_install=no
16081elif test "$shlibpath_overrides_runpath" = yes ||
16082     test "$enable_shared" = no; then
16083  # Fast installation is not necessary
16084  enable_fast_install=needless
16085fi
16086
16087
16088
16089
16090
16091
16092
16093  fi # test -n "$compiler"
16094
16095  CC=$lt_save_CC
16096  CFLAGS=$lt_save_CFLAGS
16097  LDCXX=$LD
16098  LD=$lt_save_LD
16099  GCC=$lt_save_GCC
16100  with_gnu_ld=$lt_save_with_gnu_ld
16101  lt_cv_path_LDCXX=$lt_cv_path_LD
16102  lt_cv_path_LD=$lt_save_path_LD
16103  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16104  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16105fi # test "$_lt_caught_CXX_error" != yes
16106
16107ac_ext=c
16108ac_cpp='$CPP $CPPFLAGS'
16109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16111ac_compiler_gnu=$ac_cv_c_compiler_gnu
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127        ac_config_commands="$ac_config_commands libtool"
16128
16129
16130
16131
16132# Only expand once:
16133
16134
16135# Restore the variables that were manipulated for the Libtool tests
16136ac_ext=cpp
16137ac_cpp='$CXXCPP $CPPFLAGS'
16138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16141
16142CFLAGS=$lidia_CFLAGS
16143CC=$lidia_CC
16144
16145
16146
16147
16148
16149	# Extract the first word of "latex", so it can be a program name with args.
16150set dummy latex; ac_word=$2
16151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16152$as_echo_n "checking for $ac_word... " >&6; }
16153if ${ac_cv_prog_LATEX+:} false; then :
16154  $as_echo_n "(cached) " >&6
16155else
16156  if test -n "$LATEX"; then
16157  ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
16158else
16159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16160for as_dir in $PATH
16161do
16162  IFS=$as_save_IFS
16163  test -z "$as_dir" && as_dir=.
16164    for ac_exec_ext in '' $ac_executable_extensions; do
16165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16166    ac_cv_prog_LATEX="latex"
16167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16168    break 2
16169  fi
16170done
16171  done
16172IFS=$as_save_IFS
16173
16174fi
16175fi
16176LATEX=$ac_cv_prog_LATEX
16177if test -n "$LATEX"; then
16178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
16179$as_echo "$LATEX" >&6; }
16180else
16181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182$as_echo "no" >&6; }
16183fi
16184
16185
16186	case $LATEX in
16187	"")	LATEX="$MISSING latex"
16188	;;
16189	*)
16190		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LaTeX 2e" >&5
16191$as_echo_n "checking for LaTeX 2e... " >&6; }
16192		if ${lidia_cv_latex2e+:} false; then :
16193  $as_echo_n "(cached) " >&6
16194else
16195
16196			cat > conftest.tex <<EOF
16197\documentclass{book}
16198\usepackage{amsmath,amssymb}
16199\usepackage{graphics}
16200\usepackage{xspace,url}
16201\usepackage{geometry}
16202\usepackage{fontenc}
16203\usepackage{fancyhdr}
16204\newcommand{\LiDIA}{\textsf{LiDIA}\xspace}
16205\begin{document}
16206  \LiDIA: \url{http://www.informatik.tu-darmstadt.de/TI/LiDIA/}
16207\end{document}
16208EOF
16209			if { ac_try='${LATEX} conftest.tex'
16210  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16211  (eval $ac_try) 2>&5
16212  ac_status=$?
16213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16214  test $ac_status = 0; }; } < /dev/null > /dev/null 2>&1; then
16215				lidia_cv_latex2e="yes"
16216			else
16217				lidia_cv_latex2e="no"
16218			fi
16219
16220fi
16221
16222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_latex2e" >&5
16223$as_echo "$lidia_cv_latex2e" >&6; }
16224	;;
16225	esac
16226
16227	if test "$lidia_cv_latex2e" = "yes" ; then
16228		# Extract the first word of "makeindex", so it can be a program name with args.
16229set dummy makeindex; ac_word=$2
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231$as_echo_n "checking for $ac_word... " >&6; }
16232if ${ac_cv_prog_MAKEINDEX+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235  if test -n "$MAKEINDEX"; then
16236  ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
16237else
16238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16239for as_dir in $PATH
16240do
16241  IFS=$as_save_IFS
16242  test -z "$as_dir" && as_dir=.
16243    for ac_exec_ext in '' $ac_executable_extensions; do
16244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16245    ac_cv_prog_MAKEINDEX="makeindex"
16246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16247    break 2
16248  fi
16249done
16250  done
16251IFS=$as_save_IFS
16252
16253  test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
16254fi
16255fi
16256MAKEINDEX=$ac_cv_prog_MAKEINDEX
16257if test -n "$MAKEINDEX"; then
16258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
16259$as_echo "$MAKEINDEX" >&6; }
16260else
16261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262$as_echo "no" >&6; }
16263fi
16264
16265
16266		# Extract the first word of "bibtex", so it can be a program name with args.
16267set dummy bibtex; ac_word=$2
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16269$as_echo_n "checking for $ac_word... " >&6; }
16270if ${ac_cv_prog_BIBTEX+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  if test -n "$BIBTEX"; then
16274  ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
16275else
16276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16277for as_dir in $PATH
16278do
16279  IFS=$as_save_IFS
16280  test -z "$as_dir" && as_dir=.
16281    for ac_exec_ext in '' $ac_executable_extensions; do
16282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16283    ac_cv_prog_BIBTEX="bibtex"
16284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16285    break 2
16286  fi
16287done
16288  done
16289IFS=$as_save_IFS
16290
16291  test -z "$ac_cv_prog_BIBTEX" && ac_cv_prog_BIBTEX=":"
16292fi
16293fi
16294BIBTEX=$ac_cv_prog_BIBTEX
16295if test -n "$BIBTEX"; then
16296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BIBTEX" >&5
16297$as_echo "$BIBTEX" >&6; }
16298else
16299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300$as_echo "no" >&6; }
16301fi
16302
16303
16304		# Extract the first word of "dvips", so it can be a program name with args.
16305set dummy dvips; ac_word=$2
16306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16307$as_echo_n "checking for $ac_word... " >&6; }
16308if ${ac_cv_prog_DVIPS+:} false; then :
16309  $as_echo_n "(cached) " >&6
16310else
16311  if test -n "$DVIPS"; then
16312  ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
16313else
16314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16315for as_dir in $PATH
16316do
16317  IFS=$as_save_IFS
16318  test -z "$as_dir" && as_dir=.
16319    for ac_exec_ext in '' $ac_executable_extensions; do
16320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16321    ac_cv_prog_DVIPS="dvips"
16322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16323    break 2
16324  fi
16325done
16326  done
16327IFS=$as_save_IFS
16328
16329  test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="$MISSING dvips"
16330fi
16331fi
16332DVIPS=$ac_cv_prog_DVIPS
16333if test -n "$DVIPS"; then
16334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
16335$as_echo "$DVIPS" >&6; }
16336else
16337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16338$as_echo "no" >&6; }
16339fi
16340
16341
16342		# Extract the first word of "latex2html", so it can be a program name with args.
16343set dummy latex2html; ac_word=$2
16344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345$as_echo_n "checking for $ac_word... " >&6; }
16346if ${ac_cv_prog_LATEX2HTML+:} false; then :
16347  $as_echo_n "(cached) " >&6
16348else
16349  if test -n "$LATEX2HTML"; then
16350  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
16351else
16352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16353for as_dir in $PATH
16354do
16355  IFS=$as_save_IFS
16356  test -z "$as_dir" && as_dir=.
16357    for ac_exec_ext in '' $ac_executable_extensions; do
16358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16359    ac_cv_prog_LATEX2HTML="latex2html"
16360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16361    break 2
16362  fi
16363done
16364  done
16365IFS=$as_save_IFS
16366
16367  test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML="$MISSING latex2html"
16368fi
16369fi
16370LATEX2HTML=$ac_cv_prog_LATEX2HTML
16371if test -n "$LATEX2HTML"; then
16372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
16373$as_echo "$LATEX2HTML" >&6; }
16374else
16375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376$as_echo "no" >&6; }
16377fi
16378
16379
16380		# Extract the first word of "pdflatex", so it can be a program name with args.
16381set dummy pdflatex; ac_word=$2
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16383$as_echo_n "checking for $ac_word... " >&6; }
16384if ${ac_cv_prog_PDFLATEX+:} false; then :
16385  $as_echo_n "(cached) " >&6
16386else
16387  if test -n "$PDFLATEX"; then
16388  ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
16389else
16390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16391for as_dir in $PATH
16392do
16393  IFS=$as_save_IFS
16394  test -z "$as_dir" && as_dir=.
16395    for ac_exec_ext in '' $ac_executable_extensions; do
16396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16397    ac_cv_prog_PDFLATEX="pdflatex"
16398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16399    break 2
16400  fi
16401done
16402  done
16403IFS=$as_save_IFS
16404
16405  test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="$MISSING pdflatex"
16406fi
16407fi
16408PDFLATEX=$ac_cv_prog_PDFLATEX
16409if test -n "$PDFLATEX"; then
16410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
16411$as_echo "$PDFLATEX" >&6; }
16412else
16413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414$as_echo "no" >&6; }
16415fi
16416
16417
16418		for ac_prog in texi2dvi texi2dvi4a2ps
16419do
16420  # Extract the first word of "$ac_prog", so it can be a program name with args.
16421set dummy $ac_prog; ac_word=$2
16422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16423$as_echo_n "checking for $ac_word... " >&6; }
16424if ${ac_cv_prog_TEXI2DVI+:} false; then :
16425  $as_echo_n "(cached) " >&6
16426else
16427  if test -n "$TEXI2DVI"; then
16428  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
16429else
16430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16431for as_dir in $PATH
16432do
16433  IFS=$as_save_IFS
16434  test -z "$as_dir" && as_dir=.
16435    for ac_exec_ext in '' $ac_executable_extensions; do
16436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16437    ac_cv_prog_TEXI2DVI="$ac_prog"
16438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16439    break 2
16440  fi
16441done
16442  done
16443IFS=$as_save_IFS
16444
16445fi
16446fi
16447TEXI2DVI=$ac_cv_prog_TEXI2DVI
16448if test -n "$TEXI2DVI"; then
16449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
16450$as_echo "$TEXI2DVI" >&6; }
16451else
16452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16453$as_echo "no" >&6; }
16454fi
16455
16456
16457  test -n "$TEXI2DVI" && break
16458done
16459test -n "$TEXI2DVI" || TEXI2DVI="$MISSING texi2dvi"
16460
16461	else
16462		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16463You don't appear to have LaTeX 2e or some required LaTeX 2e packages, therefore you
16464will not be able to build the manual.  You can obtain the manual in PostScript format
16465from http://www.informatik.tu-darmstadt.de/TI/LiDIA/" >&5
16466$as_echo "$as_me: WARNING:
16467You don't appear to have LaTeX 2e or some required LaTeX 2e packages, therefore you
16468will not be able to build the manual.  You can obtain the manual in PostScript format
16469from http://www.informatik.tu-darmstadt.de/TI/LiDIA/" >&2;}
16470	fi
16471
16472
16473	# Extract the first word of "gunzip", so it can be a program name with args.
16474set dummy gunzip; ac_word=$2
16475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476$as_echo_n "checking for $ac_word... " >&6; }
16477if ${ac_cv_prog_GUNZIP+:} false; then :
16478  $as_echo_n "(cached) " >&6
16479else
16480  if test -n "$GUNZIP"; then
16481  ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test.
16482else
16483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484for as_dir in $PATH
16485do
16486  IFS=$as_save_IFS
16487  test -z "$as_dir" && as_dir=.
16488    for ac_exec_ext in '' $ac_executable_extensions; do
16489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490    ac_cv_prog_GUNZIP="gunzip"
16491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492    break 2
16493  fi
16494done
16495  done
16496IFS=$as_save_IFS
16497
16498fi
16499fi
16500GUNZIP=$ac_cv_prog_GUNZIP
16501if test -n "$GUNZIP"; then
16502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
16503$as_echo "$GUNZIP" >&6; }
16504else
16505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506$as_echo "no" >&6; }
16507fi
16508
16509
16510	if test -n "$GUNZIP" ; then
16511		$as_echo "#define HAVE_GUNZIP 1" >>confdefs.h
16512
16513	fi
16514
16515
16516	# Extract the first word of "bunzip2", so it can be a program name with args.
16517set dummy bunzip2; ac_word=$2
16518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16519$as_echo_n "checking for $ac_word... " >&6; }
16520if ${ac_cv_prog_BUNZIP2+:} false; then :
16521  $as_echo_n "(cached) " >&6
16522else
16523  if test -n "$BUNZIP2"; then
16524  ac_cv_prog_BUNZIP2="$BUNZIP2" # Let the user override the test.
16525else
16526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527for as_dir in $PATH
16528do
16529  IFS=$as_save_IFS
16530  test -z "$as_dir" && as_dir=.
16531    for ac_exec_ext in '' $ac_executable_extensions; do
16532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533    ac_cv_prog_BUNZIP2="bunzip2"
16534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16535    break 2
16536  fi
16537done
16538  done
16539IFS=$as_save_IFS
16540
16541fi
16542fi
16543BUNZIP2=$ac_cv_prog_BUNZIP2
16544if test -n "$BUNZIP2"; then
16545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNZIP2" >&5
16546$as_echo "$BUNZIP2" >&6; }
16547else
16548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549$as_echo "no" >&6; }
16550fi
16551
16552
16553	if test -n "$BUNZIP2" ; then
16554		$as_echo "#define HAVE_BUNZIP2 1" >>confdefs.h
16555
16556	fi
16557
16558
16559
16560
16561
16562# Check whether --with-extra-includes was given.
16563if test "${with_extra_includes+set}" = set; then :
16564  withval=$with_extra_includes;
16565	EXTRA_INCLUDES="${EXTRA_INCLUDES} -I${with_extra_includes}"
16566
16567fi
16568
16569
16570
16571
16572# Check whether --with-extra-libs was given.
16573if test "${with_extra_libs+set}" = set; then :
16574  withval=$with_extra_libs;
16575	LIBS="${LIBS} -L${with_extra_libs}"
16576
16577fi
16578
16579
16580
16581#
16582#	CHECKING FOR LIBRARIES
16583#
16584
16585
16586# Check whether --with-arithmetic was given.
16587if test "${with_arithmetic+set}" = set; then :
16588  withval=$with_arithmetic;
16589	case $with_arithmetic in
16590	gmp)
16591
16592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP (version >= 3.1)" >&5
16593$as_echo_n "checking for GNU MP (version >= 3.1)... " >&6; }
16594	if ${lidia_cv_gmp+:} false; then :
16595  $as_echo_n "(cached) " >&6
16596else
16597
16598		cat > conftest.C <<EOF
16599#include	<gmp.h>
16600
16601#if ((__GNU_MP_VERSION < 3) || \
16602    ((__GNU_MP_VERSION == 3 ) && (__GNU_MP_VERSION_MINOR < 1)))
16603#error Need GMP >= 3.1!
16604#endif
16605
16606int main ()
16607{
16608	mpz_t	x, y, z;
16609
16610	mpz_init(x);
16611	mpz_init(y);
16612	mpz_init(z);
16613
16614	mpz_gcd(z, x, y);
16615
16616	mpz_clear(x);
16617	mpz_clear(y);
16618	mpz_clear(z);
16619	return 0;
16620}
16621EOF
16622		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} -lgmp'
16623  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16624  (eval $ac_try) 2>&5
16625  ac_status=$?
16626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16627  test $ac_status = 0; }; } > /dev/null 2>&1; then
16628			lidia_cv_gmp="yes"
16629		else
16630			lidia_cv_gmp="no"
16631		fi
16632
16633fi
16634
16635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_gmp" >&5
16636$as_echo "$lidia_cv_gmp" >&6; }
16637
16638		if test "$lidia_cv_gmp" = "yes"; then
16639			lidia_arithmetic=gmp
16640			LIBS="${LIBS} -lgmp"
16641			$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_GMP" >>confdefs.h
16642
16643		else
16644			as_fn_error $? "
16645you don't appear to have GNU MP.  Either add --with-extra-includes and --with-extra-libs
16646or get a copy of the last release of GNU MP from http://www.swox.com/gmp/" "$LINENO" 5
16647		fi
16648		;;
16649	cln)
16650
16651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLN" >&5
16652$as_echo_n "checking for CLN... " >&6; }
16653	if ${lidia_cv_cln+:} false; then :
16654  $as_echo_n "(cached) " >&6
16655else
16656
16657		cat > conftest.C <<EOF
16658#include	<cln/integer.h>
16659
16660int main ()
16661{
16662	cln::cl_I	x, y, z;
16663
16664	z = gcd(x, y);
16665
16666	return 0;
16667}
16668EOF
16669		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} ${LDFLAGS} -lcln'
16670  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16671  (eval $ac_try) 2>&5
16672  ac_status=$?
16673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16674  test $ac_status = 0; }; } > /dev/null 2>&1; then
16675			lidia_cv_cln="yes"
16676		else
16677			lidia_cv_cln="no"
16678		fi
16679
16680fi
16681
16682	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_cln" >&5
16683$as_echo "$lidia_cv_cln" >&6; }
16684
16685		if test "$lidia_cv_cln" = "yes"; then
16686			lidia_arithmetic=cln
16687			LIBS="${LIBS} -lcln"
16688			$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_CLN" >>confdefs.h
16689
16690		else
16691			as_fn_error $? "
16692you don't appear to have CLN.  Either add --with-extra-includes and --with-extra-libs
16693or get a copy of the last release of CLN from http://clisp.cons.org/~haible/" "$LINENO" 5
16694		fi
16695		;;
16696	piologie)
16697
16698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Piologie" >&5
16699$as_echo_n "checking for Piologie... " >&6; }
16700	if ${lidia_cv_piologie+:} false; then :
16701  $as_echo_n "(cached) " >&6
16702else
16703
16704		cat > conftest.C << EOF
16705#include	<integer.h>
16706
16707int main ()
16708{
16709
16710	Integer x, y, z;
16711
16712	z = gcd(x, y);
16713
16714	return 0;
16715}
16716EOF
16717		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} -lpiologie'
16718  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16719  (eval $ac_try) 2>&5
16720  ac_status=$?
16721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16722  test $ac_status = 0; }; } > /dev/null 2>&1; then
16723			lidia_cv_piologie="yes"
16724		else
16725			lidia_cv_piologie="no"
16726		fi
16727
16728fi
16729
16730	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_piologie" >&5
16731$as_echo "$lidia_cv_piologie" >&6; }
16732
16733		if test "$lidia_cv_piologie" = "yes"; then
16734			lidia_arithmetic=piologie
16735			LIBS="${LIBS} -lpiologie"
16736			$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_PIOLOGIE" >>confdefs.h
16737
16738		else
16739			as_fn_error $? "
16740you don't appear to have Piologie.  Either add --with-extra-includes and --with-extra-libs
16741or get a copy of the last release of Piologie from http://www.hipilib.de/piologie.htm" "$LINENO" 5
16742		fi
16743		;;
16744	libI)
16745
16746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libI" >&5
16747$as_echo_n "checking for libI... " >&6; }
16748	if ${lidia_cv_libI+:} false; then :
16749  $as_echo_n "(cached) " >&6
16750else
16751
16752		cat > conftest.C <<EOF
16753#include	<iint.h>
16754
16755int main ()
16756{
16757	Integer	x, y, z;
16758
16759	cI(&x);
16760	cI(&y);
16761	cI(&z);
16762
16763	Idgcd(&z, &x, &y);
16764
16765	dI(&x);
16766	dI(&y);
16767	dI(&z);
16768	return 0;
16769}
16770EOF
16771		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} -lI'
16772  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16773  (eval $ac_try) 2>&5
16774  ac_status=$?
16775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16776  test $ac_status = 0; }; } > /dev/null 2>&1; then
16777			lidia_cv_libI="yes"
16778		else
16779			lidia_cv_libI="no"
16780		fi
16781
16782fi
16783
16784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_libI" >&5
16785$as_echo "$lidia_cv_libI" >&6; }
16786
16787		if test "$lidia_cv_libI" = "yes"; then
16788			lidia_arithmetic=libI
16789			LIBS="${LIBS} -lI"
16790			$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_LIBI" >>confdefs.h
16791
16792		fi
16793		;;
16794	*)
16795		as_fn_error $? "Invalid value for --with-arithmetic" "$LINENO" 5
16796		;;
16797	esac
16798
16799else
16800
16801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which multi-precision arithmetic library to use" >&5
16802$as_echo "$as_me: checking which multi-precision arithmetic library to use" >&6;}
16803
16804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP (version >= 3.1)" >&5
16805$as_echo_n "checking for GNU MP (version >= 3.1)... " >&6; }
16806	if ${lidia_cv_gmp+:} false; then :
16807  $as_echo_n "(cached) " >&6
16808else
16809
16810		cat > conftest.C <<EOF
16811#include	<gmp.h>
16812
16813#if ((__GNU_MP_VERSION < 3) || \
16814    ((__GNU_MP_VERSION == 3 ) && (__GNU_MP_VERSION_MINOR < 1)))
16815#error Need GMP >= 3.1!
16816#endif
16817
16818int main ()
16819{
16820	mpz_t	x, y, z;
16821
16822	mpz_init(x);
16823	mpz_init(y);
16824	mpz_init(z);
16825
16826	mpz_gcd(z, x, y);
16827
16828	mpz_clear(x);
16829	mpz_clear(y);
16830	mpz_clear(z);
16831	return 0;
16832}
16833EOF
16834		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} -lgmp'
16835  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16836  (eval $ac_try) 2>&5
16837  ac_status=$?
16838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16839  test $ac_status = 0; }; } > /dev/null 2>&1; then
16840			lidia_cv_gmp="yes"
16841		else
16842			lidia_cv_gmp="no"
16843		fi
16844
16845fi
16846
16847	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_gmp" >&5
16848$as_echo "$lidia_cv_gmp" >&6; }
16849
16850	if test "$lidia_cv_gmp" = "yes"; then
16851		lidia_arithmetic="gmp"
16852		LIBS="${LIBS} -lgmp"
16853		$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_GMP" >>confdefs.h
16854
16855	else
16856
16857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLN" >&5
16858$as_echo_n "checking for CLN... " >&6; }
16859	if ${lidia_cv_cln+:} false; then :
16860  $as_echo_n "(cached) " >&6
16861else
16862
16863		cat > conftest.C <<EOF
16864#include	<cln/integer.h>
16865
16866int main ()
16867{
16868	cln::cl_I	x, y, z;
16869
16870	z = gcd(x, y);
16871
16872	return 0;
16873}
16874EOF
16875		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} ${LDFLAGS} -lcln'
16876  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16877  (eval $ac_try) 2>&5
16878  ac_status=$?
16879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16880  test $ac_status = 0; }; } > /dev/null 2>&1; then
16881			lidia_cv_cln="yes"
16882		else
16883			lidia_cv_cln="no"
16884		fi
16885
16886fi
16887
16888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_cln" >&5
16889$as_echo "$lidia_cv_cln" >&6; }
16890
16891	if test "$lidia_cv_cln" = "yes"; then
16892		lidia_arithmetic="cln"
16893		LIBS="${LIBS} -lcln"
16894		$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_CLN" >>confdefs.h
16895
16896	else
16897
16898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Piologie" >&5
16899$as_echo_n "checking for Piologie... " >&6; }
16900	if ${lidia_cv_piologie+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903
16904		cat > conftest.C << EOF
16905#include	<integer.h>
16906
16907int main ()
16908{
16909
16910	Integer x, y, z;
16911
16912	z = gcd(x, y);
16913
16914	return 0;
16915}
16916EOF
16917		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} -lpiologie'
16918  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16919  (eval $ac_try) 2>&5
16920  ac_status=$?
16921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16922  test $ac_status = 0; }; } > /dev/null 2>&1; then
16923			lidia_cv_piologie="yes"
16924		else
16925			lidia_cv_piologie="no"
16926		fi
16927
16928fi
16929
16930	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_piologie" >&5
16931$as_echo "$lidia_cv_piologie" >&6; }
16932
16933	if test "$lidia_cv_piologie" = "yes"; then
16934		lidia_arithmetic="piologie"
16935		LIBS="${LIBS} -lpiologie"
16936		$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_PIOLOGIE" >>confdefs.h
16937
16938	else
16939
16940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libI" >&5
16941$as_echo_n "checking for libI... " >&6; }
16942	if ${lidia_cv_libI+:} false; then :
16943  $as_echo_n "(cached) " >&6
16944else
16945
16946		cat > conftest.C <<EOF
16947#include	<iint.h>
16948
16949int main ()
16950{
16951	Integer	x, y, z;
16952
16953	cI(&x);
16954	cI(&y);
16955	cI(&z);
16956
16957	Idgcd(&z, &x, &y);
16958
16959	dI(&x);
16960	dI(&y);
16961	dI(&z);
16962	return 0;
16963}
16964EOF
16965		if { ac_try='${CXX} -o conftest ${CPPFLAGS} ${EXTRA_INCLUDES} conftest.C ${LIBS} -lI'
16966  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16967  (eval $ac_try) 2>&5
16968  ac_status=$?
16969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16970  test $ac_status = 0; }; } > /dev/null 2>&1; then
16971			lidia_cv_libI="yes"
16972		else
16973			lidia_cv_libI="no"
16974		fi
16975
16976fi
16977
16978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_libI" >&5
16979$as_echo "$lidia_cv_libI" >&6; }
16980
16981	if test "$lidia_cv_libI" = "yes"; then
16982		lidia_arithmetic="libI"
16983		LIBS="${LIBS} -lI"
16984		$as_echo "#define LIDIA_ARITHMETIC LIDIA_ARITH_LIBI" >>confdefs.h
16985
16986	else
16987	as_fn_error $? "could not find a multi-precision integer arithmetic." "$LINENO" 5
16988	fi fi fi fi
16989
16990fi
16991
16992
16993
16994
16995#
16996#	CHECKING FOR HEADER FILES
16997#
16998
16999
17000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17001$as_echo_n "checking for ANSI C header files... " >&6; }
17002if ${ac_cv_header_stdc+:} false; then :
17003  $as_echo_n "(cached) " >&6
17004else
17005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006/* end confdefs.h.  */
17007#include <stdlib.h>
17008#include <stdarg.h>
17009#include <string.h>
17010#include <float.h>
17011
17012int
17013main ()
17014{
17015
17016  ;
17017  return 0;
17018}
17019_ACEOF
17020if ac_fn_cxx_try_compile "$LINENO"; then :
17021  ac_cv_header_stdc=yes
17022else
17023  ac_cv_header_stdc=no
17024fi
17025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026
17027if test $ac_cv_header_stdc = yes; then
17028  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h.  */
17031#include <string.h>
17032
17033_ACEOF
17034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17035  $EGREP "memchr" >/dev/null 2>&1; then :
17036
17037else
17038  ac_cv_header_stdc=no
17039fi
17040rm -f conftest*
17041
17042fi
17043
17044if test $ac_cv_header_stdc = yes; then
17045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047/* end confdefs.h.  */
17048#include <stdlib.h>
17049
17050_ACEOF
17051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17052  $EGREP "free" >/dev/null 2>&1; then :
17053
17054else
17055  ac_cv_header_stdc=no
17056fi
17057rm -f conftest*
17058
17059fi
17060
17061if test $ac_cv_header_stdc = yes; then
17062  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17063  if test "$cross_compiling" = yes; then :
17064  :
17065else
17066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h.  */
17068#include <ctype.h>
17069#include <stdlib.h>
17070#if ((' ' & 0x0FF) == 0x020)
17071# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17072# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17073#else
17074# define ISLOWER(c) \
17075		   (('a' <= (c) && (c) <= 'i') \
17076		     || ('j' <= (c) && (c) <= 'r') \
17077		     || ('s' <= (c) && (c) <= 'z'))
17078# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17079#endif
17080
17081#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17082int
17083main ()
17084{
17085  int i;
17086  for (i = 0; i < 256; i++)
17087    if (XOR (islower (i), ISLOWER (i))
17088	|| toupper (i) != TOUPPER (i))
17089      return 2;
17090  return 0;
17091}
17092_ACEOF
17093if ac_fn_cxx_try_run "$LINENO"; then :
17094
17095else
17096  ac_cv_header_stdc=no
17097fi
17098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17099  conftest.$ac_objext conftest.beam conftest.$ac_ext
17100fi
17101
17102fi
17103fi
17104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17105$as_echo "$ac_cv_header_stdc" >&6; }
17106if test $ac_cv_header_stdc = yes; then
17107
17108$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17109
17110fi
17111
17112
17113# check for some POSIX headers
17114for ac_header in sys/times.h sys/stat.h unistd.h signal.h
17115do :
17116  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17117ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17119  cat >>confdefs.h <<_ACEOF
17120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17121_ACEOF
17122
17123else
17124  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17125It seems that you don't have some required POSIX C headers.
17126" >&5
17127$as_echo "$as_me: WARNING:
17128It seems that you don't have some required POSIX C headers.
17129" >&2;}
17130
17131fi
17132
17133done
17134
17135
17136# check for some C++ style headers
17137for ac_header in iostream cstddef cstdio cstdlib cmath cctype cstring ctime cassert climits
17138do :
17139  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17140ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17142  cat >>confdefs.h <<_ACEOF
17143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17144_ACEOF
17145
17146else
17147  as_fn_error $? "
17148It seems that you don't have some required ISO C++ style headers.
17149" "$LINENO" 5
17150
17151fi
17152
17153done
17154
17155
17156# check for new style string streams
17157for ac_header in sstream
17158do :
17159  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
17160if test "x$ac_cv_header_sstream" = xyes; then :
17161  cat >>confdefs.h <<_ACEOF
17162#define HAVE_SSTREAM 1
17163_ACEOF
17164
17165else
17166  for ac_header in strstream
17167do :
17168  ac_fn_cxx_check_header_mongrel "$LINENO" "strstream" "ac_cv_header_strstream" "$ac_includes_default"
17169if test "x$ac_cv_header_strstream" = xyes; then :
17170  cat >>confdefs.h <<_ACEOF
17171#define HAVE_STRSTREAM 1
17172_ACEOF
17173
17174else
17175  as_fn_error $? "
17176Your system lacks both <sstream> and <strstream> headers.
17177At least one of these standard C++ headers is required.
17178" "$LINENO" 5
17179
17180fi
17181
17182done
17183
17184	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17185Your system lacks the standard C++ header <sstream>.
17186LiDIA will be built using the deprecated char*-Streams in <strstream>.
17187" >&5
17188$as_echo "$as_me: WARNING:
17189Your system lacks the standard C++ header <sstream>.
17190LiDIA will be built using the deprecated char*-Streams in <strstream>.
17191" >&2;}
17192	$as_echo "#define OSSTREAM_USE_STRSTREAM 1" >>confdefs.h
17193
17194
17195fi
17196
17197done
17198
17199
17200
17201#
17202#	CHECKING FOR TYPEDEFS
17203#
17204
17205
17206
17207#
17208#	CHECKING FOR STRUCTURES
17209#
17210
17211
17212
17213#
17214#	CHECKING FOR COMPILER CHARACTERISTICS
17215#
17216
17217
17218	# The cast to long int works around a bug in the HP C Compiler
17219# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17220# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17221# This bug is HP SR number 8606223364.
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17223$as_echo_n "checking size of short... " >&6; }
17224if ${ac_cv_sizeof_short+:} false; then :
17225  $as_echo_n "(cached) " >&6
17226else
17227  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
17228
17229else
17230  if test "$ac_cv_type_short" = yes; then
17231     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17233as_fn_error 77 "cannot compute sizeof (short)
17234See \`config.log' for more details" "$LINENO" 5; }
17235   else
17236     ac_cv_sizeof_short=0
17237   fi
17238fi
17239
17240fi
17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17242$as_echo "$ac_cv_sizeof_short" >&6; }
17243
17244
17245
17246cat >>confdefs.h <<_ACEOF
17247#define SIZEOF_SHORT $ac_cv_sizeof_short
17248_ACEOF
17249
17250
17251	# The cast to long int works around a bug in the HP C Compiler
17252# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17253# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17254# This bug is HP SR number 8606223364.
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17256$as_echo_n "checking size of int... " >&6; }
17257if ${ac_cv_sizeof_int+:} false; then :
17258  $as_echo_n "(cached) " >&6
17259else
17260  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
17261
17262else
17263  if test "$ac_cv_type_int" = yes; then
17264     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17266as_fn_error 77 "cannot compute sizeof (int)
17267See \`config.log' for more details" "$LINENO" 5; }
17268   else
17269     ac_cv_sizeof_int=0
17270   fi
17271fi
17272
17273fi
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17275$as_echo "$ac_cv_sizeof_int" >&6; }
17276
17277
17278
17279cat >>confdefs.h <<_ACEOF
17280#define SIZEOF_INT $ac_cv_sizeof_int
17281_ACEOF
17282
17283
17284	# The cast to long int works around a bug in the HP C Compiler
17285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17287# This bug is HP SR number 8606223364.
17288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17289$as_echo_n "checking size of long... " >&6; }
17290if ${ac_cv_sizeof_long+:} false; then :
17291  $as_echo_n "(cached) " >&6
17292else
17293  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17294
17295else
17296  if test "$ac_cv_type_long" = yes; then
17297     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17299as_fn_error 77 "cannot compute sizeof (long)
17300See \`config.log' for more details" "$LINENO" 5; }
17301   else
17302     ac_cv_sizeof_long=0
17303   fi
17304fi
17305
17306fi
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17308$as_echo "$ac_cv_sizeof_long" >&6; }
17309
17310
17311
17312cat >>confdefs.h <<_ACEOF
17313#define SIZEOF_LONG $ac_cv_sizeof_long
17314_ACEOF
17315
17316
17317	# The cast to long int works around a bug in the HP C Compiler
17318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17320# This bug is HP SR number 8606223364.
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17322$as_echo_n "checking size of double... " >&6; }
17323if ${ac_cv_sizeof_double+:} false; then :
17324  $as_echo_n "(cached) " >&6
17325else
17326  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
17327
17328else
17329  if test "$ac_cv_type_double" = yes; then
17330     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17332as_fn_error 77 "cannot compute sizeof (double)
17333See \`config.log' for more details" "$LINENO" 5; }
17334   else
17335     ac_cv_sizeof_double=0
17336   fi
17337fi
17338
17339fi
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17341$as_echo "$ac_cv_sizeof_double" >&6; }
17342
17343
17344
17345cat >>confdefs.h <<_ACEOF
17346#define SIZEOF_DOUBLE $ac_cv_sizeof_double
17347_ACEOF
17348
17349
17350
17351	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17352$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17353if ${ac_cv_c_bigendian+:} false; then :
17354  $as_echo_n "(cached) " >&6
17355else
17356  ac_cv_c_bigendian=unknown
17357    # See if we're dealing with a universal compiler.
17358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359/* end confdefs.h.  */
17360#ifndef __APPLE_CC__
17361	       not a universal capable compiler
17362	     #endif
17363	     typedef int dummy;
17364
17365_ACEOF
17366if ac_fn_cxx_try_compile "$LINENO"; then :
17367
17368	# Check for potential -arch flags.  It is not universal unless
17369	# there are at least two -arch flags with different values.
17370	ac_arch=
17371	ac_prev=
17372	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17373	 if test -n "$ac_prev"; then
17374	   case $ac_word in
17375	     i?86 | x86_64 | ppc | ppc64)
17376	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17377		 ac_arch=$ac_word
17378	       else
17379		 ac_cv_c_bigendian=universal
17380		 break
17381	       fi
17382	       ;;
17383	   esac
17384	   ac_prev=
17385	 elif test "x$ac_word" = "x-arch"; then
17386	   ac_prev=arch
17387	 fi
17388       done
17389fi
17390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391    if test $ac_cv_c_bigendian = unknown; then
17392      # See if sys/param.h defines the BYTE_ORDER macro.
17393      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394/* end confdefs.h.  */
17395#include <sys/types.h>
17396	     #include <sys/param.h>
17397
17398int
17399main ()
17400{
17401#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17402		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17403		     && LITTLE_ENDIAN)
17404	      bogus endian macros
17405	     #endif
17406
17407  ;
17408  return 0;
17409}
17410_ACEOF
17411if ac_fn_cxx_try_compile "$LINENO"; then :
17412  # It does; now see whether it defined to BIG_ENDIAN or not.
17413	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h.  */
17415#include <sys/types.h>
17416		#include <sys/param.h>
17417
17418int
17419main ()
17420{
17421#if BYTE_ORDER != BIG_ENDIAN
17422		 not big endian
17423		#endif
17424
17425  ;
17426  return 0;
17427}
17428_ACEOF
17429if ac_fn_cxx_try_compile "$LINENO"; then :
17430  ac_cv_c_bigendian=yes
17431else
17432  ac_cv_c_bigendian=no
17433fi
17434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435fi
17436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437    fi
17438    if test $ac_cv_c_bigendian = unknown; then
17439      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17440      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441/* end confdefs.h.  */
17442#include <limits.h>
17443
17444int
17445main ()
17446{
17447#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17448	      bogus endian macros
17449	     #endif
17450
17451  ;
17452  return 0;
17453}
17454_ACEOF
17455if ac_fn_cxx_try_compile "$LINENO"; then :
17456  # It does; now see whether it defined to _BIG_ENDIAN or not.
17457	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h.  */
17459#include <limits.h>
17460
17461int
17462main ()
17463{
17464#ifndef _BIG_ENDIAN
17465		 not big endian
17466		#endif
17467
17468  ;
17469  return 0;
17470}
17471_ACEOF
17472if ac_fn_cxx_try_compile "$LINENO"; then :
17473  ac_cv_c_bigendian=yes
17474else
17475  ac_cv_c_bigendian=no
17476fi
17477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478fi
17479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480    fi
17481    if test $ac_cv_c_bigendian = unknown; then
17482      # Compile a test program.
17483      if test "$cross_compiling" = yes; then :
17484  # Try to guess by grepping values from an object file.
17485	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486/* end confdefs.h.  */
17487short int ascii_mm[] =
17488		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17489		short int ascii_ii[] =
17490		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17491		int use_ascii (int i) {
17492		  return ascii_mm[i] + ascii_ii[i];
17493		}
17494		short int ebcdic_ii[] =
17495		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17496		short int ebcdic_mm[] =
17497		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17498		int use_ebcdic (int i) {
17499		  return ebcdic_mm[i] + ebcdic_ii[i];
17500		}
17501		extern int foo;
17502
17503int
17504main ()
17505{
17506return use_ascii (foo) == use_ebcdic (foo);
17507  ;
17508  return 0;
17509}
17510_ACEOF
17511if ac_fn_cxx_try_compile "$LINENO"; then :
17512  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17513	      ac_cv_c_bigendian=yes
17514	    fi
17515	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17516	      if test "$ac_cv_c_bigendian" = unknown; then
17517		ac_cv_c_bigendian=no
17518	      else
17519		# finding both strings is unlikely to happen, but who knows?
17520		ac_cv_c_bigendian=unknown
17521	      fi
17522	    fi
17523fi
17524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525else
17526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h.  */
17528$ac_includes_default
17529int
17530main ()
17531{
17532
17533	     /* Are we little or big endian?  From Harbison&Steele.  */
17534	     union
17535	     {
17536	       long int l;
17537	       char c[sizeof (long int)];
17538	     } u;
17539	     u.l = 1;
17540	     return u.c[sizeof (long int) - 1] == 1;
17541
17542  ;
17543  return 0;
17544}
17545_ACEOF
17546if ac_fn_cxx_try_run "$LINENO"; then :
17547  ac_cv_c_bigendian=no
17548else
17549  ac_cv_c_bigendian=yes
17550fi
17551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17552  conftest.$ac_objext conftest.beam conftest.$ac_ext
17553fi
17554
17555    fi
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17558$as_echo "$ac_cv_c_bigendian" >&6; }
17559 case $ac_cv_c_bigendian in #(
17560   yes)
17561     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17562;; #(
17563   no)
17564      ;; #(
17565   universal)
17566
17567$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17568
17569     ;; #(
17570   *)
17571     as_fn_error $? "unknown endianness
17572 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17573 esac
17574
17575
17576LIDIA_LT_XLIBOBJS=
17577
17578
17579
17580	case $GXX in yes)
17581		LIDIA_LT_XLIBOBJS="$LIDIA_LT_XLIBOBJS lattice_modules_instant.$ac_objext" ;;
17582	esac
17583
17584
17585
17586
17587#
17588#	CHECKING FOR LIBRARY FUNCTIONS
17589#
17590
17591LIDIA_BASE_XLIBOBJS=
17592
17593
17594
17595
17596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of STLport" >&5
17597$as_echo_n "checking for use of STLport... " >&6; }
17598if ${lidia_cv_use_stlport+:} false; then :
17599  $as_echo_n "(cached) " >&6
17600else
17601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h.  */
17603#include <iostream>
17604			_STLP_IOSTREAM
17605_ACEOF
17606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17607  $EGREP "_STLP_IOSTREAM" >/dev/null 2>&1; then :
17608  lidia_cv_use_stlport=no
17609else
17610  lidia_cv_use_stlport=yes
17611fi
17612rm -f conftest*
17613
17614fi
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_use_stlport" >&5
17616$as_echo "$lidia_cv_use_stlport" >&6; }
17617	case $lidia_cv_use_stlport in yes)
17618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some STLport templates" >&5
17619$as_echo_n "checking for some STLport templates... " >&6; }
17620if ${lidia_cv_instantiate_stlport+:} false; then :
17621  $as_echo_n "(cached) " >&6
17622else
17623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624/* end confdefs.h.  */
17625#include "${srcdir}/src/portability/stlport.cc"
17626int
17627main ()
17628{
17629
17630  ;
17631  return 0;
17632}
17633_ACEOF
17634if ac_fn_cxx_try_compile "$LINENO"; then :
17635  lidia_cv_instantiate_stlport=yes
17636else
17637  lidia_cv_instantiate_stlport=no
17638fi
17639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640fi
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_instantiate_stlport" >&5
17642$as_echo "$lidia_cv_instantiate_stlport" >&6; }
17643		case $lidia_cv_instantiate_stlport in yes)
17644			LIDIA_BASE_XLIBOBJS="$LIDIA_BASE_XLIBOBJS stlport.$ac_objext"
17645		;;
17646		esac
17647	;;
17648	esac
17649
17650
17651
17652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random and srandom" >&5
17653$as_echo_n "checking for random and srandom... " >&6; }
17654if ${lidia_cv_func_random+:} false; then :
17655  $as_echo_n "(cached) " >&6
17656else
17657
17658		cat > conftest.C << EOF
17659#include	<cstdlib>
17660
17661int main (int argc, char** argv) { srandom(random()); return 0; }
17662EOF
17663		if { ac_try='${CXX} -o conftest conftest.C'
17664  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17665  (eval $ac_try) 2>&5
17666  ac_status=$?
17667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17668  test $ac_status = 0; }; } > /dev/null 2>&1; then
17669			lidia_cv_func_random="yes"
17670		else
17671			lidia_cv_func_random="no"
17672		fi
17673
17674fi
17675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_func_random" >&5
17676$as_echo "$lidia_cv_func_random" >&6; }
17677	if test "$lidia_cv_func_random" != "yes" ; then
17678		LIDIA_BASE_XLIBOBJS="$LIDIA_BASE_XLIBOBJS random.$ac_objext"
17679	else
17680		$as_echo "#define HAVE_RANDOM 1" >>confdefs.h
17681
17682	fi
17683
17684
17685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
17686$as_echo_n "checking for mkstemp... " >&6; }
17687if ${lidia_cv_func_mkstemp+:} false; then :
17688  $as_echo_n "(cached) " >&6
17689else
17690
17691		cat > conftest.C << EOF
17692#include <stdlib.h>
17693
17694int main (void) {
17695	char f[ ] = "/tmp/xxXXXXXX";
17696	return mkstemp(f);
17697}
17698EOF
17699		if { ac_try='${CXX} -o conftest conftest.C'
17700  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17701  (eval $ac_try) 2>&5
17702  ac_status=$?
17703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17704  test $ac_status = 0; }; } > /dev/null 2>&1; then
17705			lidia_cv_func_mkstemp="yes"
17706		else
17707			lidia_cv_func_mkstemp="no"
17708		fi
17709
17710fi
17711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_func_mkstemp" >&5
17712$as_echo "$lidia_cv_func_mkstemp" >&6; }
17713	if test "$lidia_cv_func_mkstemp" = "yes" ; then
17714		$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
17715
17716	fi
17717
17718
17719
17720
17721#
17722#	CHECKING FOR SYSTEM SERVICES
17723#
17724
17725
17726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX signals work" >&5
17727$as_echo_n "checking whether POSIX signals work... " >&6; }
17728if ${lidia_cv_posix_signals+:} false; then :
17729  $as_echo_n "(cached) " >&6
17730else
17731
17732		lidia_cv_posix_signals="no"
17733		cat > conftest.C << EOF
17734#include	<signal.h>
17735#include	<stdio.h>
17736
17737static int ret;
17738
17739void sig_handler (int signo)
17740{
17741	if (signo == SIGUSR1) ret = 0;
17742}
17743
17744int main (int, char**)
17745{
17746	struct sigaction sact;
17747
17748	ret = 2;
17749	sact.sa_handler = &sig_handler;
17750	sact.sa_flags = 0;
17751	sigemptyset(&sact.sa_mask);
17752	if (sigaction(SIGUSR1, &sact, NULL) != 0) {
17753		perror(NULL);
17754		return 1;
17755	}
17756	if (raise(SIGUSR1) != 0) {
17757		perror(NULL);
17758		return 1;
17759	}
17760
17761	return ret;
17762}
17763EOF
17764		if { ac_try='${CXX} -o conftest conftest.C'
17765  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17766  (eval $ac_try) 2>&5
17767  ac_status=$?
17768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17769  test $ac_status = 0; }; } > /dev/null 2>&1; then
17770			if ./conftest ; then
17771				lidia_cv_posix_signals="yes"
17772			fi
17773		fi
17774
17775fi
17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_posix_signals" >&5
17777$as_echo "$lidia_cv_posix_signals" >&6; }
17778	if test "$lidia_cv_posix_signals" = "yes" ; then
17779		$as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
17780
17781	fi
17782
17783
17784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX times work" >&5
17785$as_echo_n "checking whether POSIX times work... " >&6; }
17786if ${lidia_cv_posix_times+:} false; then :
17787  $as_echo_n "(cached) " >&6
17788else
17789
17790		lidia_cv_posix_times="no"
17791		cat > conftest.C << EOF
17792#include	<sys/times.h>
17793#include	<stdio.h>
17794
17795int main (int, char**)
17796{
17797	struct tms t_info;
17798	if (times(&t_info) == static_cast<clock_t>(-1)) {
17799		perror(NULL);
17800		return 1;
17801	}
17802	return 0;
17803}
17804EOF
17805		if { ac_try='${CXX} -o conftest conftest.C'
17806  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17807  (eval $ac_try) 2>&5
17808  ac_status=$?
17809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17810  test $ac_status = 0; }; } > /dev/null 2>&1; then
17811			if ./conftest ; then
17812				lidia_cv_posix_times="yes"
17813			fi
17814		fi
17815
17816fi
17817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_posix_times" >&5
17818$as_echo "$lidia_cv_posix_times" >&6; }
17819	if test "$lidia_cv_posix_times" = "yes" ; then
17820		$as_echo "#define HAVE_POSIX_TIMES 1" >>confdefs.h
17821
17822	fi
17823
17824
17825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX time work" >&5
17826$as_echo_n "checking whether POSIX time work... " >&6; }
17827if ${lidia_cv_posix_time+:} false; then :
17828  $as_echo_n "(cached) " >&6
17829else
17830
17831		lidia_cv_posix_time="no"
17832		cat > conftest.C << EOF
17833#include	<time.h>
17834#include	<stdio.h>
17835
17836int main (int, char**)
17837{
17838	if (time(NULL) == static_cast<time_t>(-1)) {
17839		perror(NULL);
17840		return 1;
17841	}
17842	return 0;
17843}
17844EOF
17845		if { ac_try='${CXX} -o conftest conftest.C'
17846  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17847  (eval $ac_try) 2>&5
17848  ac_status=$?
17849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17850  test $ac_status = 0; }; } > /dev/null 2>&1; then
17851			if ./conftest ; then
17852				lidia_cv_posix_time="yes"
17853			fi
17854		fi
17855
17856fi
17857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lidia_cv_posix_time" >&5
17858$as_echo "$lidia_cv_posix_time" >&6; }
17859	if test "$lidia_cv_posix_time" = "yes" ; then
17860		$as_echo "#define HAVE_POSIX_TIME 1" >>confdefs.h
17861
17862	fi
17863
17864
17865
17866
17867#
17868#	CHECKING FOR FEATURES
17869#
17870
17871
17872
17873# Check whether --enable-inline was given.
17874if test "${enable_inline+set}" = set; then :
17875  enableval=$enable_inline;
17876	if test "$enable_inline" = "yes"; then
17877		$as_echo "#define INLINE_INTERFACE 1" >>confdefs.h
17878
17879	else
17880		$as_echo "#define INLINE_INTERFACE 0" >>confdefs.h
17881
17882	fi
17883
17884else
17885
17886	$as_echo "#define INLINE_INTERFACE 1" >>confdefs.h
17887
17888
17889fi
17890
17891
17892
17893# Check whether --enable-exceptions was given.
17894if test "${enable_exceptions+set}" = set; then :
17895  enableval=$enable_exceptions;
17896   if test "$enable_exceptions" = "yes"; then
17897     $as_echo "#define LIDIA_EXCEPTIONS 1" >>confdefs.h
17898
17899   else
17900
17901  if test "$GXX" = "yes"; then
17902    case " ${CXXFLAGS} " in
17903      *" -fno-exceptions "*)
17904        ;;
17905      *)
17906        CXXFLAGS="${CXXFLAGS} -fno-exceptions"
17907        ;;
17908    esac
17909  fi
17910
17911   fi
17912
17913else
17914
17915     $as_echo "#define LIDIA_EXCEPTIONS 1" >>confdefs.h
17916
17917
17918fi
17919
17920
17921
17922# Check whether --enable-assert was given.
17923if test "${enable_assert+set}" = set; then :
17924  enableval=$enable_assert;
17925	if test "$enable_assert" != "yes" ; then
17926		$as_echo "#define NDEBUG 1" >>confdefs.h
17927
17928	fi
17929
17930else
17931
17932	$as_echo "#define NDEBUG 1" >>confdefs.h
17933
17934
17935fi
17936
17937
17938
17939lidia_base="yes"
17940
17941
17942# Check whether --enable-ff was given.
17943if test "${enable_ff+set}" = set; then :
17944  enableval=$enable_ff;
17945	if test "$enable_ff" = "yes" ; then
17946		lidia_ff="yes"
17947	else
17948		lidia_ff="no"
17949	fi
17950
17951else
17952
17953	lidia_ff="yes"
17954
17955fi
17956
17957
17958
17959# Check whether --enable-la was given.
17960if test "${enable_la+set}" = set; then :
17961  enableval=$enable_la;
17962	if test "$enable_la" = "yes" ; then
17963		lidia_la="yes"
17964	else
17965		lidia_la="no"
17966	fi
17967
17968else
17969
17970	lidia_la="yes"
17971
17972fi
17973
17974
17975
17976# Check whether --enable-lt was given.
17977if test "${enable_lt+set}" = set; then :
17978  enableval=$enable_lt;
17979	if test "$enable_lt" = "yes" ; then
17980		lidia_lt="yes"
17981	else
17982		lidia_lt="no"
17983	fi
17984
17985else
17986
17987	lidia_lt="yes"
17988
17989fi
17990
17991
17992
17993# Check whether --enable-nf was given.
17994if test "${enable_nf+set}" = set; then :
17995  enableval=$enable_nf;
17996	if test "$enable_nf" = "yes" ; then
17997		lidia_nf="yes"
17998	else
17999		lidia_nf="no"
18000	fi
18001
18002else
18003
18004	lidia_nf="yes"
18005
18006fi
18007
18008
18009
18010# Check whether --enable-ec was given.
18011if test "${enable_ec+set}" = set; then :
18012  enableval=$enable_ec;
18013	if test "$enable_ec" = "yes" ; then
18014		lidia_ec="yes"
18015	else
18016		lidia_ec="no"
18017	fi
18018
18019else
18020
18021	lidia_ec="yes"
18022
18023fi
18024
18025
18026
18027# Check whether --enable-eco was given.
18028if test "${enable_eco+set}" = set; then :
18029  enableval=$enable_eco;
18030	if test "$enable_eco" = "yes" ; then
18031		lidia_eco="yes"
18032	else
18033		lidia_eco="no"
18034	fi
18035
18036else
18037
18038	lidia_eco="yes"
18039
18040fi
18041
18042
18043
18044# Check whether --enable-gec was given.
18045if test "${enable_gec+set}" = set; then :
18046  enableval=$enable_gec;
18047	if test "$enable_gec" = "yes" ; then
18048		lidia_gec="yes"
18049	else
18050		lidia_gec="no"
18051	fi
18052
18053else
18054
18055	lidia_gec="yes"
18056
18057fi
18058
18059
18060
18061LIDIA_LTCLIBS="\${LIDIA_BASE_LTCLIB}"
18062PKG_DIRS="base"
18063ac_config_files="$ac_config_files library/base/Makefile examples/base/Makefile"
18064
18065
18066
18067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the finite fields package" >&5
18068$as_echo_n "checking whether to compile the finite fields package... " >&6; }
18069if test "$lidia_ff" != "yes"; then
18070	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18071$as_echo "no" >&6; }
18072elif test ! -d $srcdir/src/finite_fields ; then
18073	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18074$as_echo "no (not present)" >&6; }
18075	lidia_ff="no"
18076else
18077	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18078$as_echo "yes" >&6; }
18079	LIDIA_LTCLIBS="\${LIDIA_FF_LTCLIB} ${LIDIA_LTCLIBS}"
18080	PKG_DIRS="${PKG_DIRS} finite_fields"
18081	ac_config_files="$ac_config_files library/finite_fields/Makefile examples/finite_fields/Makefile"
18082
18083fi
18084
18085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the linear algebra package" >&5
18086$as_echo_n "checking whether to compile the linear algebra package... " >&6; }
18087if test "$lidia_la" != "yes"; then
18088	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089$as_echo "no" >&6; }
18090elif test ! -d $srcdir/src/linear_algebra ; then
18091	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18092$as_echo "no (not present)" >&6; }
18093	lidia_la="no"
18094elif test "$lidia_ff" != "yes"; then
18095	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires finite fields package)" >&5
18096$as_echo "no (requires finite fields package)" >&6; }
18097	lidia_la="no"
18098else
18099	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100$as_echo "yes" >&6; }
18101	LIDIA_LTCLIBS="\${LIDIA_LA_LTCLIB} ${LIDIA_LTCLIBS}"
18102	PKG_DIRS="${PKG_DIRS} linear_algebra"
18103	ac_config_files="$ac_config_files library/linear_algebra/Makefile examples/linear_algebra/Makefile"
18104
18105fi
18106
18107
18108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the lattice package" >&5
18109$as_echo_n "checking whether to compile the lattice package... " >&6; }
18110if test "$lidia_lt" != "yes"; then
18111	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112$as_echo "no" >&6; }
18113elif test ! -d $srcdir/src/lattices ; then
18114	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18115$as_echo "no (not present)" >&6; }
18116	lidia_lt="no"
18117elif test "$lidia_la" != "yes"; then
18118	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires linear algebra package)" >&5
18119$as_echo "no (requires linear algebra package)" >&6; }
18120	lidia_lt="no"
18121else
18122	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18123$as_echo "yes" >&6; }
18124	LIDIA_LTCLIBS="\${LIDIA_LT_LTCLIB} ${LIDIA_LTCLIBS}"
18125	PKG_DIRS="${PKG_DIRS} lattices"
18126	ac_config_files="$ac_config_files library/lattices/Makefile examples/lattices/Makefile"
18127
18128fi
18129
18130
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the number fields package" >&5
18132$as_echo_n "checking whether to compile the number fields package... " >&6; }
18133if test "$lidia_nf" != "yes"; then
18134	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135$as_echo "no" >&6; }
18136elif test ! -d $srcdir/src/number_fields ; then
18137	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18138$as_echo "no (not present)" >&6; }
18139	lidia_nf="no"
18140elif test "$lidia_lt" != "yes"; then
18141	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires lattice package)" >&5
18142$as_echo "no (requires lattice package)" >&6; }
18143	lidia_nf="no"
18144else
18145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18146$as_echo "yes" >&6; }
18147	LIDIA_LTCLIBS="\${LIDIA_NF_LTCLIB} ${LIDIA_LTCLIBS}"
18148	PKG_DIRS="${PKG_DIRS} number_fields"
18149	ac_config_files="$ac_config_files library/number_fields/Makefile examples/number_fields/Makefile"
18150
18151fi
18152
18153
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the elliptic curve package" >&5
18155$as_echo_n "checking whether to compile the elliptic curve package... " >&6; }
18156if test "$lidia_ec" != "yes"; then
18157	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18158$as_echo "no" >&6; }
18159elif test ! -d $srcdir/src/elliptic_curves ; then
18160	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18161$as_echo "no (not present)" >&6; }
18162	lidia_ec="no"
18163elif test "$lidia_la" != "yes"; then
18164	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires linear algebra package)" >&5
18165$as_echo "no (requires linear algebra package)" >&6; }
18166	lidia_ec="no"
18167else
18168	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18169$as_echo "yes" >&6; }
18170	LIDIA_LTCLIBS="\${LIDIA_EC_LTCLIB} ${LIDIA_LTCLIBS}"
18171	PKG_DIRS="${PKG_DIRS} elliptic_curves"
18172	ac_config_files="$ac_config_files library/elliptic_curves/Makefile examples/elliptic_curves/Makefile"
18173
18174fi
18175
18176
18177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the elliptic curve order package" >&5
18178$as_echo_n "checking whether to compile the elliptic curve order package... " >&6; }
18179if test "$lidia_eco" != "yes"; then
18180	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181$as_echo "no" >&6; }
18182elif test ! -d $srcdir/src/ec_order ; then
18183	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18184$as_echo "no (not present)" >&6; }
18185	lidia_eco="no"
18186elif test "$lidia_ec" != "yes"; then
18187	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires elliptic curves package)" >&5
18188$as_echo "no (requires elliptic curves package)" >&6; }
18189	lidia_eco="no"
18190else
18191	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192$as_echo "yes" >&6; }
18193	LIDIA_LTCLIBS="\${LIDIA_ECO_LTCLIB} ${LIDIA_LTCLIBS}"
18194	PKG_DIRS="${PKG_DIRS} ec_order"
18195	ac_config_files="$ac_config_files library/ec_order/Makefile examples/ec_order/Makefile"
18196
18197fi
18198
18199
18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile the elliptic curve generation package" >&5
18201$as_echo_n "checking whether to compile the elliptic curve generation package... " >&6; }
18202if test "$lidia_gec" != "yes"; then
18203	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204$as_echo "no" >&6; }
18205elif test ! -d $srcdir/src/gec ; then
18206	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not present)" >&5
18207$as_echo "no (not present)" >&6; }
18208	lidia_gec="no"
18209elif test "$lidia_eco" != "yes"; then
18210	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires elliptic curve order package)" >&5
18211$as_echo "no (requires elliptic curve order package)" >&6; }
18212	lidia_gec="no"
18213elif test "$lidia_nf" != "yes"; then
18214	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (requires number field package)" >&5
18215$as_echo "no (requires number field package)" >&6; }
18216	lidia_gec="no"
18217else
18218	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18219$as_echo "yes" >&6; }
18220	LIDIA_LTCLIBS="\${LIDIA_GEC_LTCLIB} ${LIDIA_LTCLIBS}"
18221	PKG_DIRS="${PKG_DIRS} gec"
18222	ac_config_files="$ac_config_files library/gec/Makefile examples/gec/Makefile"
18223
18224fi
18225
18226
18227
18228
18229test -z "${EXTRA_INCLUDES}" || CPPFLAGS="${CPPFLAGS} ${EXTRA_INCLUDES}"
18230
18231
18232
18233#
18234#	Prepare to create links according to selected multi precision library
18235#
18236
18237ac_config_links="$ac_config_links src/base/interfaces/bigint/bigint.cc:src/interfaces/bigint/${lidia_arithmetic}/bigint.cc"
18238
18239ac_config_links="$ac_config_links src/base/interfaces/udigit/udigit.cc:src/interfaces/udigit/${lidia_arithmetic}/udigit.cc"
18240
18241ac_config_links="$ac_config_links src/base/interfaces/udigit/udigit_appl.cc:src/interfaces/udigit/${lidia_arithmetic}/udigit_appl.cc"
18242
18243ac_config_links="$ac_config_links include/LiDIA/kernel/bigint_def.h:src/interfaces/bigint/${lidia_arithmetic}/bigint_def.h"
18244
18245ac_config_links="$ac_config_links include/LiDIA/kernel/bigint_interface.h:src/interfaces/bigint/${lidia_arithmetic}/bigint_interface.h"
18246
18247ac_config_links="$ac_config_links include/LiDIA/kernel/udigit_def.h:src/interfaces/udigit/${lidia_arithmetic}/udigit_def.h"
18248
18249ac_config_links="$ac_config_links include/LiDIA/kernel/udigit_interface.h:src/interfaces/udigit/${lidia_arithmetic}/udigit_interface.h"
18250
18251
18252if test "$lidia_cv_func_random" != "yes" ; then
18253	ac_config_links="$ac_config_links include/LiDIA/random.h:src/portability/random.h"
18254
18255fi
18256
18257
18258
18259#
18260#	create output files
18261#
18262
18263ac_config_files="$ac_config_files Makefile library/Makefile examples/Makefile doc/Makefile"
18264
18265cat >confcache <<\_ACEOF
18266# This file is a shell script that caches the results of configure
18267# tests run on this system so they can be shared between configure
18268# scripts and configure runs, see configure's option --config-cache.
18269# It is not useful on other systems.  If it contains results you don't
18270# want to keep, you may remove or edit it.
18271#
18272# config.status only pays attention to the cache file if you give it
18273# the --recheck option to rerun configure.
18274#
18275# `ac_cv_env_foo' variables (set or unset) will be overridden when
18276# loading this file, other *unset* `ac_cv_foo' will be assigned the
18277# following values.
18278
18279_ACEOF
18280
18281# The following way of writing the cache mishandles newlines in values,
18282# but we know of no workaround that is simple, portable, and efficient.
18283# So, we kill variables containing newlines.
18284# Ultrix sh set writes to stderr and can't be redirected directly,
18285# and sets the high bit in the cache file unless we assign to the vars.
18286(
18287  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18288    eval ac_val=\$$ac_var
18289    case $ac_val in #(
18290    *${as_nl}*)
18291      case $ac_var in #(
18292      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18293$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18294      esac
18295      case $ac_var in #(
18296      _ | IFS | as_nl) ;; #(
18297      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18298      *) { eval $ac_var=; unset $ac_var;} ;;
18299      esac ;;
18300    esac
18301  done
18302
18303  (set) 2>&1 |
18304    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18305    *${as_nl}ac_space=\ *)
18306      # `set' does not quote correctly, so add quotes: double-quote
18307      # substitution turns \\\\ into \\, and sed turns \\ into \.
18308      sed -n \
18309	"s/'/'\\\\''/g;
18310	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18311      ;; #(
18312    *)
18313      # `set' quotes correctly as required by POSIX, so do not add quotes.
18314      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18315      ;;
18316    esac |
18317    sort
18318) |
18319  sed '
18320     /^ac_cv_env_/b end
18321     t clear
18322     :clear
18323     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18324     t end
18325     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18326     :end' >>confcache
18327if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18328  if test -w "$cache_file"; then
18329    if test "x$cache_file" != "x/dev/null"; then
18330      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18331$as_echo "$as_me: updating cache $cache_file" >&6;}
18332      if test ! -f "$cache_file" || test -h "$cache_file"; then
18333	cat confcache >"$cache_file"
18334      else
18335        case $cache_file in #(
18336        */* | ?:*)
18337	  mv -f confcache "$cache_file"$$ &&
18338	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18339        *)
18340	  mv -f confcache "$cache_file" ;;
18341	esac
18342      fi
18343    fi
18344  else
18345    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18346$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18347  fi
18348fi
18349rm -f confcache
18350
18351test "x$prefix" = xNONE && prefix=$ac_default_prefix
18352# Let make expand exec_prefix.
18353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18354
18355DEFS=-DHAVE_CONFIG_H
18356
18357ac_libobjs=
18358ac_ltlibobjs=
18359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18360  # 1. Remove the extension, and $U if already installed.
18361  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18362  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18363  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18364  #    will be set to the directory where LIBOBJS objects are built.
18365  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18366  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18367done
18368LIBOBJS=$ac_libobjs
18369
18370LTLIBOBJS=$ac_ltlibobjs
18371
18372
18373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18374$as_echo_n "checking that generated files are newer than configure... " >&6; }
18375   if test -n "$am_sleep_pid"; then
18376     # Hide warnings about reused PIDs.
18377     wait $am_sleep_pid 2>/dev/null
18378   fi
18379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18380$as_echo "done" >&6; }
18381 if test -n "$EXEEXT"; then
18382  am__EXEEXT_TRUE=
18383  am__EXEEXT_FALSE='#'
18384else
18385  am__EXEEXT_TRUE='#'
18386  am__EXEEXT_FALSE=
18387fi
18388
18389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18390  as_fn_error $? "conditional \"AMDEP\" was never defined.
18391Usually this means the macro was only invoked conditionally." "$LINENO" 5
18392fi
18393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18394  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18395Usually this means the macro was only invoked conditionally." "$LINENO" 5
18396fi
18397if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18398  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18399Usually this means the macro was only invoked conditionally." "$LINENO" 5
18400fi
18401
18402LIDIA_LT_XLTLIBOBJS=`echo "$LIDIA_LT_XLIBOBJS " | sed 's:\.[^.]* :.lo :g; s: $::'`
18403
18404LIDIA_BASE_XLTLIBOBJS=`echo "$LIDIA_BASE_XLIBOBJS " | sed 's:\.[^.]* :.lo :g; s: $::'`
18405
18406
18407: "${CONFIG_STATUS=./config.status}"
18408ac_write_fail=0
18409ac_clean_files_save=$ac_clean_files
18410ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18411{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18412$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18413as_write_fail=0
18414cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18415#! $SHELL
18416# Generated by $as_me.
18417# Run this file to recreate the current configuration.
18418# Compiler output produced by configure, useful for debugging
18419# configure, is in config.log if it exists.
18420
18421debug=false
18422ac_cs_recheck=false
18423ac_cs_silent=false
18424
18425SHELL=\${CONFIG_SHELL-$SHELL}
18426export SHELL
18427_ASEOF
18428cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18429## -------------------- ##
18430## M4sh Initialization. ##
18431## -------------------- ##
18432
18433# Be more Bourne compatible
18434DUALCASE=1; export DUALCASE # for MKS sh
18435if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18436  emulate sh
18437  NULLCMD=:
18438  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18439  # is contrary to our usage.  Disable this feature.
18440  alias -g '${1+"$@"}'='"$@"'
18441  setopt NO_GLOB_SUBST
18442else
18443  case `(set -o) 2>/dev/null` in #(
18444  *posix*) :
18445    set -o posix ;; #(
18446  *) :
18447     ;;
18448esac
18449fi
18450
18451
18452as_nl='
18453'
18454export as_nl
18455# Printing a long string crashes Solaris 7 /usr/bin/printf.
18456as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18457as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18459# Prefer a ksh shell builtin over an external printf program on Solaris,
18460# but without wasting forks for bash or zsh.
18461if test -z "$BASH_VERSION$ZSH_VERSION" \
18462    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18463  as_echo='print -r --'
18464  as_echo_n='print -rn --'
18465elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18466  as_echo='printf %s\n'
18467  as_echo_n='printf %s'
18468else
18469  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18470    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18471    as_echo_n='/usr/ucb/echo -n'
18472  else
18473    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18474    as_echo_n_body='eval
18475      arg=$1;
18476      case $arg in #(
18477      *"$as_nl"*)
18478	expr "X$arg" : "X\\(.*\\)$as_nl";
18479	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18480      esac;
18481      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18482    '
18483    export as_echo_n_body
18484    as_echo_n='sh -c $as_echo_n_body as_echo'
18485  fi
18486  export as_echo_body
18487  as_echo='sh -c $as_echo_body as_echo'
18488fi
18489
18490# The user is always right.
18491if test "${PATH_SEPARATOR+set}" != set; then
18492  PATH_SEPARATOR=:
18493  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18494    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18495      PATH_SEPARATOR=';'
18496  }
18497fi
18498
18499
18500# IFS
18501# We need space, tab and new line, in precisely that order.  Quoting is
18502# there to prevent editors from complaining about space-tab.
18503# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18504# splitting by setting IFS to empty value.)
18505IFS=" ""	$as_nl"
18506
18507# Find who we are.  Look in the path if we contain no directory separator.
18508as_myself=
18509case $0 in #((
18510  *[\\/]* ) as_myself=$0 ;;
18511  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18512for as_dir in $PATH
18513do
18514  IFS=$as_save_IFS
18515  test -z "$as_dir" && as_dir=.
18516    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18517  done
18518IFS=$as_save_IFS
18519
18520     ;;
18521esac
18522# We did not find ourselves, most probably we were run as `sh COMMAND'
18523# in which case we are not to be found in the path.
18524if test "x$as_myself" = x; then
18525  as_myself=$0
18526fi
18527if test ! -f "$as_myself"; then
18528  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18529  exit 1
18530fi
18531
18532# Unset variables that we do not need and which cause bugs (e.g. in
18533# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18534# suppresses any "Segmentation fault" message there.  '((' could
18535# trigger a bug in pdksh 5.2.14.
18536for as_var in BASH_ENV ENV MAIL MAILPATH
18537do eval test x\${$as_var+set} = xset \
18538  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18539done
18540PS1='$ '
18541PS2='> '
18542PS4='+ '
18543
18544# NLS nuisances.
18545LC_ALL=C
18546export LC_ALL
18547LANGUAGE=C
18548export LANGUAGE
18549
18550# CDPATH.
18551(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18552
18553
18554# as_fn_error STATUS ERROR [LINENO LOG_FD]
18555# ----------------------------------------
18556# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18557# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18558# script with STATUS, using 1 if that was 0.
18559as_fn_error ()
18560{
18561  as_status=$1; test $as_status -eq 0 && as_status=1
18562  if test "$4"; then
18563    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18564    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18565  fi
18566  $as_echo "$as_me: error: $2" >&2
18567  as_fn_exit $as_status
18568} # as_fn_error
18569
18570
18571# as_fn_set_status STATUS
18572# -----------------------
18573# Set $? to STATUS, without forking.
18574as_fn_set_status ()
18575{
18576  return $1
18577} # as_fn_set_status
18578
18579# as_fn_exit STATUS
18580# -----------------
18581# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18582as_fn_exit ()
18583{
18584  set +e
18585  as_fn_set_status $1
18586  exit $1
18587} # as_fn_exit
18588
18589# as_fn_unset VAR
18590# ---------------
18591# Portably unset VAR.
18592as_fn_unset ()
18593{
18594  { eval $1=; unset $1;}
18595}
18596as_unset=as_fn_unset
18597# as_fn_append VAR VALUE
18598# ----------------------
18599# Append the text in VALUE to the end of the definition contained in VAR. Take
18600# advantage of any shell optimizations that allow amortized linear growth over
18601# repeated appends, instead of the typical quadratic growth present in naive
18602# implementations.
18603if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18604  eval 'as_fn_append ()
18605  {
18606    eval $1+=\$2
18607  }'
18608else
18609  as_fn_append ()
18610  {
18611    eval $1=\$$1\$2
18612  }
18613fi # as_fn_append
18614
18615# as_fn_arith ARG...
18616# ------------------
18617# Perform arithmetic evaluation on the ARGs, and store the result in the
18618# global $as_val. Take advantage of shells that can avoid forks. The arguments
18619# must be portable across $(()) and expr.
18620if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18621  eval 'as_fn_arith ()
18622  {
18623    as_val=$(( $* ))
18624  }'
18625else
18626  as_fn_arith ()
18627  {
18628    as_val=`expr "$@" || test $? -eq 1`
18629  }
18630fi # as_fn_arith
18631
18632
18633if expr a : '\(a\)' >/dev/null 2>&1 &&
18634   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18635  as_expr=expr
18636else
18637  as_expr=false
18638fi
18639
18640if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18641  as_basename=basename
18642else
18643  as_basename=false
18644fi
18645
18646if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18647  as_dirname=dirname
18648else
18649  as_dirname=false
18650fi
18651
18652as_me=`$as_basename -- "$0" ||
18653$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18654	 X"$0" : 'X\(//\)$' \| \
18655	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18656$as_echo X/"$0" |
18657    sed '/^.*\/\([^/][^/]*\)\/*$/{
18658	    s//\1/
18659	    q
18660	  }
18661	  /^X\/\(\/\/\)$/{
18662	    s//\1/
18663	    q
18664	  }
18665	  /^X\/\(\/\).*/{
18666	    s//\1/
18667	    q
18668	  }
18669	  s/.*/./; q'`
18670
18671# Avoid depending upon Character Ranges.
18672as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18673as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18674as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18675as_cr_digits='0123456789'
18676as_cr_alnum=$as_cr_Letters$as_cr_digits
18677
18678ECHO_C= ECHO_N= ECHO_T=
18679case `echo -n x` in #(((((
18680-n*)
18681  case `echo 'xy\c'` in
18682  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18683  xy)  ECHO_C='\c';;
18684  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18685       ECHO_T='	';;
18686  esac;;
18687*)
18688  ECHO_N='-n';;
18689esac
18690
18691rm -f conf$$ conf$$.exe conf$$.file
18692if test -d conf$$.dir; then
18693  rm -f conf$$.dir/conf$$.file
18694else
18695  rm -f conf$$.dir
18696  mkdir conf$$.dir 2>/dev/null
18697fi
18698if (echo >conf$$.file) 2>/dev/null; then
18699  if ln -s conf$$.file conf$$ 2>/dev/null; then
18700    as_ln_s='ln -s'
18701    # ... but there are two gotchas:
18702    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18703    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18704    # In both cases, we have to default to `cp -pR'.
18705    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18706      as_ln_s='cp -pR'
18707  elif ln conf$$.file conf$$ 2>/dev/null; then
18708    as_ln_s=ln
18709  else
18710    as_ln_s='cp -pR'
18711  fi
18712else
18713  as_ln_s='cp -pR'
18714fi
18715rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18716rmdir conf$$.dir 2>/dev/null
18717
18718
18719# as_fn_mkdir_p
18720# -------------
18721# Create "$as_dir" as a directory, including parents if necessary.
18722as_fn_mkdir_p ()
18723{
18724
18725  case $as_dir in #(
18726  -*) as_dir=./$as_dir;;
18727  esac
18728  test -d "$as_dir" || eval $as_mkdir_p || {
18729    as_dirs=
18730    while :; do
18731      case $as_dir in #(
18732      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18733      *) as_qdir=$as_dir;;
18734      esac
18735      as_dirs="'$as_qdir' $as_dirs"
18736      as_dir=`$as_dirname -- "$as_dir" ||
18737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18738	 X"$as_dir" : 'X\(//\)[^/]' \| \
18739	 X"$as_dir" : 'X\(//\)$' \| \
18740	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18741$as_echo X"$as_dir" |
18742    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18743	    s//\1/
18744	    q
18745	  }
18746	  /^X\(\/\/\)[^/].*/{
18747	    s//\1/
18748	    q
18749	  }
18750	  /^X\(\/\/\)$/{
18751	    s//\1/
18752	    q
18753	  }
18754	  /^X\(\/\).*/{
18755	    s//\1/
18756	    q
18757	  }
18758	  s/.*/./; q'`
18759      test -d "$as_dir" && break
18760    done
18761    test -z "$as_dirs" || eval "mkdir $as_dirs"
18762  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18763
18764
18765} # as_fn_mkdir_p
18766if mkdir -p . 2>/dev/null; then
18767  as_mkdir_p='mkdir -p "$as_dir"'
18768else
18769  test -d ./-p && rmdir ./-p
18770  as_mkdir_p=false
18771fi
18772
18773
18774# as_fn_executable_p FILE
18775# -----------------------
18776# Test if FILE is an executable regular file.
18777as_fn_executable_p ()
18778{
18779  test -f "$1" && test -x "$1"
18780} # as_fn_executable_p
18781as_test_x='test -x'
18782as_executable_p=as_fn_executable_p
18783
18784# Sed expression to map a string onto a valid CPP name.
18785as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18786
18787# Sed expression to map a string onto a valid variable name.
18788as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18789
18790
18791exec 6>&1
18792## ----------------------------------- ##
18793## Main body of $CONFIG_STATUS script. ##
18794## ----------------------------------- ##
18795_ASEOF
18796test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18797
18798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18799# Save the log message, to keep $0 and so on meaningful, and to
18800# report actual input values of CONFIG_FILES etc. instead of their
18801# values after options handling.
18802ac_log="
18803This file was extended by LiDIA $as_me 2.3.0+latte-patches-2014-10-04, which was
18804generated by GNU Autoconf 2.69.  Invocation command line was
18805
18806  CONFIG_FILES    = $CONFIG_FILES
18807  CONFIG_HEADERS  = $CONFIG_HEADERS
18808  CONFIG_LINKS    = $CONFIG_LINKS
18809  CONFIG_COMMANDS = $CONFIG_COMMANDS
18810  $ $0 $@
18811
18812on `(hostname || uname -n) 2>/dev/null | sed 1q`
18813"
18814
18815_ACEOF
18816
18817case $ac_config_files in *"
18818"*) set x $ac_config_files; shift; ac_config_files=$*;;
18819esac
18820
18821case $ac_config_headers in *"
18822"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18823esac
18824
18825
18826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18827# Files that config.status was made for.
18828config_files="$ac_config_files"
18829config_headers="$ac_config_headers"
18830config_links="$ac_config_links"
18831config_commands="$ac_config_commands"
18832
18833_ACEOF
18834
18835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18836ac_cs_usage="\
18837\`$as_me' instantiates files and other configuration actions
18838from templates according to the current configuration.  Unless the files
18839and actions are specified as TAGs, all are instantiated by default.
18840
18841Usage: $0 [OPTION]... [TAG]...
18842
18843  -h, --help       print this help, then exit
18844  -V, --version    print version number and configuration settings, then exit
18845      --config     print configuration, then exit
18846  -q, --quiet, --silent
18847                   do not print progress messages
18848  -d, --debug      don't remove temporary files
18849      --recheck    update $as_me by reconfiguring in the same conditions
18850      --file=FILE[:TEMPLATE]
18851                   instantiate the configuration file FILE
18852      --header=FILE[:TEMPLATE]
18853                   instantiate the configuration header FILE
18854
18855Configuration files:
18856$config_files
18857
18858Configuration headers:
18859$config_headers
18860
18861Configuration links:
18862$config_links
18863
18864Configuration commands:
18865$config_commands
18866
18867Report bugs to <lidia@cdc.informatik.tu-darmstadt.de>."
18868
18869_ACEOF
18870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18871ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18872ac_cs_version="\\
18873LiDIA config.status 2.3.0+latte-patches-2014-10-04
18874configured by $0, generated by GNU Autoconf 2.69,
18875  with options \\"\$ac_cs_config\\"
18876
18877Copyright (C) 2012 Free Software Foundation, Inc.
18878This config.status script is free software; the Free Software Foundation
18879gives unlimited permission to copy, distribute and modify it."
18880
18881ac_pwd='$ac_pwd'
18882srcdir='$srcdir'
18883INSTALL='$INSTALL'
18884MKDIR_P='$MKDIR_P'
18885AWK='$AWK'
18886test -n "\$AWK" || AWK=awk
18887_ACEOF
18888
18889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18890# The default lists apply if the user does not specify any file.
18891ac_need_defaults=:
18892while test $# != 0
18893do
18894  case $1 in
18895  --*=?*)
18896    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18897    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18898    ac_shift=:
18899    ;;
18900  --*=)
18901    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18902    ac_optarg=
18903    ac_shift=:
18904    ;;
18905  *)
18906    ac_option=$1
18907    ac_optarg=$2
18908    ac_shift=shift
18909    ;;
18910  esac
18911
18912  case $ac_option in
18913  # Handling of the options.
18914  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18915    ac_cs_recheck=: ;;
18916  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18917    $as_echo "$ac_cs_version"; exit ;;
18918  --config | --confi | --conf | --con | --co | --c )
18919    $as_echo "$ac_cs_config"; exit ;;
18920  --debug | --debu | --deb | --de | --d | -d )
18921    debug=: ;;
18922  --file | --fil | --fi | --f )
18923    $ac_shift
18924    case $ac_optarg in
18925    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18926    '') as_fn_error $? "missing file argument" ;;
18927    esac
18928    as_fn_append CONFIG_FILES " '$ac_optarg'"
18929    ac_need_defaults=false;;
18930  --header | --heade | --head | --hea )
18931    $ac_shift
18932    case $ac_optarg in
18933    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18934    esac
18935    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18936    ac_need_defaults=false;;
18937  --he | --h)
18938    # Conflict between --help and --header
18939    as_fn_error $? "ambiguous option: \`$1'
18940Try \`$0 --help' for more information.";;
18941  --help | --hel | -h )
18942    $as_echo "$ac_cs_usage"; exit ;;
18943  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18944  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18945    ac_cs_silent=: ;;
18946
18947  # This is an error.
18948  -*) as_fn_error $? "unrecognized option: \`$1'
18949Try \`$0 --help' for more information." ;;
18950
18951  *) as_fn_append ac_config_targets " $1"
18952     ac_need_defaults=false ;;
18953
18954  esac
18955  shift
18956done
18957
18958ac_configure_extra_args=
18959
18960if $ac_cs_silent; then
18961  exec 6>/dev/null
18962  ac_configure_extra_args="$ac_configure_extra_args --silent"
18963fi
18964
18965_ACEOF
18966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18967if \$ac_cs_recheck; then
18968  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18969  shift
18970  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18971  CONFIG_SHELL='$SHELL'
18972  export CONFIG_SHELL
18973  exec "\$@"
18974fi
18975
18976_ACEOF
18977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18978exec 5>>config.log
18979{
18980  echo
18981  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18982## Running $as_me. ##
18983_ASBOX
18984  $as_echo "$ac_log"
18985} >&5
18986
18987_ACEOF
18988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18989#
18990# INIT-COMMANDS
18991#
18992AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18993
18994
18995# The HP-UX ksh and POSIX shell print the target directory to stdout
18996# if CDPATH is set.
18997(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18998
18999sed_quote_subst='$sed_quote_subst'
19000double_quote_subst='$double_quote_subst'
19001delay_variable_subst='$delay_variable_subst'
19002enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19003macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19004macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19005enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19006pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19007enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19008SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19009ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19010PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19011host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19012host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19013host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19014build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19015build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19016build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19017SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19018Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19019GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19020EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19021FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19022LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19023NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19024LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19025max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19026ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19027exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19028lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19029lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19030lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19031lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19032lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19033reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19034reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19035OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19036deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19037file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19038file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19039want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19040DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19041sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19042AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19043AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19044archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19045STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19046RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19047old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19048old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19049old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19050lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19051CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19052CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19053compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19054GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19055lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19056lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19057lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19058lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19059nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19060lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19061objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19062MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19063lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19064lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19065lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19066lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19067lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19068need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19069MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19070DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19071NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19072LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19073OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19074OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19075libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19076shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19077extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19078archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19079enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19080export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19081whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19082compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19083old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19084old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19085archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19086archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19087module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19088module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19089with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19090allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19091no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19092hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19093hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19094hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19095hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19096hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19097hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19098hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19099inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19100link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19101always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19102export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19103exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19104include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19105prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19106postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19107file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19108variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19109need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19110need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19111version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19112runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19113shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19114shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19115libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19116library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19117soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19118install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19119postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19120postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19121finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19122finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19123hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19124sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19125sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19126hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19127enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19128enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19129enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19130old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19131striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19132compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19133predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19134postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19135predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19136postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19137compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19138LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19139reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19140reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19141old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19142compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19143GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19144lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19145lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19146lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19147lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19148lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19149archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19150enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19151export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19152whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19153compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19154old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19155old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19156archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19157archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19158module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19159module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19160with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19161allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19162no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19163hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19164hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19165hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19166hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19167hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19168hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19169hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19170inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19171link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19172always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19173export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19174exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19175include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19176prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19177postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19178file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19179hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19180compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19181predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19182postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19183predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19184postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19185compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19186
19187LTCC='$LTCC'
19188LTCFLAGS='$LTCFLAGS'
19189compiler='$compiler_DEFAULT'
19190
19191# A function that is used when there is no print builtin or printf.
19192func_fallback_echo ()
19193{
19194  eval 'cat <<_LTECHO_EOF
19195\$1
19196_LTECHO_EOF'
19197}
19198
19199# Quote evaled strings.
19200for var in SHELL \
19201ECHO \
19202PATH_SEPARATOR \
19203SED \
19204GREP \
19205EGREP \
19206FGREP \
19207LD \
19208NM \
19209LN_S \
19210lt_SP2NL \
19211lt_NL2SP \
19212reload_flag \
19213OBJDUMP \
19214deplibs_check_method \
19215file_magic_cmd \
19216file_magic_glob \
19217want_nocaseglob \
19218DLLTOOL \
19219sharedlib_from_linklib_cmd \
19220AR \
19221AR_FLAGS \
19222archiver_list_spec \
19223STRIP \
19224RANLIB \
19225CC \
19226CFLAGS \
19227compiler \
19228lt_cv_sys_global_symbol_pipe \
19229lt_cv_sys_global_symbol_to_cdecl \
19230lt_cv_sys_global_symbol_to_c_name_address \
19231lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19232nm_file_list_spec \
19233lt_prog_compiler_no_builtin_flag \
19234lt_prog_compiler_pic \
19235lt_prog_compiler_wl \
19236lt_prog_compiler_static \
19237lt_cv_prog_compiler_c_o \
19238need_locks \
19239MANIFEST_TOOL \
19240DSYMUTIL \
19241NMEDIT \
19242LIPO \
19243OTOOL \
19244OTOOL64 \
19245shrext_cmds \
19246export_dynamic_flag_spec \
19247whole_archive_flag_spec \
19248compiler_needs_object \
19249with_gnu_ld \
19250allow_undefined_flag \
19251no_undefined_flag \
19252hardcode_libdir_flag_spec \
19253hardcode_libdir_separator \
19254exclude_expsyms \
19255include_expsyms \
19256file_list_spec \
19257variables_saved_for_relink \
19258libname_spec \
19259library_names_spec \
19260soname_spec \
19261install_override_mode \
19262finish_eval \
19263old_striplib \
19264striplib \
19265compiler_lib_search_dirs \
19266predep_objects \
19267postdep_objects \
19268predeps \
19269postdeps \
19270compiler_lib_search_path \
19271LD_CXX \
19272reload_flag_CXX \
19273compiler_CXX \
19274lt_prog_compiler_no_builtin_flag_CXX \
19275lt_prog_compiler_pic_CXX \
19276lt_prog_compiler_wl_CXX \
19277lt_prog_compiler_static_CXX \
19278lt_cv_prog_compiler_c_o_CXX \
19279export_dynamic_flag_spec_CXX \
19280whole_archive_flag_spec_CXX \
19281compiler_needs_object_CXX \
19282with_gnu_ld_CXX \
19283allow_undefined_flag_CXX \
19284no_undefined_flag_CXX \
19285hardcode_libdir_flag_spec_CXX \
19286hardcode_libdir_separator_CXX \
19287exclude_expsyms_CXX \
19288include_expsyms_CXX \
19289file_list_spec_CXX \
19290compiler_lib_search_dirs_CXX \
19291predep_objects_CXX \
19292postdep_objects_CXX \
19293predeps_CXX \
19294postdeps_CXX \
19295compiler_lib_search_path_CXX; do
19296    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19297    *[\\\\\\\`\\"\\\$]*)
19298      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19299      ;;
19300    *)
19301      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19302      ;;
19303    esac
19304done
19305
19306# Double-quote double-evaled strings.
19307for var in reload_cmds \
19308old_postinstall_cmds \
19309old_postuninstall_cmds \
19310old_archive_cmds \
19311extract_expsyms_cmds \
19312old_archive_from_new_cmds \
19313old_archive_from_expsyms_cmds \
19314archive_cmds \
19315archive_expsym_cmds \
19316module_cmds \
19317module_expsym_cmds \
19318export_symbols_cmds \
19319prelink_cmds \
19320postlink_cmds \
19321postinstall_cmds \
19322postuninstall_cmds \
19323finish_cmds \
19324sys_lib_search_path_spec \
19325sys_lib_dlsearch_path_spec \
19326reload_cmds_CXX \
19327old_archive_cmds_CXX \
19328old_archive_from_new_cmds_CXX \
19329old_archive_from_expsyms_cmds_CXX \
19330archive_cmds_CXX \
19331archive_expsym_cmds_CXX \
19332module_cmds_CXX \
19333module_expsym_cmds_CXX \
19334export_symbols_cmds_CXX \
19335prelink_cmds_CXX \
19336postlink_cmds_CXX; do
19337    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19338    *[\\\\\\\`\\"\\\$]*)
19339      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19340      ;;
19341    *)
19342      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19343      ;;
19344    esac
19345done
19346
19347ac_aux_dir='$ac_aux_dir'
19348xsi_shell='$xsi_shell'
19349lt_shell_append='$lt_shell_append'
19350
19351# See if we are running on zsh, and set the options which allow our
19352# commands through without removal of \ escapes INIT.
19353if test -n "\${ZSH_VERSION+set}" ; then
19354   setopt NO_GLOB_SUBST
19355fi
19356
19357
19358    PACKAGE='$PACKAGE'
19359    VERSION='$VERSION'
19360    TIMESTAMP='$TIMESTAMP'
19361    RM='$RM'
19362    ofile='$ofile'
19363
19364
19365
19366
19367
19368
19369_ACEOF
19370
19371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19372
19373# Handling of arguments.
19374for ac_config_target in $ac_config_targets
19375do
19376  case $ac_config_target in
19377    "LiDIA.spec") CONFIG_FILES="$CONFIG_FILES LiDIA.spec" ;;
19378    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:config.h.in" ;;
19379    "include/LiDIA/LiDIA.h") CONFIG_HEADERS="$CONFIG_HEADERS include/LiDIA/LiDIA.h:LiDIA.h.in" ;;
19380    "include/LiDIA/path.h") CONFIG_HEADERS="$CONFIG_HEADERS include/LiDIA/path.h:path.h.in" ;;
19381    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19382    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19383    "library/base/Makefile") CONFIG_FILES="$CONFIG_FILES library/base/Makefile" ;;
19384    "examples/base/Makefile") CONFIG_FILES="$CONFIG_FILES examples/base/Makefile" ;;
19385    "library/finite_fields/Makefile") CONFIG_FILES="$CONFIG_FILES library/finite_fields/Makefile" ;;
19386    "examples/finite_fields/Makefile") CONFIG_FILES="$CONFIG_FILES examples/finite_fields/Makefile" ;;
19387    "library/linear_algebra/Makefile") CONFIG_FILES="$CONFIG_FILES library/linear_algebra/Makefile" ;;
19388    "examples/linear_algebra/Makefile") CONFIG_FILES="$CONFIG_FILES examples/linear_algebra/Makefile" ;;
19389    "library/lattices/Makefile") CONFIG_FILES="$CONFIG_FILES library/lattices/Makefile" ;;
19390    "examples/lattices/Makefile") CONFIG_FILES="$CONFIG_FILES examples/lattices/Makefile" ;;
19391    "library/number_fields/Makefile") CONFIG_FILES="$CONFIG_FILES library/number_fields/Makefile" ;;
19392    "examples/number_fields/Makefile") CONFIG_FILES="$CONFIG_FILES examples/number_fields/Makefile" ;;
19393    "library/elliptic_curves/Makefile") CONFIG_FILES="$CONFIG_FILES library/elliptic_curves/Makefile" ;;
19394    "examples/elliptic_curves/Makefile") CONFIG_FILES="$CONFIG_FILES examples/elliptic_curves/Makefile" ;;
19395    "library/ec_order/Makefile") CONFIG_FILES="$CONFIG_FILES library/ec_order/Makefile" ;;
19396    "examples/ec_order/Makefile") CONFIG_FILES="$CONFIG_FILES examples/ec_order/Makefile" ;;
19397    "library/gec/Makefile") CONFIG_FILES="$CONFIG_FILES library/gec/Makefile" ;;
19398    "examples/gec/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gec/Makefile" ;;
19399    "src/base/interfaces/bigint/bigint.cc") CONFIG_LINKS="$CONFIG_LINKS src/base/interfaces/bigint/bigint.cc:src/interfaces/bigint/${lidia_arithmetic}/bigint.cc" ;;
19400    "src/base/interfaces/udigit/udigit.cc") CONFIG_LINKS="$CONFIG_LINKS src/base/interfaces/udigit/udigit.cc:src/interfaces/udigit/${lidia_arithmetic}/udigit.cc" ;;
19401    "src/base/interfaces/udigit/udigit_appl.cc") CONFIG_LINKS="$CONFIG_LINKS src/base/interfaces/udigit/udigit_appl.cc:src/interfaces/udigit/${lidia_arithmetic}/udigit_appl.cc" ;;
19402    "include/LiDIA/kernel/bigint_def.h") CONFIG_LINKS="$CONFIG_LINKS include/LiDIA/kernel/bigint_def.h:src/interfaces/bigint/${lidia_arithmetic}/bigint_def.h" ;;
19403    "include/LiDIA/kernel/bigint_interface.h") CONFIG_LINKS="$CONFIG_LINKS include/LiDIA/kernel/bigint_interface.h:src/interfaces/bigint/${lidia_arithmetic}/bigint_interface.h" ;;
19404    "include/LiDIA/kernel/udigit_def.h") CONFIG_LINKS="$CONFIG_LINKS include/LiDIA/kernel/udigit_def.h:src/interfaces/udigit/${lidia_arithmetic}/udigit_def.h" ;;
19405    "include/LiDIA/kernel/udigit_interface.h") CONFIG_LINKS="$CONFIG_LINKS include/LiDIA/kernel/udigit_interface.h:src/interfaces/udigit/${lidia_arithmetic}/udigit_interface.h" ;;
19406    "include/LiDIA/random.h") CONFIG_LINKS="$CONFIG_LINKS include/LiDIA/random.h:src/portability/random.h" ;;
19407    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19408    "library/Makefile") CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
19409    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19410    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19411
19412  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19413  esac
19414done
19415
19416
19417# If the user did not use the arguments to specify the items to instantiate,
19418# then the envvar interface is used.  Set only those that are not.
19419# We use the long form for the default assignment because of an extremely
19420# bizarre bug on SunOS 4.1.3.
19421if $ac_need_defaults; then
19422  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19423  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19424  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19425  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19426fi
19427
19428# Have a temporary directory for convenience.  Make it in the build tree
19429# simply because there is no reason against having it here, and in addition,
19430# creating and moving files from /tmp can sometimes cause problems.
19431# Hook for its removal unless debugging.
19432# Note that there is a small window in which the directory will not be cleaned:
19433# after its creation but before its name has been assigned to `$tmp'.
19434$debug ||
19435{
19436  tmp= ac_tmp=
19437  trap 'exit_status=$?
19438  : "${ac_tmp:=$tmp}"
19439  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19440' 0
19441  trap 'as_fn_exit 1' 1 2 13 15
19442}
19443# Create a (secure) tmp directory for tmp files.
19444
19445{
19446  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19447  test -d "$tmp"
19448}  ||
19449{
19450  tmp=./conf$$-$RANDOM
19451  (umask 077 && mkdir "$tmp")
19452} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19453ac_tmp=$tmp
19454
19455# Set up the scripts for CONFIG_FILES section.
19456# No need to generate them if there are no CONFIG_FILES.
19457# This happens for instance with `./config.status config.h'.
19458if test -n "$CONFIG_FILES"; then
19459
19460
19461ac_cr=`echo X | tr X '\015'`
19462# On cygwin, bash can eat \r inside `` if the user requested igncr.
19463# But we know of no other shell where ac_cr would be empty at this
19464# point, so we can use a bashism as a fallback.
19465if test "x$ac_cr" = x; then
19466  eval ac_cr=\$\'\\r\'
19467fi
19468ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19469if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19470  ac_cs_awk_cr='\\r'
19471else
19472  ac_cs_awk_cr=$ac_cr
19473fi
19474
19475echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19476_ACEOF
19477
19478
19479{
19480  echo "cat >conf$$subs.awk <<_ACEOF" &&
19481  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19482  echo "_ACEOF"
19483} >conf$$subs.sh ||
19484  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19485ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19486ac_delim='%!_!# '
19487for ac_last_try in false false false false false :; do
19488  . ./conf$$subs.sh ||
19489    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19490
19491  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19492  if test $ac_delim_n = $ac_delim_num; then
19493    break
19494  elif $ac_last_try; then
19495    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19496  else
19497    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19498  fi
19499done
19500rm -f conf$$subs.sh
19501
19502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19503cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19504_ACEOF
19505sed -n '
19506h
19507s/^/S["/; s/!.*/"]=/
19508p
19509g
19510s/^[^!]*!//
19511:repl
19512t repl
19513s/'"$ac_delim"'$//
19514t delim
19515:nl
19516h
19517s/\(.\{148\}\)..*/\1/
19518t more1
19519s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19520p
19521n
19522b repl
19523:more1
19524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19525p
19526g
19527s/.\{148\}//
19528t nl
19529:delim
19530h
19531s/\(.\{148\}\)..*/\1/
19532t more2
19533s/["\\]/\\&/g; s/^/"/; s/$/"/
19534p
19535b
19536:more2
19537s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19538p
19539g
19540s/.\{148\}//
19541t delim
19542' <conf$$subs.awk | sed '
19543/^[^""]/{
19544  N
19545  s/\n//
19546}
19547' >>$CONFIG_STATUS || ac_write_fail=1
19548rm -f conf$$subs.awk
19549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19550_ACAWK
19551cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19552  for (key in S) S_is_set[key] = 1
19553  FS = ""
19554
19555}
19556{
19557  line = $ 0
19558  nfields = split(line, field, "@")
19559  substed = 0
19560  len = length(field[1])
19561  for (i = 2; i < nfields; i++) {
19562    key = field[i]
19563    keylen = length(key)
19564    if (S_is_set[key]) {
19565      value = S[key]
19566      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19567      len += length(value) + length(field[++i])
19568      substed = 1
19569    } else
19570      len += 1 + keylen
19571  }
19572
19573  print line
19574}
19575
19576_ACAWK
19577_ACEOF
19578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19579if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19580  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19581else
19582  cat
19583fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19584  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19585_ACEOF
19586
19587# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19588# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19589# trailing colons and then remove the whole line if VPATH becomes empty
19590# (actually we leave an empty line to preserve line numbers).
19591if test "x$srcdir" = x.; then
19592  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19593h
19594s///
19595s/^/:/
19596s/[	 ]*$/:/
19597s/:\$(srcdir):/:/g
19598s/:\${srcdir}:/:/g
19599s/:@srcdir@:/:/g
19600s/^:*//
19601s/:*$//
19602x
19603s/\(=[	 ]*\).*/\1/
19604G
19605s/\n//
19606s/^[^=]*=[	 ]*$//
19607}'
19608fi
19609
19610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19611fi # test -n "$CONFIG_FILES"
19612
19613# Set up the scripts for CONFIG_HEADERS section.
19614# No need to generate them if there are no CONFIG_HEADERS.
19615# This happens for instance with `./config.status Makefile'.
19616if test -n "$CONFIG_HEADERS"; then
19617cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19618BEGIN {
19619_ACEOF
19620
19621# Transform confdefs.h into an awk script `defines.awk', embedded as
19622# here-document in config.status, that substitutes the proper values into
19623# config.h.in to produce config.h.
19624
19625# Create a delimiter string that does not exist in confdefs.h, to ease
19626# handling of long lines.
19627ac_delim='%!_!# '
19628for ac_last_try in false false :; do
19629  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19630  if test -z "$ac_tt"; then
19631    break
19632  elif $ac_last_try; then
19633    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19634  else
19635    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19636  fi
19637done
19638
19639# For the awk script, D is an array of macro values keyed by name,
19640# likewise P contains macro parameters if any.  Preserve backslash
19641# newline sequences.
19642
19643ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19644sed -n '
19645s/.\{148\}/&'"$ac_delim"'/g
19646t rset
19647:rset
19648s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19649t def
19650d
19651:def
19652s/\\$//
19653t bsnl
19654s/["\\]/\\&/g
19655s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19656D["\1"]=" \3"/p
19657s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19658d
19659:bsnl
19660s/["\\]/\\&/g
19661s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19662D["\1"]=" \3\\\\\\n"\\/p
19663t cont
19664s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19665t cont
19666d
19667:cont
19668n
19669s/.\{148\}/&'"$ac_delim"'/g
19670t clear
19671:clear
19672s/\\$//
19673t bsnlc
19674s/["\\]/\\&/g; s/^/"/; s/$/"/p
19675d
19676:bsnlc
19677s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19678b cont
19679' <confdefs.h | sed '
19680s/'"$ac_delim"'/"\\\
19681"/g' >>$CONFIG_STATUS || ac_write_fail=1
19682
19683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19684  for (key in D) D_is_set[key] = 1
19685  FS = ""
19686}
19687/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19688  line = \$ 0
19689  split(line, arg, " ")
19690  if (arg[1] == "#") {
19691    defundef = arg[2]
19692    mac1 = arg[3]
19693  } else {
19694    defundef = substr(arg[1], 2)
19695    mac1 = arg[2]
19696  }
19697  split(mac1, mac2, "(") #)
19698  macro = mac2[1]
19699  prefix = substr(line, 1, index(line, defundef) - 1)
19700  if (D_is_set[macro]) {
19701    # Preserve the white space surrounding the "#".
19702    print prefix "define", macro P[macro] D[macro]
19703    next
19704  } else {
19705    # Replace #undef with comments.  This is necessary, for example,
19706    # in the case of _POSIX_SOURCE, which is predefined and required
19707    # on some systems where configure will not decide to define it.
19708    if (defundef == "undef") {
19709      print "/*", prefix defundef, macro, "*/"
19710      next
19711    }
19712  }
19713}
19714{ print }
19715_ACAWK
19716_ACEOF
19717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19718  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19719fi # test -n "$CONFIG_HEADERS"
19720
19721
19722eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
19723shift
19724for ac_tag
19725do
19726  case $ac_tag in
19727  :[FHLC]) ac_mode=$ac_tag; continue;;
19728  esac
19729  case $ac_mode$ac_tag in
19730  :[FHL]*:*);;
19731  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19732  :[FH]-) ac_tag=-:-;;
19733  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19734  esac
19735  ac_save_IFS=$IFS
19736  IFS=:
19737  set x $ac_tag
19738  IFS=$ac_save_IFS
19739  shift
19740  ac_file=$1
19741  shift
19742
19743  case $ac_mode in
19744  :L) ac_source=$1;;
19745  :[FH])
19746    ac_file_inputs=
19747    for ac_f
19748    do
19749      case $ac_f in
19750      -) ac_f="$ac_tmp/stdin";;
19751      *) # Look for the file first in the build tree, then in the source tree
19752	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19753	 # because $ac_f cannot contain `:'.
19754	 test -f "$ac_f" ||
19755	   case $ac_f in
19756	   [\\/$]*) false;;
19757	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19758	   esac ||
19759	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19760      esac
19761      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19762      as_fn_append ac_file_inputs " '$ac_f'"
19763    done
19764
19765    # Let's still pretend it is `configure' which instantiates (i.e., don't
19766    # use $as_me), people would be surprised to read:
19767    #    /* config.h.  Generated by config.status.  */
19768    configure_input='Generated from '`
19769	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19770	`' by configure.'
19771    if test x"$ac_file" != x-; then
19772      configure_input="$ac_file.  $configure_input"
19773      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19774$as_echo "$as_me: creating $ac_file" >&6;}
19775    fi
19776    # Neutralize special characters interpreted by sed in replacement strings.
19777    case $configure_input in #(
19778    *\&* | *\|* | *\\* )
19779       ac_sed_conf_input=`$as_echo "$configure_input" |
19780       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19781    *) ac_sed_conf_input=$configure_input;;
19782    esac
19783
19784    case $ac_tag in
19785    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19786      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19787    esac
19788    ;;
19789  esac
19790
19791  ac_dir=`$as_dirname -- "$ac_file" ||
19792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19793	 X"$ac_file" : 'X\(//\)[^/]' \| \
19794	 X"$ac_file" : 'X\(//\)$' \| \
19795	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19796$as_echo X"$ac_file" |
19797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19798	    s//\1/
19799	    q
19800	  }
19801	  /^X\(\/\/\)[^/].*/{
19802	    s//\1/
19803	    q
19804	  }
19805	  /^X\(\/\/\)$/{
19806	    s//\1/
19807	    q
19808	  }
19809	  /^X\(\/\).*/{
19810	    s//\1/
19811	    q
19812	  }
19813	  s/.*/./; q'`
19814  as_dir="$ac_dir"; as_fn_mkdir_p
19815  ac_builddir=.
19816
19817case "$ac_dir" in
19818.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19819*)
19820  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19821  # A ".." for each directory in $ac_dir_suffix.
19822  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19823  case $ac_top_builddir_sub in
19824  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19825  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19826  esac ;;
19827esac
19828ac_abs_top_builddir=$ac_pwd
19829ac_abs_builddir=$ac_pwd$ac_dir_suffix
19830# for backward compatibility:
19831ac_top_builddir=$ac_top_build_prefix
19832
19833case $srcdir in
19834  .)  # We are building in place.
19835    ac_srcdir=.
19836    ac_top_srcdir=$ac_top_builddir_sub
19837    ac_abs_top_srcdir=$ac_pwd ;;
19838  [\\/]* | ?:[\\/]* )  # Absolute name.
19839    ac_srcdir=$srcdir$ac_dir_suffix;
19840    ac_top_srcdir=$srcdir
19841    ac_abs_top_srcdir=$srcdir ;;
19842  *) # Relative name.
19843    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19844    ac_top_srcdir=$ac_top_build_prefix$srcdir
19845    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19846esac
19847ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19848
19849
19850  case $ac_mode in
19851  :F)
19852  #
19853  # CONFIG_FILE
19854  #
19855
19856  case $INSTALL in
19857  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19858  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19859  esac
19860  ac_MKDIR_P=$MKDIR_P
19861  case $MKDIR_P in
19862  [\\/$]* | ?:[\\/]* ) ;;
19863  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19864  esac
19865_ACEOF
19866
19867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868# If the template does not know about datarootdir, expand it.
19869# FIXME: This hack should be removed a few years after 2.60.
19870ac_datarootdir_hack=; ac_datarootdir_seen=
19871ac_sed_dataroot='
19872/datarootdir/ {
19873  p
19874  q
19875}
19876/@datadir@/p
19877/@docdir@/p
19878/@infodir@/p
19879/@localedir@/p
19880/@mandir@/p'
19881case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19882*datarootdir*) ac_datarootdir_seen=yes;;
19883*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19885$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19886_ACEOF
19887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19888  ac_datarootdir_hack='
19889  s&@datadir@&$datadir&g
19890  s&@docdir@&$docdir&g
19891  s&@infodir@&$infodir&g
19892  s&@localedir@&$localedir&g
19893  s&@mandir@&$mandir&g
19894  s&\\\${datarootdir}&$datarootdir&g' ;;
19895esac
19896_ACEOF
19897
19898# Neutralize VPATH when `$srcdir' = `.'.
19899# Shell code in configure.ac might set extrasub.
19900# FIXME: do we really want to maintain this feature?
19901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902ac_sed_extra="$ac_vpsub
19903$extrasub
19904_ACEOF
19905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19906:t
19907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19908s|@configure_input@|$ac_sed_conf_input|;t t
19909s&@top_builddir@&$ac_top_builddir_sub&;t t
19910s&@top_build_prefix@&$ac_top_build_prefix&;t t
19911s&@srcdir@&$ac_srcdir&;t t
19912s&@abs_srcdir@&$ac_abs_srcdir&;t t
19913s&@top_srcdir@&$ac_top_srcdir&;t t
19914s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19915s&@builddir@&$ac_builddir&;t t
19916s&@abs_builddir@&$ac_abs_builddir&;t t
19917s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19918s&@INSTALL@&$ac_INSTALL&;t t
19919s&@MKDIR_P@&$ac_MKDIR_P&;t t
19920$ac_datarootdir_hack
19921"
19922eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19923  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19924
19925test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19926  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19927  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19928      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19930which seems to be undefined.  Please make sure it is defined" >&5
19931$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19932which seems to be undefined.  Please make sure it is defined" >&2;}
19933
19934  rm -f "$ac_tmp/stdin"
19935  case $ac_file in
19936  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19937  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19938  esac \
19939  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19940 ;;
19941  :H)
19942  #
19943  # CONFIG_HEADER
19944  #
19945  if test x"$ac_file" != x-; then
19946    {
19947      $as_echo "/* $configure_input  */" \
19948      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19949    } >"$ac_tmp/config.h" \
19950      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19951    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19952      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19953$as_echo "$as_me: $ac_file is unchanged" >&6;}
19954    else
19955      rm -f "$ac_file"
19956      mv "$ac_tmp/config.h" "$ac_file" \
19957	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19958    fi
19959  else
19960    $as_echo "/* $configure_input  */" \
19961      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19962      || as_fn_error $? "could not create -" "$LINENO" 5
19963  fi
19964# Compute "$ac_file"'s index in $config_headers.
19965_am_arg="$ac_file"
19966_am_stamp_count=1
19967for _am_header in $config_headers :; do
19968  case $_am_header in
19969    $_am_arg | $_am_arg:* )
19970      break ;;
19971    * )
19972      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19973  esac
19974done
19975echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19976$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19977	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19978	 X"$_am_arg" : 'X\(//\)$' \| \
19979	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19980$as_echo X"$_am_arg" |
19981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19982	    s//\1/
19983	    q
19984	  }
19985	  /^X\(\/\/\)[^/].*/{
19986	    s//\1/
19987	    q
19988	  }
19989	  /^X\(\/\/\)$/{
19990	    s//\1/
19991	    q
19992	  }
19993	  /^X\(\/\).*/{
19994	    s//\1/
19995	    q
19996	  }
19997	  s/.*/./; q'`/stamp-h$_am_stamp_count
19998 ;;
19999  :L)
20000  #
20001  # CONFIG_LINK
20002  #
20003
20004  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20005    :
20006  else
20007    # Prefer the file from the source tree if names are identical.
20008    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20009      ac_source=$srcdir/$ac_source
20010    fi
20011
20012    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20013$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20014
20015    if test ! -r "$ac_source"; then
20016      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20017    fi
20018    rm -f "$ac_file"
20019
20020    # Try a relative symlink, then a hard link, then a copy.
20021    case $ac_source in
20022    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20023	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20024    esac
20025    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20026      ln "$ac_source" "$ac_file" 2>/dev/null ||
20027      cp -p "$ac_source" "$ac_file" ||
20028      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20029  fi
20030 ;;
20031  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20032$as_echo "$as_me: executing $ac_file commands" >&6;}
20033 ;;
20034  esac
20035
20036
20037  case $ac_file$ac_mode in
20038    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20039  # Older Autoconf quotes --file arguments for eval, but not when files
20040  # are listed without --file.  Let's play safe and only enable the eval
20041  # if we detect the quoting.
20042  case $CONFIG_FILES in
20043  *\'*) eval set x "$CONFIG_FILES" ;;
20044  *)   set x $CONFIG_FILES ;;
20045  esac
20046  shift
20047  for mf
20048  do
20049    # Strip MF so we end up with the name of the file.
20050    mf=`echo "$mf" | sed -e 's/:.*$//'`
20051    # Check whether this is an Automake generated Makefile or not.
20052    # We used to match only the files named 'Makefile.in', but
20053    # some people rename them; so instead we look at the file content.
20054    # Grep'ing the first line is not enough: some people post-process
20055    # each Makefile.in and add a new line on top of each file to say so.
20056    # Grep'ing the whole file is not good either: AIX grep has a line
20057    # limit of 2048, but all sed's we know have understand at least 4000.
20058    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20059      dirpart=`$as_dirname -- "$mf" ||
20060$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20061	 X"$mf" : 'X\(//\)[^/]' \| \
20062	 X"$mf" : 'X\(//\)$' \| \
20063	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20064$as_echo X"$mf" |
20065    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20066	    s//\1/
20067	    q
20068	  }
20069	  /^X\(\/\/\)[^/].*/{
20070	    s//\1/
20071	    q
20072	  }
20073	  /^X\(\/\/\)$/{
20074	    s//\1/
20075	    q
20076	  }
20077	  /^X\(\/\).*/{
20078	    s//\1/
20079	    q
20080	  }
20081	  s/.*/./; q'`
20082    else
20083      continue
20084    fi
20085    # Extract the definition of DEPDIR, am__include, and am__quote
20086    # from the Makefile without running 'make'.
20087    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20088    test -z "$DEPDIR" && continue
20089    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20090    test -z "$am__include" && continue
20091    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20092    # Find all dependency output files, they are included files with
20093    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20094    # simplest approach to changing $(DEPDIR) to its actual value in the
20095    # expansion.
20096    for file in `sed -n "
20097      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20098	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20099      # Make sure the directory exists.
20100      test -f "$dirpart/$file" && continue
20101      fdir=`$as_dirname -- "$file" ||
20102$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20103	 X"$file" : 'X\(//\)[^/]' \| \
20104	 X"$file" : 'X\(//\)$' \| \
20105	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20106$as_echo X"$file" |
20107    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20108	    s//\1/
20109	    q
20110	  }
20111	  /^X\(\/\/\)[^/].*/{
20112	    s//\1/
20113	    q
20114	  }
20115	  /^X\(\/\/\)$/{
20116	    s//\1/
20117	    q
20118	  }
20119	  /^X\(\/\).*/{
20120	    s//\1/
20121	    q
20122	  }
20123	  s/.*/./; q'`
20124      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20125      # echo "creating $dirpart/$file"
20126      echo '# dummy' > "$dirpart/$file"
20127    done
20128  done
20129}
20130 ;;
20131    "libtool":C)
20132
20133    # See if we are running on zsh, and set the options which allow our
20134    # commands through without removal of \ escapes.
20135    if test -n "${ZSH_VERSION+set}" ; then
20136      setopt NO_GLOB_SUBST
20137    fi
20138
20139    cfgfile="${ofile}T"
20140    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20141    $RM "$cfgfile"
20142
20143    cat <<_LT_EOF >> "$cfgfile"
20144#! $SHELL
20145
20146# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20147# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20148# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20149# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20150#
20151#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20152#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20153#                 Foundation, Inc.
20154#   Written by Gordon Matzigkeit, 1996
20155#
20156#   This file is part of GNU Libtool.
20157#
20158# GNU Libtool is free software; you can redistribute it and/or
20159# modify it under the terms of the GNU General Public License as
20160# published by the Free Software Foundation; either version 2 of
20161# the License, or (at your option) any later version.
20162#
20163# As a special exception to the GNU General Public License,
20164# if you distribute this file as part of a program or library that
20165# is built using GNU Libtool, you may include this file under the
20166# same distribution terms that you use for the rest of that program.
20167#
20168# GNU Libtool is distributed in the hope that it will be useful,
20169# but WITHOUT ANY WARRANTY; without even the implied warranty of
20170# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20171# GNU General Public License for more details.
20172#
20173# You should have received a copy of the GNU General Public License
20174# along with GNU Libtool; see the file COPYING.  If not, a copy
20175# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20176# obtained by writing to the Free Software Foundation, Inc.,
20177# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20178
20179
20180# The names of the tagged configurations supported by this script.
20181available_tags="CXX "
20182
20183# ### BEGIN LIBTOOL CONFIG
20184
20185# Whether or not to build shared libraries.
20186build_libtool_libs=$enable_shared
20187
20188# Which release of libtool.m4 was used?
20189macro_version=$macro_version
20190macro_revision=$macro_revision
20191
20192# Whether or not to build static libraries.
20193build_old_libs=$enable_static
20194
20195# What type of objects to build.
20196pic_mode=$pic_mode
20197
20198# Whether or not to optimize for fast installation.
20199fast_install=$enable_fast_install
20200
20201# Shell to use when invoking shell scripts.
20202SHELL=$lt_SHELL
20203
20204# An echo program that protects backslashes.
20205ECHO=$lt_ECHO
20206
20207# The PATH separator for the build system.
20208PATH_SEPARATOR=$lt_PATH_SEPARATOR
20209
20210# The host system.
20211host_alias=$host_alias
20212host=$host
20213host_os=$host_os
20214
20215# The build system.
20216build_alias=$build_alias
20217build=$build
20218build_os=$build_os
20219
20220# A sed program that does not truncate output.
20221SED=$lt_SED
20222
20223# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20224Xsed="\$SED -e 1s/^X//"
20225
20226# A grep program that handles long lines.
20227GREP=$lt_GREP
20228
20229# An ERE matcher.
20230EGREP=$lt_EGREP
20231
20232# A literal string matcher.
20233FGREP=$lt_FGREP
20234
20235# A BSD- or MS-compatible name lister.
20236NM=$lt_NM
20237
20238# Whether we need soft or hard links.
20239LN_S=$lt_LN_S
20240
20241# What is the maximum length of a command?
20242max_cmd_len=$max_cmd_len
20243
20244# Object file suffix (normally "o").
20245objext=$ac_objext
20246
20247# Executable file suffix (normally "").
20248exeext=$exeext
20249
20250# whether the shell understands "unset".
20251lt_unset=$lt_unset
20252
20253# turn spaces into newlines.
20254SP2NL=$lt_lt_SP2NL
20255
20256# turn newlines into spaces.
20257NL2SP=$lt_lt_NL2SP
20258
20259# convert \$build file names to \$host format.
20260to_host_file_cmd=$lt_cv_to_host_file_cmd
20261
20262# convert \$build files to toolchain format.
20263to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20264
20265# An object symbol dumper.
20266OBJDUMP=$lt_OBJDUMP
20267
20268# Method to check whether dependent libraries are shared objects.
20269deplibs_check_method=$lt_deplibs_check_method
20270
20271# Command to use when deplibs_check_method = "file_magic".
20272file_magic_cmd=$lt_file_magic_cmd
20273
20274# How to find potential files when deplibs_check_method = "file_magic".
20275file_magic_glob=$lt_file_magic_glob
20276
20277# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20278want_nocaseglob=$lt_want_nocaseglob
20279
20280# DLL creation program.
20281DLLTOOL=$lt_DLLTOOL
20282
20283# Command to associate shared and link libraries.
20284sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20285
20286# The archiver.
20287AR=$lt_AR
20288
20289# Flags to create an archive.
20290AR_FLAGS=$lt_AR_FLAGS
20291
20292# How to feed a file listing to the archiver.
20293archiver_list_spec=$lt_archiver_list_spec
20294
20295# A symbol stripping program.
20296STRIP=$lt_STRIP
20297
20298# Commands used to install an old-style archive.
20299RANLIB=$lt_RANLIB
20300old_postinstall_cmds=$lt_old_postinstall_cmds
20301old_postuninstall_cmds=$lt_old_postuninstall_cmds
20302
20303# Whether to use a lock for old archive extraction.
20304lock_old_archive_extraction=$lock_old_archive_extraction
20305
20306# A C compiler.
20307LTCC=$lt_CC
20308
20309# LTCC compiler flags.
20310LTCFLAGS=$lt_CFLAGS
20311
20312# Take the output of nm and produce a listing of raw symbols and C names.
20313global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20314
20315# Transform the output of nm in a proper C declaration.
20316global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20317
20318# Transform the output of nm in a C name address pair.
20319global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20320
20321# Transform the output of nm in a C name address pair when lib prefix is needed.
20322global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20323
20324# Specify filename containing input files for \$NM.
20325nm_file_list_spec=$lt_nm_file_list_spec
20326
20327# The root where to search for dependent libraries,and in which our libraries should be installed.
20328lt_sysroot=$lt_sysroot
20329
20330# The name of the directory that contains temporary libtool files.
20331objdir=$objdir
20332
20333# Used to examine libraries when file_magic_cmd begins with "file".
20334MAGIC_CMD=$MAGIC_CMD
20335
20336# Must we lock files when doing compilation?
20337need_locks=$lt_need_locks
20338
20339# Manifest tool.
20340MANIFEST_TOOL=$lt_MANIFEST_TOOL
20341
20342# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20343DSYMUTIL=$lt_DSYMUTIL
20344
20345# Tool to change global to local symbols on Mac OS X.
20346NMEDIT=$lt_NMEDIT
20347
20348# Tool to manipulate fat objects and archives on Mac OS X.
20349LIPO=$lt_LIPO
20350
20351# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20352OTOOL=$lt_OTOOL
20353
20354# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20355OTOOL64=$lt_OTOOL64
20356
20357# Old archive suffix (normally "a").
20358libext=$libext
20359
20360# Shared library suffix (normally ".so").
20361shrext_cmds=$lt_shrext_cmds
20362
20363# The commands to extract the exported symbol list from a shared archive.
20364extract_expsyms_cmds=$lt_extract_expsyms_cmds
20365
20366# Variables whose values should be saved in libtool wrapper scripts and
20367# restored at link time.
20368variables_saved_for_relink=$lt_variables_saved_for_relink
20369
20370# Do we need the "lib" prefix for modules?
20371need_lib_prefix=$need_lib_prefix
20372
20373# Do we need a version for libraries?
20374need_version=$need_version
20375
20376# Library versioning type.
20377version_type=$version_type
20378
20379# Shared library runtime path variable.
20380runpath_var=$runpath_var
20381
20382# Shared library path variable.
20383shlibpath_var=$shlibpath_var
20384
20385# Is shlibpath searched before the hard-coded library search path?
20386shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20387
20388# Format of library name prefix.
20389libname_spec=$lt_libname_spec
20390
20391# List of archive names.  First name is the real one, the rest are links.
20392# The last name is the one that the linker finds with -lNAME
20393library_names_spec=$lt_library_names_spec
20394
20395# The coded name of the library, if different from the real name.
20396soname_spec=$lt_soname_spec
20397
20398# Permission mode override for installation of shared libraries.
20399install_override_mode=$lt_install_override_mode
20400
20401# Command to use after installation of a shared archive.
20402postinstall_cmds=$lt_postinstall_cmds
20403
20404# Command to use after uninstallation of a shared archive.
20405postuninstall_cmds=$lt_postuninstall_cmds
20406
20407# Commands used to finish a libtool library installation in a directory.
20408finish_cmds=$lt_finish_cmds
20409
20410# As "finish_cmds", except a single script fragment to be evaled but
20411# not shown.
20412finish_eval=$lt_finish_eval
20413
20414# Whether we should hardcode library paths into libraries.
20415hardcode_into_libs=$hardcode_into_libs
20416
20417# Compile-time system search path for libraries.
20418sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20419
20420# Run-time system search path for libraries.
20421sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20422
20423# Whether dlopen is supported.
20424dlopen_support=$enable_dlopen
20425
20426# Whether dlopen of programs is supported.
20427dlopen_self=$enable_dlopen_self
20428
20429# Whether dlopen of statically linked programs is supported.
20430dlopen_self_static=$enable_dlopen_self_static
20431
20432# Commands to strip libraries.
20433old_striplib=$lt_old_striplib
20434striplib=$lt_striplib
20435
20436
20437# The linker used to build libraries.
20438LD=$lt_LD
20439
20440# How to create reloadable object files.
20441reload_flag=$lt_reload_flag
20442reload_cmds=$lt_reload_cmds
20443
20444# Commands used to build an old-style archive.
20445old_archive_cmds=$lt_old_archive_cmds
20446
20447# A language specific compiler.
20448CC=$lt_compiler
20449
20450# Is the compiler the GNU compiler?
20451with_gcc=$GCC
20452
20453# Compiler flag to turn off builtin functions.
20454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20455
20456# Additional compiler flags for building library objects.
20457pic_flag=$lt_lt_prog_compiler_pic
20458
20459# How to pass a linker flag through the compiler.
20460wl=$lt_lt_prog_compiler_wl
20461
20462# Compiler flag to prevent dynamic linking.
20463link_static_flag=$lt_lt_prog_compiler_static
20464
20465# Does compiler simultaneously support -c and -o options?
20466compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20467
20468# Whether or not to add -lc for building shared libraries.
20469build_libtool_need_lc=$archive_cmds_need_lc
20470
20471# Whether or not to disallow shared libs when runtime libs are static.
20472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20473
20474# Compiler flag to allow reflexive dlopens.
20475export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20476
20477# Compiler flag to generate shared objects directly from archives.
20478whole_archive_flag_spec=$lt_whole_archive_flag_spec
20479
20480# Whether the compiler copes with passing no objects directly.
20481compiler_needs_object=$lt_compiler_needs_object
20482
20483# Create an old-style archive from a shared archive.
20484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20485
20486# Create a temporary old-style archive to link instead of a shared archive.
20487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20488
20489# Commands used to build a shared archive.
20490archive_cmds=$lt_archive_cmds
20491archive_expsym_cmds=$lt_archive_expsym_cmds
20492
20493# Commands used to build a loadable module if different from building
20494# a shared archive.
20495module_cmds=$lt_module_cmds
20496module_expsym_cmds=$lt_module_expsym_cmds
20497
20498# Whether we are building with GNU ld or not.
20499with_gnu_ld=$lt_with_gnu_ld
20500
20501# Flag that allows shared libraries with undefined symbols to be built.
20502allow_undefined_flag=$lt_allow_undefined_flag
20503
20504# Flag that enforces no undefined symbols.
20505no_undefined_flag=$lt_no_undefined_flag
20506
20507# Flag to hardcode \$libdir into a binary during linking.
20508# This must work even if \$libdir does not exist
20509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20510
20511# Whether we need a single "-rpath" flag with a separated argument.
20512hardcode_libdir_separator=$lt_hardcode_libdir_separator
20513
20514# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20515# DIR into the resulting binary.
20516hardcode_direct=$hardcode_direct
20517
20518# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20519# DIR into the resulting binary and the resulting library dependency is
20520# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20521# library is relocated.
20522hardcode_direct_absolute=$hardcode_direct_absolute
20523
20524# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20525# into the resulting binary.
20526hardcode_minus_L=$hardcode_minus_L
20527
20528# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20529# into the resulting binary.
20530hardcode_shlibpath_var=$hardcode_shlibpath_var
20531
20532# Set to "yes" if building a shared library automatically hardcodes DIR
20533# into the library and all subsequent libraries and executables linked
20534# against it.
20535hardcode_automatic=$hardcode_automatic
20536
20537# Set to yes if linker adds runtime paths of dependent libraries
20538# to runtime path list.
20539inherit_rpath=$inherit_rpath
20540
20541# Whether libtool must link a program against all its dependency libraries.
20542link_all_deplibs=$link_all_deplibs
20543
20544# Set to "yes" if exported symbols are required.
20545always_export_symbols=$always_export_symbols
20546
20547# The commands to list exported symbols.
20548export_symbols_cmds=$lt_export_symbols_cmds
20549
20550# Symbols that should not be listed in the preloaded symbols.
20551exclude_expsyms=$lt_exclude_expsyms
20552
20553# Symbols that must always be exported.
20554include_expsyms=$lt_include_expsyms
20555
20556# Commands necessary for linking programs (against libraries) with templates.
20557prelink_cmds=$lt_prelink_cmds
20558
20559# Commands necessary for finishing linking programs.
20560postlink_cmds=$lt_postlink_cmds
20561
20562# Specify filename containing input files.
20563file_list_spec=$lt_file_list_spec
20564
20565# How to hardcode a shared library path into an executable.
20566hardcode_action=$hardcode_action
20567
20568# The directories searched by this compiler when creating a shared library.
20569compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20570
20571# Dependencies to place before and after the objects being linked to
20572# create a shared library.
20573predep_objects=$lt_predep_objects
20574postdep_objects=$lt_postdep_objects
20575predeps=$lt_predeps
20576postdeps=$lt_postdeps
20577
20578# The library search path used internally by the compiler when linking
20579# a shared library.
20580compiler_lib_search_path=$lt_compiler_lib_search_path
20581
20582# ### END LIBTOOL CONFIG
20583
20584_LT_EOF
20585
20586  case $host_os in
20587  aix3*)
20588    cat <<\_LT_EOF >> "$cfgfile"
20589# AIX sometimes has problems with the GCC collect2 program.  For some
20590# reason, if we set the COLLECT_NAMES environment variable, the problems
20591# vanish in a puff of smoke.
20592if test "X${COLLECT_NAMES+set}" != Xset; then
20593  COLLECT_NAMES=
20594  export COLLECT_NAMES
20595fi
20596_LT_EOF
20597    ;;
20598  esac
20599
20600
20601ltmain="$ac_aux_dir/ltmain.sh"
20602
20603
20604  # We use sed instead of cat because bash on DJGPP gets confused if
20605  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20606  # text mode, it properly converts lines to CR/LF.  This bash problem
20607  # is reportedly fixed, but why not run on old versions too?
20608  sed '$q' "$ltmain" >> "$cfgfile" \
20609     || (rm -f "$cfgfile"; exit 1)
20610
20611  if test x"$xsi_shell" = xyes; then
20612  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20613func_dirname ()\
20614{\
20615\    case ${1} in\
20616\      */*) func_dirname_result="${1%/*}${2}" ;;\
20617\      *  ) func_dirname_result="${3}" ;;\
20618\    esac\
20619} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20620  && mv -f "$cfgfile.tmp" "$cfgfile" \
20621    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20622test 0 -eq $? || _lt_function_replace_fail=:
20623
20624
20625  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20626func_basename ()\
20627{\
20628\    func_basename_result="${1##*/}"\
20629} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20630  && mv -f "$cfgfile.tmp" "$cfgfile" \
20631    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20632test 0 -eq $? || _lt_function_replace_fail=:
20633
20634
20635  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20636func_dirname_and_basename ()\
20637{\
20638\    case ${1} in\
20639\      */*) func_dirname_result="${1%/*}${2}" ;;\
20640\      *  ) func_dirname_result="${3}" ;;\
20641\    esac\
20642\    func_basename_result="${1##*/}"\
20643} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20644  && mv -f "$cfgfile.tmp" "$cfgfile" \
20645    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20646test 0 -eq $? || _lt_function_replace_fail=:
20647
20648
20649  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20650func_stripname ()\
20651{\
20652\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20653\    # positional parameters, so assign one to ordinary parameter first.\
20654\    func_stripname_result=${3}\
20655\    func_stripname_result=${func_stripname_result#"${1}"}\
20656\    func_stripname_result=${func_stripname_result%"${2}"}\
20657} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20658  && mv -f "$cfgfile.tmp" "$cfgfile" \
20659    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20660test 0 -eq $? || _lt_function_replace_fail=:
20661
20662
20663  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20664func_split_long_opt ()\
20665{\
20666\    func_split_long_opt_name=${1%%=*}\
20667\    func_split_long_opt_arg=${1#*=}\
20668} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20669  && mv -f "$cfgfile.tmp" "$cfgfile" \
20670    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20671test 0 -eq $? || _lt_function_replace_fail=:
20672
20673
20674  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20675func_split_short_opt ()\
20676{\
20677\    func_split_short_opt_arg=${1#??}\
20678\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20679} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20680  && mv -f "$cfgfile.tmp" "$cfgfile" \
20681    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20682test 0 -eq $? || _lt_function_replace_fail=:
20683
20684
20685  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20686func_lo2o ()\
20687{\
20688\    case ${1} in\
20689\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20690\      *)    func_lo2o_result=${1} ;;\
20691\    esac\
20692} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20693  && mv -f "$cfgfile.tmp" "$cfgfile" \
20694    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20695test 0 -eq $? || _lt_function_replace_fail=:
20696
20697
20698  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20699func_xform ()\
20700{\
20701    func_xform_result=${1%.*}.lo\
20702} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20703  && mv -f "$cfgfile.tmp" "$cfgfile" \
20704    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20705test 0 -eq $? || _lt_function_replace_fail=:
20706
20707
20708  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20709func_arith ()\
20710{\
20711    func_arith_result=$(( $* ))\
20712} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20713  && mv -f "$cfgfile.tmp" "$cfgfile" \
20714    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20715test 0 -eq $? || _lt_function_replace_fail=:
20716
20717
20718  sed -e '/^func_len ()$/,/^} # func_len /c\
20719func_len ()\
20720{\
20721    func_len_result=${#1}\
20722} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20723  && mv -f "$cfgfile.tmp" "$cfgfile" \
20724    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20725test 0 -eq $? || _lt_function_replace_fail=:
20726
20727fi
20728
20729if test x"$lt_shell_append" = xyes; then
20730  sed -e '/^func_append ()$/,/^} # func_append /c\
20731func_append ()\
20732{\
20733    eval "${1}+=\\${2}"\
20734} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20735  && mv -f "$cfgfile.tmp" "$cfgfile" \
20736    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20737test 0 -eq $? || _lt_function_replace_fail=:
20738
20739
20740  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20741func_append_quoted ()\
20742{\
20743\    func_quote_for_eval "${2}"\
20744\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20745} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20746  && mv -f "$cfgfile.tmp" "$cfgfile" \
20747    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20748test 0 -eq $? || _lt_function_replace_fail=:
20749
20750
20751  # Save a `func_append' function call where possible by direct use of '+='
20752  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20753    && mv -f "$cfgfile.tmp" "$cfgfile" \
20754      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20755  test 0 -eq $? || _lt_function_replace_fail=:
20756else
20757  # Save a `func_append' function call even when '+=' is not available
20758  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20759    && mv -f "$cfgfile.tmp" "$cfgfile" \
20760      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20761  test 0 -eq $? || _lt_function_replace_fail=:
20762fi
20763
20764if test x"$_lt_function_replace_fail" = x":"; then
20765  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20766$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20767fi
20768
20769
20770   mv -f "$cfgfile" "$ofile" ||
20771    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20772  chmod +x "$ofile"
20773
20774
20775    cat <<_LT_EOF >> "$ofile"
20776
20777# ### BEGIN LIBTOOL TAG CONFIG: CXX
20778
20779# The linker used to build libraries.
20780LD=$lt_LD_CXX
20781
20782# How to create reloadable object files.
20783reload_flag=$lt_reload_flag_CXX
20784reload_cmds=$lt_reload_cmds_CXX
20785
20786# Commands used to build an old-style archive.
20787old_archive_cmds=$lt_old_archive_cmds_CXX
20788
20789# A language specific compiler.
20790CC=$lt_compiler_CXX
20791
20792# Is the compiler the GNU compiler?
20793with_gcc=$GCC_CXX
20794
20795# Compiler flag to turn off builtin functions.
20796no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20797
20798# Additional compiler flags for building library objects.
20799pic_flag=$lt_lt_prog_compiler_pic_CXX
20800
20801# How to pass a linker flag through the compiler.
20802wl=$lt_lt_prog_compiler_wl_CXX
20803
20804# Compiler flag to prevent dynamic linking.
20805link_static_flag=$lt_lt_prog_compiler_static_CXX
20806
20807# Does compiler simultaneously support -c and -o options?
20808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20809
20810# Whether or not to add -lc for building shared libraries.
20811build_libtool_need_lc=$archive_cmds_need_lc_CXX
20812
20813# Whether or not to disallow shared libs when runtime libs are static.
20814allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20815
20816# Compiler flag to allow reflexive dlopens.
20817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20818
20819# Compiler flag to generate shared objects directly from archives.
20820whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20821
20822# Whether the compiler copes with passing no objects directly.
20823compiler_needs_object=$lt_compiler_needs_object_CXX
20824
20825# Create an old-style archive from a shared archive.
20826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20827
20828# Create a temporary old-style archive to link instead of a shared archive.
20829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20830
20831# Commands used to build a shared archive.
20832archive_cmds=$lt_archive_cmds_CXX
20833archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20834
20835# Commands used to build a loadable module if different from building
20836# a shared archive.
20837module_cmds=$lt_module_cmds_CXX
20838module_expsym_cmds=$lt_module_expsym_cmds_CXX
20839
20840# Whether we are building with GNU ld or not.
20841with_gnu_ld=$lt_with_gnu_ld_CXX
20842
20843# Flag that allows shared libraries with undefined symbols to be built.
20844allow_undefined_flag=$lt_allow_undefined_flag_CXX
20845
20846# Flag that enforces no undefined symbols.
20847no_undefined_flag=$lt_no_undefined_flag_CXX
20848
20849# Flag to hardcode \$libdir into a binary during linking.
20850# This must work even if \$libdir does not exist
20851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20852
20853# Whether we need a single "-rpath" flag with a separated argument.
20854hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20855
20856# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20857# DIR into the resulting binary.
20858hardcode_direct=$hardcode_direct_CXX
20859
20860# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20861# DIR into the resulting binary and the resulting library dependency is
20862# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20863# library is relocated.
20864hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20865
20866# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20867# into the resulting binary.
20868hardcode_minus_L=$hardcode_minus_L_CXX
20869
20870# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20871# into the resulting binary.
20872hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20873
20874# Set to "yes" if building a shared library automatically hardcodes DIR
20875# into the library and all subsequent libraries and executables linked
20876# against it.
20877hardcode_automatic=$hardcode_automatic_CXX
20878
20879# Set to yes if linker adds runtime paths of dependent libraries
20880# to runtime path list.
20881inherit_rpath=$inherit_rpath_CXX
20882
20883# Whether libtool must link a program against all its dependency libraries.
20884link_all_deplibs=$link_all_deplibs_CXX
20885
20886# Set to "yes" if exported symbols are required.
20887always_export_symbols=$always_export_symbols_CXX
20888
20889# The commands to list exported symbols.
20890export_symbols_cmds=$lt_export_symbols_cmds_CXX
20891
20892# Symbols that should not be listed in the preloaded symbols.
20893exclude_expsyms=$lt_exclude_expsyms_CXX
20894
20895# Symbols that must always be exported.
20896include_expsyms=$lt_include_expsyms_CXX
20897
20898# Commands necessary for linking programs (against libraries) with templates.
20899prelink_cmds=$lt_prelink_cmds_CXX
20900
20901# Commands necessary for finishing linking programs.
20902postlink_cmds=$lt_postlink_cmds_CXX
20903
20904# Specify filename containing input files.
20905file_list_spec=$lt_file_list_spec_CXX
20906
20907# How to hardcode a shared library path into an executable.
20908hardcode_action=$hardcode_action_CXX
20909
20910# The directories searched by this compiler when creating a shared library.
20911compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20912
20913# Dependencies to place before and after the objects being linked to
20914# create a shared library.
20915predep_objects=$lt_predep_objects_CXX
20916postdep_objects=$lt_postdep_objects_CXX
20917predeps=$lt_predeps_CXX
20918postdeps=$lt_postdeps_CXX
20919
20920# The library search path used internally by the compiler when linking
20921# a shared library.
20922compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20923
20924# ### END LIBTOOL TAG CONFIG: CXX
20925_LT_EOF
20926
20927 ;;
20928
20929  esac
20930done # for ac_tag
20931
20932
20933as_fn_exit 0
20934_ACEOF
20935ac_clean_files=$ac_clean_files_save
20936
20937test $ac_write_fail = 0 ||
20938  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20939
20940
20941# configure is writing to config.log, and then calls config.status.
20942# config.status does its own redirection, appending to config.log.
20943# Unfortunately, on DOS this fails, as config.log is still kept open
20944# by configure, so config.status won't be able to write to it; its
20945# output is simply discarded.  So we exec the FD to /dev/null,
20946# effectively closing config.log, so it can be properly (re)opened and
20947# appended to by config.status.  When coming back to configure, we
20948# need to make the FD available again.
20949if test "$no_create" != yes; then
20950  ac_cs_success=:
20951  ac_config_status_args=
20952  test "$silent" = yes &&
20953    ac_config_status_args="$ac_config_status_args --quiet"
20954  exec 5>/dev/null
20955  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20956  exec 5>>config.log
20957  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20958  # would make configure fail if this is the last instruction.
20959  $ac_cs_success || as_fn_exit 1
20960fi
20961if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20962  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20963$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20964fi
20965
20966