1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for libgcrypt 1.5.1.
5#
6# Report bugs to <http://bugs.gnupg.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: http://bugs.gnupg.org about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: 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='libgcrypt'
593PACKAGE_TARNAME='libgcrypt'
594PACKAGE_VERSION='1.5.1'
595PACKAGE_STRING='libgcrypt 1.5.1'
596PACKAGE_BUGREPORT='http://bugs.gnupg.org'
597PACKAGE_URL=''
598
599ac_unique_file="src/libgcrypt.vers"
600ac_config_libobj_dir=compat
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640BUILD_TIMESTAMP
641BUILD_FILEVERSION
642BUILD_REVISION
643LIBGCRYPT_DIGESTS
644LIBGCRYPT_PUBKEY_CIPHERS
645LIBGCRYPT_CIPHERS
646GCRYPT_RANDOM
647GCRYPT_DIGESTS
648GCRYPT_PUBKEY_CIPHERS
649GCRYPT_CIPHERS
650LIBGCRYPT_THREAD_MODULES
651LIBGCRYPT_CONFIG_HOST
652LIBGCRYPT_CONFIG_CFLAGS
653LIBGCRYPT_CONFIG_LIBS
654LIBGCRYPT_CONFIG_API_VERSION
655NOEXECSTACK_FLAGS
656CROSS_COMPILING_FALSE
657CROSS_COMPILING_TRUE
658MPI_MOD_C_UDIV_QRNND_FALSE
659MPI_MOD_C_UDIV_QRNND_TRUE
660MPI_MOD_C_UDIV_FALSE
661MPI_MOD_C_UDIV_TRUE
662MPI_MOD_C_MPIH_RSHIFT_FALSE
663MPI_MOD_C_MPIH_RSHIFT_TRUE
664MPI_MOD_C_MPIH_LSHIFT_FALSE
665MPI_MOD_C_MPIH_LSHIFT_TRUE
666MPI_MOD_C_MPIH_MUL3_FALSE
667MPI_MOD_C_MPIH_MUL3_TRUE
668MPI_MOD_C_MPIH_MUL2_FALSE
669MPI_MOD_C_MPIH_MUL2_TRUE
670MPI_MOD_C_MPIH_MUL1_FALSE
671MPI_MOD_C_MPIH_MUL1_TRUE
672MPI_MOD_C_MPIH_SUB1_FALSE
673MPI_MOD_C_MPIH_SUB1_TRUE
674MPI_MOD_C_MPIH_ADD1_FALSE
675MPI_MOD_C_MPIH_ADD1_TRUE
676MPI_MOD_ASM_UDIV_QRNND_FALSE
677MPI_MOD_ASM_UDIV_QRNND_TRUE
678MPI_MOD_ASM_UDIV_FALSE
679MPI_MOD_ASM_UDIV_TRUE
680MPI_MOD_ASM_MPIH_RSHIFT_FALSE
681MPI_MOD_ASM_MPIH_RSHIFT_TRUE
682MPI_MOD_ASM_MPIH_LSHIFT_FALSE
683MPI_MOD_ASM_MPIH_LSHIFT_TRUE
684MPI_MOD_ASM_MPIH_MUL3_FALSE
685MPI_MOD_ASM_MPIH_MUL3_TRUE
686MPI_MOD_ASM_MPIH_MUL2_FALSE
687MPI_MOD_ASM_MPIH_MUL2_TRUE
688MPI_MOD_ASM_MPIH_MUL1_FALSE
689MPI_MOD_ASM_MPIH_MUL1_TRUE
690MPI_MOD_ASM_MPIH_SUB1_FALSE
691MPI_MOD_ASM_MPIH_SUB1_TRUE
692MPI_MOD_ASM_MPIH_ADD1_FALSE
693MPI_MOD_ASM_MPIH_ADD1_TRUE
694MPI_SFLAGS
695DL_LIBS
696LIBOBJS
697FALLBACK_SOCKLEN_T
698SYS_SOCKET_H
699INSERT_SYS_SELECT_H
700PTH_LIBS
701PTH_CFLAGS
702PTH_CONFIG
703GPG_ERROR_LIBS
704GPG_ERROR_CFLAGS
705GPG_ERROR_CONFIG
706HAVE_LD_VERSION_SCRIPT_FALSE
707HAVE_LD_VERSION_SCRIPT_TRUE
708ENABLE_O_FLAG_MUNGING_FALSE
709ENABLE_O_FLAG_MUNGING_TRUE
710USE_RANDOM_DAEMON_FALSE
711USE_RANDOM_DAEMON_TRUE
712emacs_local_vars_end
713emacs_local_vars_read_only
714emacs_local_vars_begin
715HAVE_W32CE_SYSTEM_FALSE
716HAVE_W32CE_SYSTEM_TRUE
717HAVE_W32_SYSTEM_FALSE
718HAVE_W32_SYSTEM_TRUE
719RC
720OTOOL64
721OTOOL
722LIPO
723NMEDIT
724DSYMUTIL
725MANIFEST_TOOL
726RANLIB
727ac_ct_AR
728AR
729LN_S
730NM
731ac_ct_DUMPBIN
732DUMPBIN
733LD
734FGREP
735SED
736LIBTOOL
737OBJDUMP
738DLLTOOL
739AS
740EGREP
741GREP
742am__fastdepCCAS_FALSE
743am__fastdepCCAS_TRUE
744CCASDEPMODE
745CCASFLAGS
746CCAS
747CPP
748am__fastdepCC_FALSE
749am__fastdepCC_TRUE
750CCDEPMODE
751am__nodep
752AMDEPBACKSLASH
753AMDEP_FALSE
754AMDEP_TRUE
755am__quote
756am__include
757DEPDIR
758OBJEXT
759EXEEXT
760ac_ct_CC
761CPPFLAGS
762LDFLAGS
763CFLAGS
764CC
765VERSION_NUMBER
766LIBGCRYPT_LT_REVISION
767LIBGCRYPT_LT_AGE
768LIBGCRYPT_LT_CURRENT
769MAINT
770MAINTAINER_MODE_FALSE
771MAINTAINER_MODE_TRUE
772host_os
773host_vendor
774host_cpu
775host
776build_os
777build_vendor
778build_cpu
779build
780am__untar
781am__tar
782AMTAR
783am__leading_dot
784SET_MAKE
785AWK
786mkdir_p
787MKDIR_P
788INSTALL_STRIP_PROGRAM
789STRIP
790install_sh
791MAKEINFO
792AUTOHEADER
793AUTOMAKE
794AUTOCONF
795ACLOCAL
796VERSION
797PACKAGE
798CYGPATH_W
799am__isrc
800INSTALL_DATA
801INSTALL_SCRIPT
802INSTALL_PROGRAM
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
833PACKAGE_URL
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
841ac_subst_files=''
842ac_user_opts='
843enable_option_checking
844enable_maintainer_mode
845enable_dependency_tracking
846enable_static
847enable_shared
848with_pic
849enable_fast_install
850with_gnu_ld
851with_sysroot
852enable_libtool_lock
853enable_endian_check
854enable_ciphers
855enable_pubkey_ciphers
856enable_digests
857enable_random
858enable_dev_random
859with_egd_socket
860enable_random_daemon
861enable_asm
862enable_m_guard
863with_capabilities
864enable_hmac_binary_check
865enable_padlock_support
866enable_aesni_support
867enable_O_flag_munging
868enable_ld_version_script
869with_gpg_error_prefix
870with_pth_prefix
871enable_mpi_path
872enable_optimization
873enable_noexecstack
874'
875      ac_precious_vars='build_alias
876host_alias
877target_alias
878CC
879CFLAGS
880LDFLAGS
881LIBS
882CPPFLAGS
883CPP
884CCAS
885CCASFLAGS'
886
887
888# Initialize some variables set by options.
889ac_init_help=
890ac_init_version=false
891ac_unrecognized_opts=
892ac_unrecognized_sep=
893# The variables have the same names as the options, with
894# dashes changed to underlines.
895cache_file=/dev/null
896exec_prefix=NONE
897no_create=
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
906verbose=
907x_includes=NONE
908x_libraries=NONE
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
915# (The list follows the same order as the GNU Coding Standards.)
916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
924includedir='${prefix}/include'
925oldincludedir='/usr/include'
926docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
935
936ac_prev=
937ac_dashdash=
938for ac_option
939do
940  # If the previous option needs an argument, assign it.
941  if test -n "$ac_prev"; then
942    eval $ac_prev=\$ac_option
943    ac_prev=
944    continue
945  fi
946
947  case $ac_option in
948  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949  *=)   ac_optarg= ;;
950  *)    ac_optarg=yes ;;
951  esac
952
953  # Accept the important Cygnus configure options, so we can diagnose typos.
954
955  case $ac_dashdash$ac_option in
956  --)
957    ac_dashdash=yes ;;
958
959  -bindir | --bindir | --bindi | --bind | --bin | --bi)
960    ac_prev=bindir ;;
961  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962    bindir=$ac_optarg ;;
963
964  -build | --build | --buil | --bui | --bu)
965    ac_prev=build_alias ;;
966  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967    build_alias=$ac_optarg ;;
968
969  -cache-file | --cache-file | --cache-fil | --cache-fi \
970  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971    ac_prev=cache_file ;;
972  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974    cache_file=$ac_optarg ;;
975
976  --config-cache | -C)
977    cache_file=config.cache ;;
978
979  -datadir | --datadir | --datadi | --datad)
980    ac_prev=datadir ;;
981  -datadir=* | --datadir=* | --datadi=* | --datad=*)
982    datadir=$ac_optarg ;;
983
984  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985  | --dataroo | --dataro | --datar)
986    ac_prev=datarootdir ;;
987  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989    datarootdir=$ac_optarg ;;
990
991  -disable-* | --disable-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid feature name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"enable_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval enable_$ac_useropt=no ;;
1006
1007  -docdir | --docdir | --docdi | --doc | --do)
1008    ac_prev=docdir ;;
1009  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010    docdir=$ac_optarg ;;
1011
1012  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013    ac_prev=dvidir ;;
1014  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015    dvidir=$ac_optarg ;;
1016
1017  -enable-* | --enable-*)
1018    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019    # Reject names that are not valid shell variable names.
1020    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021      as_fn_error $? "invalid feature name: $ac_useropt"
1022    ac_useropt_orig=$ac_useropt
1023    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024    case $ac_user_opts in
1025      *"
1026"enable_$ac_useropt"
1027"*) ;;
1028      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029	 ac_unrecognized_sep=', ';;
1030    esac
1031    eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035  | --exec | --exe | --ex)
1036    ac_prev=exec_prefix ;;
1037  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039  | --exec=* | --exe=* | --ex=*)
1040    exec_prefix=$ac_optarg ;;
1041
1042  -gas | --gas | --ga | --g)
1043    # Obsolete; use --with-gas.
1044    with_gas=yes ;;
1045
1046  -help | --help | --hel | --he | -h)
1047    ac_init_help=long ;;
1048  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049    ac_init_help=recursive ;;
1050  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051    ac_init_help=short ;;
1052
1053  -host | --host | --hos | --ho)
1054    ac_prev=host_alias ;;
1055  -host=* | --host=* | --hos=* | --ho=*)
1056    host_alias=$ac_optarg ;;
1057
1058  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059    ac_prev=htmldir ;;
1060  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061  | --ht=*)
1062    htmldir=$ac_optarg ;;
1063
1064  -includedir | --includedir | --includedi | --included | --include \
1065  | --includ | --inclu | --incl | --inc)
1066    ac_prev=includedir ;;
1067  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068  | --includ=* | --inclu=* | --incl=* | --inc=*)
1069    includedir=$ac_optarg ;;
1070
1071  -infodir | --infodir | --infodi | --infod | --info | --inf)
1072    ac_prev=infodir ;;
1073  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074    infodir=$ac_optarg ;;
1075
1076  -libdir | --libdir | --libdi | --libd)
1077    ac_prev=libdir ;;
1078  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079    libdir=$ac_optarg ;;
1080
1081  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082  | --libexe | --libex | --libe)
1083    ac_prev=libexecdir ;;
1084  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085  | --libexe=* | --libex=* | --libe=*)
1086    libexecdir=$ac_optarg ;;
1087
1088  -localedir | --localedir | --localedi | --localed | --locale)
1089    ac_prev=localedir ;;
1090  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091    localedir=$ac_optarg ;;
1092
1093  -localstatedir | --localstatedir | --localstatedi | --localstated \
1094  | --localstate | --localstat | --localsta | --localst | --locals)
1095    ac_prev=localstatedir ;;
1096  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098    localstatedir=$ac_optarg ;;
1099
1100  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101    ac_prev=mandir ;;
1102  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103    mandir=$ac_optarg ;;
1104
1105  -nfp | --nfp | --nf)
1106    # Obsolete; use --without-fp.
1107    with_fp=no ;;
1108
1109  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110  | --no-cr | --no-c | -n)
1111    no_create=yes ;;
1112
1113  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115    no_recursion=yes ;;
1116
1117  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119  | --oldin | --oldi | --old | --ol | --o)
1120    ac_prev=oldincludedir ;;
1121  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124    oldincludedir=$ac_optarg ;;
1125
1126  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127    ac_prev=prefix ;;
1128  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129    prefix=$ac_optarg ;;
1130
1131  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132  | --program-pre | --program-pr | --program-p)
1133    ac_prev=program_prefix ;;
1134  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136    program_prefix=$ac_optarg ;;
1137
1138  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139  | --program-suf | --program-su | --program-s)
1140    ac_prev=program_suffix ;;
1141  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143    program_suffix=$ac_optarg ;;
1144
1145  -program-transform-name | --program-transform-name \
1146  | --program-transform-nam | --program-transform-na \
1147  | --program-transform-n | --program-transform- \
1148  | --program-transform | --program-transfor \
1149  | --program-transfo | --program-transf \
1150  | --program-trans | --program-tran \
1151  | --progr-tra | --program-tr | --program-t)
1152    ac_prev=program_transform_name ;;
1153  -program-transform-name=* | --program-transform-name=* \
1154  | --program-transform-nam=* | --program-transform-na=* \
1155  | --program-transform-n=* | --program-transform-=* \
1156  | --program-transform=* | --program-transfor=* \
1157  | --program-transfo=* | --program-transf=* \
1158  | --program-trans=* | --program-tran=* \
1159  | --progr-tra=* | --program-tr=* | --program-t=*)
1160    program_transform_name=$ac_optarg ;;
1161
1162  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163    ac_prev=pdfdir ;;
1164  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165    pdfdir=$ac_optarg ;;
1166
1167  -psdir | --psdir | --psdi | --psd | --ps)
1168    ac_prev=psdir ;;
1169  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170    psdir=$ac_optarg ;;
1171
1172  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173  | -silent | --silent | --silen | --sile | --sil)
1174    silent=yes ;;
1175
1176  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177    ac_prev=sbindir ;;
1178  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179  | --sbi=* | --sb=*)
1180    sbindir=$ac_optarg ;;
1181
1182  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184  | --sharedst | --shareds | --shared | --share | --shar \
1185  | --sha | --sh)
1186    ac_prev=sharedstatedir ;;
1187  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190  | --sha=* | --sh=*)
1191    sharedstatedir=$ac_optarg ;;
1192
1193  -site | --site | --sit)
1194    ac_prev=site ;;
1195  -site=* | --site=* | --sit=*)
1196    site=$ac_optarg ;;
1197
1198  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199    ac_prev=srcdir ;;
1200  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201    srcdir=$ac_optarg ;;
1202
1203  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204  | --syscon | --sysco | --sysc | --sys | --sy)
1205    ac_prev=sysconfdir ;;
1206  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208    sysconfdir=$ac_optarg ;;
1209
1210  -target | --target | --targe | --targ | --tar | --ta | --t)
1211    ac_prev=target_alias ;;
1212  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213    target_alias=$ac_optarg ;;
1214
1215  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216    verbose=yes ;;
1217
1218  -version | --version | --versio | --versi | --vers | -V)
1219    ac_init_version=: ;;
1220
1221  -with-* | --with-*)
1222    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225      as_fn_error $? "invalid package name: $ac_useropt"
1226    ac_useropt_orig=$ac_useropt
1227    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228    case $ac_user_opts in
1229      *"
1230"with_$ac_useropt"
1231"*) ;;
1232      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233	 ac_unrecognized_sep=', ';;
1234    esac
1235    eval with_$ac_useropt=\$ac_optarg ;;
1236
1237  -without-* | --without-*)
1238    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239    # Reject names that are not valid shell variable names.
1240    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241      as_fn_error $? "invalid package name: $ac_useropt"
1242    ac_useropt_orig=$ac_useropt
1243    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244    case $ac_user_opts in
1245      *"
1246"with_$ac_useropt"
1247"*) ;;
1248      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249	 ac_unrecognized_sep=', ';;
1250    esac
1251    eval with_$ac_useropt=no ;;
1252
1253  --x)
1254    # Obsolete; use --with-x.
1255    with_x=yes ;;
1256
1257  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258  | --x-incl | --x-inc | --x-in | --x-i)
1259    ac_prev=x_includes ;;
1260  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262    x_includes=$ac_optarg ;;
1263
1264  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266    ac_prev=x_libraries ;;
1267  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269    x_libraries=$ac_optarg ;;
1270
1271  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272Try \`$0 --help' for more information"
1273    ;;
1274
1275  *=*)
1276    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277    # Reject names that are not valid shell variable names.
1278    case $ac_envvar in #(
1279      '' | [0-9]* | *[!_$as_cr_alnum]* )
1280      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281    esac
1282    eval $ac_envvar=\$ac_optarg
1283    export $ac_envvar ;;
1284
1285  *)
1286    # FIXME: should be removed in autoconf 3.0.
1287    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291    ;;
1292
1293  esac
1294done
1295
1296if test -n "$ac_prev"; then
1297  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298  as_fn_error $? "missing argument to $ac_option"
1299fi
1300
1301if test -n "$ac_unrecognized_opts"; then
1302  case $enable_option_checking in
1303    no) ;;
1304    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306  esac
1307fi
1308
1309# Check all directory arguments for consistency.
1310for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311		datadir sysconfdir sharedstatedir localstatedir includedir \
1312		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313		libdir localedir mandir
1314do
1315  eval ac_val=\$$ac_var
1316  # Remove trailing slashes.
1317  case $ac_val in
1318    */ )
1319      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320      eval $ac_var=\$ac_val;;
1321  esac
1322  # Be sure to have absolute directory names.
1323  case $ac_val in
1324    [\\/$]* | ?:[\\/]* )  continue;;
1325    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326  esac
1327  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328done
1329
1330# There might be people who depend on the old broken behavior: `$host'
1331# used to hold the argument of --host etc.
1332# FIXME: To remove some day.
1333build=$build_alias
1334host=$host_alias
1335target=$target_alias
1336
1337# FIXME: To remove some day.
1338if test "x$host_alias" != x; then
1339  if test "x$build_alias" = x; then
1340    cross_compiling=maybe
1341  elif test "x$build_alias" != "x$host_alias"; then
1342    cross_compiling=yes
1343  fi
1344fi
1345
1346ac_tool_prefix=
1347test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349test "$silent" = yes && exec 6>/dev/null
1350
1351
1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353ac_ls_di=`ls -di .` &&
1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355  as_fn_error $? "working directory cannot be determined"
1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357  as_fn_error $? "pwd does not report name of working directory"
1358
1359
1360# Find the source files, if location was not specified.
1361if test -z "$srcdir"; then
1362  ac_srcdir_defaulted=yes
1363  # Try the directory containing this script, then the parent directory.
1364  ac_confdir=`$as_dirname -- "$as_myself" ||
1365$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366	 X"$as_myself" : 'X\(//\)[^/]' \| \
1367	 X"$as_myself" : 'X\(//\)$' \| \
1368	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369$as_echo X"$as_myself" |
1370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\/\)[^/].*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)$/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\).*/{
1383	    s//\1/
1384	    q
1385	  }
1386	  s/.*/./; q'`
1387  srcdir=$ac_confdir
1388  if test ! -r "$srcdir/$ac_unique_file"; then
1389    srcdir=..
1390  fi
1391else
1392  ac_srcdir_defaulted=no
1393fi
1394if test ! -r "$srcdir/$ac_unique_file"; then
1395  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397fi
1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399ac_abs_confdir=`(
1400	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401	pwd)`
1402# When building in place, set srcdir=.
1403if test "$ac_abs_confdir" = "$ac_pwd"; then
1404  srcdir=.
1405fi
1406# Remove unnecessary trailing slashes from srcdir.
1407# Double slashes in file names in object file debugging info
1408# mess up M-x gdb in Emacs.
1409case $srcdir in
1410*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411esac
1412for ac_var in $ac_precious_vars; do
1413  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414  eval ac_env_${ac_var}_value=\$${ac_var}
1415  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417done
1418
1419#
1420# Report the --help message.
1421#
1422if test "$ac_init_help" = "long"; then
1423  # Omit some internal or obsolete options to make the list less imposing.
1424  # This message is too long to be a string in the A/UX 3.1 sh.
1425  cat <<_ACEOF
1426\`configure' configures libgcrypt 1.5.1 to adapt to many kinds of systems.
1427
1428Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431VAR=VALUE.  See below for descriptions of some of the useful variables.
1432
1433Defaults for the options are specified in brackets.
1434
1435Configuration:
1436  -h, --help              display this help and exit
1437      --help=short        display options specific to this package
1438      --help=recursive    display the short help of all the included packages
1439  -V, --version           display version information and exit
1440  -q, --quiet, --silent   do not print \`checking ...' messages
1441      --cache-file=FILE   cache test results in FILE [disabled]
1442  -C, --config-cache      alias for \`--cache-file=config.cache'
1443  -n, --no-create         do not create output files
1444      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1445
1446Installation directories:
1447  --prefix=PREFIX         install architecture-independent files in PREFIX
1448                          [$ac_default_prefix]
1449  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1450                          [PREFIX]
1451
1452By default, \`make install' will install all the files in
1453\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1454an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455for instance \`--prefix=\$HOME'.
1456
1457For better control, use the options below.
1458
1459Fine tuning of the installation directories:
1460  --bindir=DIR            user executables [EPREFIX/bin]
1461  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1462  --libexecdir=DIR        program executables [EPREFIX/libexec]
1463  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1464  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1465  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1466  --libdir=DIR            object code libraries [EPREFIX/lib]
1467  --includedir=DIR        C header files [PREFIX/include]
1468  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1469  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1470  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1471  --infodir=DIR           info documentation [DATAROOTDIR/info]
1472  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1473  --mandir=DIR            man documentation [DATAROOTDIR/man]
1474  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgcrypt]
1475  --htmldir=DIR           html documentation [DOCDIR]
1476  --dvidir=DIR            dvi documentation [DOCDIR]
1477  --pdfdir=DIR            pdf documentation [DOCDIR]
1478  --psdir=DIR             ps documentation [DOCDIR]
1479_ACEOF
1480
1481  cat <<\_ACEOF
1482
1483Program names:
1484  --program-prefix=PREFIX            prepend PREFIX to installed program names
1485  --program-suffix=SUFFIX            append SUFFIX to installed program names
1486  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1487
1488System types:
1489  --build=BUILD     configure for building on BUILD [guessed]
1490  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1491_ACEOF
1492fi
1493
1494if test -n "$ac_init_help"; then
1495  case $ac_init_help in
1496     short | recursive ) echo "Configuration of libgcrypt 1.5.1:";;
1497   esac
1498  cat <<\_ACEOF
1499
1500Optional Features:
1501  --disable-option-checking  ignore unrecognized --enable/--with options
1502  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1503  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1504  --enable-maintainer-mode  enable make rules and dependencies not useful
1505			  (and sometimes confusing) to the casual installer
1506  --disable-dependency-tracking  speeds up one-time build
1507  --enable-dependency-tracking   do not reject slow dependency extractors
1508  --enable-static[=PKGS]  build static libraries [default=no]
1509  --enable-shared[=PKGS]  build shared libraries [default=yes]
1510  --enable-fast-install[=PKGS]
1511                          optimize for fast installation [default=yes]
1512  --disable-libtool-lock  avoid locking (might break parallel builds)
1513  --disable-endian-check  disable the endian check and trust the OS provided
1514                          macros
1515  --enable-ciphers=ciphers
1516                          select the symmetric ciphers to include
1517  --enable-pubkey-ciphers=ciphers
1518                          select the public-key ciphers to include
1519  --enable-digests=digests
1520                          select the message digests to include
1521  --enable-random=name    select which random number generator to use
1522  --disable-dev-random    disable the use of dev random
1523  --enable-random-daemon  Build and support the experimental gcryptrnd
1524  --disable-asm           Disable MPI assembler modules
1525  --enable-m-guard        Enable memory guard facility
1526  --enable-hmac-binary-check
1527                          Enable library integrity check
1528  --disable-padlock-support
1529                          Disable support for the PadLock Engine of VIA
1530                          processors
1531  --disable-aesni-support Disable support for the Intel AES-NI instructions
1532  --disable-O-flag-munging
1533                          Disable modification of the cc -O flag
1534  --enable-ld-version-script
1535                          enable/disable use of linker version script.
1536                          (default is system dependent)
1537  --enable-mpi-path=EXTRA_PATH
1538                          prepend EXTRA_PATH to list of CPU specific
1539                          optimizations
1540  --disable-optimization  disable compiler optimization
1541  --disable-noexecstack   disable non executable stack support
1542
1543Optional Packages:
1544  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1547                          both]
1548  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549  --with-sysroot=DIR Search for dependent libraries within DIR
1550                        (or the compiler's sysroot if not specified).
1551  --with-egd-socket=NAME  Use NAME for the EGD socket)
1552  --with-capabilities     Use linux capabilities [default=no]
1553  --with-gpg-error-prefix=PFX
1554                          prefix where GPG Error is installed (optional)
1555  --with-pth-prefix=PFX   prefix where GNU Pth is installed (optional)
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  CPP         C preprocessor
1566  CCAS        assembler compiler command (defaults to CC)
1567  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
1572Report bugs to <http://bugs.gnupg.org>.
1573_ACEOF
1574ac_status=$?
1575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578  # If there are subdirs, report their specific --help.
1579  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580    test -d "$ac_dir" ||
1581      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582      continue
1583    ac_builddir=.
1584
1585case "$ac_dir" in
1586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587*)
1588  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589  # A ".." for each directory in $ac_dir_suffix.
1590  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591  case $ac_top_builddir_sub in
1592  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594  esac ;;
1595esac
1596ac_abs_top_builddir=$ac_pwd
1597ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598# for backward compatibility:
1599ac_top_builddir=$ac_top_build_prefix
1600
1601case $srcdir in
1602  .)  # We are building in place.
1603    ac_srcdir=.
1604    ac_top_srcdir=$ac_top_builddir_sub
1605    ac_abs_top_srcdir=$ac_pwd ;;
1606  [\\/]* | ?:[\\/]* )  # Absolute name.
1607    ac_srcdir=$srcdir$ac_dir_suffix;
1608    ac_top_srcdir=$srcdir
1609    ac_abs_top_srcdir=$srcdir ;;
1610  *) # Relative name.
1611    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612    ac_top_srcdir=$ac_top_build_prefix$srcdir
1613    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614esac
1615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617    cd "$ac_dir" || { ac_status=$?; continue; }
1618    # Check for guested configure.
1619    if test -f "$ac_srcdir/configure.gnu"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622    elif test -f "$ac_srcdir/configure"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure" --help=recursive
1625    else
1626      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627    fi || ac_status=$?
1628    cd "$ac_pwd" || { ac_status=$?; break; }
1629  done
1630fi
1631
1632test -n "$ac_init_help" && exit $ac_status
1633if $ac_init_version; then
1634  cat <<\_ACEOF
1635libgcrypt configure 1.5.1
1636generated by GNU Autoconf 2.69
1637
1638Copyright (C) 2012 Free Software Foundation, Inc.
1639This configure script is free software; the Free Software Foundation
1640gives unlimited permission to copy, distribute and modify it.
1641_ACEOF
1642  exit
1643fi
1644
1645## ------------------------ ##
1646## Autoconf initialization. ##
1647## ------------------------ ##
1648
1649# ac_fn_c_try_compile LINENO
1650# --------------------------
1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  rm -f conftest.$ac_objext
1656  if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663  (eval "$ac_compile") 2>conftest.err
1664  ac_status=$?
1665  if test -s conftest.err; then
1666    grep -v '^ *+' conftest.err >conftest.er1
1667    cat conftest.er1 >&5
1668    mv -f conftest.er1 conftest.err
1669  fi
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } && {
1672	 test -z "$ac_c_werror_flag" ||
1673	 test ! -s conftest.err
1674       } && test -s conftest.$ac_objext; then :
1675  ac_retval=0
1676else
1677  $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680	ac_retval=1
1681fi
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683  as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_compile
1686
1687# ac_fn_c_try_cpp LINENO
1688# ----------------------
1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_cpp ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_cpp conftest.$ac_ext"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } > conftest.i && {
1709	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717    ac_retval=1
1718fi
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_cpp
1723
1724# ac_fn_c_try_link LINENO
1725# -----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_link ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  rm -f conftest.$ac_objext conftest$ac_exeext
1731  if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_link") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } && {
1747	 test -z "$ac_c_werror_flag" ||
1748	 test ! -s conftest.err
1749       } && test -s conftest$ac_exeext && {
1750	 test "$cross_compiling" = yes ||
1751	 test -x conftest$ac_exeext
1752       }; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758	ac_retval=1
1759fi
1760  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762  # interfere with the next link command; also delete a directory that is
1763  # left behind by Apple's compiler.  We do this before executing the actions.
1764  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766  as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_link
1769
1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773# the include files in INCLUDES and setting the cache variable VAR
1774# accordingly.
1775ac_fn_c_check_header_mongrel ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if eval \${$3+:} false; then :
1779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782  $as_echo_n "(cached) " >&6
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787else
1788  # Is the header compilable?
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790$as_echo_n "checking $2 usability... " >&6; }
1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h.  */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797  ac_header_compiler=yes
1798else
1799  ac_header_compiler=no
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803$as_echo "$ac_header_compiler" >&6; }
1804
1805# Is the header present?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807$as_echo_n "checking $2 presence... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_cpp "$LINENO"; then :
1813  ac_header_preproc=yes
1814else
1815  ac_header_preproc=no
1816fi
1817rm -f conftest.err conftest.i conftest.$ac_ext
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819$as_echo "$ac_header_preproc" >&6; }
1820
1821# So?  What about this header?
1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823  yes:no: )
1824    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828    ;;
1829  no:yes:* )
1830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1833$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1837$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840( $as_echo "## ------------------------------------ ##
1841## Report this to http://bugs.gnupg.org ##
1842## ------------------------------------ ##"
1843     ) | sed "s/^/$as_me: WARNING:     /" >&2
1844    ;;
1845esac
1846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849  $as_echo_n "(cached) " >&6
1850else
1851  eval "$3=\$ac_header_compiler"
1852fi
1853eval ac_res=\$$3
1854	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856fi
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_header_mongrel
1860
1861# ac_fn_c_try_run LINENO
1862# ----------------------
1863# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864# that executables *can* be run.
1865ac_fn_c_try_run ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  if { { ac_try="$ac_link"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_link") 2>&5
1876  ac_status=$?
1877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879  { { case "(($ac_try" in
1880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881  *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885  (eval "$ac_try") 2>&5
1886  ac_status=$?
1887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888  test $ac_status = 0; }; }; then :
1889  ac_retval=0
1890else
1891  $as_echo "$as_me: program exited with status $ac_status" >&5
1892       $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895       ac_retval=$ac_status
1896fi
1897  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899  as_fn_set_status $ac_retval
1900
1901} # ac_fn_c_try_run
1902
1903# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904# -------------------------------------------------------
1905# Tests whether HEADER exists and can be compiled using the include files in
1906# INCLUDES, setting the cache variable VAR accordingly.
1907ac_fn_c_check_header_compile ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if eval \${$3+:} false; then :
1913  $as_echo_n "(cached) " >&6
1914else
1915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918#include <$2>
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  eval "$3=yes"
1922else
1923  eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926fi
1927eval ac_res=\$$3
1928	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932} # ac_fn_c_check_header_compile
1933
1934# ac_fn_c_check_func LINENO FUNC VAR
1935# ----------------------------------
1936# Tests whether FUNC exists, setting the cache variable VAR accordingly
1937ac_fn_c_check_func ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1949#define $2 innocuous_$2
1950
1951/* System header to define __stub macros and hopefully few prototypes,
1952    which can conflict with char $2 (); below.
1953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954    <limits.h> exists even on freestanding compilers.  */
1955
1956#ifdef __STDC__
1957# include <limits.h>
1958#else
1959# include <assert.h>
1960#endif
1961
1962#undef $2
1963
1964/* Override any GCC internal prototype to avoid an error.
1965   Use char because int might match the return type of a GCC
1966   builtin and then its argument prototype would still apply.  */
1967#ifdef __cplusplus
1968extern "C"
1969#endif
1970char $2 ();
1971/* The GNU C library defines this for functions which it implements
1972    to always fail with ENOSYS.  Some functions are actually named
1973    something starting with __ and the normal name is an alias.  */
1974#if defined __stub_$2 || defined __stub___$2
1975choke me
1976#endif
1977
1978int
1979main ()
1980{
1981return $2 ();
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_link "$LINENO"; then :
1987  eval "$3=yes"
1988else
1989  eval "$3=no"
1990fi
1991rm -f core conftest.err conftest.$ac_objext \
1992    conftest$ac_exeext conftest.$ac_ext
1993fi
1994eval ac_res=\$$3
1995	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_func
2000
2001# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2002# --------------------------------------------
2003# Tries to find the compile-time value of EXPR in a program that includes
2004# INCLUDES, setting VAR accordingly. Returns whether the value could be
2005# computed
2006ac_fn_c_compute_int ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  if test "$cross_compiling" = yes; then
2010    # Depending upon the size, compute the lo and hi bounds.
2011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) >= 0)];
2018test_array [0] = 0;
2019return test_array [0];
2020
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  ac_lo=0 ac_mid=0
2027  while :; do
2028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h.  */
2030$4
2031int
2032main ()
2033{
2034static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035test_array [0] = 0;
2036return test_array [0];
2037
2038  ;
2039  return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043  ac_hi=$ac_mid; break
2044else
2045  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2046			if test $ac_lo -le $ac_mid; then
2047			  ac_lo= ac_hi=
2048			  break
2049			fi
2050			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053  done
2054else
2055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$4
2058int
2059main ()
2060{
2061static int test_array [1 - 2 * !(($2) < 0)];
2062test_array [0] = 0;
2063return test_array [0];
2064
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070  ac_hi=-1 ac_mid=-1
2071  while :; do
2072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$4
2075int
2076main ()
2077{
2078static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2079test_array [0] = 0;
2080return test_array [0];
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087  ac_lo=$ac_mid; break
2088else
2089  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2090			if test $ac_mid -le $ac_hi; then
2091			  ac_lo= ac_hi=
2092			  break
2093			fi
2094			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097  done
2098else
2099  ac_lo= ac_hi=
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104# Binary search between lo and hi bounds.
2105while test "x$ac_lo" != "x$ac_hi"; do
2106  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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_c_try_compile "$LINENO"; then :
2122  ac_hi=$ac_mid
2123else
2124  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127done
2128case $ac_lo in #((
2129?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2130'') ac_retval=1 ;;
2131esac
2132  else
2133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h.  */
2135$4
2136static long int longval () { return $2; }
2137static unsigned long int ulongval () { return $2; }
2138#include <stdio.h>
2139#include <stdlib.h>
2140int
2141main ()
2142{
2143
2144  FILE *f = fopen ("conftest.val", "w");
2145  if (! f)
2146    return 1;
2147  if (($2) < 0)
2148    {
2149      long int i = longval ();
2150      if (i != ($2))
2151	return 1;
2152      fprintf (f, "%ld", i);
2153    }
2154  else
2155    {
2156      unsigned long int i = ulongval ();
2157      if (i != ($2))
2158	return 1;
2159      fprintf (f, "%lu", i);
2160    }
2161  /* Do not output a trailing newline, as this causes \r\n confusion
2162     on some platforms.  */
2163  return ferror (f) || fclose (f) != 0;
2164
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_run "$LINENO"; then :
2170  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2171else
2172  ac_retval=1
2173fi
2174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175  conftest.$ac_objext conftest.beam conftest.$ac_ext
2176rm -f conftest.val
2177
2178  fi
2179  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180  as_fn_set_status $ac_retval
2181
2182} # ac_fn_c_compute_int
2183
2184# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2185# -------------------------------------------
2186# Tests whether TYPE exists after having included INCLUDES, setting cache
2187# variable VAR accordingly.
2188ac_fn_c_check_type ()
2189{
2190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192$as_echo_n "checking for $2... " >&6; }
2193if eval \${$3+:} false; then :
2194  $as_echo_n "(cached) " >&6
2195else
2196  eval "$3=no"
2197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$4
2200int
2201main ()
2202{
2203if (sizeof ($2))
2204	 return 0;
2205  ;
2206  return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216if (sizeof (($2)))
2217	    return 0;
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223
2224else
2225  eval "$3=yes"
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230fi
2231eval ac_res=\$$3
2232	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235
2236} # ac_fn_c_check_type
2237
2238# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2239# ---------------------------------------------
2240# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2241# accordingly.
2242ac_fn_c_check_decl ()
2243{
2244  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245  as_decl_name=`echo $2|sed 's/ *(.*//'`
2246  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2248$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2249if eval \${$3+:} false; then :
2250  $as_echo_n "(cached) " >&6
2251else
2252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h.  */
2254$4
2255int
2256main ()
2257{
2258#ifndef $as_decl_name
2259#ifdef __cplusplus
2260  (void) $as_decl_use;
2261#else
2262  (void) $as_decl_name;
2263#endif
2264#endif
2265
2266  ;
2267  return 0;
2268}
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271  eval "$3=yes"
2272else
2273  eval "$3=no"
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
2280  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281
2282} # ac_fn_c_check_decl
2283cat >config.log <<_ACEOF
2284This file contains any messages produced by compilers while
2285running configure, to aid debugging if configure makes a mistake.
2286
2287It was created by libgcrypt $as_me 1.5.1, which was
2288generated by GNU Autoconf 2.69.  Invocation command line was
2289
2290  $ $0 $@
2291
2292_ACEOF
2293exec 5>>config.log
2294{
2295cat <<_ASUNAME
2296## --------- ##
2297## Platform. ##
2298## --------- ##
2299
2300hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305
2306/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2308
2309/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2310/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2311/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2313/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2314/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2315/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2316
2317_ASUNAME
2318
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324    $as_echo "PATH: $as_dir"
2325  done
2326IFS=$as_save_IFS
2327
2328} >&5
2329
2330cat >&5 <<_ACEOF
2331
2332
2333## ----------- ##
2334## Core tests. ##
2335## ----------- ##
2336
2337_ACEOF
2338
2339
2340# Keep a trace of the command line.
2341# Strip out --no-create and --no-recursion so they do not pile up.
2342# Strip out --silent because we don't want to record it for future runs.
2343# Also quote any args containing shell meta-characters.
2344# Make two passes to allow for proper duplicate-argument suppression.
2345ac_configure_args=
2346ac_configure_args0=
2347ac_configure_args1=
2348ac_must_keep_next=false
2349for ac_pass in 1 2
2350do
2351  for ac_arg
2352  do
2353    case $ac_arg in
2354    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356    | -silent | --silent | --silen | --sile | --sil)
2357      continue ;;
2358    *\'*)
2359      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360    esac
2361    case $ac_pass in
2362    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363    2)
2364      as_fn_append ac_configure_args1 " '$ac_arg'"
2365      if test $ac_must_keep_next = true; then
2366	ac_must_keep_next=false # Got value, back to normal.
2367      else
2368	case $ac_arg in
2369	  *=* | --config-cache | -C | -disable-* | --disable-* \
2370	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372	  | -with-* | --with-* | -without-* | --without-* | --x)
2373	    case "$ac_configure_args0 " in
2374	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375	    esac
2376	    ;;
2377	  -* ) ac_must_keep_next=true ;;
2378	esac
2379      fi
2380      as_fn_append ac_configure_args " '$ac_arg'"
2381      ;;
2382    esac
2383  done
2384done
2385{ ac_configure_args0=; unset ac_configure_args0;}
2386{ ac_configure_args1=; unset ac_configure_args1;}
2387
2388# When interrupted or exit'd, cleanup temporary files, and complete
2389# config.log.  We remove comments because anyway the quotes in there
2390# would cause problems or look ugly.
2391# WARNING: Use '\'' to represent an apostrophe within the trap.
2392# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393trap 'exit_status=$?
2394  # Save into config.log some information that might help in debugging.
2395  {
2396    echo
2397
2398    $as_echo "## ---------------- ##
2399## Cache variables. ##
2400## ---------------- ##"
2401    echo
2402    # The following way of writing the cache mishandles newlines in values,
2403(
2404  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2405    eval ac_val=\$$ac_var
2406    case $ac_val in #(
2407    *${as_nl}*)
2408      case $ac_var in #(
2409      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2410$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2411      esac
2412      case $ac_var in #(
2413      _ | IFS | as_nl) ;; #(
2414      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2415      *) { eval $ac_var=; unset $ac_var;} ;;
2416      esac ;;
2417    esac
2418  done
2419  (set) 2>&1 |
2420    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2421    *${as_nl}ac_space=\ *)
2422      sed -n \
2423	"s/'\''/'\''\\\\'\'''\''/g;
2424	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2425      ;; #(
2426    *)
2427      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428      ;;
2429    esac |
2430    sort
2431)
2432    echo
2433
2434    $as_echo "## ----------------- ##
2435## Output variables. ##
2436## ----------------- ##"
2437    echo
2438    for ac_var in $ac_subst_vars
2439    do
2440      eval ac_val=\$$ac_var
2441      case $ac_val in
2442      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443      esac
2444      $as_echo "$ac_var='\''$ac_val'\''"
2445    done | sort
2446    echo
2447
2448    if test -n "$ac_subst_files"; then
2449      $as_echo "## ------------------- ##
2450## File substitutions. ##
2451## ------------------- ##"
2452      echo
2453      for ac_var in $ac_subst_files
2454      do
2455	eval ac_val=\$$ac_var
2456	case $ac_val in
2457	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458	esac
2459	$as_echo "$ac_var='\''$ac_val'\''"
2460      done | sort
2461      echo
2462    fi
2463
2464    if test -s confdefs.h; then
2465      $as_echo "## ----------- ##
2466## confdefs.h. ##
2467## ----------- ##"
2468      echo
2469      cat confdefs.h
2470      echo
2471    fi
2472    test "$ac_signal" != 0 &&
2473      $as_echo "$as_me: caught signal $ac_signal"
2474    $as_echo "$as_me: exit $exit_status"
2475  } >&5
2476  rm -f core *.core core.conftest.* &&
2477    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2478    exit $exit_status
2479' 0
2480for ac_signal in 1 2 13 15; do
2481  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482done
2483ac_signal=0
2484
2485# confdefs.h avoids OS command line length limits that DEFS can exceed.
2486rm -f -r conftest* confdefs.h
2487
2488$as_echo "/* confdefs.h */" > confdefs.h
2489
2490# Predefined preprocessor variables.
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_NAME "$PACKAGE_NAME"
2494_ACEOF
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2498_ACEOF
2499
2500cat >>confdefs.h <<_ACEOF
2501#define PACKAGE_VERSION "$PACKAGE_VERSION"
2502_ACEOF
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_STRING "$PACKAGE_STRING"
2506_ACEOF
2507
2508cat >>confdefs.h <<_ACEOF
2509#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2510_ACEOF
2511
2512cat >>confdefs.h <<_ACEOF
2513#define PACKAGE_URL "$PACKAGE_URL"
2514_ACEOF
2515
2516
2517# Let the site file select an alternate cache file if it wants to.
2518# Prefer an explicitly selected file to automatically selected ones.
2519ac_site_file1=NONE
2520ac_site_file2=NONE
2521if test -n "$CONFIG_SITE"; then
2522  # We do not want a PATH search for config.site.
2523  case $CONFIG_SITE in #((
2524    -*)  ac_site_file1=./$CONFIG_SITE;;
2525    */*) ac_site_file1=$CONFIG_SITE;;
2526    *)   ac_site_file1=./$CONFIG_SITE;;
2527  esac
2528elif test "x$prefix" != xNONE; then
2529  ac_site_file1=$prefix/share/config.site
2530  ac_site_file2=$prefix/etc/config.site
2531else
2532  ac_site_file1=$ac_default_prefix/share/config.site
2533  ac_site_file2=$ac_default_prefix/etc/config.site
2534fi
2535for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536do
2537  test "x$ac_site_file" = xNONE && continue
2538  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2539    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541    sed 's/^/| /' "$ac_site_file" >&5
2542    . "$ac_site_file" \
2543      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545as_fn_error $? "failed to load site script $ac_site_file
2546See \`config.log' for more details" "$LINENO" 5; }
2547  fi
2548done
2549
2550if test -r "$cache_file"; then
2551  # Some versions of bash will fail to source /dev/null (special files
2552  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2553  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2554    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555$as_echo "$as_me: loading cache $cache_file" >&6;}
2556    case $cache_file in
2557      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558      *)                      . "./$cache_file";;
2559    esac
2560  fi
2561else
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563$as_echo "$as_me: creating cache $cache_file" >&6;}
2564  >$cache_file
2565fi
2566
2567# Check that the precious variables saved in the cache have kept the same
2568# value.
2569ac_cache_corrupted=false
2570for ac_var in $ac_precious_vars; do
2571  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572  eval ac_new_set=\$ac_env_${ac_var}_set
2573  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574  eval ac_new_val=\$ac_env_${ac_var}_value
2575  case $ac_old_set,$ac_new_set in
2576    set,)
2577      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579      ac_cache_corrupted=: ;;
2580    ,set)
2581      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583      ac_cache_corrupted=: ;;
2584    ,);;
2585    *)
2586      if test "x$ac_old_val" != "x$ac_new_val"; then
2587	# differences in whitespace do not lead to failure.
2588	ac_old_val_w=`echo x $ac_old_val`
2589	ac_new_val_w=`echo x $ac_new_val`
2590	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593	  ac_cache_corrupted=:
2594	else
2595	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597	  eval $ac_var=\$ac_old_val
2598	fi
2599	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2600$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2601	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2602$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2603      fi;;
2604  esac
2605  # Pass precious variables to config.status.
2606  if test "$ac_new_set" = set; then
2607    case $ac_new_val in
2608    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609    *) ac_arg=$ac_var=$ac_new_val ;;
2610    esac
2611    case " $ac_configure_args " in
2612      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2613      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614    esac
2615  fi
2616done
2617if $ac_cache_corrupted; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623fi
2624## -------------------- ##
2625## Main body of script. ##
2626## -------------------- ##
2627
2628ac_ext=c
2629ac_cpp='$CPP $CPPFLAGS'
2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634
2635
2636# LT Version numbers, remember to change them just *before* a release.
2637#   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
2638#   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
2639#   (No interfaces changed:                   REVISION++)
2640# NOTE: This is a stable branch, thus you may only bump up REVISION
2641# unless you coordinate with the development branch.
2642#
2643LIBGCRYPT_LT_CURRENT=19
2644LIBGCRYPT_LT_AGE=8
2645LIBGCRYPT_LT_REVISION=0
2646
2647
2648# If the API is changed in an incompatible way: increment the next counter.
2649LIBGCRYPT_CONFIG_API_VERSION=1
2650
2651NEED_GPG_ERROR_VERSION=1.8
2652
2653PACKAGE=$PACKAGE_NAME
2654VERSION=$PACKAGE_VERSION
2655
2656
2657am__api_version='1.11'
2658
2659ac_aux_dir=
2660for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2661  if test -f "$ac_dir/install-sh"; then
2662    ac_aux_dir=$ac_dir
2663    ac_install_sh="$ac_aux_dir/install-sh -c"
2664    break
2665  elif test -f "$ac_dir/install.sh"; then
2666    ac_aux_dir=$ac_dir
2667    ac_install_sh="$ac_aux_dir/install.sh -c"
2668    break
2669  elif test -f "$ac_dir/shtool"; then
2670    ac_aux_dir=$ac_dir
2671    ac_install_sh="$ac_aux_dir/shtool install -c"
2672    break
2673  fi
2674done
2675if test -z "$ac_aux_dir"; then
2676  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2677fi
2678
2679# These three variables are undocumented and unsupported,
2680# and are intended to be withdrawn in a future Autoconf release.
2681# They can cause serious problems if a builder's source tree is in a directory
2682# whose full name contains unusual characters.
2683ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2684ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2685ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2686
2687
2688# Find a good install program.  We prefer a C program (faster),
2689# so one script is as good as another.  But avoid the broken or
2690# incompatible versions:
2691# SysV /etc/install, /usr/sbin/install
2692# SunOS /usr/etc/install
2693# IRIX /sbin/install
2694# AIX /bin/install
2695# AmigaOS /C/install, which installs bootblocks on floppy discs
2696# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2697# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2698# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2699# OS/2's system install, which has a completely different semantic
2700# ./install, which can be erroneously created by make from ./install.sh.
2701# Reject install programs that cannot install multiple files.
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2703$as_echo_n "checking for a BSD-compatible install... " >&6; }
2704if test -z "$INSTALL"; then
2705if ${ac_cv_path_install+:} false; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    # Account for people who put trailing slashes in PATH elements.
2714case $as_dir/ in #((
2715  ./ | .// | /[cC]/* | \
2716  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2717  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2718  /usr/ucb/* ) ;;
2719  *)
2720    # OSF1 and SCO ODT 3.0 have their own names for install.
2721    # Don't use installbsd from OSF since it installs stuff as root
2722    # by default.
2723    for ac_prog in ginstall scoinst install; do
2724      for ac_exec_ext in '' $ac_executable_extensions; do
2725	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2726	  if test $ac_prog = install &&
2727	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2728	    # AIX install.  It has an incompatible calling convention.
2729	    :
2730	  elif test $ac_prog = install &&
2731	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732	    # program-specific install script used by HP pwplus--don't use.
2733	    :
2734	  else
2735	    rm -rf conftest.one conftest.two conftest.dir
2736	    echo one > conftest.one
2737	    echo two > conftest.two
2738	    mkdir conftest.dir
2739	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2740	      test -s conftest.one && test -s conftest.two &&
2741	      test -s conftest.dir/conftest.one &&
2742	      test -s conftest.dir/conftest.two
2743	    then
2744	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2745	      break 3
2746	    fi
2747	  fi
2748	fi
2749      done
2750    done
2751    ;;
2752esac
2753
2754  done
2755IFS=$as_save_IFS
2756
2757rm -rf conftest.one conftest.two conftest.dir
2758
2759fi
2760  if test "${ac_cv_path_install+set}" = set; then
2761    INSTALL=$ac_cv_path_install
2762  else
2763    # As a last resort, use the slow shell script.  Don't cache a
2764    # value for INSTALL within a source directory, because that will
2765    # break other packages using the cache if that directory is
2766    # removed, or if the value is a relative name.
2767    INSTALL=$ac_install_sh
2768  fi
2769fi
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2771$as_echo "$INSTALL" >&6; }
2772
2773# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2774# It thinks the first close brace ends the variable substitution.
2775test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2776
2777test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2778
2779test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2782$as_echo_n "checking whether build environment is sane... " >&6; }
2783# Just in case
2784sleep 1
2785echo timestamp > conftest.file
2786# Reject unsafe characters in $srcdir or the absolute working directory
2787# name.  Accept space and tab only in the latter.
2788am_lf='
2789'
2790case `pwd` in
2791  *[\\\"\#\$\&\'\`$am_lf]*)
2792    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2793esac
2794case $srcdir in
2795  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2796    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2797esac
2798
2799# Do `set' in a subshell so we don't clobber the current shell's
2800# arguments.  Must try -L first in case configure is actually a
2801# symlink; some systems play weird games with the mod time of symlinks
2802# (eg FreeBSD returns the mod time of the symlink's containing
2803# directory).
2804if (
2805   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2806   if test "$*" = "X"; then
2807      # -L didn't work.
2808      set X `ls -t "$srcdir/configure" conftest.file`
2809   fi
2810   rm -f conftest.file
2811   if test "$*" != "X $srcdir/configure conftest.file" \
2812      && test "$*" != "X conftest.file $srcdir/configure"; then
2813
2814      # If neither matched, then we have a broken ls.  This can happen
2815      # if, for instance, CONFIG_SHELL is bash and it inherits a
2816      # broken ls alias from the environment.  This has actually
2817      # happened.  Such a system could not be considered "sane".
2818      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2819alias in your environment" "$LINENO" 5
2820   fi
2821
2822   test "$2" = conftest.file
2823   )
2824then
2825   # Ok.
2826   :
2827else
2828   as_fn_error $? "newly created file is older than distributed files!
2829Check your system clock" "$LINENO" 5
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832$as_echo "yes" >&6; }
2833test "$program_prefix" != NONE &&
2834  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2835# Use a double $ so make ignores it.
2836test "$program_suffix" != NONE &&
2837  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2838# Double any \ or $.
2839# By default was `s,x,x', remove it if useless.
2840ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2841program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2842
2843# expand $ac_aux_dir to an absolute path
2844am_aux_dir=`cd $ac_aux_dir && pwd`
2845
2846if test x"${MISSING+set}" != xset; then
2847  case $am_aux_dir in
2848  *\ * | *\	*)
2849    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2850  *)
2851    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2852  esac
2853fi
2854# Use eval to expand $SHELL
2855if eval "$MISSING --run true"; then
2856  am_missing_run="$MISSING --run "
2857else
2858  am_missing_run=
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2860$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2861fi
2862
2863if test x"${install_sh}" != xset; then
2864  case $am_aux_dir in
2865  *\ * | *\	*)
2866    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2867  *)
2868    install_sh="\${SHELL} $am_aux_dir/install-sh"
2869  esac
2870fi
2871
2872# Installed binaries are usually stripped using `strip' when the user
2873# run `make install-strip'.  However `strip' might not be the right
2874# tool to use in cross-compilation environments, therefore Automake
2875# will honor the `STRIP' environment variable to overrule this program.
2876if test "$cross_compiling" != no; then
2877  if test -n "$ac_tool_prefix"; then
2878  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2879set dummy ${ac_tool_prefix}strip; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if ${ac_cv_prog_STRIP+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if test -n "$STRIP"; then
2886  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    for ac_exec_ext in '' $ac_executable_extensions; do
2894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897    break 2
2898  fi
2899done
2900  done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905STRIP=$ac_cv_prog_STRIP
2906if test -n "$STRIP"; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2908$as_echo "$STRIP" >&6; }
2909else
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914
2915fi
2916if test -z "$ac_cv_prog_STRIP"; then
2917  ac_ct_STRIP=$STRIP
2918  # Extract the first word of "strip", so it can be a program name with args.
2919set dummy strip; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$ac_ct_STRIP"; then
2926  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_ac_ct_STRIP="strip"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2946if test -n "$ac_ct_STRIP"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2948$as_echo "$ac_ct_STRIP" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954  if test "x$ac_ct_STRIP" = x; then
2955    STRIP=":"
2956  else
2957    case $cross_compiling:$ac_tool_warned in
2958yes:)
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961ac_tool_warned=yes ;;
2962esac
2963    STRIP=$ac_ct_STRIP
2964  fi
2965else
2966  STRIP="$ac_cv_prog_STRIP"
2967fi
2968
2969fi
2970INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2971
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2973$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2974if test -z "$MKDIR_P"; then
2975  if ${ac_cv_path_mkdir+:} false; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_prog in mkdir gmkdir; do
2984	 for ac_exec_ext in '' $ac_executable_extensions; do
2985	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2986	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2987	     'mkdir (GNU coreutils) '* | \
2988	     'mkdir (coreutils) '* | \
2989	     'mkdir (fileutils) '4.1*)
2990	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2991	       break 3;;
2992	   esac
2993	 done
2994       done
2995  done
2996IFS=$as_save_IFS
2997
2998fi
2999
3000  test -d ./--version && rmdir ./--version
3001  if test "${ac_cv_path_mkdir+set}" = set; then
3002    MKDIR_P="$ac_cv_path_mkdir -p"
3003  else
3004    # As a last resort, use the slow shell script.  Don't cache a
3005    # value for MKDIR_P within a source directory, because that will
3006    # break other packages using the cache if that directory is
3007    # removed, or if the value is a relative name.
3008    MKDIR_P="$ac_install_sh -d"
3009  fi
3010fi
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3012$as_echo "$MKDIR_P" >&6; }
3013
3014mkdir_p="$MKDIR_P"
3015case $mkdir_p in
3016  [\\/$]* | ?:[\\/]*) ;;
3017  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3018esac
3019
3020for ac_prog in gawk mawk nawk awk
3021do
3022  # Extract the first word of "$ac_prog", so it can be a program name with args.
3023set dummy $ac_prog; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_AWK+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$AWK"; then
3030  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039    ac_cv_prog_AWK="$ac_prog"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049AWK=$ac_cv_prog_AWK
3050if test -n "$AWK"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3052$as_echo "$AWK" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058
3059  test -n "$AWK" && break
3060done
3061
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3064set x ${MAKE-make}
3065ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3066if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  cat >conftest.make <<\_ACEOF
3070SHELL = /bin/sh
3071all:
3072	@echo '@@@%%%=$(MAKE)=@@@%%%'
3073_ACEOF
3074# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3075case `${MAKE-make} -f conftest.make 2>/dev/null` in
3076  *@@@%%%=?*=@@@%%%*)
3077    eval ac_cv_prog_make_${ac_make}_set=yes;;
3078  *)
3079    eval ac_cv_prog_make_${ac_make}_set=no;;
3080esac
3081rm -f conftest.make
3082fi
3083if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085$as_echo "yes" >&6; }
3086  SET_MAKE=
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090  SET_MAKE="MAKE=${MAKE-make}"
3091fi
3092
3093rm -rf .tst 2>/dev/null
3094mkdir .tst 2>/dev/null
3095if test -d .tst; then
3096  am__leading_dot=.
3097else
3098  am__leading_dot=_
3099fi
3100rmdir .tst 2>/dev/null
3101
3102if test "`cd $srcdir && pwd`" != "`pwd`"; then
3103  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3104  # is not polluted with repeated "-I."
3105  am__isrc=' -I$(srcdir)'
3106  # test to see if srcdir already configured
3107  if test -f $srcdir/config.status; then
3108    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3109  fi
3110fi
3111
3112# test whether we have cygpath
3113if test -z "$CYGPATH_W"; then
3114  if (cygpath --version) >/dev/null 2>/dev/null; then
3115    CYGPATH_W='cygpath -w'
3116  else
3117    CYGPATH_W=echo
3118  fi
3119fi
3120
3121
3122# Define the identity of the package.
3123 PACKAGE='libgcrypt'
3124 VERSION='1.5.1'
3125
3126
3127cat >>confdefs.h <<_ACEOF
3128#define PACKAGE "$PACKAGE"
3129_ACEOF
3130
3131
3132cat >>confdefs.h <<_ACEOF
3133#define VERSION "$VERSION"
3134_ACEOF
3135
3136# Some tools Automake needs.
3137
3138ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3139
3140
3141AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3142
3143
3144AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3145
3146
3147AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3148
3149
3150MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3151
3152# We need awk for the "check" target.  The system "awk" is bad on
3153# some platforms.
3154# Always define AMTAR for backward compatibility.  Yes, it's still used
3155# in the wild :-(  We should find a proper way to deprecate it ...
3156AMTAR='$${TAR-tar}'
3157
3158am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3159
3160
3161
3162
3163
3164ac_config_headers="$ac_config_headers config.h"
3165
3166
3167
3168# Make sure we can run config.sub.
3169$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3170  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3171
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3173$as_echo_n "checking build system type... " >&6; }
3174if ${ac_cv_build+:} false; then :
3175  $as_echo_n "(cached) " >&6
3176else
3177  ac_build_alias=$build_alias
3178test "x$ac_build_alias" = x &&
3179  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3180test "x$ac_build_alias" = x &&
3181  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3182ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3183  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3184
3185fi
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3187$as_echo "$ac_cv_build" >&6; }
3188case $ac_cv_build in
3189*-*-*) ;;
3190*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3191esac
3192build=$ac_cv_build
3193ac_save_IFS=$IFS; IFS='-'
3194set x $ac_cv_build
3195shift
3196build_cpu=$1
3197build_vendor=$2
3198shift; shift
3199# Remember, the first character of IFS is used to create $*,
3200# except with old shells:
3201build_os=$*
3202IFS=$ac_save_IFS
3203case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3204
3205
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3207$as_echo_n "checking host system type... " >&6; }
3208if ${ac_cv_host+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test "x$host_alias" = x; then
3212  ac_cv_host=$ac_cv_build
3213else
3214  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3215    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3216fi
3217
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3220$as_echo "$ac_cv_host" >&6; }
3221case $ac_cv_host in
3222*-*-*) ;;
3223*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3224esac
3225host=$ac_cv_host
3226ac_save_IFS=$IFS; IFS='-'
3227set x $ac_cv_host
3228shift
3229host_cpu=$1
3230host_vendor=$2
3231shift; shift
3232# Remember, the first character of IFS is used to create $*,
3233# except with old shells:
3234host_os=$*
3235IFS=$ac_save_IFS
3236case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3237
3238
3239
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3241$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3242    # Check whether --enable-maintainer-mode was given.
3243if test "${enable_maintainer_mode+set}" = set; then :
3244  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3245else
3246  USE_MAINTAINER_MODE=no
3247fi
3248
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3250$as_echo "$USE_MAINTAINER_MODE" >&6; }
3251   if test $USE_MAINTAINER_MODE = yes; then
3252  MAINTAINER_MODE_TRUE=
3253  MAINTAINER_MODE_FALSE='#'
3254else
3255  MAINTAINER_MODE_TRUE='#'
3256  MAINTAINER_MODE_FALSE=
3257fi
3258
3259  MAINT=$MAINTAINER_MODE_TRUE
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276cat >>confdefs.h <<_ACEOF
3277#define PACKAGE "$PACKAGE"
3278_ACEOF
3279
3280
3281cat >>confdefs.h <<_ACEOF
3282#define VERSION "$VERSION"
3283_ACEOF
3284
3285VERSION_NUMBER=0x010501
3286
3287
3288
3289######################
3290##  Basic checks.  ### (we need some results later on (e.g. $GCC)
3291######################
3292
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3294$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3295set x ${MAKE-make}
3296ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3297if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  cat >conftest.make <<\_ACEOF
3301SHELL = /bin/sh
3302all:
3303	@echo '@@@%%%=$(MAKE)=@@@%%%'
3304_ACEOF
3305# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3306case `${MAKE-make} -f conftest.make 2>/dev/null` in
3307  *@@@%%%=?*=@@@%%%*)
3308    eval ac_cv_prog_make_${ac_make}_set=yes;;
3309  *)
3310    eval ac_cv_prog_make_${ac_make}_set=no;;
3311esac
3312rm -f conftest.make
3313fi
3314if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317  SET_MAKE=
3318else
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321  SET_MAKE="MAKE=${MAKE-make}"
3322fi
3323
3324missing_dir=`cd $ac_aux_dir && pwd`
3325
3326ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
3327
3328
3329AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3330
3331
3332AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
3333
3334
3335AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3336
3337# AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
3338ac_ext=c
3339ac_cpp='$CPP $CPPFLAGS'
3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343if test -n "$ac_tool_prefix"; then
3344  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345set dummy ${ac_tool_prefix}gcc; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if ${ac_cv_prog_CC+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  if test -n "$CC"; then
3352  ac_cv_prog_CC="$CC" # Let the user override the test.
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357  IFS=$as_save_IFS
3358  test -z "$as_dir" && as_dir=.
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363    break 2
3364  fi
3365done
3366  done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
3373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374$as_echo "$CC" >&6; }
3375else
3376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
3378fi
3379
3380
3381fi
3382if test -z "$ac_cv_prog_CC"; then
3383  ac_ct_CC=$CC
3384  # Extract the first word of "gcc", so it can be a program name with args.
3385set dummy gcc; ac_word=$2
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
3388if ${ac_cv_prog_ac_ct_CC+:} false; then :
3389  $as_echo_n "(cached) " >&6
3390else
3391  if test -n "$ac_ct_CC"; then
3392  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393else
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397  IFS=$as_save_IFS
3398  test -z "$as_dir" && as_dir=.
3399    for ac_exec_ext in '' $ac_executable_extensions; do
3400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401    ac_cv_prog_ac_ct_CC="gcc"
3402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403    break 2
3404  fi
3405done
3406  done
3407IFS=$as_save_IFS
3408
3409fi
3410fi
3411ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412if test -n "$ac_ct_CC"; then
3413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414$as_echo "$ac_ct_CC" >&6; }
3415else
3416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418fi
3419
3420  if test "x$ac_ct_CC" = x; then
3421    CC=""
3422  else
3423    case $cross_compiling:$ac_tool_warned in
3424yes:)
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427ac_tool_warned=yes ;;
3428esac
3429    CC=$ac_ct_CC
3430  fi
3431else
3432  CC="$ac_cv_prog_CC"
3433fi
3434
3435if test -z "$CC"; then
3436          if test -n "$ac_tool_prefix"; then
3437    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3438set dummy ${ac_tool_prefix}cc; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if ${ac_cv_prog_CC+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  if test -n "$CC"; then
3445  ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450  IFS=$as_save_IFS
3451  test -z "$as_dir" && as_dir=.
3452    for ac_exec_ext in '' $ac_executable_extensions; do
3453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454    ac_cv_prog_CC="${ac_tool_prefix}cc"
3455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456    break 2
3457  fi
3458done
3459  done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474  fi
3475fi
3476if test -z "$CC"; then
3477  # Extract the first word of "cc", so it can be a program name with args.
3478set dummy cc; ac_word=$2
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
3481if ${ac_cv_prog_CC+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  if test -n "$CC"; then
3485  ac_cv_prog_CC="$CC" # Let the user override the test.
3486else
3487  ac_prog_rejected=no
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  test -z "$as_dir" && as_dir=.
3493    for ac_exec_ext in '' $ac_executable_extensions; do
3494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496       ac_prog_rejected=yes
3497       continue
3498     fi
3499    ac_cv_prog_CC="cc"
3500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507if test $ac_prog_rejected = yes; then
3508  # We found a bogon in the path, so make sure we never use it.
3509  set dummy $ac_cv_prog_CC
3510  shift
3511  if test $# != 0; then
3512    # We chose a different compiler from the bogus one.
3513    # However, it has the same basename, so the bogon will be chosen
3514    # first if we set CC to just the basename; use the full file name.
3515    shift
3516    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3517  fi
3518fi
3519fi
3520fi
3521CC=$ac_cv_prog_CC
3522if test -n "$CC"; then
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524$as_echo "$CC" >&6; }
3525else
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527$as_echo "no" >&6; }
3528fi
3529
3530
3531fi
3532if test -z "$CC"; then
3533  if test -n "$ac_tool_prefix"; then
3534  for ac_prog in cl.exe
3535  do
3536    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539$as_echo_n "checking for $ac_word... " >&6; }
3540if ${ac_cv_prog_CC+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  if test -n "$CC"; then
3544  ac_cv_prog_CC="$CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551    for ac_exec_ext in '' $ac_executable_extensions; do
3552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555    break 2
3556  fi
3557done
3558  done
3559IFS=$as_save_IFS
3560
3561fi
3562fi
3563CC=$ac_cv_prog_CC
3564if test -n "$CC"; then
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566$as_echo "$CC" >&6; }
3567else
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; }
3570fi
3571
3572
3573    test -n "$CC" && break
3574  done
3575fi
3576if test -z "$CC"; then
3577  ac_ct_CC=$CC
3578  for ac_prog in cl.exe
3579do
3580  # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583$as_echo_n "checking for $ac_word... " >&6; }
3584if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  if test -n "$ac_ct_CC"; then
3588  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593  IFS=$as_save_IFS
3594  test -z "$as_dir" && as_dir=.
3595    for ac_exec_ext in '' $ac_executable_extensions; do
3596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597    ac_cv_prog_ac_ct_CC="$ac_prog"
3598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599    break 2
3600  fi
3601done
3602  done
3603IFS=$as_save_IFS
3604
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610$as_echo "$ac_ct_CC" >&6; }
3611else
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
3614fi
3615
3616
3617  test -n "$ac_ct_CC" && break
3618done
3619
3620  if test "x$ac_ct_CC" = x; then
3621    CC=""
3622  else
3623    case $cross_compiling:$ac_tool_warned in
3624yes:)
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627ac_tool_warned=yes ;;
3628esac
3629    CC=$ac_ct_CC
3630  fi
3631fi
3632
3633fi
3634
3635
3636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638as_fn_error $? "no acceptable C compiler found in \$PATH
3639See \`config.log' for more details" "$LINENO" 5; }
3640
3641# Provide some information about the compiler.
3642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643set X $ac_compile
3644ac_compiler=$2
3645for ac_option in --version -v -V -qversion; do
3646  { { ac_try="$ac_compiler $ac_option >&5"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652$as_echo "$ac_try_echo"; } >&5
3653  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654  ac_status=$?
3655  if test -s conftest.err; then
3656    sed '10a\
3657... rest of stderr output deleted ...
3658         10q' conftest.err >conftest.er1
3659    cat conftest.er1 >&5
3660  fi
3661  rm -f conftest.er1 conftest.err
3662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663  test $ac_status = 0; }
3664done
3665
3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668
3669int
3670main ()
3671{
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677ac_clean_files_save=$ac_clean_files
3678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679# Try to create an executable without -o first, disregard a.out.
3680# It will help us diagnose broken compilers, and finding out an intuition
3681# of exeext.
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683$as_echo_n "checking whether the C compiler works... " >&6; }
3684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685
3686# The possible output files:
3687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3688
3689ac_rmfiles=
3690for ac_file in $ac_files
3691do
3692  case $ac_file in
3693    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3695  esac
3696done
3697rm -f $ac_rmfiles
3698
3699if { { ac_try="$ac_link_default"
3700case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705$as_echo "$ac_try_echo"; } >&5
3706  (eval "$ac_link_default") 2>&5
3707  ac_status=$?
3708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709  test $ac_status = 0; }; then :
3710  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3712# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3713# so that the user can short-circuit this test for compilers unknown to
3714# Autoconf.
3715for ac_file in $ac_files ''
3716do
3717  test -f "$ac_file" || continue
3718  case $ac_file in
3719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3720	;;
3721    [ab].out )
3722	# We found the default executable, but exeext='' is most
3723	# certainly right.
3724	break;;
3725    *.* )
3726	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727	then :; else
3728	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3729	fi
3730	# We set ac_cv_exeext here because the later test for it is not
3731	# safe: cross compilers may not add the suffix if given an `-o'
3732	# argument, so we may need to know it at that point already.
3733	# Even if this section looks crufty: it has the advantage of
3734	# actually working.
3735	break;;
3736    * )
3737	break;;
3738  esac
3739done
3740test "$ac_cv_exeext" = no && ac_cv_exeext=
3741
3742else
3743  ac_file=''
3744fi
3745if test -z "$ac_file"; then :
3746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
3748$as_echo "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753as_fn_error 77 "C compiler cannot create executables
3754See \`config.log' for more details" "$LINENO" 5; }
3755else
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757$as_echo "yes" >&6; }
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760$as_echo_n "checking for C compiler default output file name... " >&6; }
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762$as_echo "$ac_file" >&6; }
3763ac_exeext=$ac_cv_exeext
3764
3765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766ac_clean_files=$ac_clean_files_save
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768$as_echo_n "checking for suffix of executables... " >&6; }
3769if { { ac_try="$ac_link"
3770case "(($ac_try" in
3771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772  *) ac_try_echo=$ac_try;;
3773esac
3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776  (eval "$ac_link") 2>&5
3777  ac_status=$?
3778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779  test $ac_status = 0; }; then :
3780  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3782# work properly (i.e., refer to `conftest.exe'), while it won't with
3783# `rm'.
3784for ac_file in conftest.exe conftest conftest.*; do
3785  test -f "$ac_file" || continue
3786  case $ac_file in
3787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789	  break;;
3790    * ) break;;
3791  esac
3792done
3793else
3794  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797See \`config.log' for more details" "$LINENO" 5; }
3798fi
3799rm -f conftest conftest$ac_cv_exeext
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801$as_echo "$ac_cv_exeext" >&6; }
3802
3803rm -f conftest.$ac_ext
3804EXEEXT=$ac_cv_exeext
3805ac_exeext=$EXEEXT
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808#include <stdio.h>
3809int
3810main ()
3811{
3812FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819ac_clean_files="$ac_clean_files conftest.out"
3820# Check that the compiler produces executables we can run.  If not, either
3821# the compiler is broken, or we cross compile.
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823$as_echo_n "checking whether we are cross compiling... " >&6; }
3824if test "$cross_compiling" != yes; then
3825  { { ac_try="$ac_link"
3826case "(($ac_try" in
3827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828  *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831$as_echo "$ac_try_echo"; } >&5
3832  (eval "$ac_link") 2>&5
3833  ac_status=$?
3834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835  test $ac_status = 0; }
3836  if { ac_try='./conftest$ac_cv_exeext'
3837  { { case "(($ac_try" in
3838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839  *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842$as_echo "$ac_try_echo"; } >&5
3843  (eval "$ac_try") 2>&5
3844  ac_status=$?
3845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846  test $ac_status = 0; }; }; then
3847    cross_compiling=no
3848  else
3849    if test "$cross_compiling" = maybe; then
3850	cross_compiling=yes
3851    else
3852	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854as_fn_error $? "cannot run C compiled programs.
3855If you meant to cross compile, use \`--host'.
3856See \`config.log' for more details" "$LINENO" 5; }
3857    fi
3858  fi
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861$as_echo "$cross_compiling" >&6; }
3862
3863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864ac_clean_files=$ac_clean_files_save
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866$as_echo_n "checking for suffix of object files... " >&6; }
3867if ${ac_cv_objext+:} false; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881rm -f conftest.o conftest.obj
3882if { { ac_try="$ac_compile"
3883case "(($ac_try" in
3884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885  *) ac_try_echo=$ac_try;;
3886esac
3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888$as_echo "$ac_try_echo"; } >&5
3889  (eval "$ac_compile") 2>&5
3890  ac_status=$?
3891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892  test $ac_status = 0; }; then :
3893  for ac_file in conftest.o conftest.obj conftest.*; do
3894  test -f "$ac_file" || continue;
3895  case $ac_file in
3896    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3897    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3898       break;;
3899  esac
3900done
3901else
3902  $as_echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
3904
3905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907as_fn_error $? "cannot compute suffix of object files: cannot compile
3908See \`config.log' for more details" "$LINENO" 5; }
3909fi
3910rm -f conftest.$ac_cv_objext conftest.$ac_ext
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3913$as_echo "$ac_cv_objext" >&6; }
3914OBJEXT=$ac_cv_objext
3915ac_objext=$OBJEXT
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3917$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3918if ${ac_cv_c_compiler_gnu+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h.  */
3923
3924int
3925main ()
3926{
3927#ifndef __GNUC__
3928       choke me
3929#endif
3930
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935if ac_fn_c_try_compile "$LINENO"; then :
3936  ac_compiler_gnu=yes
3937else
3938  ac_compiler_gnu=no
3939fi
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941ac_cv_c_compiler_gnu=$ac_compiler_gnu
3942
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3945$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3946if test $ac_compiler_gnu = yes; then
3947  GCC=yes
3948else
3949  GCC=
3950fi
3951ac_test_CFLAGS=${CFLAGS+set}
3952ac_save_CFLAGS=$CFLAGS
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3954$as_echo_n "checking whether $CC accepts -g... " >&6; }
3955if ${ac_cv_prog_cc_g+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  ac_save_c_werror_flag=$ac_c_werror_flag
3959   ac_c_werror_flag=yes
3960   ac_cv_prog_cc_g=no
3961   CFLAGS="-g"
3962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964
3965int
3966main ()
3967{
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973if ac_fn_c_try_compile "$LINENO"; then :
3974  ac_cv_prog_cc_g=yes
3975else
3976  CFLAGS=""
3977      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979
3980int
3981main ()
3982{
3983
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988if ac_fn_c_try_compile "$LINENO"; then :
3989
3990else
3991  ac_c_werror_flag=$ac_save_c_werror_flag
3992	 CFLAGS="-g"
3993	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then :
4005  ac_cv_prog_cc_g=yes
4006fi
4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008fi
4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010fi
4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012   ac_c_werror_flag=$ac_save_c_werror_flag
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4015$as_echo "$ac_cv_prog_cc_g" >&6; }
4016if test "$ac_test_CFLAGS" = set; then
4017  CFLAGS=$ac_save_CFLAGS
4018elif test $ac_cv_prog_cc_g = yes; then
4019  if test "$GCC" = yes; then
4020    CFLAGS="-g -O2"
4021  else
4022    CFLAGS="-g"
4023  fi
4024else
4025  if test "$GCC" = yes; then
4026    CFLAGS="-O2"
4027  else
4028    CFLAGS=
4029  fi
4030fi
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4033if ${ac_cv_prog_cc_c89+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  ac_cv_prog_cc_c89=no
4037ac_save_CC=$CC
4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h.  */
4040#include <stdarg.h>
4041#include <stdio.h>
4042struct stat;
4043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4044struct buf { int x; };
4045FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046static char *e (p, i)
4047     char **p;
4048     int i;
4049{
4050  return p[i];
4051}
4052static char *f (char * (*g) (char **, int), char **p, ...)
4053{
4054  char *s;
4055  va_list v;
4056  va_start (v,p);
4057  s = g (p, va_arg (v,int));
4058  va_end (v);
4059  return s;
4060}
4061
4062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4063   function prototypes and stuff, but not '\xHH' hex character constants.
4064   These don't provoke an error unfortunately, instead are silently treated
4065   as 'x'.  The following induces an error, until -std is added to get
4066   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4067   array size at least.  It's necessary to write '\x00'==0 to get something
4068   that's true only with -std.  */
4069int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4070
4071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072   inside strings and character constants.  */
4073#define FOO(x) 'x'
4074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
4076int test (int i, double x);
4077struct s1 {int (*f) (int a);};
4078struct s2 {int (*f) (double a);};
4079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080int argc;
4081char **argv;
4082int
4083main ()
4084{
4085return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4092do
4093  CC="$ac_save_CC $ac_arg"
4094  if ac_fn_c_try_compile "$LINENO"; then :
4095  ac_cv_prog_cc_c89=$ac_arg
4096fi
4097rm -f core conftest.err conftest.$ac_objext
4098  test "x$ac_cv_prog_cc_c89" != "xno" && break
4099done
4100rm -f conftest.$ac_ext
4101CC=$ac_save_CC
4102
4103fi
4104# AC_CACHE_VAL
4105case "x$ac_cv_prog_cc_c89" in
4106  x)
4107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108$as_echo "none needed" >&6; } ;;
4109  xno)
4110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111$as_echo "unsupported" >&6; } ;;
4112  *)
4113    CC="$CC $ac_cv_prog_cc_c89"
4114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4116esac
4117if test "x$ac_cv_prog_cc_c89" != xno; then :
4118
4119fi
4120
4121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126DEPDIR="${am__leading_dot}deps"
4127
4128ac_config_commands="$ac_config_commands depfiles"
4129
4130
4131am_make=${MAKE-make}
4132cat > confinc << 'END'
4133am__doit:
4134	@echo this is the am__doit target
4135.PHONY: am__doit
4136END
4137# If we don't find an include directive, just comment out the code.
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4139$as_echo_n "checking for style of include used by $am_make... " >&6; }
4140am__include="#"
4141am__quote=
4142_am_result=none
4143# First try GNU make style include.
4144echo "include confinc" > confmf
4145# Ignore all kinds of additional output from `make'.
4146case `$am_make -s -f confmf 2> /dev/null` in #(
4147*the\ am__doit\ target*)
4148  am__include=include
4149  am__quote=
4150  _am_result=GNU
4151  ;;
4152esac
4153# Now try BSD make style include.
4154if test "$am__include" = "#"; then
4155   echo '.include "confinc"' > confmf
4156   case `$am_make -s -f confmf 2> /dev/null` in #(
4157   *the\ am__doit\ target*)
4158     am__include=.include
4159     am__quote="\""
4160     _am_result=BSD
4161     ;;
4162   esac
4163fi
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4167$as_echo "$_am_result" >&6; }
4168rm -f confinc confmf
4169
4170# Check whether --enable-dependency-tracking was given.
4171if test "${enable_dependency_tracking+set}" = set; then :
4172  enableval=$enable_dependency_tracking;
4173fi
4174
4175if test "x$enable_dependency_tracking" != xno; then
4176  am_depcomp="$ac_aux_dir/depcomp"
4177  AMDEPBACKSLASH='\'
4178  am__nodep='_no'
4179fi
4180 if test "x$enable_dependency_tracking" != xno; then
4181  AMDEP_TRUE=
4182  AMDEP_FALSE='#'
4183else
4184  AMDEP_TRUE='#'
4185  AMDEP_FALSE=
4186fi
4187
4188
4189
4190depcc="$CC"   am_compiler_list=
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4193$as_echo_n "checking dependency style of $depcc... " >&6; }
4194if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4198  # We make a subdir and do the tests there.  Otherwise we can end up
4199  # making bogus files that we don't know about and never remove.  For
4200  # instance it was reported that on HP-UX the gcc test will end up
4201  # making a dummy file named `D' -- because `-MD' means `put the output
4202  # in D'.
4203  rm -rf conftest.dir
4204  mkdir conftest.dir
4205  # Copy depcomp to subdir because otherwise we won't find it if we're
4206  # using a relative directory.
4207  cp "$am_depcomp" conftest.dir
4208  cd conftest.dir
4209  # We will build objects and dependencies in a subdirectory because
4210  # it helps to detect inapplicable dependency modes.  For instance
4211  # both Tru64's cc and ICC support -MD to output dependencies as a
4212  # side effect of compilation, but ICC will put the dependencies in
4213  # the current directory while Tru64 will put them in the object
4214  # directory.
4215  mkdir sub
4216
4217  am_cv_CC_dependencies_compiler_type=none
4218  if test "$am_compiler_list" = ""; then
4219     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4220  fi
4221  am__universal=false
4222  case " $depcc " in #(
4223     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224     esac
4225
4226  for depmode in $am_compiler_list; do
4227    # Setup a source with many dependencies, because some compilers
4228    # like to wrap large dependency lists on column 80 (with \), and
4229    # we should not choose a depcomp mode which is confused by this.
4230    #
4231    # We need to recreate these files for each test, as the compiler may
4232    # overwrite some of them when testing with obscure command lines.
4233    # This happens at least with the AIX C compiler.
4234    : > sub/conftest.c
4235    for i in 1 2 3 4 5 6; do
4236      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4238      # Solaris 8's {/usr,}/bin/sh.
4239      touch sub/conftst$i.h
4240    done
4241    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4244    # mode.  It turns out that the SunPro C++ compiler does not properly
4245    # handle `-M -o', and we need to detect this.  Also, some Intel
4246    # versions had trouble with output in subdirs
4247    am__obj=sub/conftest.${OBJEXT-o}
4248    am__minus_obj="-o $am__obj"
4249    case $depmode in
4250    gcc)
4251      # This depmode causes a compiler race in universal mode.
4252      test "$am__universal" = false || continue
4253      ;;
4254    nosideeffect)
4255      # after this tag, mechanisms are not by side-effect, so they'll
4256      # only be used when explicitly requested
4257      if test "x$enable_dependency_tracking" = xyes; then
4258	continue
4259      else
4260	break
4261      fi
4262      ;;
4263    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4264      # This compiler won't grok `-c -o', but also, the minuso test has
4265      # not run yet.  These depmodes are late enough in the game, and
4266      # so weak that their functioning should not be impacted.
4267      am__obj=conftest.${OBJEXT-o}
4268      am__minus_obj=
4269      ;;
4270    none) break ;;
4271    esac
4272    if depmode=$depmode \
4273       source=sub/conftest.c object=$am__obj \
4274       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276         >/dev/null 2>conftest.err &&
4277       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281      # icc doesn't choke on unknown options, it will just issue warnings
4282      # or remarks (even with -Werror).  So we grep stderr for any message
4283      # that says an option was ignored or not supported.
4284      # When given -MP, icc 7.0 and 7.1 complain thusly:
4285      #   icc: Command line warning: ignoring option '-M'; no argument required
4286      # The diagnosis changed in icc 8.0:
4287      #   icc: Command line remark: option '-MP' not supported
4288      if (grep 'ignoring option' conftest.err ||
4289          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290        am_cv_CC_dependencies_compiler_type=$depmode
4291        break
4292      fi
4293    fi
4294  done
4295
4296  cd ..
4297  rm -rf conftest.dir
4298else
4299  am_cv_CC_dependencies_compiler_type=none
4300fi
4301
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4304$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4305CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306
4307 if
4308  test "x$enable_dependency_tracking" != xno \
4309  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310  am__fastdepCC_TRUE=
4311  am__fastdepCC_FALSE='#'
4312else
4313  am__fastdepCC_TRUE='#'
4314  am__fastdepCC_FALSE=
4315fi
4316
4317
4318ac_ext=c
4319ac_cpp='$CPP $CPPFLAGS'
4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4324$as_echo_n "checking how to run the C preprocessor... " >&6; }
4325# On Suns, sometimes $CPP names a directory.
4326if test -n "$CPP" && test -d "$CPP"; then
4327  CPP=
4328fi
4329if test -z "$CPP"; then
4330  if ${ac_cv_prog_CPP+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333      # Double quotes because CPP needs to be expanded
4334    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4335    do
4336      ac_preproc_ok=false
4337for ac_c_preproc_warn_flag in '' yes
4338do
4339  # Use a header file that comes with gcc, so configuring glibc
4340  # with a fresh cross-compiler works.
4341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342  # <limits.h> exists even on freestanding compilers.
4343  # On the NeXT, cc -E runs the code through the compiler's parser,
4344  # not just through cpp. "Syntax error" is here to catch this case.
4345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347#ifdef __STDC__
4348# include <limits.h>
4349#else
4350# include <assert.h>
4351#endif
4352		     Syntax error
4353_ACEOF
4354if ac_fn_c_try_cpp "$LINENO"; then :
4355
4356else
4357  # Broken: fails on valid input.
4358continue
4359fi
4360rm -f conftest.err conftest.i conftest.$ac_ext
4361
4362  # OK, works on sane cases.  Now check whether nonexistent headers
4363  # can be detected and how.
4364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h.  */
4366#include <ac_nonexistent.h>
4367_ACEOF
4368if ac_fn_c_try_cpp "$LINENO"; then :
4369  # Broken: success on invalid input.
4370continue
4371else
4372  # Passes both tests.
4373ac_preproc_ok=:
4374break
4375fi
4376rm -f conftest.err conftest.i conftest.$ac_ext
4377
4378done
4379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380rm -f conftest.i conftest.err conftest.$ac_ext
4381if $ac_preproc_ok; then :
4382  break
4383fi
4384
4385    done
4386    ac_cv_prog_CPP=$CPP
4387
4388fi
4389  CPP=$ac_cv_prog_CPP
4390else
4391  ac_cv_prog_CPP=$CPP
4392fi
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4394$as_echo "$CPP" >&6; }
4395ac_preproc_ok=false
4396for ac_c_preproc_warn_flag in '' yes
4397do
4398  # Use a header file that comes with gcc, so configuring glibc
4399  # with a fresh cross-compiler works.
4400  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401  # <limits.h> exists even on freestanding compilers.
4402  # On the NeXT, cc -E runs the code through the compiler's parser,
4403  # not just through cpp. "Syntax error" is here to catch this case.
4404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h.  */
4406#ifdef __STDC__
4407# include <limits.h>
4408#else
4409# include <assert.h>
4410#endif
4411		     Syntax error
4412_ACEOF
4413if ac_fn_c_try_cpp "$LINENO"; then :
4414
4415else
4416  # Broken: fails on valid input.
4417continue
4418fi
4419rm -f conftest.err conftest.i conftest.$ac_ext
4420
4421  # OK, works on sane cases.  Now check whether nonexistent headers
4422  # can be detected and how.
4423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#include <ac_nonexistent.h>
4426_ACEOF
4427if ac_fn_c_try_cpp "$LINENO"; then :
4428  # Broken: success on invalid input.
4429continue
4430else
4431  # Passes both tests.
4432ac_preproc_ok=:
4433break
4434fi
4435rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437done
4438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439rm -f conftest.i conftest.err conftest.$ac_ext
4440if $ac_preproc_ok; then :
4441
4442else
4443  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4446See \`config.log' for more details" "$LINENO" 5; }
4447fi
4448
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455if test "x$CC" != xcc; then
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4457$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4458else
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4460$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4461fi
4462set dummy $CC; ac_cc=`$as_echo "$2" |
4463		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4464if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h.  */
4469
4470int
4471main ()
4472{
4473
4474  ;
4475  return 0;
4476}
4477_ACEOF
4478# Make sure it works both with $CC and with simple cc.
4479# We do the test twice because some compilers refuse to overwrite an
4480# existing .o file with -o, though they will create one.
4481ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4482rm -f conftest2.*
4483if { { case "(($ac_try" in
4484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485  *) ac_try_echo=$ac_try;;
4486esac
4487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488$as_echo "$ac_try_echo"; } >&5
4489  (eval "$ac_try") 2>&5
4490  ac_status=$?
4491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492  test $ac_status = 0; } &&
4493   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495  *) ac_try_echo=$ac_try;;
4496esac
4497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498$as_echo "$ac_try_echo"; } >&5
4499  (eval "$ac_try") 2>&5
4500  ac_status=$?
4501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502  test $ac_status = 0; };
4503then
4504  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4505  if test "x$CC" != xcc; then
4506    # Test first that cc exists at all.
4507    if { ac_try='cc -c conftest.$ac_ext >&5'
4508  { { case "(($ac_try" in
4509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510  *) ac_try_echo=$ac_try;;
4511esac
4512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513$as_echo "$ac_try_echo"; } >&5
4514  (eval "$ac_try") 2>&5
4515  ac_status=$?
4516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517  test $ac_status = 0; }; }; then
4518      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4519      rm -f conftest2.*
4520      if { { case "(($ac_try" in
4521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522  *) ac_try_echo=$ac_try;;
4523esac
4524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525$as_echo "$ac_try_echo"; } >&5
4526  (eval "$ac_try") 2>&5
4527  ac_status=$?
4528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529  test $ac_status = 0; } &&
4530	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532  *) ac_try_echo=$ac_try;;
4533esac
4534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535$as_echo "$ac_try_echo"; } >&5
4536  (eval "$ac_try") 2>&5
4537  ac_status=$?
4538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539  test $ac_status = 0; };
4540      then
4541	# cc works too.
4542	:
4543      else
4544	# cc exists but doesn't like -o.
4545	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4546      fi
4547    fi
4548  fi
4549else
4550  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4551fi
4552rm -f core conftest*
4553
4554fi
4555if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557$as_echo "yes" >&6; }
4558else
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560$as_echo "no" >&6; }
4561
4562$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4563
4564fi
4565
4566# FIXME: we rely on the cache variable name because
4567# there is no other way.
4568set dummy $CC
4569am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4570eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4571if test "$am_t" != yes; then
4572   # Losing compiler, so override with the script.
4573   # FIXME: It is wrong to rewrite CC.
4574   # But if we don't then we get into trouble of one sort or another.
4575   # A longer-term fix would be to have automake use am__CC in this case,
4576   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4577   CC="$am_aux_dir/compile $CC"
4578fi
4579
4580
4581# By default we simply use the C compiler to build assembly code.
4582
4583test "${CCAS+set}" = set || CCAS=$CC
4584test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4585
4586
4587
4588depcc="$CCAS"   am_compiler_list=
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4591$as_echo_n "checking dependency style of $depcc... " >&6; }
4592if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596  # We make a subdir and do the tests there.  Otherwise we can end up
4597  # making bogus files that we don't know about and never remove.  For
4598  # instance it was reported that on HP-UX the gcc test will end up
4599  # making a dummy file named `D' -- because `-MD' means `put the output
4600  # in D'.
4601  rm -rf conftest.dir
4602  mkdir conftest.dir
4603  # Copy depcomp to subdir because otherwise we won't find it if we're
4604  # using a relative directory.
4605  cp "$am_depcomp" conftest.dir
4606  cd conftest.dir
4607  # We will build objects and dependencies in a subdirectory because
4608  # it helps to detect inapplicable dependency modes.  For instance
4609  # both Tru64's cc and ICC support -MD to output dependencies as a
4610  # side effect of compilation, but ICC will put the dependencies in
4611  # the current directory while Tru64 will put them in the object
4612  # directory.
4613  mkdir sub
4614
4615  am_cv_CCAS_dependencies_compiler_type=none
4616  if test "$am_compiler_list" = ""; then
4617     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4618  fi
4619  am__universal=false
4620
4621
4622  for depmode in $am_compiler_list; do
4623    # Setup a source with many dependencies, because some compilers
4624    # like to wrap large dependency lists on column 80 (with \), and
4625    # we should not choose a depcomp mode which is confused by this.
4626    #
4627    # We need to recreate these files for each test, as the compiler may
4628    # overwrite some of them when testing with obscure command lines.
4629    # This happens at least with the AIX C compiler.
4630    : > sub/conftest.c
4631    for i in 1 2 3 4 5 6; do
4632      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4633      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4634      # Solaris 8's {/usr,}/bin/sh.
4635      touch sub/conftst$i.h
4636    done
4637    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4638
4639    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4640    # mode.  It turns out that the SunPro C++ compiler does not properly
4641    # handle `-M -o', and we need to detect this.  Also, some Intel
4642    # versions had trouble with output in subdirs
4643    am__obj=sub/conftest.${OBJEXT-o}
4644    am__minus_obj="-o $am__obj"
4645    case $depmode in
4646    gcc)
4647      # This depmode causes a compiler race in universal mode.
4648      test "$am__universal" = false || continue
4649      ;;
4650    nosideeffect)
4651      # after this tag, mechanisms are not by side-effect, so they'll
4652      # only be used when explicitly requested
4653      if test "x$enable_dependency_tracking" = xyes; then
4654	continue
4655      else
4656	break
4657      fi
4658      ;;
4659    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4660      # This compiler won't grok `-c -o', but also, the minuso test has
4661      # not run yet.  These depmodes are late enough in the game, and
4662      # so weak that their functioning should not be impacted.
4663      am__obj=conftest.${OBJEXT-o}
4664      am__minus_obj=
4665      ;;
4666    none) break ;;
4667    esac
4668    if depmode=$depmode \
4669       source=sub/conftest.c object=$am__obj \
4670       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4671       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4672         >/dev/null 2>conftest.err &&
4673       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4674       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4675       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4676       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4677      # icc doesn't choke on unknown options, it will just issue warnings
4678      # or remarks (even with -Werror).  So we grep stderr for any message
4679      # that says an option was ignored or not supported.
4680      # When given -MP, icc 7.0 and 7.1 complain thusly:
4681      #   icc: Command line warning: ignoring option '-M'; no argument required
4682      # The diagnosis changed in icc 8.0:
4683      #   icc: Command line remark: option '-MP' not supported
4684      if (grep 'ignoring option' conftest.err ||
4685          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4686        am_cv_CCAS_dependencies_compiler_type=$depmode
4687        break
4688      fi
4689    fi
4690  done
4691
4692  cd ..
4693  rm -rf conftest.dir
4694else
4695  am_cv_CCAS_dependencies_compiler_type=none
4696fi
4697
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4700$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4701CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4702
4703 if
4704  test "x$enable_dependency_tracking" != xno \
4705  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4706  am__fastdepCCAS_TRUE=
4707  am__fastdepCCAS_FALSE='#'
4708else
4709  am__fastdepCCAS_TRUE='#'
4710  am__fastdepCCAS_FALSE=
4711fi
4712
4713
4714
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4716$as_echo_n "checking for library containing strerror... " >&6; }
4717if ${ac_cv_search_strerror+:} false; then :
4718  $as_echo_n "(cached) " >&6
4719else
4720  ac_func_search_save_LIBS=$LIBS
4721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h.  */
4723
4724/* Override any GCC internal prototype to avoid an error.
4725   Use char because int might match the return type of a GCC
4726   builtin and then its argument prototype would still apply.  */
4727#ifdef __cplusplus
4728extern "C"
4729#endif
4730char strerror ();
4731int
4732main ()
4733{
4734return strerror ();
4735  ;
4736  return 0;
4737}
4738_ACEOF
4739for ac_lib in '' cposix; do
4740  if test -z "$ac_lib"; then
4741    ac_res="none required"
4742  else
4743    ac_res=-l$ac_lib
4744    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4745  fi
4746  if ac_fn_c_try_link "$LINENO"; then :
4747  ac_cv_search_strerror=$ac_res
4748fi
4749rm -f core conftest.err conftest.$ac_objext \
4750    conftest$ac_exeext
4751  if ${ac_cv_search_strerror+:} false; then :
4752  break
4753fi
4754done
4755if ${ac_cv_search_strerror+:} false; then :
4756
4757else
4758  ac_cv_search_strerror=no
4759fi
4760rm conftest.$ac_ext
4761LIBS=$ac_func_search_save_LIBS
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4764$as_echo "$ac_cv_search_strerror" >&6; }
4765ac_res=$ac_cv_search_strerror
4766if test "$ac_res" != no; then :
4767  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4768
4769fi
4770
4771
4772for ac_prog in gawk mawk nawk awk
4773do
4774  # Extract the first word of "$ac_prog", so it can be a program name with args.
4775set dummy $ac_prog; ac_word=$2
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777$as_echo_n "checking for $ac_word... " >&6; }
4778if ${ac_cv_prog_AWK+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  if test -n "$AWK"; then
4782  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789    for ac_exec_ext in '' $ac_executable_extensions; do
4790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791    ac_cv_prog_AWK="$ac_prog"
4792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793    break 2
4794  fi
4795done
4796  done
4797IFS=$as_save_IFS
4798
4799fi
4800fi
4801AWK=$ac_cv_prog_AWK
4802if test -n "$AWK"; then
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4804$as_echo "$AWK" >&6; }
4805else
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811  test -n "$AWK" && break
4812done
4813
4814
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4817$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4818if ${ac_cv_path_GREP+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -z "$GREP"; then
4822  ac_path_GREP_found=false
4823  # Loop through the user's path and test for each of PROGNAME-LIST
4824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829    for ac_prog in grep ggrep; do
4830    for ac_exec_ext in '' $ac_executable_extensions; do
4831      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4832      as_fn_executable_p "$ac_path_GREP" || continue
4833# Check for GNU ac_path_GREP and select it if it is found.
4834  # Check for GNU $ac_path_GREP
4835case `"$ac_path_GREP" --version 2>&1` in
4836*GNU*)
4837  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4838*)
4839  ac_count=0
4840  $as_echo_n 0123456789 >"conftest.in"
4841  while :
4842  do
4843    cat "conftest.in" "conftest.in" >"conftest.tmp"
4844    mv "conftest.tmp" "conftest.in"
4845    cp "conftest.in" "conftest.nl"
4846    $as_echo 'GREP' >> "conftest.nl"
4847    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849    as_fn_arith $ac_count + 1 && ac_count=$as_val
4850    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4851      # Best one so far, save it but keep looking for a better one
4852      ac_cv_path_GREP="$ac_path_GREP"
4853      ac_path_GREP_max=$ac_count
4854    fi
4855    # 10*(2^10) chars as input seems more than enough
4856    test $ac_count -gt 10 && break
4857  done
4858  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859esac
4860
4861      $ac_path_GREP_found && break 3
4862    done
4863  done
4864  done
4865IFS=$as_save_IFS
4866  if test -z "$ac_cv_path_GREP"; then
4867    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868  fi
4869else
4870  ac_cv_path_GREP=$GREP
4871fi
4872
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4875$as_echo "$ac_cv_path_GREP" >&6; }
4876 GREP="$ac_cv_path_GREP"
4877
4878
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4880$as_echo_n "checking for egrep... " >&6; }
4881if ${ac_cv_path_EGREP+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4885   then ac_cv_path_EGREP="$GREP -E"
4886   else
4887     if test -z "$EGREP"; then
4888  ac_path_EGREP_found=false
4889  # Loop through the user's path and test for each of PROGNAME-LIST
4890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4892do
4893  IFS=$as_save_IFS
4894  test -z "$as_dir" && as_dir=.
4895    for ac_prog in egrep; do
4896    for ac_exec_ext in '' $ac_executable_extensions; do
4897      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4898      as_fn_executable_p "$ac_path_EGREP" || continue
4899# Check for GNU ac_path_EGREP and select it if it is found.
4900  # Check for GNU $ac_path_EGREP
4901case `"$ac_path_EGREP" --version 2>&1` in
4902*GNU*)
4903  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4904*)
4905  ac_count=0
4906  $as_echo_n 0123456789 >"conftest.in"
4907  while :
4908  do
4909    cat "conftest.in" "conftest.in" >"conftest.tmp"
4910    mv "conftest.tmp" "conftest.in"
4911    cp "conftest.in" "conftest.nl"
4912    $as_echo 'EGREP' >> "conftest.nl"
4913    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915    as_fn_arith $ac_count + 1 && ac_count=$as_val
4916    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4917      # Best one so far, save it but keep looking for a better one
4918      ac_cv_path_EGREP="$ac_path_EGREP"
4919      ac_path_EGREP_max=$ac_count
4920    fi
4921    # 10*(2^10) chars as input seems more than enough
4922    test $ac_count -gt 10 && break
4923  done
4924  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925esac
4926
4927      $ac_path_EGREP_found && break 3
4928    done
4929  done
4930  done
4931IFS=$as_save_IFS
4932  if test -z "$ac_cv_path_EGREP"; then
4933    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4934  fi
4935else
4936  ac_cv_path_EGREP=$EGREP
4937fi
4938
4939   fi
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4942$as_echo "$ac_cv_path_EGREP" >&6; }
4943 EGREP="$ac_cv_path_EGREP"
4944
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4947$as_echo_n "checking for ANSI C header files... " >&6; }
4948if ${ac_cv_header_stdc+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952/* end confdefs.h.  */
4953#include <stdlib.h>
4954#include <stdarg.h>
4955#include <string.h>
4956#include <float.h>
4957
4958int
4959main ()
4960{
4961
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966if ac_fn_c_try_compile "$LINENO"; then :
4967  ac_cv_header_stdc=yes
4968else
4969  ac_cv_header_stdc=no
4970fi
4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972
4973if test $ac_cv_header_stdc = yes; then
4974  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977#include <string.h>
4978
4979_ACEOF
4980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981  $EGREP "memchr" >/dev/null 2>&1; then :
4982
4983else
4984  ac_cv_header_stdc=no
4985fi
4986rm -f conftest*
4987
4988fi
4989
4990if test $ac_cv_header_stdc = yes; then
4991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h.  */
4994#include <stdlib.h>
4995
4996_ACEOF
4997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4998  $EGREP "free" >/dev/null 2>&1; then :
4999
5000else
5001  ac_cv_header_stdc=no
5002fi
5003rm -f conftest*
5004
5005fi
5006
5007if test $ac_cv_header_stdc = yes; then
5008  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5009  if test "$cross_compiling" = yes; then :
5010  :
5011else
5012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014#include <ctype.h>
5015#include <stdlib.h>
5016#if ((' ' & 0x0FF) == 0x020)
5017# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5018# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5019#else
5020# define ISLOWER(c) \
5021		   (('a' <= (c) && (c) <= 'i') \
5022		     || ('j' <= (c) && (c) <= 'r') \
5023		     || ('s' <= (c) && (c) <= 'z'))
5024# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025#endif
5026
5027#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5028int
5029main ()
5030{
5031  int i;
5032  for (i = 0; i < 256; i++)
5033    if (XOR (islower (i), ISLOWER (i))
5034	|| toupper (i) != TOUPPER (i))
5035      return 2;
5036  return 0;
5037}
5038_ACEOF
5039if ac_fn_c_try_run "$LINENO"; then :
5040
5041else
5042  ac_cv_header_stdc=no
5043fi
5044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5045  conftest.$ac_objext conftest.beam conftest.$ac_ext
5046fi
5047
5048fi
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5051$as_echo "$ac_cv_header_stdc" >&6; }
5052if test $ac_cv_header_stdc = yes; then
5053
5054$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5055
5056fi
5057
5058# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5059for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5060		  inttypes.h stdint.h unistd.h
5061do :
5062  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5064"
5065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5066  cat >>confdefs.h <<_ACEOF
5067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5068_ACEOF
5069
5070fi
5071
5072done
5073
5074
5075
5076  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5077if test "x$ac_cv_header_minix_config_h" = xyes; then :
5078  MINIX=yes
5079else
5080  MINIX=
5081fi
5082
5083
5084  if test "$MINIX" = yes; then
5085
5086$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5087
5088
5089$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5090
5091
5092$as_echo "#define _MINIX 1" >>confdefs.h
5093
5094  fi
5095
5096
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5098$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5099if ${ac_cv_safe_to_define___extensions__+:} false; then :
5100  $as_echo_n "(cached) " >&6
5101else
5102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h.  */
5104
5105#         define __EXTENSIONS__ 1
5106          $ac_includes_default
5107int
5108main ()
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"; then :
5116  ac_cv_safe_to_define___extensions__=yes
5117else
5118  ac_cv_safe_to_define___extensions__=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5123$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5124  test $ac_cv_safe_to_define___extensions__ = yes &&
5125    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5126
5127  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5128
5129  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5130
5131  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5132
5133  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5134
5135
5136
5137
5138
5139
5140case `pwd` in
5141  *\ * | *\	*)
5142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5143$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5144esac
5145
5146
5147
5148macro_version='2.4.2'
5149macro_revision='1.3337'
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163ltmain="$ac_aux_dir/ltmain.sh"
5164
5165# Backslashify metacharacters that are still active within
5166# double-quoted strings.
5167sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5168
5169# Same as above, but do not quote variable references.
5170double_quote_subst='s/\(["`\\]\)/\\\1/g'
5171
5172# Sed substitution to delay expansion of an escaped shell variable in a
5173# double_quote_subst'ed string.
5174delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5175
5176# Sed substitution to delay expansion of an escaped single quote.
5177delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5178
5179# Sed substitution to avoid accidental globbing in evaled expressions
5180no_glob_subst='s/\*/\\\*/g'
5181
5182ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5183ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5184ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5185
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5187$as_echo_n "checking how to print strings... " >&6; }
5188# Test print first, because it will be a builtin if present.
5189if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5190   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5191  ECHO='print -r --'
5192elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5193  ECHO='printf %s\n'
5194else
5195  # Use this function as a fallback that always works.
5196  func_fallback_echo ()
5197  {
5198    eval 'cat <<_LTECHO_EOF
5199$1
5200_LTECHO_EOF'
5201  }
5202  ECHO='func_fallback_echo'
5203fi
5204
5205# func_echo_all arg...
5206# Invoke $ECHO with all args, space-separated.
5207func_echo_all ()
5208{
5209    $ECHO ""
5210}
5211
5212case "$ECHO" in
5213  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5214$as_echo "printf" >&6; } ;;
5215  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5216$as_echo "print -r" >&6; } ;;
5217  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5218$as_echo "cat" >&6; } ;;
5219esac
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5235$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5236if ${ac_cv_path_SED+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5240     for ac_i in 1 2 3 4 5 6 7; do
5241       ac_script="$ac_script$as_nl$ac_script"
5242     done
5243     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5244     { ac_script=; unset ac_script;}
5245     if test -z "$SED"; then
5246  ac_path_SED_found=false
5247  # Loop through the user's path and test for each of PROGNAME-LIST
5248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251  IFS=$as_save_IFS
5252  test -z "$as_dir" && as_dir=.
5253    for ac_prog in sed gsed; do
5254    for ac_exec_ext in '' $ac_executable_extensions; do
5255      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5256      as_fn_executable_p "$ac_path_SED" || continue
5257# Check for GNU ac_path_SED and select it if it is found.
5258  # Check for GNU $ac_path_SED
5259case `"$ac_path_SED" --version 2>&1` in
5260*GNU*)
5261  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5262*)
5263  ac_count=0
5264  $as_echo_n 0123456789 >"conftest.in"
5265  while :
5266  do
5267    cat "conftest.in" "conftest.in" >"conftest.tmp"
5268    mv "conftest.tmp" "conftest.in"
5269    cp "conftest.in" "conftest.nl"
5270    $as_echo '' >> "conftest.nl"
5271    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273    as_fn_arith $ac_count + 1 && ac_count=$as_val
5274    if test $ac_count -gt ${ac_path_SED_max-0}; then
5275      # Best one so far, save it but keep looking for a better one
5276      ac_cv_path_SED="$ac_path_SED"
5277      ac_path_SED_max=$ac_count
5278    fi
5279    # 10*(2^10) chars as input seems more than enough
5280    test $ac_count -gt 10 && break
5281  done
5282  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283esac
5284
5285      $ac_path_SED_found && break 3
5286    done
5287  done
5288  done
5289IFS=$as_save_IFS
5290  if test -z "$ac_cv_path_SED"; then
5291    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5292  fi
5293else
5294  ac_cv_path_SED=$SED
5295fi
5296
5297fi
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5299$as_echo "$ac_cv_path_SED" >&6; }
5300 SED="$ac_cv_path_SED"
5301  rm -f conftest.sed
5302
5303test -z "$SED" && SED=sed
5304Xsed="$SED -e 1s/^X//"
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5317$as_echo_n "checking for fgrep... " >&6; }
5318if ${ac_cv_path_FGREP+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5322   then ac_cv_path_FGREP="$GREP -F"
5323   else
5324     if test -z "$FGREP"; then
5325  ac_path_FGREP_found=false
5326  # Loop through the user's path and test for each of PROGNAME-LIST
5327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5329do
5330  IFS=$as_save_IFS
5331  test -z "$as_dir" && as_dir=.
5332    for ac_prog in fgrep; do
5333    for ac_exec_ext in '' $ac_executable_extensions; do
5334      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5335      as_fn_executable_p "$ac_path_FGREP" || continue
5336# Check for GNU ac_path_FGREP and select it if it is found.
5337  # Check for GNU $ac_path_FGREP
5338case `"$ac_path_FGREP" --version 2>&1` in
5339*GNU*)
5340  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5341*)
5342  ac_count=0
5343  $as_echo_n 0123456789 >"conftest.in"
5344  while :
5345  do
5346    cat "conftest.in" "conftest.in" >"conftest.tmp"
5347    mv "conftest.tmp" "conftest.in"
5348    cp "conftest.in" "conftest.nl"
5349    $as_echo 'FGREP' >> "conftest.nl"
5350    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352    as_fn_arith $ac_count + 1 && ac_count=$as_val
5353    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5354      # Best one so far, save it but keep looking for a better one
5355      ac_cv_path_FGREP="$ac_path_FGREP"
5356      ac_path_FGREP_max=$ac_count
5357    fi
5358    # 10*(2^10) chars as input seems more than enough
5359    test $ac_count -gt 10 && break
5360  done
5361  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362esac
5363
5364      $ac_path_FGREP_found && break 3
5365    done
5366  done
5367  done
5368IFS=$as_save_IFS
5369  if test -z "$ac_cv_path_FGREP"; then
5370    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371  fi
5372else
5373  ac_cv_path_FGREP=$FGREP
5374fi
5375
5376   fi
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5379$as_echo "$ac_cv_path_FGREP" >&6; }
5380 FGREP="$ac_cv_path_FGREP"
5381
5382
5383test -z "$GREP" && GREP=grep
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403# Check whether --with-gnu-ld was given.
5404if test "${with_gnu_ld+set}" = set; then :
5405  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5406else
5407  with_gnu_ld=no
5408fi
5409
5410ac_prog=ld
5411if test "$GCC" = yes; then
5412  # Check if gcc -print-prog-name=ld gives a path.
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5414$as_echo_n "checking for ld used by $CC... " >&6; }
5415  case $host in
5416  *-*-mingw*)
5417    # gcc leaves a trailing carriage return which upsets mingw
5418    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5419  *)
5420    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5421  esac
5422  case $ac_prog in
5423    # Accept absolute paths.
5424    [\\/]* | ?:[\\/]*)
5425      re_direlt='/[^/][^/]*/\.\./'
5426      # Canonicalize the pathname of ld
5427      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5428      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5429	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5430      done
5431      test -z "$LD" && LD="$ac_prog"
5432      ;;
5433  "")
5434    # If it fails, then pretend we aren't using GCC.
5435    ac_prog=ld
5436    ;;
5437  *)
5438    # If it is relative, then search for the first ld in PATH.
5439    with_gnu_ld=unknown
5440    ;;
5441  esac
5442elif test "$with_gnu_ld" = yes; then
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5444$as_echo_n "checking for GNU ld... " >&6; }
5445else
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5447$as_echo_n "checking for non-GNU ld... " >&6; }
5448fi
5449if ${lt_cv_path_LD+:} false; then :
5450  $as_echo_n "(cached) " >&6
5451else
5452  if test -z "$LD"; then
5453  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5454  for ac_dir in $PATH; do
5455    IFS="$lt_save_ifs"
5456    test -z "$ac_dir" && ac_dir=.
5457    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5458      lt_cv_path_LD="$ac_dir/$ac_prog"
5459      # Check to see if the program is GNU ld.  I'd rather use --version,
5460      # but apparently some variants of GNU ld only accept -v.
5461      # Break only if it was the GNU/non-GNU ld that we prefer.
5462      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5463      *GNU* | *'with BFD'*)
5464	test "$with_gnu_ld" != no && break
5465	;;
5466      *)
5467	test "$with_gnu_ld" != yes && break
5468	;;
5469      esac
5470    fi
5471  done
5472  IFS="$lt_save_ifs"
5473else
5474  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5475fi
5476fi
5477
5478LD="$lt_cv_path_LD"
5479if test -n "$LD"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5481$as_echo "$LD" >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5488$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5489if ${lt_cv_prog_gnu_ld+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5493case `$LD -v 2>&1 </dev/null` in
5494*GNU* | *'with BFD'*)
5495  lt_cv_prog_gnu_ld=yes
5496  ;;
5497*)
5498  lt_cv_prog_gnu_ld=no
5499  ;;
5500esac
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5503$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5504with_gnu_ld=$lt_cv_prog_gnu_ld
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5515$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5516if ${lt_cv_path_NM+:} false; then :
5517  $as_echo_n "(cached) " >&6
5518else
5519  if test -n "$NM"; then
5520  # Let the user override the test.
5521  lt_cv_path_NM="$NM"
5522else
5523  lt_nm_to_check="${ac_tool_prefix}nm"
5524  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5525    lt_nm_to_check="$lt_nm_to_check nm"
5526  fi
5527  for lt_tmp_nm in $lt_nm_to_check; do
5528    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5529    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5530      IFS="$lt_save_ifs"
5531      test -z "$ac_dir" && ac_dir=.
5532      tmp_nm="$ac_dir/$lt_tmp_nm"
5533      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5534	# Check to see if the nm accepts a BSD-compat flag.
5535	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5536	#   nm: unknown option "B" ignored
5537	# Tru64's nm complains that /dev/null is an invalid object file
5538	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5539	*/dev/null* | *'Invalid file or object type'*)
5540	  lt_cv_path_NM="$tmp_nm -B"
5541	  break
5542	  ;;
5543	*)
5544	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5545	  */dev/null*)
5546	    lt_cv_path_NM="$tmp_nm -p"
5547	    break
5548	    ;;
5549	  *)
5550	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5551	    continue # so that we can try to find one that supports BSD flags
5552	    ;;
5553	  esac
5554	  ;;
5555	esac
5556      fi
5557    done
5558    IFS="$lt_save_ifs"
5559  done
5560  : ${lt_cv_path_NM=no}
5561fi
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5564$as_echo "$lt_cv_path_NM" >&6; }
5565if test "$lt_cv_path_NM" != "no"; then
5566  NM="$lt_cv_path_NM"
5567else
5568  # Didn't find any BSD compatible name lister, look for dumpbin.
5569  if test -n "$DUMPBIN"; then :
5570    # Let the user override the test.
5571  else
5572    if test -n "$ac_tool_prefix"; then
5573  for ac_prog in dumpbin "link -dump"
5574  do
5575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if ${ac_cv_prog_DUMPBIN+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  if test -n "$DUMPBIN"; then
5583  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588  IFS=$as_save_IFS
5589  test -z "$as_dir" && as_dir=.
5590    for ac_exec_ext in '' $ac_executable_extensions; do
5591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594    break 2
5595  fi
5596done
5597  done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602DUMPBIN=$ac_cv_prog_DUMPBIN
5603if test -n "$DUMPBIN"; then
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5605$as_echo "$DUMPBIN" >&6; }
5606else
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611
5612    test -n "$DUMPBIN" && break
5613  done
5614fi
5615if test -z "$DUMPBIN"; then
5616  ac_ct_DUMPBIN=$DUMPBIN
5617  for ac_prog in dumpbin "link -dump"
5618do
5619  # Extract the first word of "$ac_prog", so it can be a program name with args.
5620set dummy $ac_prog; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$ac_ct_DUMPBIN"; then
5627  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5647if test -n "$ac_ct_DUMPBIN"; then
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5649$as_echo "$ac_ct_DUMPBIN" >&6; }
5650else
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656  test -n "$ac_ct_DUMPBIN" && break
5657done
5658
5659  if test "x$ac_ct_DUMPBIN" = x; then
5660    DUMPBIN=":"
5661  else
5662    case $cross_compiling:$ac_tool_warned in
5663yes:)
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666ac_tool_warned=yes ;;
5667esac
5668    DUMPBIN=$ac_ct_DUMPBIN
5669  fi
5670fi
5671
5672    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5673    *COFF*)
5674      DUMPBIN="$DUMPBIN -symbols"
5675      ;;
5676    *)
5677      DUMPBIN=:
5678      ;;
5679    esac
5680  fi
5681
5682  if test "$DUMPBIN" != ":"; then
5683    NM="$DUMPBIN"
5684  fi
5685fi
5686test -z "$NM" && NM=nm
5687
5688
5689
5690
5691
5692
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5694$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5695if ${lt_cv_nm_interface+:} false; then :
5696  $as_echo_n "(cached) " >&6
5697else
5698  lt_cv_nm_interface="BSD nm"
5699  echo "int some_variable = 0;" > conftest.$ac_ext
5700  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5701  (eval "$ac_compile" 2>conftest.err)
5702  cat conftest.err >&5
5703  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5704  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5705  cat conftest.err >&5
5706  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5707  cat conftest.out >&5
5708  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5709    lt_cv_nm_interface="MS dumpbin"
5710  fi
5711  rm -f conftest*
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5714$as_echo "$lt_cv_nm_interface" >&6; }
5715
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5717$as_echo_n "checking whether ln -s works... " >&6; }
5718LN_S=$as_ln_s
5719if test "$LN_S" = "ln -s"; then
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721$as_echo "yes" >&6; }
5722else
5723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5724$as_echo "no, using $LN_S" >&6; }
5725fi
5726
5727# find the maximum length of command line arguments
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5729$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5730if ${lt_cv_sys_max_cmd_len+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733    i=0
5734  teststring="ABCD"
5735
5736  case $build_os in
5737  msdosdjgpp*)
5738    # On DJGPP, this test can blow up pretty badly due to problems in libc
5739    # (any single argument exceeding 2000 bytes causes a buffer overrun
5740    # during glob expansion).  Even if it were fixed, the result of this
5741    # check would be larger than it should be.
5742    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5743    ;;
5744
5745  gnu*)
5746    # Under GNU Hurd, this test is not required because there is
5747    # no limit to the length of command line arguments.
5748    # Libtool will interpret -1 as no limit whatsoever
5749    lt_cv_sys_max_cmd_len=-1;
5750    ;;
5751
5752  cygwin* | mingw* | cegcc*)
5753    # On Win9x/ME, this test blows up -- it succeeds, but takes
5754    # about 5 minutes as the teststring grows exponentially.
5755    # Worse, since 9x/ME are not pre-emptively multitasking,
5756    # you end up with a "frozen" computer, even though with patience
5757    # the test eventually succeeds (with a max line length of 256k).
5758    # Instead, let's just punt: use the minimum linelength reported by
5759    # all of the supported platforms: 8192 (on NT/2K/XP).
5760    lt_cv_sys_max_cmd_len=8192;
5761    ;;
5762
5763  mint*)
5764    # On MiNT this can take a long time and run out of memory.
5765    lt_cv_sys_max_cmd_len=8192;
5766    ;;
5767
5768  amigaos*)
5769    # On AmigaOS with pdksh, this test takes hours, literally.
5770    # So we just punt and use a minimum line length of 8192.
5771    lt_cv_sys_max_cmd_len=8192;
5772    ;;
5773
5774  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5775    # This has been around since 386BSD, at least.  Likely further.
5776    if test -x /sbin/sysctl; then
5777      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5778    elif test -x /usr/sbin/sysctl; then
5779      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5780    else
5781      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5782    fi
5783    # And add a safety zone
5784    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5785    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5786    ;;
5787
5788  interix*)
5789    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5790    lt_cv_sys_max_cmd_len=196608
5791    ;;
5792
5793  os2*)
5794    # The test takes a long time on OS/2.
5795    lt_cv_sys_max_cmd_len=8192
5796    ;;
5797
5798  osf*)
5799    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5800    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5801    # nice to cause kernel panics so lets avoid the loop below.
5802    # First set a reasonable default.
5803    lt_cv_sys_max_cmd_len=16384
5804    #
5805    if test -x /sbin/sysconfig; then
5806      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5807        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5808      esac
5809    fi
5810    ;;
5811  sco3.2v5*)
5812    lt_cv_sys_max_cmd_len=102400
5813    ;;
5814  sysv5* | sco5v6* | sysv4.2uw2*)
5815    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5816    if test -n "$kargmax"; then
5817      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5818    else
5819      lt_cv_sys_max_cmd_len=32768
5820    fi
5821    ;;
5822  *)
5823    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5824    if test -n "$lt_cv_sys_max_cmd_len" && \
5825	test undefined != "$lt_cv_sys_max_cmd_len"; then
5826      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5827      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5828    else
5829      # Make teststring a little bigger before we do anything with it.
5830      # a 1K string should be a reasonable start.
5831      for i in 1 2 3 4 5 6 7 8 ; do
5832        teststring=$teststring$teststring
5833      done
5834      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5835      # If test is not a shell built-in, we'll probably end up computing a
5836      # maximum length that is only half of the actual maximum length, but
5837      # we can't tell.
5838      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5839	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5840	      test $i != 17 # 1/2 MB should be enough
5841      do
5842        i=`expr $i + 1`
5843        teststring=$teststring$teststring
5844      done
5845      # Only check the string length outside the loop.
5846      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5847      teststring=
5848      # Add a significant safety factor because C++ compilers can tack on
5849      # massive amounts of additional arguments before passing them to the
5850      # linker.  It appears as though 1/2 is a usable value.
5851      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5852    fi
5853    ;;
5854  esac
5855
5856fi
5857
5858if test -n $lt_cv_sys_max_cmd_len ; then
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5860$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5861else
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5863$as_echo "none" >&6; }
5864fi
5865max_cmd_len=$lt_cv_sys_max_cmd_len
5866
5867
5868
5869
5870
5871
5872: ${CP="cp -f"}
5873: ${MV="mv -f"}
5874: ${RM="rm -f"}
5875
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5877$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5878# Try some XSI features
5879xsi_shell=no
5880( _lt_dummy="a/b/c"
5881  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5882      = c,a/b,b/c, \
5883    && eval 'test $(( 1 + 1 )) -eq 2 \
5884    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5885  && xsi_shell=yes
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5887$as_echo "$xsi_shell" >&6; }
5888
5889
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5891$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5892lt_shell_append=no
5893( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5894    >/dev/null 2>&1 \
5895  && lt_shell_append=yes
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5897$as_echo "$lt_shell_append" >&6; }
5898
5899
5900if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5901  lt_unset=unset
5902else
5903  lt_unset=false
5904fi
5905
5906
5907
5908
5909
5910# test EBCDIC or ASCII
5911case `echo X|tr X '\101'` in
5912 A) # ASCII based system
5913    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5914  lt_SP2NL='tr \040 \012'
5915  lt_NL2SP='tr \015\012 \040\040'
5916  ;;
5917 *) # EBCDIC based system
5918  lt_SP2NL='tr \100 \n'
5919  lt_NL2SP='tr \r\n \100\100'
5920  ;;
5921esac
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5932$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5933if ${lt_cv_to_host_file_cmd+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  case $host in
5937  *-*-mingw* )
5938    case $build in
5939      *-*-mingw* ) # actually msys
5940        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5941        ;;
5942      *-*-cygwin* )
5943        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5944        ;;
5945      * ) # otherwise, assume *nix
5946        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5947        ;;
5948    esac
5949    ;;
5950  *-*-cygwin* )
5951    case $build in
5952      *-*-mingw* ) # actually msys
5953        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5954        ;;
5955      *-*-cygwin* )
5956        lt_cv_to_host_file_cmd=func_convert_file_noop
5957        ;;
5958      * ) # otherwise, assume *nix
5959        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5960        ;;
5961    esac
5962    ;;
5963  * ) # unhandled hosts (and "normal" native builds)
5964    lt_cv_to_host_file_cmd=func_convert_file_noop
5965    ;;
5966esac
5967
5968fi
5969
5970to_host_file_cmd=$lt_cv_to_host_file_cmd
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5972$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5973
5974
5975
5976
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5979$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5980if ${lt_cv_to_tool_file_cmd+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  #assume ordinary cross tools, or native build.
5984lt_cv_to_tool_file_cmd=func_convert_file_noop
5985case $host in
5986  *-*-mingw* )
5987    case $build in
5988      *-*-mingw* ) # actually msys
5989        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5990        ;;
5991    esac
5992    ;;
5993esac
5994
5995fi
5996
5997to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5999$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6000
6001
6002
6003
6004
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6006$as_echo_n "checking for $LD option to reload object files... " >&6; }
6007if ${lt_cv_ld_reload_flag+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  lt_cv_ld_reload_flag='-r'
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6013$as_echo "$lt_cv_ld_reload_flag" >&6; }
6014reload_flag=$lt_cv_ld_reload_flag
6015case $reload_flag in
6016"" | " "*) ;;
6017*) reload_flag=" $reload_flag" ;;
6018esac
6019reload_cmds='$LD$reload_flag -o $output$reload_objs'
6020case $host_os in
6021  cygwin* | mingw* | pw32* | cegcc*)
6022    if test "$GCC" != yes; then
6023      reload_cmds=false
6024    fi
6025    ;;
6026  darwin*)
6027    if test "$GCC" = yes; then
6028      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6029    else
6030      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6031    fi
6032    ;;
6033esac
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}objdump; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_OBJDUMP+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$OBJDUMP"; then
6052  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071OBJDUMP=$ac_cv_prog_OBJDUMP
6072if test -n "$OBJDUMP"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6074$as_echo "$OBJDUMP" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_OBJDUMP"; then
6083  ac_ct_OBJDUMP=$OBJDUMP
6084  # Extract the first word of "objdump", so it can be a program name with args.
6085set dummy objdump; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$ac_ct_OBJDUMP"; then
6092  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6112if test -n "$ac_ct_OBJDUMP"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6114$as_echo "$ac_ct_OBJDUMP" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120  if test "x$ac_ct_OBJDUMP" = x; then
6121    OBJDUMP="false"
6122  else
6123    case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129    OBJDUMP=$ac_ct_OBJDUMP
6130  fi
6131else
6132  OBJDUMP="$ac_cv_prog_OBJDUMP"
6133fi
6134
6135test -z "$OBJDUMP" && OBJDUMP=objdump
6136
6137
6138
6139
6140
6141
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6143$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6144if ${lt_cv_deplibs_check_method+:} false; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  lt_cv_file_magic_cmd='$MAGIC_CMD'
6148lt_cv_file_magic_test_file=
6149lt_cv_deplibs_check_method='unknown'
6150# Need to set the preceding variable on all platforms that support
6151# interlibrary dependencies.
6152# 'none' -- dependencies not supported.
6153# `unknown' -- same as none, but documents that we really don't know.
6154# 'pass_all' -- all dependencies passed with no checks.
6155# 'test_compile' -- check by making test program.
6156# 'file_magic [[regex]]' -- check by looking for files in library path
6157# which responds to the $file_magic_cmd with a given extended regex.
6158# If you have `file' or equivalent on your system and you're not sure
6159# whether `pass_all' will *always* work, you probably want this one.
6160
6161case $host_os in
6162aix[4-9]*)
6163  lt_cv_deplibs_check_method=pass_all
6164  ;;
6165
6166beos*)
6167  lt_cv_deplibs_check_method=pass_all
6168  ;;
6169
6170bsdi[45]*)
6171  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6172  lt_cv_file_magic_cmd='/usr/bin/file -L'
6173  lt_cv_file_magic_test_file=/shlib/libc.so
6174  ;;
6175
6176cygwin*)
6177  # func_win32_libid is a shell function defined in ltmain.sh
6178  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6179  lt_cv_file_magic_cmd='func_win32_libid'
6180  ;;
6181
6182mingw* | pw32*)
6183  # Base MSYS/MinGW do not provide the 'file' command needed by
6184  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6185  # unless we find 'file', for example because we are cross-compiling.
6186  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6187  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6188    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6189    lt_cv_file_magic_cmd='func_win32_libid'
6190  else
6191    # Keep this pattern in sync with the one in func_win32_libid.
6192    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6193    lt_cv_file_magic_cmd='$OBJDUMP -f'
6194  fi
6195  ;;
6196
6197cegcc*)
6198  # use the weaker test based on 'objdump'. See mingw*.
6199  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6200  lt_cv_file_magic_cmd='$OBJDUMP -f'
6201  ;;
6202
6203darwin* | rhapsody*)
6204  lt_cv_deplibs_check_method=pass_all
6205  ;;
6206
6207freebsd* | dragonfly*)
6208  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6209    case $host_cpu in
6210    i*86 )
6211      # Not sure whether the presence of OpenBSD here was a mistake.
6212      # Let's accept both of them until this is cleared up.
6213      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6214      lt_cv_file_magic_cmd=/usr/bin/file
6215      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6216      ;;
6217    esac
6218  else
6219    lt_cv_deplibs_check_method=pass_all
6220  fi
6221  ;;
6222
6223haiku*)
6224  lt_cv_deplibs_check_method=pass_all
6225  ;;
6226
6227hpux10.20* | hpux11*)
6228  lt_cv_file_magic_cmd=/usr/bin/file
6229  case $host_cpu in
6230  ia64*)
6231    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6232    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6233    ;;
6234  hppa*64*)
6235    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]'
6236    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6237    ;;
6238  *)
6239    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6240    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6241    ;;
6242  esac
6243  ;;
6244
6245interix[3-9]*)
6246  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6247  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6248  ;;
6249
6250irix5* | irix6* | nonstopux*)
6251  case $LD in
6252  *-32|*"-32 ") libmagic=32-bit;;
6253  *-n32|*"-n32 ") libmagic=N32;;
6254  *-64|*"-64 ") libmagic=64-bit;;
6255  *) libmagic=never-match;;
6256  esac
6257  lt_cv_deplibs_check_method=pass_all
6258  ;;
6259
6260# This must be glibc/ELF.
6261linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6262  lt_cv_deplibs_check_method=pass_all
6263  ;;
6264
6265netbsd* | netbsdelf*-gnu)
6266  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6267    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6268  else
6269    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6270  fi
6271  ;;
6272
6273newos6*)
6274  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6275  lt_cv_file_magic_cmd=/usr/bin/file
6276  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6277  ;;
6278
6279*nto* | *qnx*)
6280  lt_cv_deplibs_check_method=pass_all
6281  ;;
6282
6283openbsd*)
6284  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6285    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6286  else
6287    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6288  fi
6289  ;;
6290
6291osf3* | osf4* | osf5*)
6292  lt_cv_deplibs_check_method=pass_all
6293  ;;
6294
6295rdos*)
6296  lt_cv_deplibs_check_method=pass_all
6297  ;;
6298
6299solaris*)
6300  lt_cv_deplibs_check_method=pass_all
6301  ;;
6302
6303sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6304  lt_cv_deplibs_check_method=pass_all
6305  ;;
6306
6307sysv4 | sysv4.3*)
6308  case $host_vendor in
6309  motorola)
6310    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]'
6311    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6312    ;;
6313  ncr)
6314    lt_cv_deplibs_check_method=pass_all
6315    ;;
6316  sequent)
6317    lt_cv_file_magic_cmd='/bin/file'
6318    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6319    ;;
6320  sni)
6321    lt_cv_file_magic_cmd='/bin/file'
6322    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6323    lt_cv_file_magic_test_file=/lib/libc.so
6324    ;;
6325  siemens)
6326    lt_cv_deplibs_check_method=pass_all
6327    ;;
6328  pc)
6329    lt_cv_deplibs_check_method=pass_all
6330    ;;
6331  esac
6332  ;;
6333
6334tpf*)
6335  lt_cv_deplibs_check_method=pass_all
6336  ;;
6337esac
6338
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6341$as_echo "$lt_cv_deplibs_check_method" >&6; }
6342
6343file_magic_glob=
6344want_nocaseglob=no
6345if test "$build" = "$host"; then
6346  case $host_os in
6347  mingw* | pw32*)
6348    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6349      want_nocaseglob=yes
6350    else
6351      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6352    fi
6353    ;;
6354  esac
6355fi
6356
6357file_magic_cmd=$lt_cv_file_magic_cmd
6358deplibs_check_method=$lt_cv_deplibs_check_method
6359test -z "$deplibs_check_method" && deplibs_check_method=unknown
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382if test -n "$ac_tool_prefix"; then
6383  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6384set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if ${ac_cv_prog_DLLTOOL+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  if test -n "$DLLTOOL"; then
6391  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396  IFS=$as_save_IFS
6397  test -z "$as_dir" && as_dir=.
6398    for ac_exec_ext in '' $ac_executable_extensions; do
6399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405  done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410DLLTOOL=$ac_cv_prog_DLLTOOL
6411if test -n "$DLLTOOL"; then
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6413$as_echo "$DLLTOOL" >&6; }
6414else
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
6419
6420fi
6421if test -z "$ac_cv_prog_DLLTOOL"; then
6422  ac_ct_DLLTOOL=$DLLTOOL
6423  # Extract the first word of "dlltool", so it can be a program name with args.
6424set dummy dlltool; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  if test -n "$ac_ct_DLLTOOL"; then
6431  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438    for ac_exec_ext in '' $ac_executable_extensions; do
6439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445  done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6451if test -n "$ac_ct_DLLTOOL"; then
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6453$as_echo "$ac_ct_DLLTOOL" >&6; }
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459  if test "x$ac_ct_DLLTOOL" = x; then
6460    DLLTOOL="false"
6461  else
6462    case $cross_compiling:$ac_tool_warned in
6463yes:)
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466ac_tool_warned=yes ;;
6467esac
6468    DLLTOOL=$ac_ct_DLLTOOL
6469  fi
6470else
6471  DLLTOOL="$ac_cv_prog_DLLTOOL"
6472fi
6473
6474test -z "$DLLTOOL" && DLLTOOL=dlltool
6475
6476
6477
6478
6479
6480
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6483$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6484if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  lt_cv_sharedlib_from_linklib_cmd='unknown'
6488
6489case $host_os in
6490cygwin* | mingw* | pw32* | cegcc*)
6491  # two different shell functions defined in ltmain.sh
6492  # decide which to use based on capabilities of $DLLTOOL
6493  case `$DLLTOOL --help 2>&1` in
6494  *--identify-strict*)
6495    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6496    ;;
6497  *)
6498    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6499    ;;
6500  esac
6501  ;;
6502*)
6503  # fallback: assume linklib IS sharedlib
6504  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6505  ;;
6506esac
6507
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6510$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6511sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6512test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6513
6514
6515
6516
6517
6518
6519
6520if test -n "$ac_tool_prefix"; then
6521  for ac_prog in ar
6522  do
6523    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526$as_echo_n "checking for $ac_word... " >&6; }
6527if ${ac_cv_prog_AR+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  if test -n "$AR"; then
6531  ac_cv_prog_AR="$AR" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536  IFS=$as_save_IFS
6537  test -z "$as_dir" && as_dir=.
6538    for ac_exec_ext in '' $ac_executable_extensions; do
6539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542    break 2
6543  fi
6544done
6545  done
6546IFS=$as_save_IFS
6547
6548fi
6549fi
6550AR=$ac_cv_prog_AR
6551if test -n "$AR"; then
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6553$as_echo "$AR" >&6; }
6554else
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
6557fi
6558
6559
6560    test -n "$AR" && break
6561  done
6562fi
6563if test -z "$AR"; then
6564  ac_ct_AR=$AR
6565  for ac_prog in ar
6566do
6567  # Extract the first word of "$ac_prog", so it can be a program name with args.
6568set dummy $ac_prog; ac_word=$2
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
6571if ${ac_cv_prog_ac_ct_AR+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  if test -n "$ac_ct_AR"; then
6575  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580  IFS=$as_save_IFS
6581  test -z "$as_dir" && as_dir=.
6582    for ac_exec_ext in '' $ac_executable_extensions; do
6583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584    ac_cv_prog_ac_ct_AR="$ac_prog"
6585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586    break 2
6587  fi
6588done
6589  done
6590IFS=$as_save_IFS
6591
6592fi
6593fi
6594ac_ct_AR=$ac_cv_prog_ac_ct_AR
6595if test -n "$ac_ct_AR"; then
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6597$as_echo "$ac_ct_AR" >&6; }
6598else
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
6601fi
6602
6603
6604  test -n "$ac_ct_AR" && break
6605done
6606
6607  if test "x$ac_ct_AR" = x; then
6608    AR="false"
6609  else
6610    case $cross_compiling:$ac_tool_warned in
6611yes:)
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614ac_tool_warned=yes ;;
6615esac
6616    AR=$ac_ct_AR
6617  fi
6618fi
6619
6620: ${AR=ar}
6621: ${AR_FLAGS=cru}
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6634$as_echo_n "checking for archiver @FILE support... " >&6; }
6635if ${lt_cv_ar_at_file+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  lt_cv_ar_at_file=no
6639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641
6642int
6643main ()
6644{
6645
6646  ;
6647  return 0;
6648}
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"; then :
6651  echo conftest.$ac_objext > conftest.lst
6652      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6653      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6654  (eval $lt_ar_try) 2>&5
6655  ac_status=$?
6656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657  test $ac_status = 0; }
6658      if test "$ac_status" -eq 0; then
6659	# Ensure the archiver fails upon bogus file names.
6660	rm -f conftest.$ac_objext libconftest.a
6661	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6662  (eval $lt_ar_try) 2>&5
6663  ac_status=$?
6664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665  test $ac_status = 0; }
6666	if test "$ac_status" -ne 0; then
6667          lt_cv_ar_at_file=@
6668        fi
6669      fi
6670      rm -f conftest.* libconftest.a
6671
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6677$as_echo "$lt_cv_ar_at_file" >&6; }
6678
6679if test "x$lt_cv_ar_at_file" = xno; then
6680  archiver_list_spec=
6681else
6682  archiver_list_spec=$lt_cv_ar_at_file
6683fi
6684
6685
6686
6687
6688
6689
6690
6691if test -n "$ac_tool_prefix"; then
6692  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}strip; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if ${ac_cv_prog_STRIP+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  if test -n "$STRIP"; then
6700  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707    for ac_exec_ext in '' $ac_executable_extensions; do
6708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714  done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719STRIP=$ac_cv_prog_STRIP
6720if test -n "$STRIP"; then
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722$as_echo "$STRIP" >&6; }
6723else
6724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_STRIP"; then
6731  ac_ct_STRIP=$STRIP
6732  # Extract the first word of "strip", so it can be a program name with args.
6733set dummy strip; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$ac_ct_STRIP"; then
6740  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747    for ac_exec_ext in '' $ac_executable_extensions; do
6748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749    ac_cv_prog_ac_ct_STRIP="strip"
6750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754  done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760if test -n "$ac_ct_STRIP"; then
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762$as_echo "$ac_ct_STRIP" >&6; }
6763else
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768  if test "x$ac_ct_STRIP" = x; then
6769    STRIP=":"
6770  else
6771    case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777    STRIP=$ac_ct_STRIP
6778  fi
6779else
6780  STRIP="$ac_cv_prog_STRIP"
6781fi
6782
6783test -z "$STRIP" && STRIP=:
6784
6785
6786
6787
6788
6789
6790if test -n "$ac_tool_prefix"; then
6791  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if ${ac_cv_prog_RANLIB+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$RANLIB"; then
6799  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_exec_ext in '' $ac_executable_extensions; do
6807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813  done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818RANLIB=$ac_cv_prog_RANLIB
6819if test -n "$RANLIB"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821$as_echo "$RANLIB" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$ac_cv_prog_RANLIB"; then
6830  ac_ct_RANLIB=$RANLIB
6831  # Extract the first word of "ranlib", so it can be a program name with args.
6832set dummy ranlib; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  if test -n "$ac_ct_RANLIB"; then
6839  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846    for ac_exec_ext in '' $ac_executable_extensions; do
6847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848    ac_cv_prog_ac_ct_RANLIB="ranlib"
6849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853  done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859if test -n "$ac_ct_RANLIB"; then
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861$as_echo "$ac_ct_RANLIB" >&6; }
6862else
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867  if test "x$ac_ct_RANLIB" = x; then
6868    RANLIB=":"
6869  else
6870    case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876    RANLIB=$ac_ct_RANLIB
6877  fi
6878else
6879  RANLIB="$ac_cv_prog_RANLIB"
6880fi
6881
6882test -z "$RANLIB" && RANLIB=:
6883
6884
6885
6886
6887
6888
6889# Determine commands to create old-style static archives.
6890old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891old_postinstall_cmds='chmod 644 $oldlib'
6892old_postuninstall_cmds=
6893
6894if test -n "$RANLIB"; then
6895  case $host_os in
6896  openbsd*)
6897    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6898    ;;
6899  *)
6900    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6901    ;;
6902  esac
6903  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6904fi
6905
6906case $host_os in
6907  darwin*)
6908    lock_old_archive_extraction=yes ;;
6909  *)
6910    lock_old_archive_extraction=no ;;
6911esac
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951# If no C compiler was specified, use CC.
6952LTCC=${LTCC-"$CC"}
6953
6954# If no C compiler flags were specified, use CFLAGS.
6955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6956
6957# Allow CC to be a program name with arguments.
6958compiler=$CC
6959
6960
6961# Check for command to grab the raw symbol name followed by C symbol from nm.
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967
6968# These are sane defaults that work on at least a few old systems.
6969# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6970
6971# Character class describing NM global symbol codes.
6972symcode='[BCDEGRST]'
6973
6974# Regexp to match symbols that can be accessed directly from C.
6975sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6976
6977# Define system-specific variables.
6978case $host_os in
6979aix*)
6980  symcode='[BCDT]'
6981  ;;
6982cygwin* | mingw* | pw32* | cegcc*)
6983  symcode='[ABCDGISTW]'
6984  ;;
6985hpux*)
6986  if test "$host_cpu" = ia64; then
6987    symcode='[ABCDEGRST]'
6988  fi
6989  ;;
6990irix* | nonstopux*)
6991  symcode='[BCDEGRST]'
6992  ;;
6993osf*)
6994  symcode='[BCDEGQRST]'
6995  ;;
6996solaris*)
6997  symcode='[BDRT]'
6998  ;;
6999sco3.2v5*)
7000  symcode='[DT]'
7001  ;;
7002sysv4.2uw2*)
7003  symcode='[DT]'
7004  ;;
7005sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006  symcode='[ABDT]'
7007  ;;
7008sysv4)
7009  symcode='[DFNSTU]'
7010  ;;
7011esac
7012
7013# If we're using GNU nm, then use its standard symbol codes.
7014case `$NM -V 2>&1` in
7015*GNU* | *'with BFD'*)
7016  symcode='[ABCDGIRSTW]' ;;
7017esac
7018
7019# Transform an extracted symbol line into a proper C declaration.
7020# Some systems (esp. on ia64) link data and code symbols differently,
7021# so use this general approach.
7022lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7023
7024# Transform an extracted symbol line into symbol name and symbol address
7025lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7026lt_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'"
7027
7028# Handle CRLF in mingw tool chain
7029opt_cr=
7030case $build_os in
7031mingw*)
7032  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7033  ;;
7034esac
7035
7036# Try without a prefix underscore, then with it.
7037for ac_symprfx in "" "_"; do
7038
7039  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040  symxfrm="\\1 $ac_symprfx\\2 \\2"
7041
7042  # Write the raw and C identifiers.
7043  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044    # Fake it for dumpbin and say T for any non-static function
7045    # and D for any global variable.
7046    # Also find C++ and __fastcall symbols from MSVC++,
7047    # which start with @ or ?.
7048    lt_cv_sys_global_symbol_pipe="$AWK '"\
7049"     {last_section=section; section=\$ 3};"\
7050"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7051"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7052"     \$ 0!~/External *\|/{next};"\
7053"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054"     {if(hide[section]) next};"\
7055"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7056"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7057"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7058"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7059"     ' prfx=^$ac_symprfx"
7060  else
7061    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7062  fi
7063  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7064
7065  # Check to see that the pipe works correctly.
7066  pipe_works=no
7067
7068  rm -f conftest*
7069  cat > conftest.$ac_ext <<_LT_EOF
7070#ifdef __cplusplus
7071extern "C" {
7072#endif
7073char nm_test_var;
7074void nm_test_func(void);
7075void nm_test_func(void){}
7076#ifdef __cplusplus
7077}
7078#endif
7079int main(){nm_test_var='a';nm_test_func();return(0);}
7080_LT_EOF
7081
7082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083  (eval $ac_compile) 2>&5
7084  ac_status=$?
7085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086  test $ac_status = 0; }; then
7087    # Now try to grab the symbols.
7088    nlist=conftest.nm
7089    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7090  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7091  ac_status=$?
7092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093  test $ac_status = 0; } && test -s "$nlist"; then
7094      # Try sorting and uniquifying the output.
7095      if sort "$nlist" | uniq > "$nlist"T; then
7096	mv -f "$nlist"T "$nlist"
7097      else
7098	rm -f "$nlist"T
7099      fi
7100
7101      # Make sure that we snagged all the symbols we need.
7102      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7103	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7104	  cat <<_LT_EOF > conftest.$ac_ext
7105/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7106#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7107/* DATA imports from DLLs on WIN32 con't be const, because runtime
7108   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7109# define LT_DLSYM_CONST
7110#elif defined(__osf__)
7111/* This system does not cope well with relocations in const data.  */
7112# define LT_DLSYM_CONST
7113#else
7114# define LT_DLSYM_CONST const
7115#endif
7116
7117#ifdef __cplusplus
7118extern "C" {
7119#endif
7120
7121_LT_EOF
7122	  # Now generate the symbol file.
7123	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7124
7125	  cat <<_LT_EOF >> conftest.$ac_ext
7126
7127/* The mapping between symbol names and symbols.  */
7128LT_DLSYM_CONST struct {
7129  const char *name;
7130  void       *address;
7131}
7132lt__PROGRAM__LTX_preloaded_symbols[] =
7133{
7134  { "@PROGRAM@", (void *) 0 },
7135_LT_EOF
7136	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7137	  cat <<\_LT_EOF >> conftest.$ac_ext
7138  {0, (void *) 0}
7139};
7140
7141/* This works around a problem in FreeBSD linker */
7142#ifdef FREEBSD_WORKAROUND
7143static const void *lt_preloaded_setup() {
7144  return lt__PROGRAM__LTX_preloaded_symbols;
7145}
7146#endif
7147
7148#ifdef __cplusplus
7149}
7150#endif
7151_LT_EOF
7152	  # Now try linking the two files.
7153	  mv conftest.$ac_objext conftstm.$ac_objext
7154	  lt_globsym_save_LIBS=$LIBS
7155	  lt_globsym_save_CFLAGS=$CFLAGS
7156	  LIBS="conftstm.$ac_objext"
7157	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7158	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7159  (eval $ac_link) 2>&5
7160  ac_status=$?
7161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7163	    pipe_works=yes
7164	  fi
7165	  LIBS=$lt_globsym_save_LIBS
7166	  CFLAGS=$lt_globsym_save_CFLAGS
7167	else
7168	  echo "cannot find nm_test_func in $nlist" >&5
7169	fi
7170      else
7171	echo "cannot find nm_test_var in $nlist" >&5
7172      fi
7173    else
7174      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7175    fi
7176  else
7177    echo "$progname: failed program was:" >&5
7178    cat conftest.$ac_ext >&5
7179  fi
7180  rm -rf conftest* conftst*
7181
7182  # Do not use the global_symbol_pipe unless it works.
7183  if test "$pipe_works" = yes; then
7184    break
7185  else
7186    lt_cv_sys_global_symbol_pipe=
7187  fi
7188done
7189
7190fi
7191
7192if test -z "$lt_cv_sys_global_symbol_pipe"; then
7193  lt_cv_sys_global_symbol_to_cdecl=
7194fi
7195if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7197$as_echo "failed" >&6; }
7198else
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7200$as_echo "ok" >&6; }
7201fi
7202
7203# Response file support.
7204if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7205  nm_file_list_spec='@'
7206elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7207  nm_file_list_spec='@'
7208fi
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7237$as_echo_n "checking for sysroot... " >&6; }
7238
7239# Check whether --with-sysroot was given.
7240if test "${with_sysroot+set}" = set; then :
7241  withval=$with_sysroot;
7242else
7243  with_sysroot=no
7244fi
7245
7246
7247lt_sysroot=
7248case ${with_sysroot} in #(
7249 yes)
7250   if test "$GCC" = yes; then
7251     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7252   fi
7253   ;; #(
7254 /*)
7255   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7256   ;; #(
7257 no|'')
7258   ;; #(
7259 *)
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7261$as_echo "${with_sysroot}" >&6; }
7262   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7263   ;;
7264esac
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7267$as_echo "${lt_sysroot:-no}" >&6; }
7268
7269
7270
7271
7272
7273# Check whether --enable-libtool-lock was given.
7274if test "${enable_libtool_lock+set}" = set; then :
7275  enableval=$enable_libtool_lock;
7276fi
7277
7278test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7279
7280# Some flags need to be propagated to the compiler or linker for good
7281# libtool support.
7282case $host in
7283ia64-*-hpux*)
7284  # Find out which ABI we are using.
7285  echo 'int i;' > conftest.$ac_ext
7286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287  (eval $ac_compile) 2>&5
7288  ac_status=$?
7289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290  test $ac_status = 0; }; then
7291    case `/usr/bin/file conftest.$ac_objext` in
7292      *ELF-32*)
7293	HPUX_IA64_MODE="32"
7294	;;
7295      *ELF-64*)
7296	HPUX_IA64_MODE="64"
7297	;;
7298    esac
7299  fi
7300  rm -rf conftest*
7301  ;;
7302*-*-irix6*)
7303  # Find out which ABI we are using.
7304  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7305  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7306  (eval $ac_compile) 2>&5
7307  ac_status=$?
7308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309  test $ac_status = 0; }; then
7310    if test "$lt_cv_prog_gnu_ld" = yes; then
7311      case `/usr/bin/file conftest.$ac_objext` in
7312	*32-bit*)
7313	  LD="${LD-ld} -melf32bsmip"
7314	  ;;
7315	*N32*)
7316	  LD="${LD-ld} -melf32bmipn32"
7317	  ;;
7318	*64-bit*)
7319	  LD="${LD-ld} -melf64bmip"
7320	;;
7321      esac
7322    else
7323      case `/usr/bin/file conftest.$ac_objext` in
7324	*32-bit*)
7325	  LD="${LD-ld} -32"
7326	  ;;
7327	*N32*)
7328	  LD="${LD-ld} -n32"
7329	  ;;
7330	*64-bit*)
7331	  LD="${LD-ld} -64"
7332	  ;;
7333      esac
7334    fi
7335  fi
7336  rm -rf conftest*
7337  ;;
7338
7339x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7340s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7341  # Find out which ABI we are using.
7342  echo 'int i;' > conftest.$ac_ext
7343  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344  (eval $ac_compile) 2>&5
7345  ac_status=$?
7346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347  test $ac_status = 0; }; then
7348    case `/usr/bin/file conftest.o` in
7349      *32-bit*)
7350	case $host in
7351	  x86_64-*kfreebsd*-gnu)
7352	    LD="${LD-ld} -m elf_i386_fbsd"
7353	    ;;
7354	  x86_64-*linux*)
7355	    case `/usr/bin/file conftest.o` in
7356	      *x86-64*)
7357		LD="${LD-ld} -m elf32_x86_64"
7358		;;
7359	      *)
7360		LD="${LD-ld} -m elf_i386"
7361		;;
7362	    esac
7363	    ;;
7364	  ppc64-*linux*|powerpc64-*linux*)
7365	    LD="${LD-ld} -m elf32ppclinux"
7366	    ;;
7367	  s390x-*linux*)
7368	    LD="${LD-ld} -m elf_s390"
7369	    ;;
7370	  sparc64-*linux*)
7371	    LD="${LD-ld} -m elf32_sparc"
7372	    ;;
7373	esac
7374	;;
7375      *64-bit*)
7376	case $host in
7377	  x86_64-*kfreebsd*-gnu)
7378	    LD="${LD-ld} -m elf_x86_64_fbsd"
7379	    ;;
7380	  x86_64-*linux*)
7381	    LD="${LD-ld} -m elf_x86_64"
7382	    ;;
7383	  ppc*-*linux*|powerpc*-*linux*)
7384	    LD="${LD-ld} -m elf64ppc"
7385	    ;;
7386	  s390*-*linux*|s390*-*tpf*)
7387	    LD="${LD-ld} -m elf64_s390"
7388	    ;;
7389	  sparc*-*linux*)
7390	    LD="${LD-ld} -m elf64_sparc"
7391	    ;;
7392	esac
7393	;;
7394    esac
7395  fi
7396  rm -rf conftest*
7397  ;;
7398
7399*-*-sco3.2v5*)
7400  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7401  SAVE_CFLAGS="$CFLAGS"
7402  CFLAGS="$CFLAGS -belf"
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7404$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7405if ${lt_cv_cc_needs_belf+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  ac_ext=c
7409ac_cpp='$CPP $CPPFLAGS'
7410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416
7417int
7418main ()
7419{
7420
7421  ;
7422  return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_link "$LINENO"; then :
7426  lt_cv_cc_needs_belf=yes
7427else
7428  lt_cv_cc_needs_belf=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext \
7431    conftest$ac_exeext conftest.$ac_ext
7432     ac_ext=c
7433ac_cpp='$CPP $CPPFLAGS'
7434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7440$as_echo "$lt_cv_cc_needs_belf" >&6; }
7441  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7442    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7443    CFLAGS="$SAVE_CFLAGS"
7444  fi
7445  ;;
7446*-*solaris*)
7447  # Find out which ABI we are using.
7448  echo 'int i;' > conftest.$ac_ext
7449  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7450  (eval $ac_compile) 2>&5
7451  ac_status=$?
7452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453  test $ac_status = 0; }; then
7454    case `/usr/bin/file conftest.o` in
7455    *64-bit*)
7456      case $lt_cv_prog_gnu_ld in
7457      yes*)
7458        case $host in
7459        i?86-*-solaris*)
7460          LD="${LD-ld} -m elf_x86_64"
7461          ;;
7462        sparc*-*-solaris*)
7463          LD="${LD-ld} -m elf64_sparc"
7464          ;;
7465        esac
7466        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7467        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7468          LD="${LD-ld}_sol2"
7469        fi
7470        ;;
7471      *)
7472	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7473	  LD="${LD-ld} -64"
7474	fi
7475	;;
7476      esac
7477      ;;
7478    esac
7479  fi
7480  rm -rf conftest*
7481  ;;
7482esac
7483
7484need_locks="$enable_libtool_lock"
7485
7486if test -n "$ac_tool_prefix"; then
7487  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}mt; ac_word=$2
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
7491if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494  if test -n "$MANIFEST_TOOL"; then
7495  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502    for ac_exec_ext in '' $ac_executable_extensions; do
7503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509  done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7515if test -n "$MANIFEST_TOOL"; then
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7517$as_echo "$MANIFEST_TOOL" >&6; }
7518else
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
7521fi
7522
7523
7524fi
7525if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7526  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7527  # Extract the first word of "mt", so it can be a program name with args.
7528set dummy mt; ac_word=$2
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
7531if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  if test -n "$ac_ct_MANIFEST_TOOL"; then
7535  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540  IFS=$as_save_IFS
7541  test -z "$as_dir" && as_dir=.
7542    for ac_exec_ext in '' $ac_executable_extensions; do
7543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546    break 2
7547  fi
7548done
7549  done
7550IFS=$as_save_IFS
7551
7552fi
7553fi
7554ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7555if test -n "$ac_ct_MANIFEST_TOOL"; then
7556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7557$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7558else
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
7561fi
7562
7563  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7564    MANIFEST_TOOL=":"
7565  else
7566    case $cross_compiling:$ac_tool_warned in
7567yes:)
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570ac_tool_warned=yes ;;
7571esac
7572    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7573  fi
7574else
7575  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7576fi
7577
7578test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7580$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7581if ${lt_cv_path_mainfest_tool+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  lt_cv_path_mainfest_tool=no
7585  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7586  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7587  cat conftest.err >&5
7588  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7589    lt_cv_path_mainfest_tool=yes
7590  fi
7591  rm -f conftest*
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7594$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7595if test "x$lt_cv_path_mainfest_tool" != xyes; then
7596  MANIFEST_TOOL=:
7597fi
7598
7599
7600
7601
7602
7603
7604  case $host_os in
7605    rhapsody* | darwin*)
7606    if test -n "$ac_tool_prefix"; then
7607  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7608set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610$as_echo_n "checking for $ac_word... " >&6; }
7611if ${ac_cv_prog_DSYMUTIL+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  if test -n "$DSYMUTIL"; then
7615  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  test -z "$as_dir" && as_dir=.
7622    for ac_exec_ext in '' $ac_executable_extensions; do
7623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629  done
7630IFS=$as_save_IFS
7631
7632fi
7633fi
7634DSYMUTIL=$ac_cv_prog_DSYMUTIL
7635if test -n "$DSYMUTIL"; then
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7637$as_echo "$DSYMUTIL" >&6; }
7638else
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640$as_echo "no" >&6; }
7641fi
7642
7643
7644fi
7645if test -z "$ac_cv_prog_DSYMUTIL"; then
7646  ac_ct_DSYMUTIL=$DSYMUTIL
7647  # Extract the first word of "dsymutil", so it can be a program name with args.
7648set dummy dsymutil; ac_word=$2
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650$as_echo_n "checking for $ac_word... " >&6; }
7651if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  if test -n "$ac_ct_DSYMUTIL"; then
7655  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660  IFS=$as_save_IFS
7661  test -z "$as_dir" && as_dir=.
7662    for ac_exec_ext in '' $ac_executable_extensions; do
7663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666    break 2
7667  fi
7668done
7669  done
7670IFS=$as_save_IFS
7671
7672fi
7673fi
7674ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7675if test -n "$ac_ct_DSYMUTIL"; then
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7677$as_echo "$ac_ct_DSYMUTIL" >&6; }
7678else
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
7681fi
7682
7683  if test "x$ac_ct_DSYMUTIL" = x; then
7684    DSYMUTIL=":"
7685  else
7686    case $cross_compiling:$ac_tool_warned in
7687yes:)
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7690ac_tool_warned=yes ;;
7691esac
7692    DSYMUTIL=$ac_ct_DSYMUTIL
7693  fi
7694else
7695  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7696fi
7697
7698    if test -n "$ac_tool_prefix"; then
7699  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7700set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702$as_echo_n "checking for $ac_word... " >&6; }
7703if ${ac_cv_prog_NMEDIT+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  if test -n "$NMEDIT"; then
7707  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714    for ac_exec_ext in '' $ac_executable_extensions; do
7715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721  done
7722IFS=$as_save_IFS
7723
7724fi
7725fi
7726NMEDIT=$ac_cv_prog_NMEDIT
7727if test -n "$NMEDIT"; then
7728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7729$as_echo "$NMEDIT" >&6; }
7730else
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735
7736fi
7737if test -z "$ac_cv_prog_NMEDIT"; then
7738  ac_ct_NMEDIT=$NMEDIT
7739  # Extract the first word of "nmedit", so it can be a program name with args.
7740set dummy nmedit; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  if test -n "$ac_ct_NMEDIT"; then
7747  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754    for ac_exec_ext in '' $ac_executable_extensions; do
7755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761  done
7762IFS=$as_save_IFS
7763
7764fi
7765fi
7766ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7767if test -n "$ac_ct_NMEDIT"; then
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7769$as_echo "$ac_ct_NMEDIT" >&6; }
7770else
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
7773fi
7774
7775  if test "x$ac_ct_NMEDIT" = x; then
7776    NMEDIT=":"
7777  else
7778    case $cross_compiling:$ac_tool_warned in
7779yes:)
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7782ac_tool_warned=yes ;;
7783esac
7784    NMEDIT=$ac_ct_NMEDIT
7785  fi
7786else
7787  NMEDIT="$ac_cv_prog_NMEDIT"
7788fi
7789
7790    if test -n "$ac_tool_prefix"; then
7791  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7792set dummy ${ac_tool_prefix}lipo; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_LIPO+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  if test -n "$LIPO"; then
7799  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806    for ac_exec_ext in '' $ac_executable_extensions; do
7807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813  done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818LIPO=$ac_cv_prog_LIPO
7819if test -n "$LIPO"; then
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7821$as_echo "$LIPO" >&6; }
7822else
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827
7828fi
7829if test -z "$ac_cv_prog_LIPO"; then
7830  ac_ct_LIPO=$LIPO
7831  # Extract the first word of "lipo", so it can be a program name with args.
7832set dummy lipo; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  if test -n "$ac_ct_LIPO"; then
7839  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_ac_ct_LIPO="lipo"
7849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7859if test -n "$ac_ct_LIPO"; then
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7861$as_echo "$ac_ct_LIPO" >&6; }
7862else
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867  if test "x$ac_ct_LIPO" = x; then
7868    LIPO=":"
7869  else
7870    case $cross_compiling:$ac_tool_warned in
7871yes:)
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874ac_tool_warned=yes ;;
7875esac
7876    LIPO=$ac_ct_LIPO
7877  fi
7878else
7879  LIPO="$ac_cv_prog_LIPO"
7880fi
7881
7882    if test -n "$ac_tool_prefix"; then
7883  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7884set dummy ${ac_tool_prefix}otool; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_OTOOL+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  if test -n "$OTOOL"; then
7891  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896  IFS=$as_save_IFS
7897  test -z "$as_dir" && as_dir=.
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910OTOOL=$ac_cv_prog_OTOOL
7911if test -n "$OTOOL"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7913$as_echo "$OTOOL" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920fi
7921if test -z "$ac_cv_prog_OTOOL"; then
7922  ac_ct_OTOOL=$OTOOL
7923  # Extract the first word of "otool", so it can be a program name with args.
7924set dummy otool; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  if test -n "$ac_ct_OTOOL"; then
7931  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936  IFS=$as_save_IFS
7937  test -z "$as_dir" && as_dir=.
7938    for ac_exec_ext in '' $ac_executable_extensions; do
7939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940    ac_cv_prog_ac_ct_OTOOL="otool"
7941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942    break 2
7943  fi
7944done
7945  done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7951if test -n "$ac_ct_OTOOL"; then
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7953$as_echo "$ac_ct_OTOOL" >&6; }
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959  if test "x$ac_ct_OTOOL" = x; then
7960    OTOOL=":"
7961  else
7962    case $cross_compiling:$ac_tool_warned in
7963yes:)
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966ac_tool_warned=yes ;;
7967esac
7968    OTOOL=$ac_ct_OTOOL
7969  fi
7970else
7971  OTOOL="$ac_cv_prog_OTOOL"
7972fi
7973
7974    if test -n "$ac_tool_prefix"; then
7975  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}otool64; ac_word=$2
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if ${ac_cv_prog_OTOOL64+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  if test -n "$OTOOL64"; then
7983  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002OTOOL64=$ac_cv_prog_OTOOL64
8003if test -n "$OTOOL64"; then
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8005$as_echo "$OTOOL64" >&6; }
8006else
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_OTOOL64"; then
8014  ac_ct_OTOOL64=$OTOOL64
8015  # Extract the first word of "otool64", so it can be a program name with args.
8016set dummy otool64; ac_word=$2
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022  if test -n "$ac_ct_OTOOL64"; then
8023  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  test -z "$as_dir" && as_dir=.
8030    for ac_exec_ext in '' $ac_executable_extensions; do
8031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032    ac_cv_prog_ac_ct_OTOOL64="otool64"
8033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037  done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8043if test -n "$ac_ct_OTOOL64"; then
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8045$as_echo "$ac_ct_OTOOL64" >&6; }
8046else
8047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051  if test "x$ac_ct_OTOOL64" = x; then
8052    OTOOL64=":"
8053  else
8054    case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060    OTOOL64=$ac_ct_OTOOL64
8061  fi
8062else
8063  OTOOL64="$ac_cv_prog_OTOOL64"
8064fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8093$as_echo_n "checking for -single_module linker flag... " >&6; }
8094if ${lt_cv_apple_cc_single_mod+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  lt_cv_apple_cc_single_mod=no
8098      if test -z "${LT_MULTI_MODULE}"; then
8099	# By default we will add the -single_module flag. You can override
8100	# by either setting the environment variable LT_MULTI_MODULE
8101	# non-empty at configure time, or by adding -multi_module to the
8102	# link flags.
8103	rm -rf libconftest.dylib*
8104	echo "int foo(void){return 1;}" > conftest.c
8105	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8106-dynamiclib -Wl,-single_module conftest.c" >&5
8107	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8108	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8109        _lt_result=$?
8110	# If there is a non-empty error log, and "single_module"
8111	# appears in it, assume the flag caused a linker warning
8112        if test -s conftest.err && $GREP single_module conftest.err; then
8113	  cat conftest.err >&5
8114	# Otherwise, if the output was created with a 0 exit code from
8115	# the compiler, it worked.
8116	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8117	  lt_cv_apple_cc_single_mod=yes
8118	else
8119	  cat conftest.err >&5
8120	fi
8121	rm -rf libconftest.dylib*
8122	rm -f conftest.*
8123      fi
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8126$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8127
8128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8129$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8130if ${lt_cv_ld_exported_symbols_list+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  lt_cv_ld_exported_symbols_list=no
8134      save_LDFLAGS=$LDFLAGS
8135      echo "_main" > conftest.sym
8136      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138/* end confdefs.h.  */
8139
8140int
8141main ()
8142{
8143
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148if ac_fn_c_try_link "$LINENO"; then :
8149  lt_cv_ld_exported_symbols_list=yes
8150else
8151  lt_cv_ld_exported_symbols_list=no
8152fi
8153rm -f core conftest.err conftest.$ac_objext \
8154    conftest$ac_exeext conftest.$ac_ext
8155	LDFLAGS="$save_LDFLAGS"
8156
8157fi
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8159$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8160
8161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8162$as_echo_n "checking for -force_load linker flag... " >&6; }
8163if ${lt_cv_ld_force_load+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  lt_cv_ld_force_load=no
8167      cat > conftest.c << _LT_EOF
8168int forced_loaded() { return 2;}
8169_LT_EOF
8170      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8171      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8172      echo "$AR cru libconftest.a conftest.o" >&5
8173      $AR cru libconftest.a conftest.o 2>&5
8174      echo "$RANLIB libconftest.a" >&5
8175      $RANLIB libconftest.a 2>&5
8176      cat > conftest.c << _LT_EOF
8177int main() { return 0;}
8178_LT_EOF
8179      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8180      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8181      _lt_result=$?
8182      if test -s conftest.err && $GREP force_load conftest.err; then
8183	cat conftest.err >&5
8184      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8185	lt_cv_ld_force_load=yes
8186      else
8187	cat conftest.err >&5
8188      fi
8189        rm -f conftest.err libconftest.a conftest conftest.c
8190        rm -rf conftest.dSYM
8191
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8194$as_echo "$lt_cv_ld_force_load" >&6; }
8195    case $host_os in
8196    rhapsody* | darwin1.[012])
8197      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8198    darwin1.*)
8199      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8200    darwin*) # darwin 5.x on
8201      # if running on 10.5 or later, the deployment target defaults
8202      # to the OS version, if on x86, and 10.4, the deployment
8203      # target defaults to 10.4. Don't you love it?
8204      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8205	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8206	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8207	10.[012]*)
8208	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8209	10.*)
8210	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8211      esac
8212    ;;
8213  esac
8214    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8215      _lt_dar_single_mod='$single_module'
8216    fi
8217    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8218      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8219    else
8220      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8221    fi
8222    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8223      _lt_dsymutil='~$DSYMUTIL $lib || :'
8224    else
8225      _lt_dsymutil=
8226    fi
8227    ;;
8228  esac
8229
8230for ac_header in dlfcn.h
8231do :
8232  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8233"
8234if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8235  cat >>confdefs.h <<_ACEOF
8236#define HAVE_DLFCN_H 1
8237_ACEOF
8238
8239fi
8240
8241done
8242
8243
8244
8245
8246
8247# Set options
8248enable_win32_dll=yes
8249
8250case $host in
8251*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8252  if test -n "$ac_tool_prefix"; then
8253  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8254set dummy ${ac_tool_prefix}as; ac_word=$2
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256$as_echo_n "checking for $ac_word... " >&6; }
8257if ${ac_cv_prog_AS+:} false; then :
8258  $as_echo_n "(cached) " >&6
8259else
8260  if test -n "$AS"; then
8261  ac_cv_prog_AS="$AS" # Let the user override the test.
8262else
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266  IFS=$as_save_IFS
8267  test -z "$as_dir" && as_dir=.
8268    for ac_exec_ext in '' $ac_executable_extensions; do
8269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270    ac_cv_prog_AS="${ac_tool_prefix}as"
8271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272    break 2
8273  fi
8274done
8275  done
8276IFS=$as_save_IFS
8277
8278fi
8279fi
8280AS=$ac_cv_prog_AS
8281if test -n "$AS"; then
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8283$as_echo "$AS" >&6; }
8284else
8285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286$as_echo "no" >&6; }
8287fi
8288
8289
8290fi
8291if test -z "$ac_cv_prog_AS"; then
8292  ac_ct_AS=$AS
8293  # Extract the first word of "as", so it can be a program name with args.
8294set dummy as; ac_word=$2
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296$as_echo_n "checking for $ac_word... " >&6; }
8297if ${ac_cv_prog_ac_ct_AS+:} false; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  if test -n "$ac_ct_AS"; then
8301  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8302else
8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306  IFS=$as_save_IFS
8307  test -z "$as_dir" && as_dir=.
8308    for ac_exec_ext in '' $ac_executable_extensions; do
8309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310    ac_cv_prog_ac_ct_AS="as"
8311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312    break 2
8313  fi
8314done
8315  done
8316IFS=$as_save_IFS
8317
8318fi
8319fi
8320ac_ct_AS=$ac_cv_prog_ac_ct_AS
8321if test -n "$ac_ct_AS"; then
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8323$as_echo "$ac_ct_AS" >&6; }
8324else
8325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
8327fi
8328
8329  if test "x$ac_ct_AS" = x; then
8330    AS="false"
8331  else
8332    case $cross_compiling:$ac_tool_warned in
8333yes:)
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8336ac_tool_warned=yes ;;
8337esac
8338    AS=$ac_ct_AS
8339  fi
8340else
8341  AS="$ac_cv_prog_AS"
8342fi
8343
8344  if test -n "$ac_tool_prefix"; then
8345  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8346set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
8349if ${ac_cv_prog_DLLTOOL+:} false; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  if test -n "$DLLTOOL"; then
8353  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8354else
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358  IFS=$as_save_IFS
8359  test -z "$as_dir" && as_dir=.
8360    for ac_exec_ext in '' $ac_executable_extensions; do
8361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364    break 2
8365  fi
8366done
8367  done
8368IFS=$as_save_IFS
8369
8370fi
8371fi
8372DLLTOOL=$ac_cv_prog_DLLTOOL
8373if test -n "$DLLTOOL"; then
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8375$as_echo "$DLLTOOL" >&6; }
8376else
8377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
8379fi
8380
8381
8382fi
8383if test -z "$ac_cv_prog_DLLTOOL"; then
8384  ac_ct_DLLTOOL=$DLLTOOL
8385  # Extract the first word of "dlltool", so it can be a program name with args.
8386set dummy dlltool; ac_word=$2
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388$as_echo_n "checking for $ac_word... " >&6; }
8389if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8390  $as_echo_n "(cached) " >&6
8391else
8392  if test -n "$ac_ct_DLLTOOL"; then
8393  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398  IFS=$as_save_IFS
8399  test -z "$as_dir" && as_dir=.
8400    for ac_exec_ext in '' $ac_executable_extensions; do
8401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404    break 2
8405  fi
8406done
8407  done
8408IFS=$as_save_IFS
8409
8410fi
8411fi
8412ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8413if test -n "$ac_ct_DLLTOOL"; then
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8415$as_echo "$ac_ct_DLLTOOL" >&6; }
8416else
8417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418$as_echo "no" >&6; }
8419fi
8420
8421  if test "x$ac_ct_DLLTOOL" = x; then
8422    DLLTOOL="false"
8423  else
8424    case $cross_compiling:$ac_tool_warned in
8425yes:)
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428ac_tool_warned=yes ;;
8429esac
8430    DLLTOOL=$ac_ct_DLLTOOL
8431  fi
8432else
8433  DLLTOOL="$ac_cv_prog_DLLTOOL"
8434fi
8435
8436  if test -n "$ac_tool_prefix"; then
8437  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8438set dummy ${ac_tool_prefix}objdump; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if ${ac_cv_prog_OBJDUMP+:} false; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  if test -n "$OBJDUMP"; then
8445  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8446else
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450  IFS=$as_save_IFS
8451  test -z "$as_dir" && as_dir=.
8452    for ac_exec_ext in '' $ac_executable_extensions; do
8453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456    break 2
8457  fi
8458done
8459  done
8460IFS=$as_save_IFS
8461
8462fi
8463fi
8464OBJDUMP=$ac_cv_prog_OBJDUMP
8465if test -n "$OBJDUMP"; then
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8467$as_echo "$OBJDUMP" >&6; }
8468else
8469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
8471fi
8472
8473
8474fi
8475if test -z "$ac_cv_prog_OBJDUMP"; then
8476  ac_ct_OBJDUMP=$OBJDUMP
8477  # Extract the first word of "objdump", so it can be a program name with args.
8478set dummy objdump; ac_word=$2
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8482  $as_echo_n "(cached) " >&6
8483else
8484  if test -n "$ac_ct_OBJDUMP"; then
8485  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490  IFS=$as_save_IFS
8491  test -z "$as_dir" && as_dir=.
8492    for ac_exec_ext in '' $ac_executable_extensions; do
8493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496    break 2
8497  fi
8498done
8499  done
8500IFS=$as_save_IFS
8501
8502fi
8503fi
8504ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8505if test -n "$ac_ct_OBJDUMP"; then
8506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8507$as_echo "$ac_ct_OBJDUMP" >&6; }
8508else
8509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
8511fi
8512
8513  if test "x$ac_ct_OBJDUMP" = x; then
8514    OBJDUMP="false"
8515  else
8516    case $cross_compiling:$ac_tool_warned in
8517yes:)
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8520ac_tool_warned=yes ;;
8521esac
8522    OBJDUMP=$ac_ct_OBJDUMP
8523  fi
8524else
8525  OBJDUMP="$ac_cv_prog_OBJDUMP"
8526fi
8527
8528  ;;
8529esac
8530
8531test -z "$AS" && AS=as
8532
8533
8534
8535
8536
8537test -z "$DLLTOOL" && DLLTOOL=dlltool
8538
8539
8540
8541
8542
8543test -z "$OBJDUMP" && OBJDUMP=objdump
8544
8545
8546
8547
8548# Check whether --enable-static was given.
8549if test "${enable_static+set}" = set; then :
8550  enableval=$enable_static; p=${PACKAGE-default}
8551    case $enableval in
8552    yes) enable_static=yes ;;
8553    no) enable_static=no ;;
8554    *)
8555     enable_static=no
8556      # Look at the argument we got.  We use all the common list separators.
8557      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558      for pkg in $enableval; do
8559	IFS="$lt_save_ifs"
8560	if test "X$pkg" = "X$p"; then
8561	  enable_static=yes
8562	fi
8563      done
8564      IFS="$lt_save_ifs"
8565      ;;
8566    esac
8567else
8568  enable_static=no
8569fi
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580        enable_dlopen=no
8581
8582
8583
8584            # Check whether --enable-shared was given.
8585if test "${enable_shared+set}" = set; then :
8586  enableval=$enable_shared; p=${PACKAGE-default}
8587    case $enableval in
8588    yes) enable_shared=yes ;;
8589    no) enable_shared=no ;;
8590    *)
8591      enable_shared=no
8592      # Look at the argument we got.  We use all the common list separators.
8593      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8594      for pkg in $enableval; do
8595	IFS="$lt_save_ifs"
8596	if test "X$pkg" = "X$p"; then
8597	  enable_shared=yes
8598	fi
8599      done
8600      IFS="$lt_save_ifs"
8601      ;;
8602    esac
8603else
8604  enable_shared=yes
8605fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617# Check whether --with-pic was given.
8618if test "${with_pic+set}" = set; then :
8619  withval=$with_pic; lt_p=${PACKAGE-default}
8620    case $withval in
8621    yes|no) pic_mode=$withval ;;
8622    *)
8623      pic_mode=default
8624      # Look at the argument we got.  We use all the common list separators.
8625      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626      for lt_pkg in $withval; do
8627	IFS="$lt_save_ifs"
8628	if test "X$lt_pkg" = "X$lt_p"; then
8629	  pic_mode=yes
8630	fi
8631      done
8632      IFS="$lt_save_ifs"
8633      ;;
8634    esac
8635else
8636  pic_mode=default
8637fi
8638
8639
8640test -z "$pic_mode" && pic_mode=default
8641
8642
8643
8644
8645
8646
8647
8648  # Check whether --enable-fast-install was given.
8649if test "${enable_fast_install+set}" = set; then :
8650  enableval=$enable_fast_install; p=${PACKAGE-default}
8651    case $enableval in
8652    yes) enable_fast_install=yes ;;
8653    no) enable_fast_install=no ;;
8654    *)
8655      enable_fast_install=no
8656      # Look at the argument we got.  We use all the common list separators.
8657      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8658      for pkg in $enableval; do
8659	IFS="$lt_save_ifs"
8660	if test "X$pkg" = "X$p"; then
8661	  enable_fast_install=yes
8662	fi
8663      done
8664      IFS="$lt_save_ifs"
8665      ;;
8666    esac
8667else
8668  enable_fast_install=yes
8669fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681# This can be used to rebuild libtool when needed
8682LIBTOOL_DEPS="$ltmain"
8683
8684# Always use our own libtool.
8685LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716test -z "$LN_S" && LN_S="ln -s"
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731if test -n "${ZSH_VERSION+set}" ; then
8732   setopt NO_GLOB_SUBST
8733fi
8734
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8736$as_echo_n "checking for objdir... " >&6; }
8737if ${lt_cv_objdir+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  rm -f .libs 2>/dev/null
8741mkdir .libs 2>/dev/null
8742if test -d .libs; then
8743  lt_cv_objdir=.libs
8744else
8745  # MS-DOS does not allow filenames that begin with a dot.
8746  lt_cv_objdir=_libs
8747fi
8748rmdir .libs 2>/dev/null
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8751$as_echo "$lt_cv_objdir" >&6; }
8752objdir=$lt_cv_objdir
8753
8754
8755
8756
8757
8758cat >>confdefs.h <<_ACEOF
8759#define LT_OBJDIR "$lt_cv_objdir/"
8760_ACEOF
8761
8762
8763
8764
8765case $host_os in
8766aix3*)
8767  # AIX sometimes has problems with the GCC collect2 program.  For some
8768  # reason, if we set the COLLECT_NAMES environment variable, the problems
8769  # vanish in a puff of smoke.
8770  if test "X${COLLECT_NAMES+set}" != Xset; then
8771    COLLECT_NAMES=
8772    export COLLECT_NAMES
8773  fi
8774  ;;
8775esac
8776
8777# Global variables:
8778ofile=libtool
8779can_build_shared=yes
8780
8781# All known linkers require a `.a' archive for static linking (except MSVC,
8782# which needs '.lib').
8783libext=a
8784
8785with_gnu_ld="$lt_cv_prog_gnu_ld"
8786
8787old_CC="$CC"
8788old_CFLAGS="$CFLAGS"
8789
8790# Set sane defaults for various variables
8791test -z "$CC" && CC=cc
8792test -z "$LTCC" && LTCC=$CC
8793test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8794test -z "$LD" && LD=ld
8795test -z "$ac_objext" && ac_objext=o
8796
8797for cc_temp in $compiler""; do
8798  case $cc_temp in
8799    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8800    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8801    \-*) ;;
8802    *) break;;
8803  esac
8804done
8805cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8806
8807
8808# Only perform the check for file, if the check method requires it
8809test -z "$MAGIC_CMD" && MAGIC_CMD=file
8810case $deplibs_check_method in
8811file_magic*)
8812  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8813    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8814$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8815if ${lt_cv_path_MAGIC_CMD+:} false; then :
8816  $as_echo_n "(cached) " >&6
8817else
8818  case $MAGIC_CMD in
8819[\\/*] |  ?:[\\/]*)
8820  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8821  ;;
8822*)
8823  lt_save_MAGIC_CMD="$MAGIC_CMD"
8824  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8825  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8826  for ac_dir in $ac_dummy; do
8827    IFS="$lt_save_ifs"
8828    test -z "$ac_dir" && ac_dir=.
8829    if test -f $ac_dir/${ac_tool_prefix}file; then
8830      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8831      if test -n "$file_magic_test_file"; then
8832	case $deplibs_check_method in
8833	"file_magic "*)
8834	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8835	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8836	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8837	    $EGREP "$file_magic_regex" > /dev/null; then
8838	    :
8839	  else
8840	    cat <<_LT_EOF 1>&2
8841
8842*** Warning: the command libtool uses to detect shared libraries,
8843*** $file_magic_cmd, produces output that libtool cannot recognize.
8844*** The result is that libtool may fail to recognize shared libraries
8845*** as such.  This will affect the creation of libtool libraries that
8846*** depend on shared libraries, but programs linked with such libtool
8847*** libraries will work regardless of this problem.  Nevertheless, you
8848*** may want to report the problem to your system manager and/or to
8849*** bug-libtool@gnu.org
8850
8851_LT_EOF
8852	  fi ;;
8853	esac
8854      fi
8855      break
8856    fi
8857  done
8858  IFS="$lt_save_ifs"
8859  MAGIC_CMD="$lt_save_MAGIC_CMD"
8860  ;;
8861esac
8862fi
8863
8864MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8865if test -n "$MAGIC_CMD"; then
8866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8867$as_echo "$MAGIC_CMD" >&6; }
8868else
8869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870$as_echo "no" >&6; }
8871fi
8872
8873
8874
8875
8876
8877if test -z "$lt_cv_path_MAGIC_CMD"; then
8878  if test -n "$ac_tool_prefix"; then
8879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8880$as_echo_n "checking for file... " >&6; }
8881if ${lt_cv_path_MAGIC_CMD+:} false; then :
8882  $as_echo_n "(cached) " >&6
8883else
8884  case $MAGIC_CMD in
8885[\\/*] |  ?:[\\/]*)
8886  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8887  ;;
8888*)
8889  lt_save_MAGIC_CMD="$MAGIC_CMD"
8890  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8891  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8892  for ac_dir in $ac_dummy; do
8893    IFS="$lt_save_ifs"
8894    test -z "$ac_dir" && ac_dir=.
8895    if test -f $ac_dir/file; then
8896      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8897      if test -n "$file_magic_test_file"; then
8898	case $deplibs_check_method in
8899	"file_magic "*)
8900	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8901	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8902	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8903	    $EGREP "$file_magic_regex" > /dev/null; then
8904	    :
8905	  else
8906	    cat <<_LT_EOF 1>&2
8907
8908*** Warning: the command libtool uses to detect shared libraries,
8909*** $file_magic_cmd, produces output that libtool cannot recognize.
8910*** The result is that libtool may fail to recognize shared libraries
8911*** as such.  This will affect the creation of libtool libraries that
8912*** depend on shared libraries, but programs linked with such libtool
8913*** libraries will work regardless of this problem.  Nevertheless, you
8914*** may want to report the problem to your system manager and/or to
8915*** bug-libtool@gnu.org
8916
8917_LT_EOF
8918	  fi ;;
8919	esac
8920      fi
8921      break
8922    fi
8923  done
8924  IFS="$lt_save_ifs"
8925  MAGIC_CMD="$lt_save_MAGIC_CMD"
8926  ;;
8927esac
8928fi
8929
8930MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8931if test -n "$MAGIC_CMD"; then
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8933$as_echo "$MAGIC_CMD" >&6; }
8934else
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936$as_echo "no" >&6; }
8937fi
8938
8939
8940  else
8941    MAGIC_CMD=:
8942  fi
8943fi
8944
8945  fi
8946  ;;
8947esac
8948
8949# Use C for the default configuration in the libtool script
8950
8951lt_save_CC="$CC"
8952ac_ext=c
8953ac_cpp='$CPP $CPPFLAGS'
8954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957
8958
8959# Source file extension for C test sources.
8960ac_ext=c
8961
8962# Object file extension for compiled C test sources.
8963objext=o
8964objext=$objext
8965
8966# Code to be used in simple compile tests
8967lt_simple_compile_test_code="int some_variable = 0;"
8968
8969# Code to be used in simple link tests
8970lt_simple_link_test_code='int main(){return(0);}'
8971
8972
8973
8974
8975
8976
8977
8978# If no C compiler was specified, use CC.
8979LTCC=${LTCC-"$CC"}
8980
8981# If no C compiler flags were specified, use CFLAGS.
8982LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8983
8984# Allow CC to be a program name with arguments.
8985compiler=$CC
8986
8987# Save the default compiler, since it gets overwritten when the other
8988# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8989compiler_DEFAULT=$CC
8990
8991# save warnings/boilerplate of simple test code
8992ac_outfile=conftest.$ac_objext
8993echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8994eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8995_lt_compiler_boilerplate=`cat conftest.err`
8996$RM conftest*
8997
8998ac_outfile=conftest.$ac_objext
8999echo "$lt_simple_link_test_code" >conftest.$ac_ext
9000eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9001_lt_linker_boilerplate=`cat conftest.err`
9002$RM -r conftest*
9003
9004
9005## CAVEAT EMPTOR:
9006## There is no encapsulation within the following macros, do not change
9007## the running order or otherwise move them around unless you know exactly
9008## what you are doing...
9009if test -n "$compiler"; then
9010
9011lt_prog_compiler_no_builtin_flag=
9012
9013if test "$GCC" = yes; then
9014  case $cc_basename in
9015  nvcc*)
9016    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9017  *)
9018    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9019  esac
9020
9021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9022$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9023if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  lt_cv_prog_compiler_rtti_exceptions=no
9027   ac_outfile=conftest.$ac_objext
9028   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9029   lt_compiler_flag="-fno-rtti -fno-exceptions"
9030   # Insert the option either (1) after the last *FLAGS variable, or
9031   # (2) before a word containing "conftest.", or (3) at the end.
9032   # Note that $ac_compile itself does not contain backslashes and begins
9033   # with a dollar sign (not a hyphen), so the echo should work correctly.
9034   # The option is referenced via a variable to avoid confusing sed.
9035   lt_compile=`echo "$ac_compile" | $SED \
9036   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9037   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9038   -e 's:$: $lt_compiler_flag:'`
9039   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9040   (eval "$lt_compile" 2>conftest.err)
9041   ac_status=$?
9042   cat conftest.err >&5
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   if (exit $ac_status) && test -s "$ac_outfile"; then
9045     # The compiler can only warn and ignore the option if not recognized
9046     # So say no if there are warnings other than the usual output.
9047     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9048     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9049     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9050       lt_cv_prog_compiler_rtti_exceptions=yes
9051     fi
9052   fi
9053   $RM conftest*
9054
9055fi
9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9057$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9058
9059if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9060    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9061else
9062    :
9063fi
9064
9065fi
9066
9067
9068
9069
9070
9071
9072  lt_prog_compiler_wl=
9073lt_prog_compiler_pic=
9074lt_prog_compiler_static=
9075
9076
9077  if test "$GCC" = yes; then
9078    lt_prog_compiler_wl='-Wl,'
9079    lt_prog_compiler_static='-static'
9080
9081    case $host_os in
9082      aix*)
9083      # All AIX code is PIC.
9084      if test "$host_cpu" = ia64; then
9085	# AIX 5 now supports IA64 processor
9086	lt_prog_compiler_static='-Bstatic'
9087      fi
9088      ;;
9089
9090    amigaos*)
9091      case $host_cpu in
9092      powerpc)
9093            # see comment about AmigaOS4 .so support
9094            lt_prog_compiler_pic='-fPIC'
9095        ;;
9096      m68k)
9097            # FIXME: we need at least 68020 code to build shared libraries, but
9098            # adding the `-m68020' flag to GCC prevents building anything better,
9099            # like `-m68040'.
9100            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9101        ;;
9102      esac
9103      ;;
9104
9105    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9106      # PIC is the default for these OSes.
9107      ;;
9108
9109    mingw* | cygwin* | pw32* | os2* | cegcc*)
9110      # This hack is so that the source file can tell whether it is being
9111      # built for inclusion in a dll (and should export symbols for example).
9112      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9113      # (--disable-auto-import) libraries
9114      lt_prog_compiler_pic='-DDLL_EXPORT'
9115      ;;
9116
9117    darwin* | rhapsody*)
9118      # PIC is the default on this platform
9119      # Common symbols not allowed in MH_DYLIB files
9120      lt_prog_compiler_pic='-fno-common'
9121      ;;
9122
9123    haiku*)
9124      # PIC is the default for Haiku.
9125      # The "-static" flag exists, but is broken.
9126      lt_prog_compiler_static=
9127      ;;
9128
9129    hpux*)
9130      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9131      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9132      # sets the default TLS model and affects inlining.
9133      case $host_cpu in
9134      hppa*64*)
9135	# +Z the default
9136	;;
9137      *)
9138	lt_prog_compiler_pic='-fPIC'
9139	;;
9140      esac
9141      ;;
9142
9143    interix[3-9]*)
9144      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9145      # Instead, we relocate shared libraries at runtime.
9146      ;;
9147
9148    msdosdjgpp*)
9149      # Just because we use GCC doesn't mean we suddenly get shared libraries
9150      # on systems that don't support them.
9151      lt_prog_compiler_can_build_shared=no
9152      enable_shared=no
9153      ;;
9154
9155    *nto* | *qnx*)
9156      # QNX uses GNU C++, but need to define -shared option too, otherwise
9157      # it will coredump.
9158      lt_prog_compiler_pic='-fPIC -shared'
9159      ;;
9160
9161    sysv4*MP*)
9162      if test -d /usr/nec; then
9163	lt_prog_compiler_pic=-Kconform_pic
9164      fi
9165      ;;
9166
9167    *)
9168      lt_prog_compiler_pic='-fPIC'
9169      ;;
9170    esac
9171
9172    case $cc_basename in
9173    nvcc*) # Cuda Compiler Driver 2.2
9174      lt_prog_compiler_wl='-Xlinker '
9175      if test -n "$lt_prog_compiler_pic"; then
9176        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9177      fi
9178      ;;
9179    esac
9180  else
9181    # PORTME Check for flag to pass linker flags through the system compiler.
9182    case $host_os in
9183    aix*)
9184      lt_prog_compiler_wl='-Wl,'
9185      if test "$host_cpu" = ia64; then
9186	# AIX 5 now supports IA64 processor
9187	lt_prog_compiler_static='-Bstatic'
9188      else
9189	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9190      fi
9191      ;;
9192
9193    mingw* | cygwin* | pw32* | os2* | cegcc*)
9194      # This hack is so that the source file can tell whether it is being
9195      # built for inclusion in a dll (and should export symbols for example).
9196      lt_prog_compiler_pic='-DDLL_EXPORT'
9197      ;;
9198
9199    hpux9* | hpux10* | hpux11*)
9200      lt_prog_compiler_wl='-Wl,'
9201      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9202      # not for PA HP-UX.
9203      case $host_cpu in
9204      hppa*64*|ia64*)
9205	# +Z the default
9206	;;
9207      *)
9208	lt_prog_compiler_pic='+Z'
9209	;;
9210      esac
9211      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9212      lt_prog_compiler_static='${wl}-a ${wl}archive'
9213      ;;
9214
9215    irix5* | irix6* | nonstopux*)
9216      lt_prog_compiler_wl='-Wl,'
9217      # PIC (with -KPIC) is the default.
9218      lt_prog_compiler_static='-non_shared'
9219      ;;
9220
9221    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9222      case $cc_basename in
9223      # old Intel for x86_64 which still supported -KPIC.
9224      ecc*)
9225	lt_prog_compiler_wl='-Wl,'
9226	lt_prog_compiler_pic='-KPIC'
9227	lt_prog_compiler_static='-static'
9228        ;;
9229      # icc used to be incompatible with GCC.
9230      # ICC 10 doesn't accept -KPIC any more.
9231      icc* | ifort*)
9232	lt_prog_compiler_wl='-Wl,'
9233	lt_prog_compiler_pic='-fPIC'
9234	lt_prog_compiler_static='-static'
9235        ;;
9236      # Lahey Fortran 8.1.
9237      lf95*)
9238	lt_prog_compiler_wl='-Wl,'
9239	lt_prog_compiler_pic='--shared'
9240	lt_prog_compiler_static='--static'
9241	;;
9242      nagfor*)
9243	# NAG Fortran compiler
9244	lt_prog_compiler_wl='-Wl,-Wl,,'
9245	lt_prog_compiler_pic='-PIC'
9246	lt_prog_compiler_static='-Bstatic'
9247	;;
9248      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9249        # Portland Group compilers (*not* the Pentium gcc compiler,
9250	# which looks to be a dead project)
9251	lt_prog_compiler_wl='-Wl,'
9252	lt_prog_compiler_pic='-fpic'
9253	lt_prog_compiler_static='-Bstatic'
9254        ;;
9255      ccc*)
9256        lt_prog_compiler_wl='-Wl,'
9257        # All Alpha code is PIC.
9258        lt_prog_compiler_static='-non_shared'
9259        ;;
9260      xl* | bgxl* | bgf* | mpixl*)
9261	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9262	lt_prog_compiler_wl='-Wl,'
9263	lt_prog_compiler_pic='-qpic'
9264	lt_prog_compiler_static='-qstaticlink'
9265	;;
9266      *)
9267	case `$CC -V 2>&1 | sed 5q` in
9268	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9269	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9270	  lt_prog_compiler_pic='-KPIC'
9271	  lt_prog_compiler_static='-Bstatic'
9272	  lt_prog_compiler_wl=''
9273	  ;;
9274	*Sun\ F* | *Sun*Fortran*)
9275	  lt_prog_compiler_pic='-KPIC'
9276	  lt_prog_compiler_static='-Bstatic'
9277	  lt_prog_compiler_wl='-Qoption ld '
9278	  ;;
9279	*Sun\ C*)
9280	  # Sun C 5.9
9281	  lt_prog_compiler_pic='-KPIC'
9282	  lt_prog_compiler_static='-Bstatic'
9283	  lt_prog_compiler_wl='-Wl,'
9284	  ;;
9285        *Intel*\ [CF]*Compiler*)
9286	  lt_prog_compiler_wl='-Wl,'
9287	  lt_prog_compiler_pic='-fPIC'
9288	  lt_prog_compiler_static='-static'
9289	  ;;
9290	*Portland\ Group*)
9291	  lt_prog_compiler_wl='-Wl,'
9292	  lt_prog_compiler_pic='-fpic'
9293	  lt_prog_compiler_static='-Bstatic'
9294	  ;;
9295	esac
9296	;;
9297      esac
9298      ;;
9299
9300    newsos6)
9301      lt_prog_compiler_pic='-KPIC'
9302      lt_prog_compiler_static='-Bstatic'
9303      ;;
9304
9305    *nto* | *qnx*)
9306      # QNX uses GNU C++, but need to define -shared option too, otherwise
9307      # it will coredump.
9308      lt_prog_compiler_pic='-fPIC -shared'
9309      ;;
9310
9311    osf3* | osf4* | osf5*)
9312      lt_prog_compiler_wl='-Wl,'
9313      # All OSF/1 code is PIC.
9314      lt_prog_compiler_static='-non_shared'
9315      ;;
9316
9317    rdos*)
9318      lt_prog_compiler_static='-non_shared'
9319      ;;
9320
9321    solaris*)
9322      lt_prog_compiler_pic='-KPIC'
9323      lt_prog_compiler_static='-Bstatic'
9324      case $cc_basename in
9325      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9326	lt_prog_compiler_wl='-Qoption ld ';;
9327      *)
9328	lt_prog_compiler_wl='-Wl,';;
9329      esac
9330      ;;
9331
9332    sunos4*)
9333      lt_prog_compiler_wl='-Qoption ld '
9334      lt_prog_compiler_pic='-PIC'
9335      lt_prog_compiler_static='-Bstatic'
9336      ;;
9337
9338    sysv4 | sysv4.2uw2* | sysv4.3*)
9339      lt_prog_compiler_wl='-Wl,'
9340      lt_prog_compiler_pic='-KPIC'
9341      lt_prog_compiler_static='-Bstatic'
9342      ;;
9343
9344    sysv4*MP*)
9345      if test -d /usr/nec ;then
9346	lt_prog_compiler_pic='-Kconform_pic'
9347	lt_prog_compiler_static='-Bstatic'
9348      fi
9349      ;;
9350
9351    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9352      lt_prog_compiler_wl='-Wl,'
9353      lt_prog_compiler_pic='-KPIC'
9354      lt_prog_compiler_static='-Bstatic'
9355      ;;
9356
9357    unicos*)
9358      lt_prog_compiler_wl='-Wl,'
9359      lt_prog_compiler_can_build_shared=no
9360      ;;
9361
9362    uts4*)
9363      lt_prog_compiler_pic='-pic'
9364      lt_prog_compiler_static='-Bstatic'
9365      ;;
9366
9367    *)
9368      lt_prog_compiler_can_build_shared=no
9369      ;;
9370    esac
9371  fi
9372
9373case $host_os in
9374  # For platforms which do not support PIC, -DPIC is meaningless:
9375  *djgpp*)
9376    lt_prog_compiler_pic=
9377    ;;
9378  *)
9379    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9380    ;;
9381esac
9382
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9384$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9385if ${lt_cv_prog_compiler_pic+:} false; then :
9386  $as_echo_n "(cached) " >&6
9387else
9388  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9391$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9392lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9393
9394#
9395# Check to make sure the PIC flag actually works.
9396#
9397if test -n "$lt_prog_compiler_pic"; then
9398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9399$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9400if ${lt_cv_prog_compiler_pic_works+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  lt_cv_prog_compiler_pic_works=no
9404   ac_outfile=conftest.$ac_objext
9405   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9406   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9407   # Insert the option either (1) after the last *FLAGS variable, or
9408   # (2) before a word containing "conftest.", or (3) at the end.
9409   # Note that $ac_compile itself does not contain backslashes and begins
9410   # with a dollar sign (not a hyphen), so the echo should work correctly.
9411   # The option is referenced via a variable to avoid confusing sed.
9412   lt_compile=`echo "$ac_compile" | $SED \
9413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9415   -e 's:$: $lt_compiler_flag:'`
9416   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9417   (eval "$lt_compile" 2>conftest.err)
9418   ac_status=$?
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   if (exit $ac_status) && test -s "$ac_outfile"; then
9422     # The compiler can only warn and ignore the option if not recognized
9423     # So say no if there are warnings other than the usual output.
9424     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9425     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9426     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9427       lt_cv_prog_compiler_pic_works=yes
9428     fi
9429   fi
9430   $RM conftest*
9431
9432fi
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9434$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9435
9436if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9437    case $lt_prog_compiler_pic in
9438     "" | " "*) ;;
9439     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9440     esac
9441else
9442    lt_prog_compiler_pic=
9443     lt_prog_compiler_can_build_shared=no
9444fi
9445
9446fi
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458#
9459# Check to make sure the static flag actually works.
9460#
9461wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9463$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9464if ${lt_cv_prog_compiler_static_works+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  lt_cv_prog_compiler_static_works=no
9468   save_LDFLAGS="$LDFLAGS"
9469   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9470   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9471   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9472     # The linker can only warn and ignore the option if not recognized
9473     # So say no if there are warnings
9474     if test -s conftest.err; then
9475       # Append any errors to the config.log.
9476       cat conftest.err 1>&5
9477       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9478       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479       if diff conftest.exp conftest.er2 >/dev/null; then
9480         lt_cv_prog_compiler_static_works=yes
9481       fi
9482     else
9483       lt_cv_prog_compiler_static_works=yes
9484     fi
9485   fi
9486   $RM -r conftest*
9487   LDFLAGS="$save_LDFLAGS"
9488
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9491$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9492
9493if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9494    :
9495else
9496    lt_prog_compiler_static=
9497fi
9498
9499
9500
9501
9502
9503
9504
9505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9506$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9507if ${lt_cv_prog_compiler_c_o+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  lt_cv_prog_compiler_c_o=no
9511   $RM -r conftest 2>/dev/null
9512   mkdir conftest
9513   cd conftest
9514   mkdir out
9515   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516
9517   lt_compiler_flag="-o out/conftest2.$ac_objext"
9518   # Insert the option either (1) after the last *FLAGS variable, or
9519   # (2) before a word containing "conftest.", or (3) at the end.
9520   # Note that $ac_compile itself does not contain backslashes and begins
9521   # with a dollar sign (not a hyphen), so the echo should work correctly.
9522   lt_compile=`echo "$ac_compile" | $SED \
9523   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9524   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9525   -e 's:$: $lt_compiler_flag:'`
9526   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9527   (eval "$lt_compile" 2>out/conftest.err)
9528   ac_status=$?
9529   cat out/conftest.err >&5
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9532   then
9533     # The compiler can only warn and ignore the option if not recognized
9534     # So say no if there are warnings
9535     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9536     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9537     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9538       lt_cv_prog_compiler_c_o=yes
9539     fi
9540   fi
9541   chmod u+w . 2>&5
9542   $RM conftest*
9543   # SGI C++ compiler will create directory out/ii_files/ for
9544   # template instantiation
9545   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9546   $RM out/* && rmdir out
9547   cd ..
9548   $RM -r conftest
9549   $RM conftest*
9550
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9553$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9554
9555
9556
9557
9558
9559
9560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9561$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9562if ${lt_cv_prog_compiler_c_o+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  lt_cv_prog_compiler_c_o=no
9566   $RM -r conftest 2>/dev/null
9567   mkdir conftest
9568   cd conftest
9569   mkdir out
9570   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9571
9572   lt_compiler_flag="-o out/conftest2.$ac_objext"
9573   # Insert the option either (1) after the last *FLAGS variable, or
9574   # (2) before a word containing "conftest.", or (3) at the end.
9575   # Note that $ac_compile itself does not contain backslashes and begins
9576   # with a dollar sign (not a hyphen), so the echo should work correctly.
9577   lt_compile=`echo "$ac_compile" | $SED \
9578   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9580   -e 's:$: $lt_compiler_flag:'`
9581   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9582   (eval "$lt_compile" 2>out/conftest.err)
9583   ac_status=$?
9584   cat out/conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9587   then
9588     # The compiler can only warn and ignore the option if not recognized
9589     # So say no if there are warnings
9590     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9591     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9592     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9593       lt_cv_prog_compiler_c_o=yes
9594     fi
9595   fi
9596   chmod u+w . 2>&5
9597   $RM conftest*
9598   # SGI C++ compiler will create directory out/ii_files/ for
9599   # template instantiation
9600   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9601   $RM out/* && rmdir out
9602   cd ..
9603   $RM -r conftest
9604   $RM conftest*
9605
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9608$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9609
9610
9611
9612
9613hard_links="nottested"
9614if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9615  # do not overwrite the value of need_locks provided by the user
9616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9617$as_echo_n "checking if we can lock with hard links... " >&6; }
9618  hard_links=yes
9619  $RM conftest*
9620  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9621  touch conftest.a
9622  ln conftest.a conftest.b 2>&5 || hard_links=no
9623  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9625$as_echo "$hard_links" >&6; }
9626  if test "$hard_links" = no; then
9627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9628$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9629    need_locks=warn
9630  fi
9631else
9632  need_locks=no
9633fi
9634
9635
9636
9637
9638
9639
9640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9641$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9642
9643  runpath_var=
9644  allow_undefined_flag=
9645  always_export_symbols=no
9646  archive_cmds=
9647  archive_expsym_cmds=
9648  compiler_needs_object=no
9649  enable_shared_with_static_runtimes=no
9650  export_dynamic_flag_spec=
9651  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9652  hardcode_automatic=no
9653  hardcode_direct=no
9654  hardcode_direct_absolute=no
9655  hardcode_libdir_flag_spec=
9656  hardcode_libdir_separator=
9657  hardcode_minus_L=no
9658  hardcode_shlibpath_var=unsupported
9659  inherit_rpath=no
9660  link_all_deplibs=unknown
9661  module_cmds=
9662  module_expsym_cmds=
9663  old_archive_from_new_cmds=
9664  old_archive_from_expsyms_cmds=
9665  thread_safe_flag_spec=
9666  whole_archive_flag_spec=
9667  # include_expsyms should be a list of space-separated symbols to be *always*
9668  # included in the symbol list
9669  include_expsyms=
9670  # exclude_expsyms can be an extended regexp of symbols to exclude
9671  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9672  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9673  # as well as any symbol that contains `d'.
9674  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9675  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9676  # platforms (ab)use it in PIC code, but their linkers get confused if
9677  # the symbol is explicitly referenced.  Since portable code cannot
9678  # rely on this symbol name, it's probably fine to never include it in
9679  # preloaded symbol tables.
9680  # Exclude shared library initialization/finalization symbols.
9681  extract_expsyms_cmds=
9682
9683  case $host_os in
9684  cygwin* | mingw* | pw32* | cegcc*)
9685    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9686    # When not using gcc, we currently assume that we are using
9687    # Microsoft Visual C++.
9688    if test "$GCC" != yes; then
9689      with_gnu_ld=no
9690    fi
9691    ;;
9692  interix*)
9693    # we just hope/assume this is gcc and not c89 (= MSVC++)
9694    with_gnu_ld=yes
9695    ;;
9696  openbsd*)
9697    with_gnu_ld=no
9698    ;;
9699  linux* | k*bsd*-gnu | gnu*)
9700    link_all_deplibs=no
9701    ;;
9702  esac
9703
9704  ld_shlibs=yes
9705
9706  # On some targets, GNU ld is compatible enough with the native linker
9707  # that we're better off using the native interface for both.
9708  lt_use_gnu_ld_interface=no
9709  if test "$with_gnu_ld" = yes; then
9710    case $host_os in
9711      aix*)
9712	# The AIX port of GNU ld has always aspired to compatibility
9713	# with the native linker.  However, as the warning in the GNU ld
9714	# block says, versions before 2.19.5* couldn't really create working
9715	# shared libraries, regardless of the interface used.
9716	case `$LD -v 2>&1` in
9717	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9718	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9719	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9720	  *)
9721	    lt_use_gnu_ld_interface=yes
9722	    ;;
9723	esac
9724	;;
9725      *)
9726	lt_use_gnu_ld_interface=yes
9727	;;
9728    esac
9729  fi
9730
9731  if test "$lt_use_gnu_ld_interface" = yes; then
9732    # If archive_cmds runs LD, not CC, wlarc should be empty
9733    wlarc='${wl}'
9734
9735    # Set some defaults for GNU ld with shared library support. These
9736    # are reset later if shared libraries are not supported. Putting them
9737    # here allows them to be overridden if necessary.
9738    runpath_var=LD_RUN_PATH
9739    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740    export_dynamic_flag_spec='${wl}--export-dynamic'
9741    # ancient GNU ld didn't support --whole-archive et. al.
9742    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9743      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9744    else
9745      whole_archive_flag_spec=
9746    fi
9747    supports_anon_versioning=no
9748    case `$LD -v 2>&1` in
9749      *GNU\ gold*) supports_anon_versioning=yes ;;
9750      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9751      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9752      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9753      *\ 2.11.*) ;; # other 2.11 versions
9754      *) supports_anon_versioning=yes ;;
9755    esac
9756
9757    # See if GNU ld supports shared libraries.
9758    case $host_os in
9759    aix[3-9]*)
9760      # On AIX/PPC, the GNU linker is very broken
9761      if test "$host_cpu" != ia64; then
9762	ld_shlibs=no
9763	cat <<_LT_EOF 1>&2
9764
9765*** Warning: the GNU linker, at least up to release 2.19, is reported
9766*** to be unable to reliably create shared libraries on AIX.
9767*** Therefore, libtool is disabling shared libraries support.  If you
9768*** really care for shared libraries, you may want to install binutils
9769*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9770*** You will then need to restart the configuration process.
9771
9772_LT_EOF
9773      fi
9774      ;;
9775
9776    amigaos*)
9777      case $host_cpu in
9778      powerpc)
9779            # see comment about AmigaOS4 .so support
9780            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781            archive_expsym_cmds=''
9782        ;;
9783      m68k)
9784            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)'
9785            hardcode_libdir_flag_spec='-L$libdir'
9786            hardcode_minus_L=yes
9787        ;;
9788      esac
9789      ;;
9790
9791    beos*)
9792      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9793	allow_undefined_flag=unsupported
9794	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9795	# support --undefined.  This deserves some investigation.  FIXME
9796	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797      else
9798	ld_shlibs=no
9799      fi
9800      ;;
9801
9802    cygwin* | mingw* | pw32* | cegcc*)
9803      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9804      # as there is no search path for DLLs.
9805      hardcode_libdir_flag_spec='-L$libdir'
9806      export_dynamic_flag_spec='${wl}--export-all-symbols'
9807      allow_undefined_flag=unsupported
9808      always_export_symbols=no
9809      enable_shared_with_static_runtimes=yes
9810      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'
9811      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9812
9813      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9814        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9815	# If the export-symbols file already is a .def file (1st line
9816	# is EXPORTS), use it as is; otherwise, prepend...
9817	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9818	  cp $export_symbols $output_objdir/$soname.def;
9819	else
9820	  echo EXPORTS > $output_objdir/$soname.def;
9821	  cat $export_symbols >> $output_objdir/$soname.def;
9822	fi~
9823	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9824      else
9825	ld_shlibs=no
9826      fi
9827      ;;
9828
9829    haiku*)
9830      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831      link_all_deplibs=yes
9832      ;;
9833
9834    interix[3-9]*)
9835      hardcode_direct=no
9836      hardcode_shlibpath_var=no
9837      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9838      export_dynamic_flag_spec='${wl}-E'
9839      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9840      # Instead, shared libraries are loaded at an image base (0x10000000 by
9841      # default) and relocated if they conflict, which is a slow very memory
9842      # consuming and fragmenting process.  To avoid this, we pick a random,
9843      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9844      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9845      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9846      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'
9847      ;;
9848
9849    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9850      tmp_diet=no
9851      if test "$host_os" = linux-dietlibc; then
9852	case $cc_basename in
9853	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9854	esac
9855      fi
9856      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9857	 && test "$tmp_diet" = no
9858      then
9859	tmp_addflag=' $pic_flag'
9860	tmp_sharedflag='-shared'
9861	case $cc_basename,$host_cpu in
9862        pgcc*)				# Portland Group C compiler
9863	  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'
9864	  tmp_addflag=' $pic_flag'
9865	  ;;
9866	pgf77* | pgf90* | pgf95* | pgfortran*)
9867					# Portland Group f77 and f90 compilers
9868	  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'
9869	  tmp_addflag=' $pic_flag -Mnomain' ;;
9870	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9871	  tmp_addflag=' -i_dynamic' ;;
9872	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9873	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9874	ifc* | ifort*)			# Intel Fortran compiler
9875	  tmp_addflag=' -nofor_main' ;;
9876	lf95*)				# Lahey Fortran 8.1
9877	  whole_archive_flag_spec=
9878	  tmp_sharedflag='--shared' ;;
9879	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9880	  tmp_sharedflag='-qmkshrobj'
9881	  tmp_addflag= ;;
9882	nvcc*)	# Cuda Compiler Driver 2.2
9883	  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'
9884	  compiler_needs_object=yes
9885	  ;;
9886	esac
9887	case `$CC -V 2>&1 | sed 5q` in
9888	*Sun\ C*)			# Sun C 5.9
9889	  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'
9890	  compiler_needs_object=yes
9891	  tmp_sharedflag='-G' ;;
9892	*Sun\ F*)			# Sun Fortran 8.3
9893	  tmp_sharedflag='-G' ;;
9894	esac
9895	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9896
9897        if test "x$supports_anon_versioning" = xyes; then
9898          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9899	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9900	    echo "local: *; };" >> $output_objdir/$libname.ver~
9901	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9902        fi
9903
9904	case $cc_basename in
9905	xlf* | bgf* | bgxlf* | mpixlf*)
9906	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9907	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9908	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9910	  if test "x$supports_anon_versioning" = xyes; then
9911	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9912	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9913	      echo "local: *; };" >> $output_objdir/$libname.ver~
9914	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9915	  fi
9916	  ;;
9917	esac
9918      else
9919        ld_shlibs=no
9920      fi
9921      ;;
9922
9923    netbsd* | netbsdelf*-gnu)
9924      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9925	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9926	wlarc=
9927      else
9928	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9930      fi
9931      ;;
9932
9933    solaris*)
9934      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9935	ld_shlibs=no
9936	cat <<_LT_EOF 1>&2
9937
9938*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9939*** create shared libraries on Solaris systems.  Therefore, libtool
9940*** is disabling shared libraries support.  We urge you to upgrade GNU
9941*** binutils to release 2.9.1 or newer.  Another option is to modify
9942*** your PATH or compiler configuration so that the native linker is
9943*** used, and then restart.
9944
9945_LT_EOF
9946      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9948	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9949      else
9950	ld_shlibs=no
9951      fi
9952      ;;
9953
9954    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9955      case `$LD -v 2>&1` in
9956        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9957	ld_shlibs=no
9958	cat <<_LT_EOF 1>&2
9959
9960*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9961*** reliably create shared libraries on SCO systems.  Therefore, libtool
9962*** is disabling shared libraries support.  We urge you to upgrade GNU
9963*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9964*** your PATH or compiler configuration so that the native linker is
9965*** used, and then restart.
9966
9967_LT_EOF
9968	;;
9969	*)
9970	  # For security reasons, it is highly recommended that you always
9971	  # use absolute paths for naming shared libraries, and exclude the
9972	  # DT_RUNPATH tag from executables and libraries.  But doing so
9973	  # requires that you compile everything twice, which is a pain.
9974	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9975	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9978	  else
9979	    ld_shlibs=no
9980	  fi
9981	;;
9982      esac
9983      ;;
9984
9985    sunos4*)
9986      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987      wlarc=
9988      hardcode_direct=yes
9989      hardcode_shlibpath_var=no
9990      ;;
9991
9992    *)
9993      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9994	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9996      else
9997	ld_shlibs=no
9998      fi
9999      ;;
10000    esac
10001
10002    if test "$ld_shlibs" = no; then
10003      runpath_var=
10004      hardcode_libdir_flag_spec=
10005      export_dynamic_flag_spec=
10006      whole_archive_flag_spec=
10007    fi
10008  else
10009    # PORTME fill in a description of your system's linker (not GNU ld)
10010    case $host_os in
10011    aix3*)
10012      allow_undefined_flag=unsupported
10013      always_export_symbols=yes
10014      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'
10015      # Note: this linker hardcodes the directories in LIBPATH if there
10016      # are no directories specified by -L.
10017      hardcode_minus_L=yes
10018      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10019	# Neither direct hardcoding nor static linking is supported with a
10020	# broken collect2.
10021	hardcode_direct=unsupported
10022      fi
10023      ;;
10024
10025    aix[4-9]*)
10026      if test "$host_cpu" = ia64; then
10027	# On IA64, the linker does run time linking by default, so we don't
10028	# have to do anything special.
10029	aix_use_runtimelinking=no
10030	exp_sym_flag='-Bexport'
10031	no_entry_flag=""
10032      else
10033	# If we're using GNU nm, then we don't want the "-C" option.
10034	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10035	# Also, AIX nm treats weak defined symbols like other global
10036	# defined symbols, whereas GNU nm marks them as "W".
10037	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10038	  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'
10039	else
10040	  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'
10041	fi
10042	aix_use_runtimelinking=no
10043
10044	# Test if we are trying to use run time linking or normal
10045	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10046	# need to do runtime linking.
10047	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10048	  for ld_flag in $LDFLAGS; do
10049	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10050	    aix_use_runtimelinking=yes
10051	    break
10052	  fi
10053	  done
10054	  ;;
10055	esac
10056
10057	exp_sym_flag='-bexport'
10058	no_entry_flag='-bnoentry'
10059      fi
10060
10061      # When large executables or shared objects are built, AIX ld can
10062      # have problems creating the table of contents.  If linking a library
10063      # or program results in "error TOC overflow" add -mminimal-toc to
10064      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10065      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10066
10067      archive_cmds=''
10068      hardcode_direct=yes
10069      hardcode_direct_absolute=yes
10070      hardcode_libdir_separator=':'
10071      link_all_deplibs=yes
10072      file_list_spec='${wl}-f,'
10073
10074      if test "$GCC" = yes; then
10075	case $host_os in aix4.[012]|aix4.[012].*)
10076	# We only want to do this on AIX 4.2 and lower, the check
10077	# below for broken collect2 doesn't work under 4.3+
10078	  collect2name=`${CC} -print-prog-name=collect2`
10079	  if test -f "$collect2name" &&
10080	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10081	  then
10082	  # We have reworked collect2
10083	  :
10084	  else
10085	  # We have old collect2
10086	  hardcode_direct=unsupported
10087	  # It fails to find uninstalled libraries when the uninstalled
10088	  # path is not listed in the libpath.  Setting hardcode_minus_L
10089	  # to unsupported forces relinking
10090	  hardcode_minus_L=yes
10091	  hardcode_libdir_flag_spec='-L$libdir'
10092	  hardcode_libdir_separator=
10093	  fi
10094	  ;;
10095	esac
10096	shared_flag='-shared'
10097	if test "$aix_use_runtimelinking" = yes; then
10098	  shared_flag="$shared_flag "'${wl}-G'
10099	fi
10100	link_all_deplibs=no
10101      else
10102	# not using gcc
10103	if test "$host_cpu" = ia64; then
10104	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10105	# chokes on -Wl,-G. The following line is correct:
10106	  shared_flag='-G'
10107	else
10108	  if test "$aix_use_runtimelinking" = yes; then
10109	    shared_flag='${wl}-G'
10110	  else
10111	    shared_flag='${wl}-bM:SRE'
10112	  fi
10113	fi
10114      fi
10115
10116      export_dynamic_flag_spec='${wl}-bexpall'
10117      # It seems that -bexpall does not export symbols beginning with
10118      # underscore (_), so it is better to generate a list of symbols to export.
10119      always_export_symbols=yes
10120      if test "$aix_use_runtimelinking" = yes; then
10121	# Warning - without using the other runtime loading flags (-brtl),
10122	# -berok will link without error, but may produce a broken library.
10123	allow_undefined_flag='-berok'
10124        # Determine the default libpath from the value encoded in an
10125        # empty executable.
10126        if test "${lt_cv_aix_libpath+set}" = set; then
10127  aix_libpath=$lt_cv_aix_libpath
10128else
10129  if ${lt_cv_aix_libpath_+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h.  */
10134
10135int
10136main ()
10137{
10138
10139  ;
10140  return 0;
10141}
10142_ACEOF
10143if ac_fn_c_try_link "$LINENO"; then :
10144
10145  lt_aix_libpath_sed='
10146      /Import File Strings/,/^$/ {
10147	  /^0/ {
10148	      s/^0  *\([^ ]*\) *$/\1/
10149	      p
10150	  }
10151      }'
10152  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10153  # Check for a 64-bit object if we didn't find anything.
10154  if test -z "$lt_cv_aix_libpath_"; then
10155    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156  fi
10157fi
10158rm -f core conftest.err conftest.$ac_objext \
10159    conftest$ac_exeext conftest.$ac_ext
10160  if test -z "$lt_cv_aix_libpath_"; then
10161    lt_cv_aix_libpath_="/usr/lib:/lib"
10162  fi
10163
10164fi
10165
10166  aix_libpath=$lt_cv_aix_libpath_
10167fi
10168
10169        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10170        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"
10171      else
10172	if test "$host_cpu" = ia64; then
10173	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10174	  allow_undefined_flag="-z nodefs"
10175	  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"
10176	else
10177	 # Determine the default libpath from the value encoded in an
10178	 # empty executable.
10179	 if test "${lt_cv_aix_libpath+set}" = set; then
10180  aix_libpath=$lt_cv_aix_libpath
10181else
10182  if ${lt_cv_aix_libpath_+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187
10188int
10189main ()
10190{
10191
10192  ;
10193  return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
10197
10198  lt_aix_libpath_sed='
10199      /Import File Strings/,/^$/ {
10200	  /^0/ {
10201	      s/^0  *\([^ ]*\) *$/\1/
10202	      p
10203	  }
10204      }'
10205  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10206  # Check for a 64-bit object if we didn't find anything.
10207  if test -z "$lt_cv_aix_libpath_"; then
10208    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10209  fi
10210fi
10211rm -f core conftest.err conftest.$ac_objext \
10212    conftest$ac_exeext conftest.$ac_ext
10213  if test -z "$lt_cv_aix_libpath_"; then
10214    lt_cv_aix_libpath_="/usr/lib:/lib"
10215  fi
10216
10217fi
10218
10219  aix_libpath=$lt_cv_aix_libpath_
10220fi
10221
10222	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10223	  # Warning - without using the other run time loading flags,
10224	  # -berok will link without error, but may produce a broken library.
10225	  no_undefined_flag=' ${wl}-bernotok'
10226	  allow_undefined_flag=' ${wl}-berok'
10227	  if test "$with_gnu_ld" = yes; then
10228	    # We only use this code for GNU lds that support --whole-archive.
10229	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10230	  else
10231	    # Exported symbols can be pulled into shared objects from archives
10232	    whole_archive_flag_spec='$convenience'
10233	  fi
10234	  archive_cmds_need_lc=yes
10235	  # This is similar to how AIX traditionally builds its shared libraries.
10236	  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'
10237	fi
10238      fi
10239      ;;
10240
10241    amigaos*)
10242      case $host_cpu in
10243      powerpc)
10244            # see comment about AmigaOS4 .so support
10245            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246            archive_expsym_cmds=''
10247        ;;
10248      m68k)
10249            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)'
10250            hardcode_libdir_flag_spec='-L$libdir'
10251            hardcode_minus_L=yes
10252        ;;
10253      esac
10254      ;;
10255
10256    bsdi[45]*)
10257      export_dynamic_flag_spec=-rdynamic
10258      ;;
10259
10260    cygwin* | mingw* | pw32* | cegcc*)
10261      # When not using gcc, we currently assume that we are using
10262      # Microsoft Visual C++.
10263      # hardcode_libdir_flag_spec is actually meaningless, as there is
10264      # no search path for DLLs.
10265      case $cc_basename in
10266      cl*)
10267	# Native MSVC
10268	hardcode_libdir_flag_spec=' '
10269	allow_undefined_flag=unsupported
10270	always_export_symbols=yes
10271	file_list_spec='@'
10272	# Tell ltmain to make .lib files, not .a files.
10273	libext=lib
10274	# Tell ltmain to make .dll files, not .so files.
10275	shrext_cmds=".dll"
10276	# FIXME: Setting linknames here is a bad hack.
10277	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10278	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10279	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10280	  else
10281	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10282	  fi~
10283	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10284	  linknames='
10285	# The linker will not automatically build a static lib if we build a DLL.
10286	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10287	enable_shared_with_static_runtimes=yes
10288	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10289	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10290	# Don't use ranlib
10291	old_postinstall_cmds='chmod 644 $oldlib'
10292	postlink_cmds='lt_outputfile="@OUTPUT@"~
10293	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10294	  case $lt_outputfile in
10295	    *.exe|*.EXE) ;;
10296	    *)
10297	      lt_outputfile="$lt_outputfile.exe"
10298	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10299	      ;;
10300	  esac~
10301	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10302	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10303	    $RM "$lt_outputfile.manifest";
10304	  fi'
10305	;;
10306      *)
10307	# Assume MSVC wrapper
10308	hardcode_libdir_flag_spec=' '
10309	allow_undefined_flag=unsupported
10310	# Tell ltmain to make .lib files, not .a files.
10311	libext=lib
10312	# Tell ltmain to make .dll files, not .so files.
10313	shrext_cmds=".dll"
10314	# FIXME: Setting linknames here is a bad hack.
10315	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10316	# The linker will automatically build a .lib file if we build a DLL.
10317	old_archive_from_new_cmds='true'
10318	# FIXME: Should let the user specify the lib program.
10319	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10320	enable_shared_with_static_runtimes=yes
10321	;;
10322      esac
10323      ;;
10324
10325    darwin* | rhapsody*)
10326
10327
10328  archive_cmds_need_lc=no
10329  hardcode_direct=no
10330  hardcode_automatic=yes
10331  hardcode_shlibpath_var=unsupported
10332  if test "$lt_cv_ld_force_load" = "yes"; then
10333    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\"`'
10334
10335  else
10336    whole_archive_flag_spec=''
10337  fi
10338  link_all_deplibs=yes
10339  allow_undefined_flag="$_lt_dar_allow_undefined"
10340  case $cc_basename in
10341     ifort*) _lt_dar_can_shared=yes ;;
10342     *) _lt_dar_can_shared=$GCC ;;
10343  esac
10344  if test "$_lt_dar_can_shared" = "yes"; then
10345    output_verbose_link_cmd=func_echo_all
10346    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10347    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10348    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}"
10349    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}"
10350
10351  else
10352  ld_shlibs=no
10353  fi
10354
10355      ;;
10356
10357    dgux*)
10358      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359      hardcode_libdir_flag_spec='-L$libdir'
10360      hardcode_shlibpath_var=no
10361      ;;
10362
10363    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10364    # support.  Future versions do this automatically, but an explicit c++rt0.o
10365    # does not break anything, and helps significantly (at the cost of a little
10366    # extra space).
10367    freebsd2.2*)
10368      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10369      hardcode_libdir_flag_spec='-R$libdir'
10370      hardcode_direct=yes
10371      hardcode_shlibpath_var=no
10372      ;;
10373
10374    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10375    freebsd2.*)
10376      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10377      hardcode_direct=yes
10378      hardcode_minus_L=yes
10379      hardcode_shlibpath_var=no
10380      ;;
10381
10382    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10383    freebsd* | dragonfly*)
10384      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10385      hardcode_libdir_flag_spec='-R$libdir'
10386      hardcode_direct=yes
10387      hardcode_shlibpath_var=no
10388      ;;
10389
10390    hpux9*)
10391      if test "$GCC" = yes; then
10392	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'
10393      else
10394	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'
10395      fi
10396      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10397      hardcode_libdir_separator=:
10398      hardcode_direct=yes
10399
10400      # hardcode_minus_L: Not really in the search PATH,
10401      # but as the default location of the library.
10402      hardcode_minus_L=yes
10403      export_dynamic_flag_spec='${wl}-E'
10404      ;;
10405
10406    hpux10*)
10407      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10408	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10409      else
10410	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10411      fi
10412      if test "$with_gnu_ld" = no; then
10413	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10414	hardcode_libdir_separator=:
10415	hardcode_direct=yes
10416	hardcode_direct_absolute=yes
10417	export_dynamic_flag_spec='${wl}-E'
10418	# hardcode_minus_L: Not really in the search PATH,
10419	# but as the default location of the library.
10420	hardcode_minus_L=yes
10421      fi
10422      ;;
10423
10424    hpux11*)
10425      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10426	case $host_cpu in
10427	hppa*64*)
10428	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10429	  ;;
10430	ia64*)
10431	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10432	  ;;
10433	*)
10434	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10435	  ;;
10436	esac
10437      else
10438	case $host_cpu in
10439	hppa*64*)
10440	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10441	  ;;
10442	ia64*)
10443	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10444	  ;;
10445	*)
10446
10447	  # Older versions of the 11.00 compiler do not understand -b yet
10448	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10449	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10450$as_echo_n "checking if $CC understands -b... " >&6; }
10451if ${lt_cv_prog_compiler__b+:} false; then :
10452  $as_echo_n "(cached) " >&6
10453else
10454  lt_cv_prog_compiler__b=no
10455   save_LDFLAGS="$LDFLAGS"
10456   LDFLAGS="$LDFLAGS -b"
10457   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10458   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10459     # The linker can only warn and ignore the option if not recognized
10460     # So say no if there are warnings
10461     if test -s conftest.err; then
10462       # Append any errors to the config.log.
10463       cat conftest.err 1>&5
10464       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10465       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10466       if diff conftest.exp conftest.er2 >/dev/null; then
10467         lt_cv_prog_compiler__b=yes
10468       fi
10469     else
10470       lt_cv_prog_compiler__b=yes
10471     fi
10472   fi
10473   $RM -r conftest*
10474   LDFLAGS="$save_LDFLAGS"
10475
10476fi
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10478$as_echo "$lt_cv_prog_compiler__b" >&6; }
10479
10480if test x"$lt_cv_prog_compiler__b" = xyes; then
10481    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10482else
10483    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10484fi
10485
10486	  ;;
10487	esac
10488      fi
10489      if test "$with_gnu_ld" = no; then
10490	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10491	hardcode_libdir_separator=:
10492
10493	case $host_cpu in
10494	hppa*64*|ia64*)
10495	  hardcode_direct=no
10496	  hardcode_shlibpath_var=no
10497	  ;;
10498	*)
10499	  hardcode_direct=yes
10500	  hardcode_direct_absolute=yes
10501	  export_dynamic_flag_spec='${wl}-E'
10502
10503	  # hardcode_minus_L: Not really in the search PATH,
10504	  # but as the default location of the library.
10505	  hardcode_minus_L=yes
10506	  ;;
10507	esac
10508      fi
10509      ;;
10510
10511    irix5* | irix6* | nonstopux*)
10512      if test "$GCC" = yes; then
10513	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'
10514	# Try to use the -exported_symbol ld option, if it does not
10515	# work, assume that -exports_file does not work either and
10516	# implicitly export all symbols.
10517	# This should be the same for all languages, so no per-tag cache variable.
10518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10519$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10520if ${lt_cv_irix_exported_symbol+:} false; then :
10521  $as_echo_n "(cached) " >&6
10522else
10523  save_LDFLAGS="$LDFLAGS"
10524	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10525	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526/* end confdefs.h.  */
10527int foo (void) { return 0; }
10528_ACEOF
10529if ac_fn_c_try_link "$LINENO"; then :
10530  lt_cv_irix_exported_symbol=yes
10531else
10532  lt_cv_irix_exported_symbol=no
10533fi
10534rm -f core conftest.err conftest.$ac_objext \
10535    conftest$ac_exeext conftest.$ac_ext
10536           LDFLAGS="$save_LDFLAGS"
10537fi
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10539$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10540	if test "$lt_cv_irix_exported_symbol" = yes; then
10541          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'
10542	fi
10543      else
10544	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'
10545	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'
10546      fi
10547      archive_cmds_need_lc='no'
10548      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549      hardcode_libdir_separator=:
10550      inherit_rpath=yes
10551      link_all_deplibs=yes
10552      ;;
10553
10554    netbsd* | netbsdelf*-gnu)
10555      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10556	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10557      else
10558	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10559      fi
10560      hardcode_libdir_flag_spec='-R$libdir'
10561      hardcode_direct=yes
10562      hardcode_shlibpath_var=no
10563      ;;
10564
10565    newsos6)
10566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567      hardcode_direct=yes
10568      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10569      hardcode_libdir_separator=:
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    *nto* | *qnx*)
10574      ;;
10575
10576    openbsd*)
10577      if test -f /usr/libexec/ld.so; then
10578	hardcode_direct=yes
10579	hardcode_shlibpath_var=no
10580	hardcode_direct_absolute=yes
10581	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10582	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10584	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10585	  export_dynamic_flag_spec='${wl}-E'
10586	else
10587	  case $host_os in
10588	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10589	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10590	     hardcode_libdir_flag_spec='-R$libdir'
10591	     ;;
10592	   *)
10593	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10594	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10595	     ;;
10596	  esac
10597	fi
10598      else
10599	ld_shlibs=no
10600      fi
10601      ;;
10602
10603    os2*)
10604      hardcode_libdir_flag_spec='-L$libdir'
10605      hardcode_minus_L=yes
10606      allow_undefined_flag=unsupported
10607      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'
10608      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10609      ;;
10610
10611    osf3*)
10612      if test "$GCC" = yes; then
10613	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10614	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'
10615      else
10616	allow_undefined_flag=' -expect_unresolved \*'
10617	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'
10618      fi
10619      archive_cmds_need_lc='no'
10620      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10621      hardcode_libdir_separator=:
10622      ;;
10623
10624    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10625      if test "$GCC" = yes; then
10626	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10627	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'
10628	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10629      else
10630	allow_undefined_flag=' -expect_unresolved \*'
10631	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'
10632	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~
10633	$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'
10634
10635	# Both c and cxx compiler support -rpath directly
10636	hardcode_libdir_flag_spec='-rpath $libdir'
10637      fi
10638      archive_cmds_need_lc='no'
10639      hardcode_libdir_separator=:
10640      ;;
10641
10642    solaris*)
10643      no_undefined_flag=' -z defs'
10644      if test "$GCC" = yes; then
10645	wlarc='${wl}'
10646	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10647	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10648	  $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'
10649      else
10650	case `$CC -V 2>&1` in
10651	*"Compilers 5.0"*)
10652	  wlarc=''
10653	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10655	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10656	  ;;
10657	*)
10658	  wlarc='${wl}'
10659	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10660	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10661	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10662	  ;;
10663	esac
10664      fi
10665      hardcode_libdir_flag_spec='-R$libdir'
10666      hardcode_shlibpath_var=no
10667      case $host_os in
10668      solaris2.[0-5] | solaris2.[0-5].*) ;;
10669      *)
10670	# The compiler driver will combine and reorder linker options,
10671	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10672	# but is careful enough not to reorder.
10673	# Supported since Solaris 2.6 (maybe 2.5.1?)
10674	if test "$GCC" = yes; then
10675	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10676	else
10677	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10678	fi
10679	;;
10680      esac
10681      link_all_deplibs=yes
10682      ;;
10683
10684    sunos4*)
10685      if test "x$host_vendor" = xsequent; then
10686	# Use $CC to link under sequent, because it throws in some extra .o
10687	# files that make .init and .fini sections work.
10688	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10689      else
10690	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10691      fi
10692      hardcode_libdir_flag_spec='-L$libdir'
10693      hardcode_direct=yes
10694      hardcode_minus_L=yes
10695      hardcode_shlibpath_var=no
10696      ;;
10697
10698    sysv4)
10699      case $host_vendor in
10700	sni)
10701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702	  hardcode_direct=yes # is this really true???
10703	;;
10704	siemens)
10705	  ## LD is ld it makes a PLAMLIB
10706	  ## CC just makes a GrossModule.
10707	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10708	  reload_cmds='$CC -r -o $output$reload_objs'
10709	  hardcode_direct=no
10710        ;;
10711	motorola)
10712	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10714	;;
10715      esac
10716      runpath_var='LD_RUN_PATH'
10717      hardcode_shlibpath_var=no
10718      ;;
10719
10720    sysv4.3*)
10721      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10722      hardcode_shlibpath_var=no
10723      export_dynamic_flag_spec='-Bexport'
10724      ;;
10725
10726    sysv4*MP*)
10727      if test -d /usr/nec; then
10728	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729	hardcode_shlibpath_var=no
10730	runpath_var=LD_RUN_PATH
10731	hardcode_runpath_var=yes
10732	ld_shlibs=yes
10733      fi
10734      ;;
10735
10736    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10737      no_undefined_flag='${wl}-z,text'
10738      archive_cmds_need_lc=no
10739      hardcode_shlibpath_var=no
10740      runpath_var='LD_RUN_PATH'
10741
10742      if test "$GCC" = yes; then
10743	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745      else
10746	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748      fi
10749      ;;
10750
10751    sysv5* | sco3.2v5* | sco5v6*)
10752      # Note: We can NOT use -z defs as we might desire, because we do not
10753      # link with -lc, and that would cause any symbols used from libc to
10754      # always be unresolved, which means just about no library would
10755      # ever link correctly.  If we're not using GNU ld we use -z text
10756      # though, which does catch some bad symbols but isn't as heavy-handed
10757      # as -z defs.
10758      no_undefined_flag='${wl}-z,text'
10759      allow_undefined_flag='${wl}-z,nodefs'
10760      archive_cmds_need_lc=no
10761      hardcode_shlibpath_var=no
10762      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10763      hardcode_libdir_separator=':'
10764      link_all_deplibs=yes
10765      export_dynamic_flag_spec='${wl}-Bexport'
10766      runpath_var='LD_RUN_PATH'
10767
10768      if test "$GCC" = yes; then
10769	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10771      else
10772	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774      fi
10775      ;;
10776
10777    uts4*)
10778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779      hardcode_libdir_flag_spec='-L$libdir'
10780      hardcode_shlibpath_var=no
10781      ;;
10782
10783    *)
10784      ld_shlibs=no
10785      ;;
10786    esac
10787
10788    if test x$host_vendor = xsni; then
10789      case $host in
10790      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10791	export_dynamic_flag_spec='${wl}-Blargedynsym'
10792	;;
10793      esac
10794    fi
10795  fi
10796
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10798$as_echo "$ld_shlibs" >&6; }
10799test "$ld_shlibs" = no && can_build_shared=no
10800
10801with_gnu_ld=$with_gnu_ld
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817#
10818# Do we need to explicitly link libc?
10819#
10820case "x$archive_cmds_need_lc" in
10821x|xyes)
10822  # Assume -lc should be added
10823  archive_cmds_need_lc=yes
10824
10825  if test "$enable_shared" = yes && test "$GCC" = yes; then
10826    case $archive_cmds in
10827    *'~'*)
10828      # FIXME: we may have to deal with multi-command sequences.
10829      ;;
10830    '$CC '*)
10831      # Test whether the compiler implicitly links with -lc since on some
10832      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10833      # to ld, don't add -lc before -lgcc.
10834      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10835$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10836if ${lt_cv_archive_cmds_need_lc+:} false; then :
10837  $as_echo_n "(cached) " >&6
10838else
10839  $RM conftest*
10840	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10841
10842	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10843  (eval $ac_compile) 2>&5
10844  ac_status=$?
10845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846  test $ac_status = 0; } 2>conftest.err; then
10847	  soname=conftest
10848	  lib=conftest
10849	  libobjs=conftest.$ac_objext
10850	  deplibs=
10851	  wl=$lt_prog_compiler_wl
10852	  pic_flag=$lt_prog_compiler_pic
10853	  compiler_flags=-v
10854	  linker_flags=-v
10855	  verstring=
10856	  output_objdir=.
10857	  libname=conftest
10858	  lt_save_allow_undefined_flag=$allow_undefined_flag
10859	  allow_undefined_flag=
10860	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10861  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10862  ac_status=$?
10863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864  test $ac_status = 0; }
10865	  then
10866	    lt_cv_archive_cmds_need_lc=no
10867	  else
10868	    lt_cv_archive_cmds_need_lc=yes
10869	  fi
10870	  allow_undefined_flag=$lt_save_allow_undefined_flag
10871	else
10872	  cat conftest.err 1>&5
10873	fi
10874	$RM conftest*
10875
10876fi
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10878$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10879      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10880      ;;
10881    esac
10882  fi
10883  ;;
10884esac
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11038$as_echo_n "checking dynamic linker characteristics... " >&6; }
11039
11040if test "$GCC" = yes; then
11041  case $host_os in
11042    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11043    *) lt_awk_arg="/^libraries:/" ;;
11044  esac
11045  case $host_os in
11046    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11047    *) lt_sed_strip_eq="s,=/,/,g" ;;
11048  esac
11049  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11050  case $lt_search_path_spec in
11051  *\;*)
11052    # if the path contains ";" then we assume it to be the separator
11053    # otherwise default to the standard path separator (i.e. ":") - it is
11054    # assumed that no part of a normal pathname contains ";" but that should
11055    # okay in the real world where ";" in dirpaths is itself problematic.
11056    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11057    ;;
11058  *)
11059    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11060    ;;
11061  esac
11062  # Ok, now we have the path, separated by spaces, we can step through it
11063  # and add multilib dir if necessary.
11064  lt_tmp_lt_search_path_spec=
11065  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11066  for lt_sys_path in $lt_search_path_spec; do
11067    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11068      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11069    else
11070      test -d "$lt_sys_path" && \
11071	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11072    fi
11073  done
11074  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11075BEGIN {RS=" "; FS="/|\n";} {
11076  lt_foo="";
11077  lt_count=0;
11078  for (lt_i = NF; lt_i > 0; lt_i--) {
11079    if ($lt_i != "" && $lt_i != ".") {
11080      if ($lt_i == "..") {
11081        lt_count++;
11082      } else {
11083        if (lt_count == 0) {
11084          lt_foo="/" $lt_i lt_foo;
11085        } else {
11086          lt_count--;
11087        }
11088      }
11089    }
11090  }
11091  if (lt_foo != "") { lt_freq[lt_foo]++; }
11092  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11093}'`
11094  # AWK program above erroneously prepends '/' to C:/dos/paths
11095  # for these hosts.
11096  case $host_os in
11097    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11098      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11099  esac
11100  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11101else
11102  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11103fi
11104library_names_spec=
11105libname_spec='lib$name'
11106soname_spec=
11107shrext_cmds=".so"
11108postinstall_cmds=
11109postuninstall_cmds=
11110finish_cmds=
11111finish_eval=
11112shlibpath_var=
11113shlibpath_overrides_runpath=unknown
11114version_type=none
11115dynamic_linker="$host_os ld.so"
11116sys_lib_dlsearch_path_spec="/lib /usr/lib"
11117need_lib_prefix=unknown
11118hardcode_into_libs=no
11119
11120# when you set need_version to no, make sure it does not cause -set_version
11121# flags to be left without arguments
11122need_version=unknown
11123
11124case $host_os in
11125aix3*)
11126  version_type=linux # correct to gnu/linux during the next big refactor
11127  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11128  shlibpath_var=LIBPATH
11129
11130  # AIX 3 has no versioning support, so we append a major version to the name.
11131  soname_spec='${libname}${release}${shared_ext}$major'
11132  ;;
11133
11134aix[4-9]*)
11135  version_type=linux # correct to gnu/linux during the next big refactor
11136  need_lib_prefix=no
11137  need_version=no
11138  hardcode_into_libs=yes
11139  if test "$host_cpu" = ia64; then
11140    # AIX 5 supports IA64
11141    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11142    shlibpath_var=LD_LIBRARY_PATH
11143  else
11144    # With GCC up to 2.95.x, collect2 would create an import file
11145    # for dependence libraries.  The import file would start with
11146    # the line `#! .'.  This would cause the generated library to
11147    # depend on `.', always an invalid library.  This was fixed in
11148    # development snapshots of GCC prior to 3.0.
11149    case $host_os in
11150      aix4 | aix4.[01] | aix4.[01].*)
11151      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11152	   echo ' yes '
11153	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11154	:
11155      else
11156	can_build_shared=no
11157      fi
11158      ;;
11159    esac
11160    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11161    # soname into executable. Probably we can add versioning support to
11162    # collect2, so additional links can be useful in future.
11163    if test "$aix_use_runtimelinking" = yes; then
11164      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11165      # instead of lib<name>.a to let people know that these are not
11166      # typical AIX shared libraries.
11167      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168    else
11169      # We preserve .a as extension for shared libraries through AIX4.2
11170      # and later when we are not doing run time linking.
11171      library_names_spec='${libname}${release}.a $libname.a'
11172      soname_spec='${libname}${release}${shared_ext}$major'
11173    fi
11174    shlibpath_var=LIBPATH
11175  fi
11176  ;;
11177
11178amigaos*)
11179  case $host_cpu in
11180  powerpc)
11181    # Since July 2007 AmigaOS4 officially supports .so libraries.
11182    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184    ;;
11185  m68k)
11186    library_names_spec='$libname.ixlibrary $libname.a'
11187    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11188    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'
11189    ;;
11190  esac
11191  ;;
11192
11193beos*)
11194  library_names_spec='${libname}${shared_ext}'
11195  dynamic_linker="$host_os ld.so"
11196  shlibpath_var=LIBRARY_PATH
11197  ;;
11198
11199bsdi[45]*)
11200  version_type=linux # correct to gnu/linux during the next big refactor
11201  need_version=no
11202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203  soname_spec='${libname}${release}${shared_ext}$major'
11204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11205  shlibpath_var=LD_LIBRARY_PATH
11206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11208  # the default ld.so.conf also contains /usr/contrib/lib and
11209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11210  # libtool to hard-code these into programs
11211  ;;
11212
11213cygwin* | mingw* | pw32* | cegcc*)
11214  version_type=windows
11215  shrext_cmds=".dll"
11216  need_version=no
11217  need_lib_prefix=no
11218
11219  case $GCC,$cc_basename in
11220  yes,*)
11221    # gcc
11222    library_names_spec='$libname.dll.a'
11223    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11224    postinstall_cmds='base_file=`basename \${file}`~
11225      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11226      dldir=$destdir/`dirname \$dlpath`~
11227      test -d \$dldir || mkdir -p \$dldir~
11228      $install_prog $dir/$dlname \$dldir/$dlname~
11229      chmod a+x \$dldir/$dlname~
11230      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11231        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11232      fi'
11233    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234      dlpath=$dir/\$dldll~
11235       $RM \$dlpath'
11236    shlibpath_overrides_runpath=yes
11237
11238    case $host_os in
11239    cygwin*)
11240      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242
11243      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11244      ;;
11245    mingw* | cegcc*)
11246      # MinGW DLLs use traditional 'lib' prefix
11247      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248      ;;
11249    pw32*)
11250      # pw32 DLLs use 'pw' prefix rather than 'lib'
11251      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11252      ;;
11253    esac
11254    dynamic_linker='Win32 ld.exe'
11255    ;;
11256
11257  *,cl*)
11258    # Native MSVC
11259    libname_spec='$name'
11260    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11261    library_names_spec='${libname}.dll.lib'
11262
11263    case $build_os in
11264    mingw*)
11265      sys_lib_search_path_spec=
11266      lt_save_ifs=$IFS
11267      IFS=';'
11268      for lt_path in $LIB
11269      do
11270        IFS=$lt_save_ifs
11271        # Let DOS variable expansion print the short 8.3 style file name.
11272        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11273        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11274      done
11275      IFS=$lt_save_ifs
11276      # Convert to MSYS style.
11277      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11278      ;;
11279    cygwin*)
11280      # Convert to unix form, then to dos form, then back to unix form
11281      # but this time dos style (no spaces!) so that the unix form looks
11282      # like /cygdrive/c/PROGRA~1:/cygdr...
11283      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11284      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11285      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11286      ;;
11287    *)
11288      sys_lib_search_path_spec="$LIB"
11289      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11290        # It is most probably a Windows format PATH.
11291        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11292      else
11293        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11294      fi
11295      # FIXME: find the short name or the path components, as spaces are
11296      # common. (e.g. "Program Files" -> "PROGRA~1")
11297      ;;
11298    esac
11299
11300    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11301    postinstall_cmds='base_file=`basename \${file}`~
11302      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11303      dldir=$destdir/`dirname \$dlpath`~
11304      test -d \$dldir || mkdir -p \$dldir~
11305      $install_prog $dir/$dlname \$dldir/$dlname'
11306    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11307      dlpath=$dir/\$dldll~
11308       $RM \$dlpath'
11309    shlibpath_overrides_runpath=yes
11310    dynamic_linker='Win32 link.exe'
11311    ;;
11312
11313  *)
11314    # Assume MSVC wrapper
11315    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11316    dynamic_linker='Win32 ld.exe'
11317    ;;
11318  esac
11319  # FIXME: first we should search . and the directory the executable is in
11320  shlibpath_var=PATH
11321  ;;
11322
11323darwin* | rhapsody*)
11324  dynamic_linker="$host_os dyld"
11325  version_type=darwin
11326  need_lib_prefix=no
11327  need_version=no
11328  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11329  soname_spec='${libname}${release}${major}$shared_ext'
11330  shlibpath_overrides_runpath=yes
11331  shlibpath_var=DYLD_LIBRARY_PATH
11332  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11333
11334  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11335  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11336  ;;
11337
11338dgux*)
11339  version_type=linux # correct to gnu/linux during the next big refactor
11340  need_lib_prefix=no
11341  need_version=no
11342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11343  soname_spec='${libname}${release}${shared_ext}$major'
11344  shlibpath_var=LD_LIBRARY_PATH
11345  ;;
11346
11347freebsd* | dragonfly*)
11348  # DragonFly does not have aout.  When/if they implement a new
11349  # versioning mechanism, adjust this.
11350  if test -x /usr/bin/objformat; then
11351    objformat=`/usr/bin/objformat`
11352  else
11353    case $host_os in
11354    freebsd[23].*) objformat=aout ;;
11355    *) objformat=elf ;;
11356    esac
11357  fi
11358  version_type=freebsd-$objformat
11359  case $version_type in
11360    freebsd-elf*)
11361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11362      need_version=no
11363      need_lib_prefix=no
11364      ;;
11365    freebsd-*)
11366      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11367      need_version=yes
11368      ;;
11369  esac
11370  shlibpath_var=LD_LIBRARY_PATH
11371  case $host_os in
11372  freebsd2.*)
11373    shlibpath_overrides_runpath=yes
11374    ;;
11375  freebsd3.[01]* | freebsdelf3.[01]*)
11376    shlibpath_overrides_runpath=yes
11377    hardcode_into_libs=yes
11378    ;;
11379  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11380  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11381    shlibpath_overrides_runpath=no
11382    hardcode_into_libs=yes
11383    ;;
11384  *) # from 4.6 on, and DragonFly
11385    shlibpath_overrides_runpath=yes
11386    hardcode_into_libs=yes
11387    ;;
11388  esac
11389  ;;
11390
11391haiku*)
11392  version_type=linux # correct to gnu/linux during the next big refactor
11393  need_lib_prefix=no
11394  need_version=no
11395  dynamic_linker="$host_os runtime_loader"
11396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11397  soname_spec='${libname}${release}${shared_ext}$major'
11398  shlibpath_var=LIBRARY_PATH
11399  shlibpath_overrides_runpath=yes
11400  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11401  hardcode_into_libs=yes
11402  ;;
11403
11404hpux9* | hpux10* | hpux11*)
11405  # Give a soname corresponding to the major version so that dld.sl refuses to
11406  # link against other versions.
11407  version_type=sunos
11408  need_lib_prefix=no
11409  need_version=no
11410  case $host_cpu in
11411  ia64*)
11412    shrext_cmds='.so'
11413    hardcode_into_libs=yes
11414    dynamic_linker="$host_os dld.so"
11415    shlibpath_var=LD_LIBRARY_PATH
11416    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418    soname_spec='${libname}${release}${shared_ext}$major'
11419    if test "X$HPUX_IA64_MODE" = X32; then
11420      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11421    else
11422      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11423    fi
11424    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11425    ;;
11426  hppa*64*)
11427    shrext_cmds='.sl'
11428    hardcode_into_libs=yes
11429    dynamic_linker="$host_os dld.sl"
11430    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11431    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433    soname_spec='${libname}${release}${shared_ext}$major'
11434    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11435    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11436    ;;
11437  *)
11438    shrext_cmds='.sl'
11439    dynamic_linker="$host_os dld.sl"
11440    shlibpath_var=SHLIB_PATH
11441    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443    soname_spec='${libname}${release}${shared_ext}$major'
11444    ;;
11445  esac
11446  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11447  postinstall_cmds='chmod 555 $lib'
11448  # or fails outright, so override atomically:
11449  install_override_mode=555
11450  ;;
11451
11452interix[3-9]*)
11453  version_type=linux # correct to gnu/linux during the next big refactor
11454  need_lib_prefix=no
11455  need_version=no
11456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11457  soname_spec='${libname}${release}${shared_ext}$major'
11458  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11459  shlibpath_var=LD_LIBRARY_PATH
11460  shlibpath_overrides_runpath=no
11461  hardcode_into_libs=yes
11462  ;;
11463
11464irix5* | irix6* | nonstopux*)
11465  case $host_os in
11466    nonstopux*) version_type=nonstopux ;;
11467    *)
11468	if test "$lt_cv_prog_gnu_ld" = yes; then
11469		version_type=linux # correct to gnu/linux during the next big refactor
11470	else
11471		version_type=irix
11472	fi ;;
11473  esac
11474  need_lib_prefix=no
11475  need_version=no
11476  soname_spec='${libname}${release}${shared_ext}$major'
11477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11478  case $host_os in
11479  irix5* | nonstopux*)
11480    libsuff= shlibsuff=
11481    ;;
11482  *)
11483    case $LD in # libtool.m4 will add one of these switches to LD
11484    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11485      libsuff= shlibsuff= libmagic=32-bit;;
11486    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11487      libsuff=32 shlibsuff=N32 libmagic=N32;;
11488    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11489      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11490    *) libsuff= shlibsuff= libmagic=never-match;;
11491    esac
11492    ;;
11493  esac
11494  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11495  shlibpath_overrides_runpath=no
11496  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11497  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11498  hardcode_into_libs=yes
11499  ;;
11500
11501# No shared lib support for Linux oldld, aout, or coff.
11502linux*oldld* | linux*aout* | linux*coff*)
11503  dynamic_linker=no
11504  ;;
11505
11506# This must be glibc/ELF.
11507linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11508  version_type=linux # correct to gnu/linux during the next big refactor
11509  need_lib_prefix=no
11510  need_version=no
11511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512  soname_spec='${libname}${release}${shared_ext}$major'
11513  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11514  shlibpath_var=LD_LIBRARY_PATH
11515  shlibpath_overrides_runpath=no
11516
11517  # Some binutils ld are patched to set DT_RUNPATH
11518  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11519  $as_echo_n "(cached) " >&6
11520else
11521  lt_cv_shlibpath_overrides_runpath=no
11522    save_LDFLAGS=$LDFLAGS
11523    save_libdir=$libdir
11524    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11525	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11526    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528
11529int
11530main ()
11531{
11532
11533  ;
11534  return 0;
11535}
11536_ACEOF
11537if ac_fn_c_try_link "$LINENO"; then :
11538  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11539  lt_cv_shlibpath_overrides_runpath=yes
11540fi
11541fi
11542rm -f core conftest.err conftest.$ac_objext \
11543    conftest$ac_exeext conftest.$ac_ext
11544    LDFLAGS=$save_LDFLAGS
11545    libdir=$save_libdir
11546
11547fi
11548
11549  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11550
11551  # This implies no fast_install, which is unacceptable.
11552  # Some rework will be needed to allow for fast_install
11553  # before this can be enabled.
11554  hardcode_into_libs=yes
11555
11556  # Append ld.so.conf contents to the search path
11557  if test -f /etc/ld.so.conf; then
11558    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' ' '`
11559    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11560  fi
11561
11562  # We used to test for /lib/ld.so.1 and disable shared libraries on
11563  # powerpc, because MkLinux only supported shared libraries with the
11564  # GNU dynamic linker.  Since this was broken with cross compilers,
11565  # most powerpc-linux boxes support dynamic linking these days and
11566  # people can always --disable-shared, the test was removed, and we
11567  # assume the GNU/Linux dynamic linker is in use.
11568  dynamic_linker='GNU/Linux ld.so'
11569  ;;
11570
11571netbsdelf*-gnu)
11572  version_type=linux
11573  need_lib_prefix=no
11574  need_version=no
11575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11576  soname_spec='${libname}${release}${shared_ext}$major'
11577  shlibpath_var=LD_LIBRARY_PATH
11578  shlibpath_overrides_runpath=no
11579  hardcode_into_libs=yes
11580  dynamic_linker='NetBSD ld.elf_so'
11581  ;;
11582
11583netbsd*)
11584  version_type=sunos
11585  need_lib_prefix=no
11586  need_version=no
11587  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11589    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11590    dynamic_linker='NetBSD (a.out) ld.so'
11591  else
11592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593    soname_spec='${libname}${release}${shared_ext}$major'
11594    dynamic_linker='NetBSD ld.elf_so'
11595  fi
11596  shlibpath_var=LD_LIBRARY_PATH
11597  shlibpath_overrides_runpath=yes
11598  hardcode_into_libs=yes
11599  ;;
11600
11601newsos6)
11602  version_type=linux # correct to gnu/linux during the next big refactor
11603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604  shlibpath_var=LD_LIBRARY_PATH
11605  shlibpath_overrides_runpath=yes
11606  ;;
11607
11608*nto* | *qnx*)
11609  version_type=qnx
11610  need_lib_prefix=no
11611  need_version=no
11612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613  soname_spec='${libname}${release}${shared_ext}$major'
11614  shlibpath_var=LD_LIBRARY_PATH
11615  shlibpath_overrides_runpath=no
11616  hardcode_into_libs=yes
11617  dynamic_linker='ldqnx.so'
11618  ;;
11619
11620openbsd*)
11621  version_type=sunos
11622  sys_lib_dlsearch_path_spec="/usr/lib"
11623  need_lib_prefix=no
11624  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11625  case $host_os in
11626    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11627    *)				need_version=no  ;;
11628  esac
11629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11631  shlibpath_var=LD_LIBRARY_PATH
11632  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11633    case $host_os in
11634      openbsd2.[89] | openbsd2.[89].*)
11635	shlibpath_overrides_runpath=no
11636	;;
11637      *)
11638	shlibpath_overrides_runpath=yes
11639	;;
11640      esac
11641  else
11642    shlibpath_overrides_runpath=yes
11643  fi
11644  ;;
11645
11646os2*)
11647  libname_spec='$name'
11648  shrext_cmds=".dll"
11649  need_lib_prefix=no
11650  library_names_spec='$libname${shared_ext} $libname.a'
11651  dynamic_linker='OS/2 ld.exe'
11652  shlibpath_var=LIBPATH
11653  ;;
11654
11655osf3* | osf4* | osf5*)
11656  version_type=osf
11657  need_lib_prefix=no
11658  need_version=no
11659  soname_spec='${libname}${release}${shared_ext}$major'
11660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661  shlibpath_var=LD_LIBRARY_PATH
11662  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11663  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11664  ;;
11665
11666rdos*)
11667  dynamic_linker=no
11668  ;;
11669
11670solaris*)
11671  version_type=linux # correct to gnu/linux during the next big refactor
11672  need_lib_prefix=no
11673  need_version=no
11674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675  soname_spec='${libname}${release}${shared_ext}$major'
11676  shlibpath_var=LD_LIBRARY_PATH
11677  shlibpath_overrides_runpath=yes
11678  hardcode_into_libs=yes
11679  # ldd complains unless libraries are executable
11680  postinstall_cmds='chmod +x $lib'
11681  ;;
11682
11683sunos4*)
11684  version_type=sunos
11685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11687  shlibpath_var=LD_LIBRARY_PATH
11688  shlibpath_overrides_runpath=yes
11689  if test "$with_gnu_ld" = yes; then
11690    need_lib_prefix=no
11691  fi
11692  need_version=yes
11693  ;;
11694
11695sysv4 | sysv4.3*)
11696  version_type=linux # correct to gnu/linux during the next big refactor
11697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698  soname_spec='${libname}${release}${shared_ext}$major'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  case $host_vendor in
11701    sni)
11702      shlibpath_overrides_runpath=no
11703      need_lib_prefix=no
11704      runpath_var=LD_RUN_PATH
11705      ;;
11706    siemens)
11707      need_lib_prefix=no
11708      ;;
11709    motorola)
11710      need_lib_prefix=no
11711      need_version=no
11712      shlibpath_overrides_runpath=no
11713      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11714      ;;
11715  esac
11716  ;;
11717
11718sysv4*MP*)
11719  if test -d /usr/nec ;then
11720    version_type=linux # correct to gnu/linux during the next big refactor
11721    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11722    soname_spec='$libname${shared_ext}.$major'
11723    shlibpath_var=LD_LIBRARY_PATH
11724  fi
11725  ;;
11726
11727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11728  version_type=freebsd-elf
11729  need_lib_prefix=no
11730  need_version=no
11731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11732  soname_spec='${libname}${release}${shared_ext}$major'
11733  shlibpath_var=LD_LIBRARY_PATH
11734  shlibpath_overrides_runpath=yes
11735  hardcode_into_libs=yes
11736  if test "$with_gnu_ld" = yes; then
11737    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11738  else
11739    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11740    case $host_os in
11741      sco3.2v5*)
11742        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11743	;;
11744    esac
11745  fi
11746  sys_lib_dlsearch_path_spec='/usr/lib'
11747  ;;
11748
11749tpf*)
11750  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11751  version_type=linux # correct to gnu/linux during the next big refactor
11752  need_lib_prefix=no
11753  need_version=no
11754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755  shlibpath_var=LD_LIBRARY_PATH
11756  shlibpath_overrides_runpath=no
11757  hardcode_into_libs=yes
11758  ;;
11759
11760uts4*)
11761  version_type=linux # correct to gnu/linux during the next big refactor
11762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763  soname_spec='${libname}${release}${shared_ext}$major'
11764  shlibpath_var=LD_LIBRARY_PATH
11765  ;;
11766
11767*)
11768  dynamic_linker=no
11769  ;;
11770esac
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11772$as_echo "$dynamic_linker" >&6; }
11773test "$dynamic_linker" = no && can_build_shared=no
11774
11775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11776if test "$GCC" = yes; then
11777  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11778fi
11779
11780if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11781  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11782fi
11783if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11784  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11785fi
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11879$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11880hardcode_action=
11881if test -n "$hardcode_libdir_flag_spec" ||
11882   test -n "$runpath_var" ||
11883   test "X$hardcode_automatic" = "Xyes" ; then
11884
11885  # We can hardcode non-existent directories.
11886  if test "$hardcode_direct" != no &&
11887     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11888     # have to relink, otherwise we might link with an installed library
11889     # when we should be linking with a yet-to-be-installed one
11890     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11891     test "$hardcode_minus_L" != no; then
11892    # Linking always hardcodes the temporary library directory.
11893    hardcode_action=relink
11894  else
11895    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11896    hardcode_action=immediate
11897  fi
11898else
11899  # We cannot hardcode anything, or else we can only hardcode existing
11900  # directories.
11901  hardcode_action=unsupported
11902fi
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11904$as_echo "$hardcode_action" >&6; }
11905
11906if test "$hardcode_action" = relink ||
11907   test "$inherit_rpath" = yes; then
11908  # Fast installation is not supported
11909  enable_fast_install=no
11910elif test "$shlibpath_overrides_runpath" = yes ||
11911     test "$enable_shared" = no; then
11912  # Fast installation is not necessary
11913  enable_fast_install=needless
11914fi
11915
11916
11917
11918
11919
11920
11921  if test "x$enable_dlopen" != xyes; then
11922  enable_dlopen=unknown
11923  enable_dlopen_self=unknown
11924  enable_dlopen_self_static=unknown
11925else
11926  lt_cv_dlopen=no
11927  lt_cv_dlopen_libs=
11928
11929  case $host_os in
11930  beos*)
11931    lt_cv_dlopen="load_add_on"
11932    lt_cv_dlopen_libs=
11933    lt_cv_dlopen_self=yes
11934    ;;
11935
11936  mingw* | pw32* | cegcc*)
11937    lt_cv_dlopen="LoadLibrary"
11938    lt_cv_dlopen_libs=
11939    ;;
11940
11941  cygwin*)
11942    lt_cv_dlopen="dlopen"
11943    lt_cv_dlopen_libs=
11944    ;;
11945
11946  darwin*)
11947  # if libdl is installed we need to link against it
11948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11949$as_echo_n "checking for dlopen in -ldl... " >&6; }
11950if ${ac_cv_lib_dl_dlopen+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  ac_check_lib_save_LIBS=$LIBS
11954LIBS="-ldl  $LIBS"
11955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956/* end confdefs.h.  */
11957
11958/* Override any GCC internal prototype to avoid an error.
11959   Use char because int might match the return type of a GCC
11960   builtin and then its argument prototype would still apply.  */
11961#ifdef __cplusplus
11962extern "C"
11963#endif
11964char dlopen ();
11965int
11966main ()
11967{
11968return dlopen ();
11969  ;
11970  return 0;
11971}
11972_ACEOF
11973if ac_fn_c_try_link "$LINENO"; then :
11974  ac_cv_lib_dl_dlopen=yes
11975else
11976  ac_cv_lib_dl_dlopen=no
11977fi
11978rm -f core conftest.err conftest.$ac_objext \
11979    conftest$ac_exeext conftest.$ac_ext
11980LIBS=$ac_check_lib_save_LIBS
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11983$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11984if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11985  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11986else
11987
11988    lt_cv_dlopen="dyld"
11989    lt_cv_dlopen_libs=
11990    lt_cv_dlopen_self=yes
11991
11992fi
11993
11994    ;;
11995
11996  *)
11997    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11998if test "x$ac_cv_func_shl_load" = xyes; then :
11999  lt_cv_dlopen="shl_load"
12000else
12001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12002$as_echo_n "checking for shl_load in -ldld... " >&6; }
12003if ${ac_cv_lib_dld_shl_load+:} false; then :
12004  $as_echo_n "(cached) " >&6
12005else
12006  ac_check_lib_save_LIBS=$LIBS
12007LIBS="-ldld  $LIBS"
12008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010
12011/* Override any GCC internal prototype to avoid an error.
12012   Use char because int might match the return type of a GCC
12013   builtin and then its argument prototype would still apply.  */
12014#ifdef __cplusplus
12015extern "C"
12016#endif
12017char shl_load ();
12018int
12019main ()
12020{
12021return shl_load ();
12022  ;
12023  return 0;
12024}
12025_ACEOF
12026if ac_fn_c_try_link "$LINENO"; then :
12027  ac_cv_lib_dld_shl_load=yes
12028else
12029  ac_cv_lib_dld_shl_load=no
12030fi
12031rm -f core conftest.err conftest.$ac_objext \
12032    conftest$ac_exeext conftest.$ac_ext
12033LIBS=$ac_check_lib_save_LIBS
12034fi
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12036$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12037if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12038  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12039else
12040  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12041if test "x$ac_cv_func_dlopen" = xyes; then :
12042  lt_cv_dlopen="dlopen"
12043else
12044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12045$as_echo_n "checking for dlopen in -ldl... " >&6; }
12046if ${ac_cv_lib_dl_dlopen+:} false; then :
12047  $as_echo_n "(cached) " >&6
12048else
12049  ac_check_lib_save_LIBS=$LIBS
12050LIBS="-ldl  $LIBS"
12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053
12054/* Override any GCC internal prototype to avoid an error.
12055   Use char because int might match the return type of a GCC
12056   builtin and then its argument prototype would still apply.  */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060char dlopen ();
12061int
12062main ()
12063{
12064return dlopen ();
12065  ;
12066  return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070  ac_cv_lib_dl_dlopen=yes
12071else
12072  ac_cv_lib_dl_dlopen=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12079$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12080if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12081  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12082else
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12084$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12085if ${ac_cv_lib_svld_dlopen+:} false; then :
12086  $as_echo_n "(cached) " >&6
12087else
12088  ac_check_lib_save_LIBS=$LIBS
12089LIBS="-lsvld  $LIBS"
12090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091/* end confdefs.h.  */
12092
12093/* Override any GCC internal prototype to avoid an error.
12094   Use char because int might match the return type of a GCC
12095   builtin and then its argument prototype would still apply.  */
12096#ifdef __cplusplus
12097extern "C"
12098#endif
12099char dlopen ();
12100int
12101main ()
12102{
12103return dlopen ();
12104  ;
12105  return 0;
12106}
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"; then :
12109  ac_cv_lib_svld_dlopen=yes
12110else
12111  ac_cv_lib_svld_dlopen=no
12112fi
12113rm -f core conftest.err conftest.$ac_objext \
12114    conftest$ac_exeext conftest.$ac_ext
12115LIBS=$ac_check_lib_save_LIBS
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12118$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12119if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12120  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12121else
12122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12123$as_echo_n "checking for dld_link in -ldld... " >&6; }
12124if ${ac_cv_lib_dld_dld_link+:} false; then :
12125  $as_echo_n "(cached) " >&6
12126else
12127  ac_check_lib_save_LIBS=$LIBS
12128LIBS="-ldld  $LIBS"
12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h.  */
12131
12132/* Override any GCC internal prototype to avoid an error.
12133   Use char because int might match the return type of a GCC
12134   builtin and then its argument prototype would still apply.  */
12135#ifdef __cplusplus
12136extern "C"
12137#endif
12138char dld_link ();
12139int
12140main ()
12141{
12142return dld_link ();
12143  ;
12144  return 0;
12145}
12146_ACEOF
12147if ac_fn_c_try_link "$LINENO"; then :
12148  ac_cv_lib_dld_dld_link=yes
12149else
12150  ac_cv_lib_dld_dld_link=no
12151fi
12152rm -f core conftest.err conftest.$ac_objext \
12153    conftest$ac_exeext conftest.$ac_ext
12154LIBS=$ac_check_lib_save_LIBS
12155fi
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12157$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12158if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12159  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12160fi
12161
12162
12163fi
12164
12165
12166fi
12167
12168
12169fi
12170
12171
12172fi
12173
12174
12175fi
12176
12177    ;;
12178  esac
12179
12180  if test "x$lt_cv_dlopen" != xno; then
12181    enable_dlopen=yes
12182  else
12183    enable_dlopen=no
12184  fi
12185
12186  case $lt_cv_dlopen in
12187  dlopen)
12188    save_CPPFLAGS="$CPPFLAGS"
12189    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12190
12191    save_LDFLAGS="$LDFLAGS"
12192    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12193
12194    save_LIBS="$LIBS"
12195    LIBS="$lt_cv_dlopen_libs $LIBS"
12196
12197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12198$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12199if ${lt_cv_dlopen_self+:} false; then :
12200  $as_echo_n "(cached) " >&6
12201else
12202  	  if test "$cross_compiling" = yes; then :
12203  lt_cv_dlopen_self=cross
12204else
12205  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12206  lt_status=$lt_dlunknown
12207  cat > conftest.$ac_ext <<_LT_EOF
12208#line $LINENO "configure"
12209#include "confdefs.h"
12210
12211#if HAVE_DLFCN_H
12212#include <dlfcn.h>
12213#endif
12214
12215#include <stdio.h>
12216
12217#ifdef RTLD_GLOBAL
12218#  define LT_DLGLOBAL		RTLD_GLOBAL
12219#else
12220#  ifdef DL_GLOBAL
12221#    define LT_DLGLOBAL		DL_GLOBAL
12222#  else
12223#    define LT_DLGLOBAL		0
12224#  endif
12225#endif
12226
12227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12228   find out it does not work in some platform. */
12229#ifndef LT_DLLAZY_OR_NOW
12230#  ifdef RTLD_LAZY
12231#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12232#  else
12233#    ifdef DL_LAZY
12234#      define LT_DLLAZY_OR_NOW		DL_LAZY
12235#    else
12236#      ifdef RTLD_NOW
12237#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12238#      else
12239#        ifdef DL_NOW
12240#          define LT_DLLAZY_OR_NOW	DL_NOW
12241#        else
12242#          define LT_DLLAZY_OR_NOW	0
12243#        endif
12244#      endif
12245#    endif
12246#  endif
12247#endif
12248
12249/* When -fvisbility=hidden is used, assume the code has been annotated
12250   correspondingly for the symbols needed.  */
12251#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12252int fnord () __attribute__((visibility("default")));
12253#endif
12254
12255int fnord () { return 42; }
12256int main ()
12257{
12258  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12259  int status = $lt_dlunknown;
12260
12261  if (self)
12262    {
12263      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12264      else
12265        {
12266	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12267          else puts (dlerror ());
12268	}
12269      /* dlclose (self); */
12270    }
12271  else
12272    puts (dlerror ());
12273
12274  return status;
12275}
12276_LT_EOF
12277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12278  (eval $ac_link) 2>&5
12279  ac_status=$?
12280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12282    (./conftest; exit; ) >&5 2>/dev/null
12283    lt_status=$?
12284    case x$lt_status in
12285      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12286      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12287      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12288    esac
12289  else :
12290    # compilation failed
12291    lt_cv_dlopen_self=no
12292  fi
12293fi
12294rm -fr conftest*
12295
12296
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12299$as_echo "$lt_cv_dlopen_self" >&6; }
12300
12301    if test "x$lt_cv_dlopen_self" = xyes; then
12302      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12303      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12304$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12305if ${lt_cv_dlopen_self_static+:} false; then :
12306  $as_echo_n "(cached) " >&6
12307else
12308  	  if test "$cross_compiling" = yes; then :
12309  lt_cv_dlopen_self_static=cross
12310else
12311  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312  lt_status=$lt_dlunknown
12313  cat > conftest.$ac_ext <<_LT_EOF
12314#line $LINENO "configure"
12315#include "confdefs.h"
12316
12317#if HAVE_DLFCN_H
12318#include <dlfcn.h>
12319#endif
12320
12321#include <stdio.h>
12322
12323#ifdef RTLD_GLOBAL
12324#  define LT_DLGLOBAL		RTLD_GLOBAL
12325#else
12326#  ifdef DL_GLOBAL
12327#    define LT_DLGLOBAL		DL_GLOBAL
12328#  else
12329#    define LT_DLGLOBAL		0
12330#  endif
12331#endif
12332
12333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334   find out it does not work in some platform. */
12335#ifndef LT_DLLAZY_OR_NOW
12336#  ifdef RTLD_LAZY
12337#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12338#  else
12339#    ifdef DL_LAZY
12340#      define LT_DLLAZY_OR_NOW		DL_LAZY
12341#    else
12342#      ifdef RTLD_NOW
12343#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12344#      else
12345#        ifdef DL_NOW
12346#          define LT_DLLAZY_OR_NOW	DL_NOW
12347#        else
12348#          define LT_DLLAZY_OR_NOW	0
12349#        endif
12350#      endif
12351#    endif
12352#  endif
12353#endif
12354
12355/* When -fvisbility=hidden is used, assume the code has been annotated
12356   correspondingly for the symbols needed.  */
12357#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12358int fnord () __attribute__((visibility("default")));
12359#endif
12360
12361int fnord () { return 42; }
12362int main ()
12363{
12364  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12365  int status = $lt_dlunknown;
12366
12367  if (self)
12368    {
12369      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12370      else
12371        {
12372	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12373          else puts (dlerror ());
12374	}
12375      /* dlclose (self); */
12376    }
12377  else
12378    puts (dlerror ());
12379
12380  return status;
12381}
12382_LT_EOF
12383  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12384  (eval $ac_link) 2>&5
12385  ac_status=$?
12386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12387  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12388    (./conftest; exit; ) >&5 2>/dev/null
12389    lt_status=$?
12390    case x$lt_status in
12391      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12392      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12393      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12394    esac
12395  else :
12396    # compilation failed
12397    lt_cv_dlopen_self_static=no
12398  fi
12399fi
12400rm -fr conftest*
12401
12402
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12405$as_echo "$lt_cv_dlopen_self_static" >&6; }
12406    fi
12407
12408    CPPFLAGS="$save_CPPFLAGS"
12409    LDFLAGS="$save_LDFLAGS"
12410    LIBS="$save_LIBS"
12411    ;;
12412  esac
12413
12414  case $lt_cv_dlopen_self in
12415  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12416  *) enable_dlopen_self=unknown ;;
12417  esac
12418
12419  case $lt_cv_dlopen_self_static in
12420  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12421  *) enable_dlopen_self_static=unknown ;;
12422  esac
12423fi
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441striplib=
12442old_striplib=
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12444$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12445if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12446  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12447  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449$as_echo "yes" >&6; }
12450else
12451# FIXME - insert some real tests, host_os isn't really good enough
12452  case $host_os in
12453  darwin*)
12454    if test -n "$STRIP" ; then
12455      striplib="$STRIP -x"
12456      old_striplib="$STRIP -S"
12457      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458$as_echo "yes" >&6; }
12459    else
12460      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
12462    fi
12463    ;;
12464  *)
12465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
12467    ;;
12468  esac
12469fi
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482  # Report which library types will actually be built
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12484$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12486$as_echo "$can_build_shared" >&6; }
12487
12488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12489$as_echo_n "checking whether to build shared libraries... " >&6; }
12490  test "$can_build_shared" = "no" && enable_shared=no
12491
12492  # On AIX, shared libraries and static libraries use the same namespace, and
12493  # are all built from PIC.
12494  case $host_os in
12495  aix3*)
12496    test "$enable_shared" = yes && enable_static=no
12497    if test -n "$RANLIB"; then
12498      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12499      postinstall_cmds='$RANLIB $lib'
12500    fi
12501    ;;
12502
12503  aix[4-9]*)
12504    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12505      test "$enable_shared" = yes && enable_static=no
12506    fi
12507    ;;
12508  esac
12509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12510$as_echo "$enable_shared" >&6; }
12511
12512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12513$as_echo_n "checking whether to build static libraries... " >&6; }
12514  # Make sure either enable_shared or enable_static is yes.
12515  test "$enable_shared" = yes || enable_static=yes
12516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12517$as_echo "$enable_static" >&6; }
12518
12519
12520
12521
12522fi
12523ac_ext=c
12524ac_cpp='$CPP $CPPFLAGS'
12525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12527ac_compiler_gnu=$ac_cv_c_compiler_gnu
12528
12529CC="$lt_save_CC"
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545        ac_config_commands="$ac_config_commands libtool"
12546
12547
12548
12549
12550# Only expand once:
12551
12552
12553if test -n "$ac_tool_prefix"; then
12554  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12555set dummy ${ac_tool_prefix}windres; ac_word=$2
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557$as_echo_n "checking for $ac_word... " >&6; }
12558if ${ac_cv_prog_RC+:} false; then :
12559  $as_echo_n "(cached) " >&6
12560else
12561  if test -n "$RC"; then
12562  ac_cv_prog_RC="$RC" # Let the user override the test.
12563else
12564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565for as_dir in $PATH
12566do
12567  IFS=$as_save_IFS
12568  test -z "$as_dir" && as_dir=.
12569    for ac_exec_ext in '' $ac_executable_extensions; do
12570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12571    ac_cv_prog_RC="${ac_tool_prefix}windres"
12572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573    break 2
12574  fi
12575done
12576  done
12577IFS=$as_save_IFS
12578
12579fi
12580fi
12581RC=$ac_cv_prog_RC
12582if test -n "$RC"; then
12583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12584$as_echo "$RC" >&6; }
12585else
12586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588fi
12589
12590
12591fi
12592if test -z "$ac_cv_prog_RC"; then
12593  ac_ct_RC=$RC
12594  # Extract the first word of "windres", so it can be a program name with args.
12595set dummy windres; ac_word=$2
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
12598if ${ac_cv_prog_ac_ct_RC+:} false; then :
12599  $as_echo_n "(cached) " >&6
12600else
12601  if test -n "$ac_ct_RC"; then
12602  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12603else
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607  IFS=$as_save_IFS
12608  test -z "$as_dir" && as_dir=.
12609    for ac_exec_ext in '' $ac_executable_extensions; do
12610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611    ac_cv_prog_ac_ct_RC="windres"
12612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613    break 2
12614  fi
12615done
12616  done
12617IFS=$as_save_IFS
12618
12619fi
12620fi
12621ac_ct_RC=$ac_cv_prog_ac_ct_RC
12622if test -n "$ac_ct_RC"; then
12623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12624$as_echo "$ac_ct_RC" >&6; }
12625else
12626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
12628fi
12629
12630  if test "x$ac_ct_RC" = x; then
12631    RC=""
12632  else
12633    case $cross_compiling:$ac_tool_warned in
12634yes:)
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12637ac_tool_warned=yes ;;
12638esac
12639    RC=$ac_ct_RC
12640  fi
12641else
12642  RC="$ac_cv_prog_RC"
12643fi
12644
12645
12646
12647
12648# Source file extension for RC test sources.
12649ac_ext=rc
12650
12651# Object file extension for compiled RC test sources.
12652objext=o
12653objext_RC=$objext
12654
12655# Code to be used in simple compile tests
12656lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12657
12658# Code to be used in simple link tests
12659lt_simple_link_test_code="$lt_simple_compile_test_code"
12660
12661# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12662
12663
12664
12665
12666
12667
12668# If no C compiler was specified, use CC.
12669LTCC=${LTCC-"$CC"}
12670
12671# If no C compiler flags were specified, use CFLAGS.
12672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12673
12674# Allow CC to be a program name with arguments.
12675compiler=$CC
12676
12677
12678# save warnings/boilerplate of simple test code
12679ac_outfile=conftest.$ac_objext
12680echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12682_lt_compiler_boilerplate=`cat conftest.err`
12683$RM conftest*
12684
12685ac_outfile=conftest.$ac_objext
12686echo "$lt_simple_link_test_code" >conftest.$ac_ext
12687eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12688_lt_linker_boilerplate=`cat conftest.err`
12689$RM -r conftest*
12690
12691
12692# Allow CC to be a program name with arguments.
12693lt_save_CC="$CC"
12694lt_save_CFLAGS=$CFLAGS
12695lt_save_GCC=$GCC
12696GCC=
12697CC=${RC-"windres"}
12698CFLAGS=
12699compiler=$CC
12700compiler_RC=$CC
12701for cc_temp in $compiler""; do
12702  case $cc_temp in
12703    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12704    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12705    \-*) ;;
12706    *) break;;
12707  esac
12708done
12709cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12710
12711lt_cv_prog_compiler_c_o_RC=yes
12712
12713if test -n "$compiler"; then
12714  :
12715
12716
12717
12718fi
12719
12720GCC=$lt_save_GCC
12721ac_ext=c
12722ac_cpp='$CPP $CPPFLAGS'
12723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725ac_compiler_gnu=$ac_cv_c_compiler_gnu
12726
12727CC=$lt_save_CC
12728CFLAGS=$lt_save_CFLAGS
12729
12730
12731
12732##########################
12733## General definitions. ##
12734##########################
12735
12736# Used by libgcrypt-config
12737LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
12738LIBGCRYPT_CONFIG_CFLAGS=""
12739LIBGCRYPT_CONFIG_HOST="$host"
12740
12741# Definitions for symmetric ciphers.
12742available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
12743available_ciphers="$available_ciphers camellia"
12744enabled_ciphers=""
12745
12746# Definitions for public-key ciphers.
12747available_pubkey_ciphers="dsa elgamal rsa ecc"
12748enabled_pubkey_ciphers=""
12749
12750# Definitions for message digests.
12751available_digests="crc md4 md5 rmd160 sha1 sha256"
12752available_digests_64="sha512 tiger whirlpool"
12753enabled_digests=""
12754
12755# Definitions for random modules.
12756available_random_modules="linux egd unix"
12757auto_random_modules="$available_random_modules"
12758
12759# Supported thread backends.
12760LIBGCRYPT_THREAD_MODULES=""
12761
12762# Other definitions.
12763print_egd_notice=no
12764have_w32_system=no
12765have_w32ce_system=no
12766
12767# Setup some stuff depending on host.
12768case "${host}" in
12769    *-*-mingw32*)
12770      ac_cv_have_dev_random=no
12771      have_w32_system=yes
12772      case "${host}" in
12773        *-mingw32ce*)
12774            have_w32ce_system=yes
12775            available_random_modules="w32ce"
12776            ;;
12777        *)
12778            available_random_modules="w32"
12779            ;;
12780      esac
12781
12782$as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
12783
12784
12785$as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12786
12787
12788$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12789
12790      ;;
12791
12792    i?86-emx-os2 | i?86-*-os2*emx)
12793        # OS/2 with the EMX environment
12794        ac_cv_have_dev_random=no
12795        $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12796
12797        $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12798
12799        ;;
12800
12801    i?86-*-msdosdjgpp*)
12802        # DOS with the DJGPP environment
12803        ac_cv_have_dev_random=no
12804        $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12805
12806        $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12807
12808        ;;
12809
12810    *-*-hpux*)
12811        if test -z "$GCC" ; then
12812            CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
12813        fi
12814        ;;
12815    *-dec-osf4*)
12816        if test -z "$GCC" ; then
12817            # Suppress all warnings
12818            # to get rid of the unsigned/signed char mismatch warnings.
12819            CFLAGS="$CFLAGS -w"
12820        fi
12821        ;;
12822    m68k-atari-mint)
12823        ;;
12824    *)
12825      ;;
12826esac
12827
12828if test "$have_w32_system" = yes; then
12829
12830$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
12831
12832   if test "$have_w32ce_system" = yes; then
12833
12834$as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
12835
12836   fi
12837fi
12838 if test "$have_w32_system" = yes; then
12839  HAVE_W32_SYSTEM_TRUE=
12840  HAVE_W32_SYSTEM_FALSE='#'
12841else
12842  HAVE_W32_SYSTEM_TRUE='#'
12843  HAVE_W32_SYSTEM_FALSE=
12844fi
12845
12846 if test "$have_w32ce_system" = yes; then
12847  HAVE_W32CE_SYSTEM_TRUE=
12848  HAVE_W32CE_SYSTEM_FALSE='#'
12849else
12850  HAVE_W32CE_SYSTEM_TRUE='#'
12851  HAVE_W32CE_SYSTEM_FALSE=
12852fi
12853
12854
12855
12856
12857# A printable OS Name is sometimes useful.
12858case "${host}" in
12859    *-*-mingw32ce*)
12860        PRINTABLE_OS_NAME="W32CE"
12861        ;;
12862
12863    *-*-mingw32*)
12864        PRINTABLE_OS_NAME="W32"
12865        ;;
12866
12867    i?86-emx-os2 | i?86-*-os2*emx )
12868        PRINTABLE_OS_NAME="OS/2"
12869        ;;
12870
12871    i?86-*-msdosdjgpp*)
12872        PRINTABLE_OS_NAME="MSDOS/DJGPP"
12873        ;;
12874
12875    *-linux*)
12876        PRINTABLE_OS_NAME="GNU/Linux"
12877        ;;
12878
12879    *)
12880        PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
12881        ;;
12882esac
12883
12884#
12885# Figure out the name of the random device
12886#
12887case "${host}" in
12888    *-openbsd*)
12889        NAME_OF_DEV_RANDOM="/dev/srandom"
12890        NAME_OF_DEV_URANDOM="/dev/urandom"
12891        ;;
12892
12893    *)
12894        NAME_OF_DEV_RANDOM="/dev/random"
12895        NAME_OF_DEV_URANDOM="/dev/urandom"
12896        ;;
12897esac
12898
12899
12900# Check whether --enable-endian-check was given.
12901if test "${enable_endian_check+set}" = set; then :
12902  enableval=$enable_endian_check; endiancheck=$enableval
12903else
12904  endiancheck=yes
12905fi
12906
12907if test x"$endiancheck" = xyes ; then
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12909$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12910if ${ac_cv_c_bigendian+:} false; then :
12911  $as_echo_n "(cached) " >&6
12912else
12913  ac_cv_c_bigendian=unknown
12914    # See if we're dealing with a universal compiler.
12915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916/* end confdefs.h.  */
12917#ifndef __APPLE_CC__
12918	       not a universal capable compiler
12919	     #endif
12920	     typedef int dummy;
12921
12922_ACEOF
12923if ac_fn_c_try_compile "$LINENO"; then :
12924
12925	# Check for potential -arch flags.  It is not universal unless
12926	# there are at least two -arch flags with different values.
12927	ac_arch=
12928	ac_prev=
12929	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12930	 if test -n "$ac_prev"; then
12931	   case $ac_word in
12932	     i?86 | x86_64 | ppc | ppc64)
12933	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12934		 ac_arch=$ac_word
12935	       else
12936		 ac_cv_c_bigendian=universal
12937		 break
12938	       fi
12939	       ;;
12940	   esac
12941	   ac_prev=
12942	 elif test "x$ac_word" = "x-arch"; then
12943	   ac_prev=arch
12944	 fi
12945       done
12946fi
12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948    if test $ac_cv_c_bigendian = unknown; then
12949      # See if sys/param.h defines the BYTE_ORDER macro.
12950      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h.  */
12952#include <sys/types.h>
12953	     #include <sys/param.h>
12954
12955int
12956main ()
12957{
12958#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12959		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12960		     && LITTLE_ENDIAN)
12961	      bogus endian macros
12962	     #endif
12963
12964  ;
12965  return 0;
12966}
12967_ACEOF
12968if ac_fn_c_try_compile "$LINENO"; then :
12969  # It does; now see whether it defined to BIG_ENDIAN or not.
12970	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971/* end confdefs.h.  */
12972#include <sys/types.h>
12973		#include <sys/param.h>
12974
12975int
12976main ()
12977{
12978#if BYTE_ORDER != BIG_ENDIAN
12979		 not big endian
12980		#endif
12981
12982  ;
12983  return 0;
12984}
12985_ACEOF
12986if ac_fn_c_try_compile "$LINENO"; then :
12987  ac_cv_c_bigendian=yes
12988else
12989  ac_cv_c_bigendian=no
12990fi
12991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992fi
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994    fi
12995    if test $ac_cv_c_bigendian = unknown; then
12996      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998/* end confdefs.h.  */
12999#include <limits.h>
13000
13001int
13002main ()
13003{
13004#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13005	      bogus endian macros
13006	     #endif
13007
13008  ;
13009  return 0;
13010}
13011_ACEOF
13012if ac_fn_c_try_compile "$LINENO"; then :
13013  # It does; now see whether it defined to _BIG_ENDIAN or not.
13014	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h.  */
13016#include <limits.h>
13017
13018int
13019main ()
13020{
13021#ifndef _BIG_ENDIAN
13022		 not big endian
13023		#endif
13024
13025  ;
13026  return 0;
13027}
13028_ACEOF
13029if ac_fn_c_try_compile "$LINENO"; then :
13030  ac_cv_c_bigendian=yes
13031else
13032  ac_cv_c_bigendian=no
13033fi
13034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035fi
13036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037    fi
13038    if test $ac_cv_c_bigendian = unknown; then
13039      # Compile a test program.
13040      if test "$cross_compiling" = yes; then :
13041  # Try to guess by grepping values from an object file.
13042	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044short int ascii_mm[] =
13045		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13046		short int ascii_ii[] =
13047		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13048		int use_ascii (int i) {
13049		  return ascii_mm[i] + ascii_ii[i];
13050		}
13051		short int ebcdic_ii[] =
13052		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13053		short int ebcdic_mm[] =
13054		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13055		int use_ebcdic (int i) {
13056		  return ebcdic_mm[i] + ebcdic_ii[i];
13057		}
13058		extern int foo;
13059
13060int
13061main ()
13062{
13063return use_ascii (foo) == use_ebcdic (foo);
13064  ;
13065  return 0;
13066}
13067_ACEOF
13068if ac_fn_c_try_compile "$LINENO"; then :
13069  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13070	      ac_cv_c_bigendian=yes
13071	    fi
13072	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13073	      if test "$ac_cv_c_bigendian" = unknown; then
13074		ac_cv_c_bigendian=no
13075	      else
13076		# finding both strings is unlikely to happen, but who knows?
13077		ac_cv_c_bigendian=unknown
13078	      fi
13079	    fi
13080fi
13081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082else
13083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h.  */
13085$ac_includes_default
13086int
13087main ()
13088{
13089
13090	     /* Are we little or big endian?  From Harbison&Steele.  */
13091	     union
13092	     {
13093	       long int l;
13094	       char c[sizeof (long int)];
13095	     } u;
13096	     u.l = 1;
13097	     return u.c[sizeof (long int) - 1] == 1;
13098
13099  ;
13100  return 0;
13101}
13102_ACEOF
13103if ac_fn_c_try_run "$LINENO"; then :
13104  ac_cv_c_bigendian=no
13105else
13106  ac_cv_c_bigendian=yes
13107fi
13108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13109  conftest.$ac_objext conftest.beam conftest.$ac_ext
13110fi
13111
13112    fi
13113fi
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13115$as_echo "$ac_cv_c_bigendian" >&6; }
13116 case $ac_cv_c_bigendian in #(
13117   yes)
13118     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13119;; #(
13120   no)
13121      ;; #(
13122   universal)
13123
13124$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13125
13126     ;; #(
13127   *)
13128     as_fn_error $? "unknown endianness
13129 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13130 esac
13131
13132else
13133
13134$as_echo "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
13135
13136fi
13137
13138# The cast to long int works around a bug in the HP C Compiler
13139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13141# This bug is HP SR number 8606223364.
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13143$as_echo_n "checking size of unsigned short... " >&6; }
13144if ${ac_cv_sizeof_unsigned_short+:} false; then :
13145  $as_echo_n "(cached) " >&6
13146else
13147  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
13148
13149else
13150  if test "$ac_cv_type_unsigned_short" = yes; then
13151     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13153as_fn_error 77 "cannot compute sizeof (unsigned short)
13154See \`config.log' for more details" "$LINENO" 5; }
13155   else
13156     ac_cv_sizeof_unsigned_short=0
13157   fi
13158fi
13159
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13162$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13163
13164
13165
13166cat >>confdefs.h <<_ACEOF
13167#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13168_ACEOF
13169
13170
13171# The cast to long int works around a bug in the HP C Compiler
13172# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13173# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13174# This bug is HP SR number 8606223364.
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13176$as_echo_n "checking size of unsigned int... " >&6; }
13177if ${ac_cv_sizeof_unsigned_int+:} false; then :
13178  $as_echo_n "(cached) " >&6
13179else
13180  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
13181
13182else
13183  if test "$ac_cv_type_unsigned_int" = yes; then
13184     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13186as_fn_error 77 "cannot compute sizeof (unsigned int)
13187See \`config.log' for more details" "$LINENO" 5; }
13188   else
13189     ac_cv_sizeof_unsigned_int=0
13190   fi
13191fi
13192
13193fi
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13195$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13196
13197
13198
13199cat >>confdefs.h <<_ACEOF
13200#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13201_ACEOF
13202
13203
13204# The cast to long int works around a bug in the HP C Compiler
13205# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13206# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13207# This bug is HP SR number 8606223364.
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13209$as_echo_n "checking size of unsigned long... " >&6; }
13210if ${ac_cv_sizeof_unsigned_long+:} false; then :
13211  $as_echo_n "(cached) " >&6
13212else
13213  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
13214
13215else
13216  if test "$ac_cv_type_unsigned_long" = yes; then
13217     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13219as_fn_error 77 "cannot compute sizeof (unsigned long)
13220See \`config.log' for more details" "$LINENO" 5; }
13221   else
13222     ac_cv_sizeof_unsigned_long=0
13223   fi
13224fi
13225
13226fi
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13228$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13229
13230
13231
13232cat >>confdefs.h <<_ACEOF
13233#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13234_ACEOF
13235
13236
13237# The cast to long int works around a bug in the HP C Compiler
13238# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13239# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13240# This bug is HP SR number 8606223364.
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
13242$as_echo_n "checking size of unsigned long long... " >&6; }
13243if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
13244  $as_echo_n "(cached) " >&6
13245else
13246  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
13247
13248else
13249  if test "$ac_cv_type_unsigned_long_long" = yes; then
13250     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13252as_fn_error 77 "cannot compute sizeof (unsigned long long)
13253See \`config.log' for more details" "$LINENO" 5; }
13254   else
13255     ac_cv_sizeof_unsigned_long_long=0
13256   fi
13257fi
13258
13259fi
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
13261$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
13262
13263
13264
13265cat >>confdefs.h <<_ACEOF
13266#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
13267_ACEOF
13268
13269
13270
13271
13272  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13273if test "x$ac_cv_type_uintptr_t" = xyes; then :
13274
13275$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13276
13277else
13278  for ac_type in 'unsigned int' 'unsigned long int' \
13279	'unsigned long long int'; do
13280       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h.  */
13282$ac_includes_default
13283int
13284main ()
13285{
13286static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13287test_array [0] = 0;
13288return test_array [0];
13289
13290  ;
13291  return 0;
13292}
13293_ACEOF
13294if ac_fn_c_try_compile "$LINENO"; then :
13295
13296cat >>confdefs.h <<_ACEOF
13297#define uintptr_t $ac_type
13298_ACEOF
13299
13300	  ac_type=
13301fi
13302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303       test -z "$ac_type" && break
13304     done
13305fi
13306
13307
13308
13309if test "$ac_cv_sizeof_unsigned_short" = "0" \
13310   || test "$ac_cv_sizeof_unsigned_int" = "0" \
13311   || test "$ac_cv_sizeof_unsigned_long" = "0"; then
13312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
13313$as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
13314fi
13315
13316# Do we have any 64-bit data types?
13317if test "$ac_cv_sizeof_unsigned_int" != "8" \
13318   && test "$ac_cv_sizeof_unsigned_long" != "8" \
13319   && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
13320   && test "$ac_cv_sizeof_uint64_t" != "8"; then
13321    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64-bit types.  Disabling TIGER/192, SHA-384, and SHA-512" >&5
13322$as_echo "$as_me: WARNING: No 64-bit types.  Disabling TIGER/192, SHA-384, and SHA-512" >&2;}
13323else
13324  available_digests="$available_digests $available_digests_64"
13325fi
13326
13327# If not specified otherwise, all available algorithms will be
13328# included.
13329default_ciphers="$available_ciphers"
13330default_pubkey_ciphers="$available_pubkey_ciphers"
13331default_digests="$available_digests"
13332
13333# Substitutions to set generated files in a Emacs buffer to read-only.
13334emacs_local_vars_begin='Local Variables:'
13335
13336emacs_local_vars_read_only='buffer-read-only: t'
13337
13338emacs_local_vars_end='End:'
13339
13340
13341############################
13342## Command line switches. ##
13343############################
13344
13345# Implementation of the --enable-ciphers switch.
13346# Check whether --enable-ciphers was given.
13347if test "${enable_ciphers+set}" = set; then :
13348  enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13349else
13350  enabled_ciphers=""
13351fi
13352
13353if test "x$enabled_ciphers" = "x" \
13354   -o "$enabled_ciphers" = "yes"  \
13355   -o "$enabled_ciphers" = "no"; then
13356   enabled_ciphers=$default_ciphers
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
13359$as_echo_n "checking which symmetric ciphers to include... " >&6; }
13360for cipher in $enabled_ciphers; do
13361
13362name=$cipher
13363list=$available_ciphers
13364found=0
13365
13366for n in $list; do
13367  if test "x$name" = "x$n"; then
13368    found=1
13369  fi
13370done
13371
13372    if test "$found" = "0"; then
13373       as_fn_error $? "unsupported cipher \"$cipher\" specified" "$LINENO" 5
13374    fi
13375done
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
13377$as_echo "$enabled_ciphers" >&6; }
13378
13379# Implementation of the --enable-pubkey-ciphers switch.
13380# Check whether --enable-pubkey-ciphers was given.
13381if test "${enable_pubkey_ciphers+set}" = set; then :
13382  enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13383else
13384  enabled_pubkey_ciphers=""
13385fi
13386
13387if test "x$enabled_pubkey_ciphers" = "x" \
13388   -o "$enabled_pubkey_ciphers" = "yes"  \
13389   -o "$enabled_pubkey_ciphers" = "no"; then
13390   enabled_pubkey_ciphers=$default_pubkey_ciphers
13391fi
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
13393$as_echo_n "checking which public-key ciphers to include... " >&6; }
13394for cipher in $enabled_pubkey_ciphers; do
13395
13396name=$cipher
13397list=$available_pubkey_ciphers
13398found=0
13399
13400for n in $list; do
13401  if test "x$name" = "x$n"; then
13402    found=1
13403  fi
13404done
13405
13406    if test "$found" = "0"; then
13407       as_fn_error $? "unsupported public-key cipher specified" "$LINENO" 5
13408    fi
13409done
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
13411$as_echo "$enabled_pubkey_ciphers" >&6; }
13412
13413# Implementation of the --enable-digests switch.
13414# Check whether --enable-digests was given.
13415if test "${enable_digests+set}" = set; then :
13416  enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13417else
13418  enabled_digests=""
13419fi
13420
13421if test "x$enabled_digests" = "x" \
13422   -o "$enabled_digests" = "yes"  \
13423   -o "$enabled_digests" = "no"; then
13424   enabled_digests=$default_digests
13425fi
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
13427$as_echo_n "checking which message digests to include... " >&6; }
13428for digest in $enabled_digests; do
13429
13430name=$digest
13431list=$available_digests
13432found=0
13433
13434for n in $list; do
13435  if test "x$name" = "x$n"; then
13436    found=1
13437  fi
13438done
13439
13440    if test "$found" = "0"; then
13441       as_fn_error $? "unsupported message digest specified" "$LINENO" 5
13442    fi
13443done
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
13445$as_echo "$enabled_digests" >&6; }
13446
13447# Implementation of the --enable-random switch.
13448# Check whether --enable-random was given.
13449if test "${enable_random+set}" = set; then :
13450  enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
13451fi
13452
13453if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
13454    random=default
13455fi
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
13457$as_echo_n "checking which random module to use... " >&6; }
13458if test "$random" != "default" -a "$random" != "auto"; then
13459
13460name=$random
13461list=$available_random_modules
13462found=0
13463
13464for n in $list; do
13465  if test "x$name" = "x$n"; then
13466    found=1
13467  fi
13468done
13469
13470    if test "$found" = "0"; then
13471       as_fn_error $? "unsupported random module specified" "$LINENO" 5
13472    fi
13473fi
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random" >&5
13475$as_echo "$random" >&6; }
13476
13477# Implementation of the --disable-dev-random switch.
13478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
13479$as_echo_n "checking whether use of /dev/random is requested... " >&6; }
13480# Check whether --enable-dev-random was given.
13481if test "${enable_dev_random+set}" = set; then :
13482  enableval=$enable_dev_random; try_dev_random=$enableval
13483else
13484  try_dev_random=yes
13485fi
13486
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
13488$as_echo "$try_dev_random" >&6; }
13489
13490# Implementation of the --with-egd-socket switch.
13491
13492# Check whether --with-egd-socket was given.
13493if test "${with_egd_socket+set}" = set; then :
13494  withval=$with_egd_socket; egd_socket_name="$withval"
13495else
13496  egd_socket_name=""
13497fi
13498
13499
13500cat >>confdefs.h <<_ACEOF
13501#define EGD_SOCKET_NAME "$egd_socket_name"
13502_ACEOF
13503
13504
13505# Implementation of the --enable-random-daemon
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the experimental random daemon is requested" >&5
13507$as_echo_n "checking whether the experimental random daemon is requested... " >&6; }
13508# Check whether --enable-random-daemon was given.
13509if test "${enable_random_daemon+set}" = set; then :
13510  enableval=$enable_random_daemon; use_random_daemon=$enableval
13511else
13512  use_random_daemon=no
13513fi
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_random_daemon" >&5
13516$as_echo "$use_random_daemon" >&6; }
13517if test x$use_random_daemon = xyes ; then
13518
13519$as_echo "#define USE_RANDOM_DAEMON 1" >>confdefs.h
13520
13521fi
13522 if test x$use_random_daemon = xyes; then
13523  USE_RANDOM_DAEMON_TRUE=
13524  USE_RANDOM_DAEMON_FALSE='#'
13525else
13526  USE_RANDOM_DAEMON_TRUE='#'
13527  USE_RANDOM_DAEMON_FALSE=
13528fi
13529
13530
13531
13532# Implementation of --disable-asm.
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI assembler modules are requested" >&5
13534$as_echo_n "checking whether MPI assembler modules are requested... " >&6; }
13535# Check whether --enable-asm was given.
13536if test "${enable_asm+set}" = set; then :
13537  enableval=$enable_asm; try_asm_modules=$enableval
13538else
13539  try_asm_modules=yes
13540fi
13541
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
13543$as_echo "$try_asm_modules" >&6; }
13544
13545# Implementation of the --enable-m-guard switch.
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory guard is requested" >&5
13547$as_echo_n "checking whether memory guard is requested... " >&6; }
13548# Check whether --enable-m-guard was given.
13549if test "${enable_m_guard+set}" = set; then :
13550  enableval=$enable_m_guard; use_m_guard=$enableval
13551else
13552  use_m_guard=no
13553fi
13554
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_m_guard" >&5
13556$as_echo "$use_m_guard" >&6; }
13557if test "$use_m_guard" = yes ; then
13558
13559$as_echo "#define M_GUARD 1" >>confdefs.h
13560
13561fi
13562
13563# Implementation of the --with-capabilities switch.
13564# Check whether we want to use Linux capabilities
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
13566$as_echo_n "checking whether use of capabilities is requested... " >&6; }
13567
13568# Check whether --with-capabilities was given.
13569if test "${with_capabilities+set}" = set; then :
13570  withval=$with_capabilities; use_capabilities="$withval"
13571else
13572  use_capabilities=no
13573fi
13574
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
13576$as_echo "$use_capabilities" >&6; }
13577
13578# Implementation of the --enable-hmac-binary-check.
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
13580$as_echo_n "checking whether a HMAC binary check is requested... " >&6; }
13581# Check whether --enable-hmac-binary-check was given.
13582if test "${enable_hmac_binary_check+set}" = set; then :
13583  enableval=$enable_hmac_binary_check; use_hmac_binary_check=$enableval
13584else
13585  use_hmac_binary_check=no
13586fi
13587
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
13589$as_echo "$use_hmac_binary_check" >&6; }
13590if test "$use_hmac_binary_check" = yes ; then
13591
13592$as_echo "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
13593
13594fi
13595
13596
13597# Implementation of the --disable-padlock-support switch.
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
13599$as_echo_n "checking whether padlock support is requested... " >&6; }
13600# Check whether --enable-padlock-support was given.
13601if test "${enable_padlock_support+set}" = set; then :
13602  enableval=$enable_padlock_support; padlocksupport=$enableval
13603else
13604  padlocksupport=yes
13605fi
13606
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
13608$as_echo "$padlocksupport" >&6; }
13609if test x"$padlocksupport" = xyes ; then
13610
13611$as_echo "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
13612
13613fi
13614
13615# Implementation of the --disable-aesni-support switch.
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AESNI support is requested" >&5
13617$as_echo_n "checking whether AESNI support is requested... " >&6; }
13618# Check whether --enable-aesni-support was given.
13619if test "${enable_aesni_support+set}" = set; then :
13620  enableval=$enable_aesni_support; aesnisupport=$enableval
13621else
13622  aesnisupport=yes
13623fi
13624
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aesnisupport" >&5
13626$as_echo "$aesnisupport" >&6; }
13627if test x"$aesnisupport" = xyes ; then
13628
13629$as_echo "#define ENABLE_AESNI_SUPPORT 1" >>confdefs.h
13630
13631fi
13632
13633# Implementation of the --disable-O-flag-munging switch.
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
13635$as_echo_n "checking whether a -O flag munging is requested... " >&6; }
13636# Check whether --enable-O-flag-munging was given.
13637if test "${enable_O_flag_munging+set}" = set; then :
13638  enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
13639else
13640  enable_o_flag_munging=yes
13641fi
13642
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
13644$as_echo "$enable_o_flag_munging" >&6; }
13645 if test "$enable_o_flag_munging" = "yes"; then
13646  ENABLE_O_FLAG_MUNGING_TRUE=
13647  ENABLE_O_FLAG_MUNGING_FALSE='#'
13648else
13649  ENABLE_O_FLAG_MUNGING_TRUE='#'
13650  ENABLE_O_FLAG_MUNGING_FALSE=
13651fi
13652
13653
13654
13655
13656
13657cat >>confdefs.h <<_ACEOF
13658#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
13659_ACEOF
13660
13661
13662# For some systems we know that we have ld_version scripts.
13663# Use it then as default.
13664have_ld_version_script=no
13665case "${host}" in
13666    *-*-linux*)
13667	have_ld_version_script=yes
13668        ;;
13669    *-*-gnu*)
13670	have_ld_version_script=yes
13671        ;;
13672esac
13673# Check whether --enable-ld-version-script was given.
13674if test "${enable_ld_version_script+set}" = set; then :
13675  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13676else
13677   :
13678fi
13679
13680 if test "$have_ld_version_script" = "yes"; then
13681  HAVE_LD_VERSION_SCRIPT_TRUE=
13682  HAVE_LD_VERSION_SCRIPT_FALSE='#'
13683else
13684  HAVE_LD_VERSION_SCRIPT_TRUE='#'
13685  HAVE_LD_VERSION_SCRIPT_FALSE=
13686fi
13687
13688
13689
13690cat >>confdefs.h <<_ACEOF
13691#define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
13692_ACEOF
13693
13694
13695cat >>confdefs.h <<_ACEOF
13696#define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
13697_ACEOF
13698
13699
13700
13701###############################
13702#### Checks for libraries. ####
13703###############################
13704
13705#
13706# gpg-error is required.
13707#
13708
13709# Check whether --with-gpg-error-prefix was given.
13710if test "${with_gpg_error_prefix+set}" = set; then :
13711  withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
13712else
13713  gpg_error_config_prefix=""
13714fi
13715
13716  if test x$gpg_error_config_prefix != x ; then
13717     if test x${GPG_ERROR_CONFIG+set} != xset ; then
13718#        GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
13719        GPG_ERROR_CONFIG=$gpg_error_config_prefix/gpg-error-config
13720     fi
13721  fi
13722
13723  if test -n "$ac_tool_prefix"; then
13724  # Extract the first word of "${ac_tool_prefix}gpg-error-config", so it can be a program name with args.
13725set dummy ${ac_tool_prefix}gpg-error-config; ac_word=$2
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727$as_echo_n "checking for $ac_word... " >&6; }
13728if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
13729  $as_echo_n "(cached) " >&6
13730else
13731  case $GPG_ERROR_CONFIG in
13732  [\\/]* | ?:[\\/]*)
13733  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
13734  ;;
13735  *)
13736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737for as_dir in $PATH
13738do
13739  IFS=$as_save_IFS
13740  test -z "$as_dir" && as_dir=.
13741    for ac_exec_ext in '' $ac_executable_extensions; do
13742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13743    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745    break 2
13746  fi
13747done
13748  done
13749IFS=$as_save_IFS
13750
13751  ;;
13752esac
13753fi
13754GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
13755if test -n "$GPG_ERROR_CONFIG"; then
13756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
13757$as_echo "$GPG_ERROR_CONFIG" >&6; }
13758else
13759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
13761fi
13762
13763
13764fi
13765if test -z "$ac_cv_path_GPG_ERROR_CONFIG"; then
13766  ac_pt_GPG_ERROR_CONFIG=$GPG_ERROR_CONFIG
13767  # Extract the first word of "gpg-error-config", so it can be a program name with args.
13768set dummy gpg-error-config; ac_word=$2
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770$as_echo_n "checking for $ac_word... " >&6; }
13771if ${ac_cv_path_ac_pt_GPG_ERROR_CONFIG+:} false; then :
13772  $as_echo_n "(cached) " >&6
13773else
13774  case $ac_pt_GPG_ERROR_CONFIG in
13775  [\\/]* | ?:[\\/]*)
13776  ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$ac_pt_GPG_ERROR_CONFIG" # Let the user override the test with a path.
13777  ;;
13778  *)
13779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $PATH
13781do
13782  IFS=$as_save_IFS
13783  test -z "$as_dir" && as_dir=.
13784    for ac_exec_ext in '' $ac_executable_extensions; do
13785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786    ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788    break 2
13789  fi
13790done
13791  done
13792IFS=$as_save_IFS
13793
13794  ;;
13795esac
13796fi
13797ac_pt_GPG_ERROR_CONFIG=$ac_cv_path_ac_pt_GPG_ERROR_CONFIG
13798if test -n "$ac_pt_GPG_ERROR_CONFIG"; then
13799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPG_ERROR_CONFIG" >&5
13800$as_echo "$ac_pt_GPG_ERROR_CONFIG" >&6; }
13801else
13802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803$as_echo "no" >&6; }
13804fi
13805
13806  if test "x$ac_pt_GPG_ERROR_CONFIG" = x; then
13807    GPG_ERROR_CONFIG="no"
13808  else
13809    case $cross_compiling:$ac_tool_warned in
13810yes:)
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13813ac_tool_warned=yes ;;
13814esac
13815    GPG_ERROR_CONFIG=$ac_pt_GPG_ERROR_CONFIG
13816  fi
13817else
13818  GPG_ERROR_CONFIG="$ac_cv_path_GPG_ERROR_CONFIG"
13819fi
13820
13821  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
13822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
13823$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
13824  ok=no
13825  if test "$GPG_ERROR_CONFIG" != "no" ; then
13826    req_major=`echo $min_gpg_error_version | \
13827               sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
13828    req_minor=`echo $min_gpg_error_version | \
13829               sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
13830    gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
13831    major=`echo $gpg_error_config_version | \
13832               sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
13833    minor=`echo $gpg_error_config_version | \
13834               sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
13835    if test "$major" -gt "$req_major"; then
13836        ok=yes
13837    else
13838        if test "$major" -eq "$req_major"; then
13839            if test "$minor" -ge "$req_minor"; then
13840               ok=yes
13841            fi
13842        fi
13843    fi
13844  fi
13845  if test $ok = yes; then
13846#    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
13847#Jerry modified for compile in 20130411
13848#    GPG_ERROR_CFLAGS="-I/home/jerryjian/asuswrt/20130410/asuswrt/release/src-rt/router/libgpg-error-1.10/src"
13849    GPG_ERROR_CFLAGS="-I$gpg_error_config_prefix"
13850    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
13851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
13852$as_echo "yes ($gpg_error_config_version)" >&6; }
13853    :
13854    if test x"$host" != x ; then
13855      gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
13856      if test x"$gpg_error_config_host" != xnone ; then
13857        if test x"$gpg_error_config_host" != x"$host" ; then
13858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13859***
13860*** The config script $GPG_ERROR_CONFIG was
13861*** built for $gpg_error_config_host and thus may not match the
13862*** used host $host.
13863*** You may want to use the configure option --with-gpg-error-prefix
13864*** to specify a matching config script.
13865***" >&5
13866$as_echo "$as_me: WARNING:
13867***
13868*** The config script $GPG_ERROR_CONFIG was
13869*** built for $gpg_error_config_host and thus may not match the
13870*** used host $host.
13871*** You may want to use the configure option --with-gpg-error-prefix
13872*** to specify a matching config script.
13873***" >&2;}
13874        fi
13875      fi
13876    fi
13877  else
13878    GPG_ERROR_CFLAGS=""
13879    GPG_ERROR_LIBS=""
13880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881$as_echo "no" >&6; }
13882    :
13883  fi
13884
13885
13886
13887if test "x$GPG_ERROR_LIBS" = "x"; then
13888  as_fn_error $? "libgpg-error is needed.
13889                See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
13890fi
13891
13892
13893$as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
13894
13895
13896#
13897# Check whether the GNU Pth library is available.  We require this
13898# to build the optional gcryptrnd program.
13899#
13900
13901# Check whether --with-pth-prefix was given.
13902if test "${with_pth_prefix+set}" = set; then :
13903  withval=$with_pth_prefix; pth_config_prefix="$withval"
13904else
13905  pth_config_prefix=""
13906fi
13907
13908if test x$pth_config_prefix != x ; then
13909   PTH_CONFIG="$pth_config_prefix/bin/pth-config"
13910fi
13911if test "$use_random_daemon" = "yes"; then
13912  # Extract the first word of "pth-config", so it can be a program name with args.
13913set dummy pth-config; ac_word=$2
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13915$as_echo_n "checking for $ac_word... " >&6; }
13916if ${ac_cv_path_PTH_CONFIG+:} false; then :
13917  $as_echo_n "(cached) " >&6
13918else
13919  case $PTH_CONFIG in
13920  [\\/]* | ?:[\\/]*)
13921  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
13922  ;;
13923  *)
13924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925for as_dir in $PATH
13926do
13927  IFS=$as_save_IFS
13928  test -z "$as_dir" && as_dir=.
13929    for ac_exec_ext in '' $ac_executable_extensions; do
13930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933    break 2
13934  fi
13935done
13936  done
13937IFS=$as_save_IFS
13938
13939  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
13940  ;;
13941esac
13942fi
13943PTH_CONFIG=$ac_cv_path_PTH_CONFIG
13944if test -n "$PTH_CONFIG"; then
13945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
13946$as_echo "$PTH_CONFIG" >&6; }
13947else
13948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949$as_echo "no" >&6; }
13950fi
13951
13952
13953  if test "$PTH_CONFIG" = "no"; then
13954    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13955***
13956*** To build the Libgcrypt's random number daemon
13957*** we need the support of the GNU Portable Threads Library.
13958*** Download it from ftp://ftp.gnu.org/gnu/pth/
13959*** On a Debian GNU/Linux system you might want to try
13960***   apt-get install libpth-dev
13961***" >&5
13962$as_echo "$as_me: WARNING:
13963***
13964*** To build the Libgcrypt's random number daemon
13965*** we need the support of the GNU Portable Threads Library.
13966*** Download it from ftp://ftp.gnu.org/gnu/pth/
13967*** On a Debian GNU/Linux system you might want to try
13968***   apt-get install libpth-dev
13969***" >&2;}
13970  else
13971
13972    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
13973    _req_version="1.3.7"
13974
13975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
13976$as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
13977    for _var in _pth_version _req_version; do
13978        eval "_val=\"\$${_var}\""
13979        _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
13980        _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
13981        _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
13982        _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
13983        case $_rtype in
13984            "a" ) _rtype=0 ;;
13985            "b" ) _rtype=1 ;;
13986            "." ) _rtype=2 ;;
13987        esac
13988        _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
13989              "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
13990        eval "${_var}_hex=\"\$_hex\""
13991    done
13992    have_pth=no
13993    if test ".$_pth_version_hex" != .; then
13994        if test ".$_req_version_hex" != .; then
13995            if test $_pth_version_hex -ge $_req_version_hex; then
13996                have_pth=yes
13997            fi
13998        fi
13999    fi
14000    if test $have_pth = yes; then
14001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14002$as_echo "yes" >&6; }
14003       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
14004$as_echo_n "checking whether PTH installation is sane... " >&6; }
14005       if ${gnupg_cv_pth_is_sane+:} false; then :
14006  $as_echo_n "(cached) " >&6
14007else
14008
14009         _gnupg_pth_save_cflags=$CFLAGS
14010         _gnupg_pth_save_ldflags=$LDFLAGS
14011         _gnupg_pth_save_libs=$LIBS
14012         CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
14013         LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
14014         LIBS="$LIBS `$PTH_CONFIG --libs`"
14015         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016/* end confdefs.h.  */
14017#include <pth.h>
14018
14019int
14020main ()
14021{
14022 pth_init ();
14023  ;
14024  return 0;
14025}
14026_ACEOF
14027if ac_fn_c_try_link "$LINENO"; then :
14028  gnupg_cv_pth_is_sane=yes
14029else
14030  gnupg_cv_pth_is_sane=no
14031fi
14032rm -f core conftest.err conftest.$ac_objext \
14033    conftest$ac_exeext conftest.$ac_ext
14034         CFLAGS=$_gnupg_pth_save_cflags
14035         LDFLAGS=$_gnupg_pth_save_ldflags
14036         LIBS=$_gnupg_pth_save_libs
14037
14038fi
14039
14040       if test $gnupg_cv_pth_is_sane != yes; then
14041          have_pth=no
14042       fi
14043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
14044$as_echo "$gnupg_cv_pth_is_sane" >&6; }
14045    else
14046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047$as_echo "no" >&6; }
14048    fi
14049
14050    if test $have_pth = yes; then
14051       PTH_CFLAGS=`$PTH_CONFIG --cflags`
14052       PTH_LIBS=`$PTH_CONFIG --ldflags`
14053       PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
14054
14055$as_echo "#define USE_GNU_PTH 1" >>confdefs.h
14056
14057
14058$as_echo "#define HAVE_PTH 1" >>confdefs.h
14059
14060    fi
14061  fi
14062fi
14063
14064
14065
14066
14067# Solaris needs -lsocket and -lnsl. Unisys system includes
14068# gethostbyname in libsocket but needs libnsl for socket.
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14070$as_echo_n "checking for library containing setsockopt... " >&6; }
14071if ${ac_cv_search_setsockopt+:} false; then :
14072  $as_echo_n "(cached) " >&6
14073else
14074  ac_func_search_save_LIBS=$LIBS
14075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076/* end confdefs.h.  */
14077
14078/* Override any GCC internal prototype to avoid an error.
14079   Use char because int might match the return type of a GCC
14080   builtin and then its argument prototype would still apply.  */
14081#ifdef __cplusplus
14082extern "C"
14083#endif
14084char setsockopt ();
14085int
14086main ()
14087{
14088return setsockopt ();
14089  ;
14090  return 0;
14091}
14092_ACEOF
14093for ac_lib in '' socket; do
14094  if test -z "$ac_lib"; then
14095    ac_res="none required"
14096  else
14097    ac_res=-l$ac_lib
14098    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14099  fi
14100  if ac_fn_c_try_link "$LINENO"; then :
14101  ac_cv_search_setsockopt=$ac_res
14102fi
14103rm -f core conftest.err conftest.$ac_objext \
14104    conftest$ac_exeext
14105  if ${ac_cv_search_setsockopt+:} false; then :
14106  break
14107fi
14108done
14109if ${ac_cv_search_setsockopt+:} false; then :
14110
14111else
14112  ac_cv_search_setsockopt=no
14113fi
14114rm conftest.$ac_ext
14115LIBS=$ac_func_search_save_LIBS
14116fi
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14118$as_echo "$ac_cv_search_setsockopt" >&6; }
14119ac_res=$ac_cv_search_setsockopt
14120if test "$ac_res" != no; then :
14121  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14122
14123else
14124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14125$as_echo_n "checking for library containing setsockopt... " >&6; }
14126if ${ac_cv_search_setsockopt+:} false; then :
14127  $as_echo_n "(cached) " >&6
14128else
14129  ac_func_search_save_LIBS=$LIBS
14130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131/* end confdefs.h.  */
14132
14133/* Override any GCC internal prototype to avoid an error.
14134   Use char because int might match the return type of a GCC
14135   builtin and then its argument prototype would still apply.  */
14136#ifdef __cplusplus
14137extern "C"
14138#endif
14139char setsockopt ();
14140int
14141main ()
14142{
14143return setsockopt ();
14144  ;
14145  return 0;
14146}
14147_ACEOF
14148for ac_lib in '' socket; do
14149  if test -z "$ac_lib"; then
14150    ac_res="none required"
14151  else
14152    ac_res=-l$ac_lib
14153    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
14154  fi
14155  if ac_fn_c_try_link "$LINENO"; then :
14156  ac_cv_search_setsockopt=$ac_res
14157fi
14158rm -f core conftest.err conftest.$ac_objext \
14159    conftest$ac_exeext
14160  if ${ac_cv_search_setsockopt+:} false; then :
14161  break
14162fi
14163done
14164if ${ac_cv_search_setsockopt+:} false; then :
14165
14166else
14167  ac_cv_search_setsockopt=no
14168fi
14169rm conftest.$ac_ext
14170LIBS=$ac_func_search_save_LIBS
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14173$as_echo "$ac_cv_search_setsockopt" >&6; }
14174ac_res=$ac_cv_search_setsockopt
14175if test "$ac_res" != no; then :
14176  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14177
14178fi
14179
14180fi
14181
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14183$as_echo_n "checking for library containing setsockopt... " >&6; }
14184if ${ac_cv_search_setsockopt+:} false; then :
14185  $as_echo_n "(cached) " >&6
14186else
14187  ac_func_search_save_LIBS=$LIBS
14188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189/* end confdefs.h.  */
14190
14191/* Override any GCC internal prototype to avoid an error.
14192   Use char because int might match the return type of a GCC
14193   builtin and then its argument prototype would still apply.  */
14194#ifdef __cplusplus
14195extern "C"
14196#endif
14197char setsockopt ();
14198int
14199main ()
14200{
14201return setsockopt ();
14202  ;
14203  return 0;
14204}
14205_ACEOF
14206for ac_lib in '' nsl; do
14207  if test -z "$ac_lib"; then
14208    ac_res="none required"
14209  else
14210    ac_res=-l$ac_lib
14211    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14212  fi
14213  if ac_fn_c_try_link "$LINENO"; then :
14214  ac_cv_search_setsockopt=$ac_res
14215fi
14216rm -f core conftest.err conftest.$ac_objext \
14217    conftest$ac_exeext
14218  if ${ac_cv_search_setsockopt+:} false; then :
14219  break
14220fi
14221done
14222if ${ac_cv_search_setsockopt+:} false; then :
14223
14224else
14225  ac_cv_search_setsockopt=no
14226fi
14227rm conftest.$ac_ext
14228LIBS=$ac_func_search_save_LIBS
14229fi
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14231$as_echo "$ac_cv_search_setsockopt" >&6; }
14232ac_res=$ac_cv_search_setsockopt
14233if test "$ac_res" != no; then :
14234  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14235
14236fi
14237
14238
14239##################################
14240#### Checks for header files. ####
14241##################################
14242
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14244$as_echo_n "checking for ANSI C header files... " >&6; }
14245if ${ac_cv_header_stdc+:} false; then :
14246  $as_echo_n "(cached) " >&6
14247else
14248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h.  */
14250#include <stdlib.h>
14251#include <stdarg.h>
14252#include <string.h>
14253#include <float.h>
14254
14255int
14256main ()
14257{
14258
14259  ;
14260  return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_compile "$LINENO"; then :
14264  ac_cv_header_stdc=yes
14265else
14266  ac_cv_header_stdc=no
14267fi
14268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269
14270if test $ac_cv_header_stdc = yes; then
14271  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h.  */
14274#include <string.h>
14275
14276_ACEOF
14277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14278  $EGREP "memchr" >/dev/null 2>&1; then :
14279
14280else
14281  ac_cv_header_stdc=no
14282fi
14283rm -f conftest*
14284
14285fi
14286
14287if test $ac_cv_header_stdc = yes; then
14288  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290/* end confdefs.h.  */
14291#include <stdlib.h>
14292
14293_ACEOF
14294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14295  $EGREP "free" >/dev/null 2>&1; then :
14296
14297else
14298  ac_cv_header_stdc=no
14299fi
14300rm -f conftest*
14301
14302fi
14303
14304if test $ac_cv_header_stdc = yes; then
14305  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14306  if test "$cross_compiling" = yes; then :
14307  :
14308else
14309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h.  */
14311#include <ctype.h>
14312#include <stdlib.h>
14313#if ((' ' & 0x0FF) == 0x020)
14314# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14315# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14316#else
14317# define ISLOWER(c) \
14318		   (('a' <= (c) && (c) <= 'i') \
14319		     || ('j' <= (c) && (c) <= 'r') \
14320		     || ('s' <= (c) && (c) <= 'z'))
14321# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14322#endif
14323
14324#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14325int
14326main ()
14327{
14328  int i;
14329  for (i = 0; i < 256; i++)
14330    if (XOR (islower (i), ISLOWER (i))
14331	|| toupper (i) != TOUPPER (i))
14332      return 2;
14333  return 0;
14334}
14335_ACEOF
14336if ac_fn_c_try_run "$LINENO"; then :
14337
14338else
14339  ac_cv_header_stdc=no
14340fi
14341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14342  conftest.$ac_objext conftest.beam conftest.$ac_ext
14343fi
14344
14345fi
14346fi
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14348$as_echo "$ac_cv_header_stdc" >&6; }
14349if test $ac_cv_header_stdc = yes; then
14350
14351$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14352
14353fi
14354
14355for ac_header in unistd.h sys/select.h sys/msg.h
14356do :
14357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14360  cat >>confdefs.h <<_ACEOF
14361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14362_ACEOF
14363
14364fi
14365
14366done
14367
14368INSERT_SYS_SELECT_H=
14369if test x"$ac_cv_header_sys_select_h" = xyes; then
14370  INSERT_SYS_SELECT_H=" include <sys/select.h>"
14371fi
14372
14373
14374
14375##########################################
14376#### Checks for typedefs, structures, ####
14377####  and compiler characteristics.   ####
14378##########################################
14379
14380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14381$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14382if ${ac_cv_c_const+:} false; then :
14383  $as_echo_n "(cached) " >&6
14384else
14385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386/* end confdefs.h.  */
14387
14388int
14389main ()
14390{
14391
14392#ifndef __cplusplus
14393  /* Ultrix mips cc rejects this sort of thing.  */
14394  typedef int charset[2];
14395  const charset cs = { 0, 0 };
14396  /* SunOS 4.1.1 cc rejects this.  */
14397  char const *const *pcpcc;
14398  char **ppc;
14399  /* NEC SVR4.0.2 mips cc rejects this.  */
14400  struct point {int x, y;};
14401  static struct point const zero = {0,0};
14402  /* AIX XL C 1.02.0.0 rejects this.
14403     It does not let you subtract one const X* pointer from another in
14404     an arm of an if-expression whose if-part is not a constant
14405     expression */
14406  const char *g = "string";
14407  pcpcc = &g + (g ? g-g : 0);
14408  /* HPUX 7.0 cc rejects these. */
14409  ++pcpcc;
14410  ppc = (char**) pcpcc;
14411  pcpcc = (char const *const *) ppc;
14412  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14413    char tx;
14414    char *t = &tx;
14415    char const *s = 0 ? (char *) 0 : (char const *) 0;
14416
14417    *t++ = 0;
14418    if (s) return 0;
14419  }
14420  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14421    int x[] = {25, 17};
14422    const int *foo = &x[0];
14423    ++foo;
14424  }
14425  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14426    typedef const int *iptr;
14427    iptr p = 0;
14428    ++p;
14429  }
14430  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14431       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14432    struct s { int j; const int *ap[3]; } bx;
14433    struct s *b = &bx; b->j = 5;
14434  }
14435  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14436    const int foo = 10;
14437    if (!foo) return 0;
14438  }
14439  return !cs[0] && !zero.x;
14440#endif
14441
14442  ;
14443  return 0;
14444}
14445_ACEOF
14446if ac_fn_c_try_compile "$LINENO"; then :
14447  ac_cv_c_const=yes
14448else
14449  ac_cv_c_const=no
14450fi
14451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14454$as_echo "$ac_cv_c_const" >&6; }
14455if test $ac_cv_c_const = no; then
14456
14457$as_echo "#define const /**/" >>confdefs.h
14458
14459fi
14460
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14462$as_echo_n "checking for inline... " >&6; }
14463if ${ac_cv_c_inline+:} false; then :
14464  $as_echo_n "(cached) " >&6
14465else
14466  ac_cv_c_inline=no
14467for ac_kw in inline __inline__ __inline; do
14468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469/* end confdefs.h.  */
14470#ifndef __cplusplus
14471typedef int foo_t;
14472static $ac_kw foo_t static_foo () {return 0; }
14473$ac_kw foo_t foo () {return 0; }
14474#endif
14475
14476_ACEOF
14477if ac_fn_c_try_compile "$LINENO"; then :
14478  ac_cv_c_inline=$ac_kw
14479fi
14480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481  test "$ac_cv_c_inline" != no && break
14482done
14483
14484fi
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14486$as_echo "$ac_cv_c_inline" >&6; }
14487
14488case $ac_cv_c_inline in
14489  inline | yes) ;;
14490  *)
14491    case $ac_cv_c_inline in
14492      no) ac_val=;;
14493      *) ac_val=$ac_cv_c_inline;;
14494    esac
14495    cat >>confdefs.h <<_ACEOF
14496#ifndef __cplusplus
14497#define inline $ac_val
14498#endif
14499_ACEOF
14500    ;;
14501esac
14502
14503ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14504if test "x$ac_cv_type_size_t" = xyes; then :
14505
14506else
14507
14508cat >>confdefs.h <<_ACEOF
14509#define size_t unsigned int
14510_ACEOF
14511
14512fi
14513
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14515$as_echo_n "checking return type of signal handlers... " >&6; }
14516if ${ac_cv_type_signal+:} false; then :
14517  $as_echo_n "(cached) " >&6
14518else
14519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520/* end confdefs.h.  */
14521#include <sys/types.h>
14522#include <signal.h>
14523
14524int
14525main ()
14526{
14527return *(signal (0, 0)) (0) == 1;
14528  ;
14529  return 0;
14530}
14531_ACEOF
14532if ac_fn_c_try_compile "$LINENO"; then :
14533  ac_cv_type_signal=int
14534else
14535  ac_cv_type_signal=void
14536fi
14537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538fi
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14540$as_echo "$ac_cv_type_signal" >&6; }
14541
14542cat >>confdefs.h <<_ACEOF
14543#define RETSIGTYPE $ac_cv_type_signal
14544_ACEOF
14545
14546
14547ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
14548/* NetBSD declares sys_siglist in unistd.h.  */
14549#ifdef HAVE_UNISTD_H
14550# include <unistd.h>
14551#endif
14552
14553"
14554if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
14555  ac_have_decl=1
14556else
14557  ac_have_decl=0
14558fi
14559
14560cat >>confdefs.h <<_ACEOF
14561#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
14562_ACEOF
14563
14564
14565ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14566if test "x$ac_cv_type_pid_t" = xyes; then :
14567
14568else
14569
14570cat >>confdefs.h <<_ACEOF
14571#define pid_t int
14572_ACEOF
14573
14574fi
14575
14576
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
14578$as_echo_n "checking for byte typedef... " >&6; }
14579    if ${gnupg_cv_typedef_byte+:} false; then :
14580  $as_echo_n "(cached) " >&6
14581else
14582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583/* end confdefs.h.  */
14584#define _GNU_SOURCE 1
14585    #include <stdlib.h>
14586    #include <sys/types.h>
14587int
14588main ()
14589{
14590
14591    #undef byte
14592    int a = sizeof(byte);
14593
14594  ;
14595  return 0;
14596}
14597_ACEOF
14598if ac_fn_c_try_compile "$LINENO"; then :
14599  gnupg_cv_typedef_byte=yes
14600else
14601  gnupg_cv_typedef_byte=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604fi
14605
14606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
14607$as_echo "$gnupg_cv_typedef_byte" >&6; }
14608    if test "$gnupg_cv_typedef_byte" = yes; then
14609
14610$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
14611
14612    fi
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
14615$as_echo_n "checking for ushort typedef... " >&6; }
14616    if ${gnupg_cv_typedef_ushort+:} false; then :
14617  $as_echo_n "(cached) " >&6
14618else
14619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620/* end confdefs.h.  */
14621#define _GNU_SOURCE 1
14622    #include <stdlib.h>
14623    #include <sys/types.h>
14624int
14625main ()
14626{
14627
14628    #undef ushort
14629    int a = sizeof(ushort);
14630
14631  ;
14632  return 0;
14633}
14634_ACEOF
14635if ac_fn_c_try_compile "$LINENO"; then :
14636  gnupg_cv_typedef_ushort=yes
14637else
14638  gnupg_cv_typedef_ushort=no
14639fi
14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641fi
14642
14643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
14644$as_echo "$gnupg_cv_typedef_ushort" >&6; }
14645    if test "$gnupg_cv_typedef_ushort" = yes; then
14646
14647$as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
14648
14649    fi
14650
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
14652$as_echo_n "checking for ulong typedef... " >&6; }
14653    if ${gnupg_cv_typedef_ulong+:} false; then :
14654  $as_echo_n "(cached) " >&6
14655else
14656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657/* end confdefs.h.  */
14658#define _GNU_SOURCE 1
14659    #include <stdlib.h>
14660    #include <sys/types.h>
14661int
14662main ()
14663{
14664
14665    #undef ulong
14666    int a = sizeof(ulong);
14667
14668  ;
14669  return 0;
14670}
14671_ACEOF
14672if ac_fn_c_try_compile "$LINENO"; then :
14673  gnupg_cv_typedef_ulong=yes
14674else
14675  gnupg_cv_typedef_ulong=no
14676fi
14677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678fi
14679
14680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
14681$as_echo "$gnupg_cv_typedef_ulong" >&6; }
14682    if test "$gnupg_cv_typedef_ulong" = yes; then
14683
14684$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
14685
14686    fi
14687
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
14689$as_echo_n "checking for u16 typedef... " >&6; }
14690    if ${gnupg_cv_typedef_u16+:} false; then :
14691  $as_echo_n "(cached) " >&6
14692else
14693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694/* end confdefs.h.  */
14695#define _GNU_SOURCE 1
14696    #include <stdlib.h>
14697    #include <sys/types.h>
14698int
14699main ()
14700{
14701
14702    #undef u16
14703    int a = sizeof(u16);
14704
14705  ;
14706  return 0;
14707}
14708_ACEOF
14709if ac_fn_c_try_compile "$LINENO"; then :
14710  gnupg_cv_typedef_u16=yes
14711else
14712  gnupg_cv_typedef_u16=no
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715fi
14716
14717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
14718$as_echo "$gnupg_cv_typedef_u16" >&6; }
14719    if test "$gnupg_cv_typedef_u16" = yes; then
14720
14721$as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
14722
14723    fi
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14726$as_echo_n "checking for u32 typedef... " >&6; }
14727    if ${gnupg_cv_typedef_u32+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731/* end confdefs.h.  */
14732#define _GNU_SOURCE 1
14733    #include <stdlib.h>
14734    #include <sys/types.h>
14735int
14736main ()
14737{
14738
14739    #undef u32
14740    int a = sizeof(u32);
14741
14742  ;
14743  return 0;
14744}
14745_ACEOF
14746if ac_fn_c_try_compile "$LINENO"; then :
14747  gnupg_cv_typedef_u32=yes
14748else
14749  gnupg_cv_typedef_u32=no
14750fi
14751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi
14753
14754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14755$as_echo "$gnupg_cv_typedef_u32" >&6; }
14756    if test "$gnupg_cv_typedef_u32" = yes; then
14757
14758$as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14759
14760    fi
14761
14762
14763
14764      for ac_header in sys/socket.h
14765do :
14766  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14767if test "x$ac_cv_header_sys_socket_h" = xyes; then :
14768  cat >>confdefs.h <<_ACEOF
14769#define HAVE_SYS_SOCKET_H 1
14770_ACEOF
14771
14772fi
14773
14774done
14775
14776
14777
14778
14779  :
14780
14781
14782
14783
14784
14785  if test $ac_cv_header_sys_socket_h = yes; then
14786    SYS_SOCKET_H=''
14787  else
14788                    for ac_header in winsock2.h ws2tcpip.h
14789do :
14790  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14791ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14792if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14793  cat >>confdefs.h <<_ACEOF
14794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14795_ACEOF
14796
14797fi
14798
14799done
14800
14801    SYS_SOCKET_H='sys/socket.h'
14802  fi
14803
14804
14805   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14806      #if HAVE_SYS_SOCKET_H
14807      # include <sys/socket.h>
14808      #elif HAVE_WS2TCPIP_H
14809      # include <ws2tcpip.h>
14810      #endif
14811"
14812if test "x$ac_cv_type_socklen_t" = xyes; then :
14813
14814else
14815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14816$as_echo_n "checking for socklen_t equivalent... " >&6; }
14817      if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
14818  $as_echo_n "(cached) " >&6
14819else
14820  # Systems have either "struct sockaddr *" or
14821	 # "void *" as the second argument to getpeername
14822	 gl_cv_socklen_t_equiv=
14823	 for arg2 in "struct sockaddr" void; do
14824	   for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14825	     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826/* end confdefs.h.  */
14827#include <sys/types.h>
14828		#include <sys/socket.h>
14829
14830		int getpeername (int, $arg2 *, $t *);
14831int
14832main ()
14833{
14834$t len;
14835		getpeername (0, 0, &len);
14836  ;
14837  return 0;
14838}
14839_ACEOF
14840if ac_fn_c_try_compile "$LINENO"; then :
14841  gl_cv_socklen_t_equiv="$t"
14842fi
14843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844	     test "$gl_cv_socklen_t_equiv" != "" && break
14845	   done
14846	   test "$gl_cv_socklen_t_equiv" != "" && break
14847	 done
14848
14849fi
14850
14851      if test "$gl_cv_socklen_t_equiv" = ""; then
14852	as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14853      fi
14854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14855$as_echo "$gl_cv_socklen_t_equiv" >&6; }
14856
14857cat >>confdefs.h <<_ACEOF
14858#define socklen_t $gl_cv_socklen_t_equiv
14859_ACEOF
14860
14861fi
14862
14863case "${host}" in
14864  *-*-mingw32*)
14865    # socklen_t may or may not be defined depending on what headers
14866    # are included.  To be safe we use int as this is the actual type.
14867    FALLBACK_SOCKLEN_T="typedef int gcry_socklen_t;"
14868    ;;
14869  *)
14870    if test ".$gl_cv_socklen_t_equiv" = "."; then
14871      FALLBACK_SOCKLEN_T="typedef socklen_t gcry_socklen_t;"
14872    else
14873      FALLBACK_SOCKLEN_T="typedef ${gl_cv_socklen_t_equiv} gcry_socklen_t;"
14874    fi
14875esac
14876
14877
14878#
14879# Check for ELF visibility support.
14880#
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
14882$as_echo_n "checking whether the visibility attribute is supported... " >&6; }
14883if ${gcry_cv_visibility_attribute+:} false; then :
14884  $as_echo_n "(cached) " >&6
14885else
14886  gcry_cv_visibility_attribute=no
14887        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h.  */
14889int foo __attribute__ ((visibility ("hidden"))) = 1;
14890            int bar __attribute__ ((visibility ("protected"))) = 1;
14891
14892_ACEOF
14893
14894        if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14895                  1>&5 2>&5 ; then
14896            if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
14897                if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
14898                    gcry_cv_visibility_attribute=yes
14899                fi
14900            fi
14901        fi
14902
14903fi
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
14905$as_echo "$gcry_cv_visibility_attribute" >&6; }
14906if test "$gcry_cv_visibility_attribute" = "yes"; then
14907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
14908$as_echo_n "checking for broken visibility attribute... " >&6; }
14909if ${gcry_cv_broken_visibility_attribute+:} false; then :
14910  $as_echo_n "(cached) " >&6
14911else
14912  gcry_cv_broken_visibility_attribute=yes
14913        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914/* end confdefs.h.  */
14915int foo (int x);
14916            int bar (int x) __asm__ ("foo")
14917                            __attribute__ ((visibility ("hidden")));
14918            int bar (int x) { return x; }
14919
14920_ACEOF
14921
14922        if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14923                  1>&5 2>&5 ; then
14924           if grep '\.hidden[ 	_]foo' conftest.s >/dev/null 2>&1;
14925            then
14926               gcry_cv_broken_visibility_attribute=no
14927           fi
14928        fi
14929
14930fi
14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
14932$as_echo "$gcry_cv_broken_visibility_attribute" >&6; }
14933fi
14934if test "$gcry_cv_visibility_attribute" = "yes"; then
14935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
14936$as_echo_n "checking for broken alias attribute... " >&6; }
14937if ${gcry_cv_broken_alias_attribute+:} false; then :
14938  $as_echo_n "(cached) " >&6
14939else
14940  gcry_cv_broken_alias_attribute=yes
14941        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943extern int foo (int x) __asm ("xyzzy");
14944            int bar (int x) { return x; }
14945            extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
14946            extern int dfoo;
14947            extern __typeof (dfoo) dfoo __asm ("abccb");
14948            int dfoo = 1;
14949
14950_ACEOF
14951
14952        if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14953                  1>&5 2>&5 ; then
14954           if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
14955              grep 'abccb' conftest.s >/dev/null 2>&1; then
14956              gcry_cv_broken_alias_attribute=no
14957           fi
14958        fi
14959
14960fi
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
14962$as_echo "$gcry_cv_broken_alias_attribute" >&6; }
14963fi
14964if test "$gcry_cv_visibility_attribute" = "yes"; then
14965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
14966$as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
14967if ${gcry_cv_gcc_has_f_visibility+:} false; then :
14968  $as_echo_n "(cached) " >&6
14969else
14970  gcry_cv_gcc_has_f_visibility=no
14971        _gcc_cflags_save=$CFLAGS
14972        CFLAGS="-fvisibility=hidden"
14973        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974/* end confdefs.h.  */
14975
14976int
14977main ()
14978{
14979
14980  ;
14981  return 0;
14982}
14983_ACEOF
14984if ac_fn_c_try_compile "$LINENO"; then :
14985  gcry_cv_gcc_has_f_visibility=yes
14986fi
14987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988        CFLAGS=$_gcc_cflags_save;
14989
14990fi
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
14992$as_echo "$gcry_cv_gcc_has_f_visibility" >&6; }
14993fi
14994if test "$gcry_cv_visibility_attribute" = "yes" \
14995   && test "$gcry_cv_broken_visibility_attribute" != "yes" \
14996   && test "$gcry_cv_broken_alias_attribute" != "yes" \
14997   && test "$gcry_cv_gcc_has_f_visibility" = "yes"
14998 then
14999
15000$as_echo "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
15001
15002   CFLAGS="$CFLAGS -fvisibility=hidden"
15003fi
15004
15005
15006#######################################
15007#### Checks for library functions. ####
15008#######################################
15009
15010for ac_func in vprintf
15011do :
15012  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15013if test "x$ac_cv_func_vprintf" = xyes; then :
15014  cat >>confdefs.h <<_ACEOF
15015#define HAVE_VPRINTF 1
15016_ACEOF
15017
15018ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15019if test "x$ac_cv_func__doprnt" = xyes; then :
15020
15021$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15022
15023fi
15024
15025fi
15026done
15027
15028
15029# We have replacements for these in src/missing-string.c
15030for ac_func in stpcpy strcasecmp
15031do :
15032  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15034if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15035  cat >>confdefs.h <<_ACEOF
15036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037_ACEOF
15038
15039fi
15040done
15041
15042# We have replacements for these in src/g10lib.h
15043for ac_func in strtoul memmove stricmp atexit raise
15044do :
15045  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15047if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15048  cat >>confdefs.h <<_ACEOF
15049#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15050_ACEOF
15051
15052fi
15053done
15054
15055# Other checks
15056for ac_func in strerror rand mmap getpagesize sysconf waitpid wait4
15057do :
15058  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15060if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15061  cat >>confdefs.h <<_ACEOF
15062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15063_ACEOF
15064
15065fi
15066done
15067
15068for ac_func in gettimeofday getrusage gethrtime clock_gettime syslog
15069do :
15070  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15071ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15072if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15073  cat >>confdefs.h <<_ACEOF
15074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15075_ACEOF
15076
15077fi
15078done
15079
15080for ac_func in fcntl ftruncate
15081do :
15082  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15083ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15084if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15085  cat >>confdefs.h <<_ACEOF
15086#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15087_ACEOF
15088
15089fi
15090done
15091
15092
15093 for ac_func in mlock
15094do :
15095  ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
15096if test "x$ac_cv_func_mlock" = xyes; then :
15097  cat >>confdefs.h <<_ACEOF
15098#define HAVE_MLOCK 1
15099_ACEOF
15100
15101fi
15102done
15103
15104    if test "$ac_cv_func_mlock" = "no"; then
15105        for ac_header in sys/mman.h
15106do :
15107  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15108if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15109  cat >>confdefs.h <<_ACEOF
15110#define HAVE_SYS_MMAN_H 1
15111_ACEOF
15112
15113fi
15114
15115done
15116
15117        if test "$ac_cv_header_sys_mman_h" = "yes"; then
15118            # Add librt to LIBS:
15119            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
15120$as_echo_n "checking for memlk in -lrt... " >&6; }
15121if ${ac_cv_lib_rt_memlk+:} false; then :
15122  $as_echo_n "(cached) " >&6
15123else
15124  ac_check_lib_save_LIBS=$LIBS
15125LIBS="-lrt  $LIBS"
15126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127/* end confdefs.h.  */
15128
15129/* Override any GCC internal prototype to avoid an error.
15130   Use char because int might match the return type of a GCC
15131   builtin and then its argument prototype would still apply.  */
15132#ifdef __cplusplus
15133extern "C"
15134#endif
15135char memlk ();
15136int
15137main ()
15138{
15139return memlk ();
15140  ;
15141  return 0;
15142}
15143_ACEOF
15144if ac_fn_c_try_link "$LINENO"; then :
15145  ac_cv_lib_rt_memlk=yes
15146else
15147  ac_cv_lib_rt_memlk=no
15148fi
15149rm -f core conftest.err conftest.$ac_objext \
15150    conftest$ac_exeext conftest.$ac_ext
15151LIBS=$ac_check_lib_save_LIBS
15152fi
15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
15154$as_echo "$ac_cv_lib_rt_memlk" >&6; }
15155if test "x$ac_cv_lib_rt_memlk" = xyes; then :
15156  cat >>confdefs.h <<_ACEOF
15157#define HAVE_LIBRT 1
15158_ACEOF
15159
15160  LIBS="-lrt $LIBS"
15161
15162fi
15163
15164            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
15165$as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
15166if ${gnupg_cv_mlock_is_in_sys_mman+:} false; then :
15167  $as_echo_n "(cached) " >&6
15168else
15169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170/* end confdefs.h.  */
15171
15172                    #include <assert.h>
15173                    #ifdef HAVE_SYS_MMAN_H
15174                    #include <sys/mman.h>
15175                    #endif
15176
15177int
15178main ()
15179{
15180
15181int i;
15182
15183/* glibc defines this for functions which it implements
15184 * to always fail with ENOSYS.  Some functions are actually
15185 * named something starting with __ and the normal name
15186 * is an alias.  */
15187#if defined (__stub_mlock) || defined (__stub___mlock)
15188choke me
15189#else
15190mlock(&i, 4);
15191#endif
15192; return 0;
15193
15194  ;
15195  return 0;
15196}
15197_ACEOF
15198if ac_fn_c_try_link "$LINENO"; then :
15199  gnupg_cv_mlock_is_in_sys_mman=yes
15200else
15201  gnupg_cv_mlock_is_in_sys_mman=no
15202fi
15203rm -f core conftest.err conftest.$ac_objext \
15204    conftest$ac_exeext conftest.$ac_ext
15205fi
15206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
15207$as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
15208            if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
15209
15210$as_echo "#define HAVE_MLOCK 1" >>confdefs.h
15211
15212            fi
15213        fi
15214    fi
15215    if test "$ac_cv_func_mlock" = "yes"; then
15216        for ac_func in sysconf getpagesize
15217do :
15218  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15219ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15220if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15221  cat >>confdefs.h <<_ACEOF
15222#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15223_ACEOF
15224
15225fi
15226done
15227
15228        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
15229$as_echo_n "checking whether mlock is broken... " >&6; }
15230          if ${gnupg_cv_have_broken_mlock+:} false; then :
15231  $as_echo_n "(cached) " >&6
15232else
15233  if test "$cross_compiling" = yes; then :
15234  gnupg_cv_have_broken_mlock="assume-no"
15235
15236else
15237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238/* end confdefs.h.  */
15239
15240#include <stdlib.h>
15241#include <unistd.h>
15242#include <errno.h>
15243#include <sys/mman.h>
15244#include <sys/types.h>
15245#include <fcntl.h>
15246
15247int main()
15248{
15249    char *pool;
15250    int err;
15251    long int pgsize;
15252
15253#if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
15254    pgsize = sysconf (_SC_PAGESIZE);
15255#elif defined (HAVE_GETPAGESIZE)
15256    pgsize = getpagesize();
15257#else
15258    pgsize = -1;
15259#endif
15260
15261    if (pgsize == -1)
15262      pgsize = 4096;
15263
15264    pool = malloc( 4096 + pgsize );
15265    if( !pool )
15266        return 2;
15267    pool += (pgsize - ((long int)pool % pgsize));
15268
15269    err = mlock( pool, 4096 );
15270    if( !err || errno == EPERM )
15271        return 0; /* okay */
15272
15273    return 1;  /* hmmm */
15274}
15275
15276
15277_ACEOF
15278if ac_fn_c_try_run "$LINENO"; then :
15279  gnupg_cv_have_broken_mlock="no"
15280else
15281  gnupg_cv_have_broken_mlock="yes"
15282fi
15283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15284  conftest.$ac_objext conftest.beam conftest.$ac_ext
15285fi
15286
15287
15288fi
15289
15290         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
15291
15292$as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
15293
15294             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15295$as_echo "yes" >&6; }
15296         else
15297            if test "$gnupg_cv_have_broken_mlock" = "no"; then
15298                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15299$as_echo "no" >&6; }
15300            else
15301                { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
15302$as_echo "assuming no" >&6; }
15303            fi
15304         fi
15305    fi
15306
15307
15308#
15309# Replacement functions.
15310#
15311ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
15312if test "x$ac_cv_func_getpid" = xyes; then :
15313  $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15314
15315else
15316  case " $LIBOBJS " in
15317  *" getpid.$ac_objext "* ) ;;
15318  *) LIBOBJS="$LIBOBJS getpid.$ac_objext"
15319 ;;
15320esac
15321
15322fi
15323
15324ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
15325if test "x$ac_cv_func_clock" = xyes; then :
15326  $as_echo "#define HAVE_CLOCK 1" >>confdefs.h
15327
15328else
15329  case " $LIBOBJS " in
15330  *" clock.$ac_objext "* ) ;;
15331  *) LIBOBJS="$LIBOBJS clock.$ac_objext"
15332 ;;
15333esac
15334
15335fi
15336
15337
15338
15339
15340#
15341# Check wether it is necessary to link against libdl.
15342#
15343DL_LIBS=""
15344if test "$use_hmac_binary_check" = yes ; then
15345  _gcry_save_libs="$LIBS"
15346  LIBS=""
15347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15348$as_echo_n "checking for library containing dlopen... " >&6; }
15349if ${ac_cv_search_dlopen+:} false; then :
15350  $as_echo_n "(cached) " >&6
15351else
15352  ac_func_search_save_LIBS=$LIBS
15353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h.  */
15355
15356/* Override any GCC internal prototype to avoid an error.
15357   Use char because int might match the return type of a GCC
15358   builtin and then its argument prototype would still apply.  */
15359#ifdef __cplusplus
15360extern "C"
15361#endif
15362char dlopen ();
15363int
15364main ()
15365{
15366return dlopen ();
15367  ;
15368  return 0;
15369}
15370_ACEOF
15371for ac_lib in '' c dl; do
15372  if test -z "$ac_lib"; then
15373    ac_res="none required"
15374  else
15375    ac_res=-l$ac_lib
15376    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15377  fi
15378  if ac_fn_c_try_link "$LINENO"; then :
15379  ac_cv_search_dlopen=$ac_res
15380fi
15381rm -f core conftest.err conftest.$ac_objext \
15382    conftest$ac_exeext
15383  if ${ac_cv_search_dlopen+:} false; then :
15384  break
15385fi
15386done
15387if ${ac_cv_search_dlopen+:} false; then :
15388
15389else
15390  ac_cv_search_dlopen=no
15391fi
15392rm conftest.$ac_ext
15393LIBS=$ac_func_search_save_LIBS
15394fi
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15396$as_echo "$ac_cv_search_dlopen" >&6; }
15397ac_res=$ac_cv_search_dlopen
15398if test "$ac_res" != no; then :
15399  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15400
15401fi
15402
15403  DL_LIBS=$LIBS
15404  LIBS="$_gcry_save_libs"
15405  LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}"
15406fi
15407
15408
15409
15410#
15411# Check whether we can use Linux capabilities as requested.
15412#
15413if test "$use_capabilities" = "yes" ; then
15414use_capabilities=no
15415for ac_header in sys/capability.h
15416do :
15417  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
15418if test "x$ac_cv_header_sys_capability_h" = xyes; then :
15419  cat >>confdefs.h <<_ACEOF
15420#define HAVE_SYS_CAPABILITY_H 1
15421_ACEOF
15422
15423fi
15424
15425done
15426
15427if test "$ac_cv_header_sys_capability_h" = "yes" ; then
15428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
15429$as_echo_n "checking for cap_init in -lcap... " >&6; }
15430if ${ac_cv_lib_cap_cap_init+:} false; then :
15431  $as_echo_n "(cached) " >&6
15432else
15433  ac_check_lib_save_LIBS=$LIBS
15434LIBS="-lcap  $LIBS"
15435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437
15438/* Override any GCC internal prototype to avoid an error.
15439   Use char because int might match the return type of a GCC
15440   builtin and then its argument prototype would still apply.  */
15441#ifdef __cplusplus
15442extern "C"
15443#endif
15444char cap_init ();
15445int
15446main ()
15447{
15448return cap_init ();
15449  ;
15450  return 0;
15451}
15452_ACEOF
15453if ac_fn_c_try_link "$LINENO"; then :
15454  ac_cv_lib_cap_cap_init=yes
15455else
15456  ac_cv_lib_cap_cap_init=no
15457fi
15458rm -f core conftest.err conftest.$ac_objext \
15459    conftest$ac_exeext conftest.$ac_ext
15460LIBS=$ac_check_lib_save_LIBS
15461fi
15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
15463$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
15464if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
15465  ac_need_libcap=1
15466fi
15467
15468  if test "$ac_cv_lib_cap_cap_init" = "yes"; then
15469
15470$as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
15471
15472     LIBS="$LIBS -lcap"
15473     use_capabilities=yes
15474  fi
15475fi
15476if test "$use_capabilities" = "no" ; then
15477    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15478***
15479*** The use of capabilities on this system is not possible.
15480*** You need a recent Linux kernel and some patches:
15481***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
15482***   fcap-module-990613.tar.gz     (kernel module)
15483***   libcap-1.92.tar.gz            (user mode library and utilities)
15484*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
15485*** set (filesystems menu). Be warned: This code is *really* ALPHA.
15486***" >&5
15487$as_echo "$as_me: WARNING:
15488***
15489*** The use of capabilities on this system is not possible.
15490*** You need a recent Linux kernel and some patches:
15491***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
15492***   fcap-module-990613.tar.gz     (kernel module)
15493***   libcap-1.92.tar.gz            (user mode library and utilities)
15494*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
15495*** set (filesystems menu). Be warned: This code is *really* ALPHA.
15496***" >&2;}
15497fi
15498fi
15499
15500# Check whether a random device is available.
15501if test "$try_dev_random" = yes ; then
15502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
15503$as_echo_n "checking for random device... " >&6; }
15504if ${ac_cv_have_dev_random+:} false; then :
15505  $as_echo_n "(cached) " >&6
15506else
15507  if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
15508      ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
15509fi
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
15511$as_echo "$ac_cv_have_dev_random" >&6; }
15512    if test "$ac_cv_have_dev_random" = yes; then
15513
15514$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
15515
15516    fi
15517else
15518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
15519$as_echo_n "checking for random device... " >&6; }
15520    ac_cv_have_dev_random=no
15521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
15522$as_echo "has been disabled" >&6; }
15523fi
15524
15525# Figure out the random modules for this configuration.
15526if test "$random" = "default"; then
15527
15528    # Select default value.
15529    if test "$ac_cv_have_dev_random" = yes; then
15530        # Try Linuxish random device.
15531        random_modules="linux"
15532    else
15533        case "${host}" in
15534        *-*-mingw32ce*)
15535          # WindowsCE random device.
15536          random_modules="w32ce"
15537          ;;
15538        *-*-mingw32*|*-*-cygwin*)
15539          # Windows random device.
15540          random_modules="w32"
15541          ;;
15542        *)
15543          # Build everything, allow to select at runtime.
15544          random_modules="$auto_random_modules"
15545          ;;
15546        esac
15547    fi
15548else
15549    if test "$random" = "auto"; then
15550        # Build everything, allow to select at runtime.
15551        random_modules="$auto_random_modules"
15552    else
15553        random_modules="$random"
15554    fi
15555fi
15556
15557
15558#
15559# Setup assembler stuff.
15560#
15561
15562tmp_do_check="no"
15563case "${host}" in
15564    *-mingw32msvc*)
15565        ac_cv_sys_symbol_underscore=yes
15566        ;;
15567    i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
15568        ac_cv_sys_symbol_underscore=yes
15569        ;;
15570    *)
15571      if test "$cross_compiling" = yes; then
15572        if test "x$ac_cv_sys_symbol_underscore" = x ; then
15573           ac_cv_sys_symbol_underscore=yes
15574        fi
15575      else
15576         tmp_do_check="yes"
15577      fi
15578       ;;
15579esac
15580if test "$tmp_do_check" = "yes"; then
15581
15582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15583$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15584  if ${ac_cv_sys_symbol_underscore+:} false; then :
15585  $as_echo_n "(cached) " >&6
15586else
15587  ac_cv_sys_symbol_underscore=no
15588   cat > conftest.$ac_ext <<EOF
15589      void nm_test_func(){}
15590      int main(){nm_test_func;return 0;}
15591EOF
15592  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15593  (eval $ac_compile) 2>&5
15594  ac_status=$?
15595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15596  test $ac_status = 0; }; then
15597    # Now try to grab the symbols.
15598    ac_nlist=conftest.nm
15599    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist\""; } >&5
15600  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) 2>&5
15601  ac_status=$?
15602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15603  test $ac_status = 0; } && test -s "$ac_nlist"; then
15604      # See whether the symbols have a leading underscore.
15605      if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
15606        ac_cv_sys_symbol_underscore=yes
15607      else
15608        if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
15609          :
15610        else
15611          echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15612        fi
15613      fi
15614    else
15615      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15616    fi
15617  else
15618    echo "configure: failed program was:" >&5
15619    cat conftest.c >&5
15620  fi
15621  rm -rf conftest*
15622
15623fi
15624
15625  else
15626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15627$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15628  fi
15629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
15630$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
15631if test x$ac_cv_sys_symbol_underscore = xyes; then
15632
15633$as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
15634
15635fi
15636
15637# Check whether --enable-mpi-path was given.
15638if test "${enable_mpi_path+set}" = set; then :
15639  enableval=$enable_mpi_path; mpi_extra_path="$enableval"
15640else
15641  mpi_extra_path=""
15642fi
15643
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi assembler functions" >&5
15645$as_echo_n "checking for mpi assembler functions... " >&6; }
15646if test -f $srcdir/mpi/config.links ; then
15647    . $srcdir/mpi/config.links
15648    ac_config_links="$ac_config_links "$mpi_ln_list""
15649
15650    ac_cv_mpi_sflags="$mpi_sflags"
15651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15652$as_echo "done" >&6; }
15653else
15654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15655$as_echo "failed" >&6; }
15656    as_fn_error $? "mpi/config.links missing!" "$LINENO" 5
15657fi
15658MPI_SFLAGS="$ac_cv_mpi_sflags"
15659
15660
15661 if test "$mpi_mod_asm_mpih_add1" = yes; then
15662  MPI_MOD_ASM_MPIH_ADD1_TRUE=
15663  MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
15664else
15665  MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
15666  MPI_MOD_ASM_MPIH_ADD1_FALSE=
15667fi
15668
15669 if test "$mpi_mod_asm_mpih_sub1" = yes; then
15670  MPI_MOD_ASM_MPIH_SUB1_TRUE=
15671  MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
15672else
15673  MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
15674  MPI_MOD_ASM_MPIH_SUB1_FALSE=
15675fi
15676
15677 if test "$mpi_mod_asm_mpih_mul1" = yes; then
15678  MPI_MOD_ASM_MPIH_MUL1_TRUE=
15679  MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
15680else
15681  MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
15682  MPI_MOD_ASM_MPIH_MUL1_FALSE=
15683fi
15684
15685 if test "$mpi_mod_asm_mpih_mul2" = yes; then
15686  MPI_MOD_ASM_MPIH_MUL2_TRUE=
15687  MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
15688else
15689  MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
15690  MPI_MOD_ASM_MPIH_MUL2_FALSE=
15691fi
15692
15693 if test "$mpi_mod_asm_mpih_mul3" = yes; then
15694  MPI_MOD_ASM_MPIH_MUL3_TRUE=
15695  MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
15696else
15697  MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
15698  MPI_MOD_ASM_MPIH_MUL3_FALSE=
15699fi
15700
15701 if test "$mpi_mod_asm_mpih_lshift" = yes; then
15702  MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
15703  MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
15704else
15705  MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
15706  MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
15707fi
15708
15709 if test "$mpi_mod_asm_mpih_rshift" = yes; then
15710  MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
15711  MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
15712else
15713  MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
15714  MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
15715fi
15716
15717 if test "$mpi_mod_asm_udiv" = yes; then
15718  MPI_MOD_ASM_UDIV_TRUE=
15719  MPI_MOD_ASM_UDIV_FALSE='#'
15720else
15721  MPI_MOD_ASM_UDIV_TRUE='#'
15722  MPI_MOD_ASM_UDIV_FALSE=
15723fi
15724
15725 if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
15726  MPI_MOD_ASM_UDIV_QRNND_TRUE=
15727  MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
15728else
15729  MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
15730  MPI_MOD_ASM_UDIV_QRNND_FALSE=
15731fi
15732
15733 if test "$mpi_mod_c_mpih_add1" = yes; then
15734  MPI_MOD_C_MPIH_ADD1_TRUE=
15735  MPI_MOD_C_MPIH_ADD1_FALSE='#'
15736else
15737  MPI_MOD_C_MPIH_ADD1_TRUE='#'
15738  MPI_MOD_C_MPIH_ADD1_FALSE=
15739fi
15740
15741 if test "$mpi_mod_c_mpih_sub1" = yes; then
15742  MPI_MOD_C_MPIH_SUB1_TRUE=
15743  MPI_MOD_C_MPIH_SUB1_FALSE='#'
15744else
15745  MPI_MOD_C_MPIH_SUB1_TRUE='#'
15746  MPI_MOD_C_MPIH_SUB1_FALSE=
15747fi
15748
15749 if test "$mpi_mod_c_mpih_mul1" = yes; then
15750  MPI_MOD_C_MPIH_MUL1_TRUE=
15751  MPI_MOD_C_MPIH_MUL1_FALSE='#'
15752else
15753  MPI_MOD_C_MPIH_MUL1_TRUE='#'
15754  MPI_MOD_C_MPIH_MUL1_FALSE=
15755fi
15756
15757 if test "$mpi_mod_c_mpih_mul2" = yes; then
15758  MPI_MOD_C_MPIH_MUL2_TRUE=
15759  MPI_MOD_C_MPIH_MUL2_FALSE='#'
15760else
15761  MPI_MOD_C_MPIH_MUL2_TRUE='#'
15762  MPI_MOD_C_MPIH_MUL2_FALSE=
15763fi
15764
15765 if test "$mpi_mod_c_mpih_mul3" = yes; then
15766  MPI_MOD_C_MPIH_MUL3_TRUE=
15767  MPI_MOD_C_MPIH_MUL3_FALSE='#'
15768else
15769  MPI_MOD_C_MPIH_MUL3_TRUE='#'
15770  MPI_MOD_C_MPIH_MUL3_FALSE=
15771fi
15772
15773 if test "$mpi_mod_c_mpih_lshift" = yes; then
15774  MPI_MOD_C_MPIH_LSHIFT_TRUE=
15775  MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
15776else
15777  MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
15778  MPI_MOD_C_MPIH_LSHIFT_FALSE=
15779fi
15780
15781 if test "$mpi_mod_c_mpih_rshift" = yes; then
15782  MPI_MOD_C_MPIH_RSHIFT_TRUE=
15783  MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
15784else
15785  MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
15786  MPI_MOD_C_MPIH_RSHIFT_FALSE=
15787fi
15788
15789 if test "$mpi_mod_c_udiv" = yes; then
15790  MPI_MOD_C_UDIV_TRUE=
15791  MPI_MOD_C_UDIV_FALSE='#'
15792else
15793  MPI_MOD_C_UDIV_TRUE='#'
15794  MPI_MOD_C_UDIV_FALSE=
15795fi
15796
15797 if test "$mpi_mod_c_udiv_qrnnd" = yes; then
15798  MPI_MOD_C_UDIV_QRNND_TRUE=
15799  MPI_MOD_C_UDIV_QRNND_FALSE='#'
15800else
15801  MPI_MOD_C_UDIV_QRNND_TRUE='#'
15802  MPI_MOD_C_UDIV_QRNND_FALSE=
15803fi
15804
15805
15806if test no = "yes"; then
15807
15808$as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15809
15810fi
15811
15812
15813 if test x$cross_compiling = xyes; then
15814  CROSS_COMPILING_TRUE=
15815  CROSS_COMPILING_FALSE='#'
15816else
15817  CROSS_COMPILING_TRUE='#'
15818  CROSS_COMPILING_FALSE=
15819fi
15820
15821
15822
15823# This is handy for debugging so the compiler doesn't rearrange
15824# things and eliminate variables.
15825# Check whether --enable-optimization was given.
15826if test "${enable_optimization+set}" = set; then :
15827  enableval=$enable_optimization; if test $enableval = no ; then
15828                         CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
15829                       fi
15830fi
15831
15832
15833# CFLAGS mangling when using gcc.
15834if test "$GCC" = yes; then
15835    CFLAGS="$CFLAGS -Wall"
15836    if test "$USE_MAINTAINER_MODE" = "yes"; then
15837        CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
15838        CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
15839
15840        # If -Wno-missing-field-initializers is supported we can enable a
15841        # a bunch of really useful warnings.
15842        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15843$as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15844        _gcc_cflags_save=$CFLAGS
15845        CFLAGS="-Wno-missing-field-initializers"
15846        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847/* end confdefs.h.  */
15848
15849int
15850main ()
15851{
15852
15853  ;
15854  return 0;
15855}
15856_ACEOF
15857if ac_fn_c_try_compile "$LINENO"; then :
15858  _gcc_wopt=yes
15859else
15860  _gcc_wopt=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15864$as_echo "$_gcc_wopt" >&6; }
15865        CFLAGS=$_gcc_cflags_save;
15866        if test x"$_gcc_wopt" = xyes ; then
15867          CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
15868          CFLAGS="$CFLAGS -Wwrite-strings"
15869          CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15870          CFLAGS="$CFLAGS -Wno-missing-field-initializers"
15871          CFLAGS="$CFLAGS -Wno-sign-compare"
15872        fi
15873
15874        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15875$as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15876        _gcc_cflags_save=$CFLAGS
15877        CFLAGS="-Wpointer-arith"
15878        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h.  */
15880
15881int
15882main ()
15883{
15884
15885  ;
15886  return 0;
15887}
15888_ACEOF
15889if ac_fn_c_try_compile "$LINENO"; then :
15890  _gcc_wopt=yes
15891else
15892  _gcc_wopt=no
15893fi
15894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15896$as_echo "$_gcc_wopt" >&6; }
15897        CFLAGS=$_gcc_cflags_save;
15898        if test x"$_gcc_wopt" = xyes ; then
15899          CFLAGS="$CFLAGS -Wpointer-arith"
15900        fi
15901    fi
15902
15903fi
15904
15905# Check whether as(1) supports a noeexecstack feature.  This test
15906# includes an override option.
15907
15908
15909
15910
15911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
15912$as_echo_n "checking whether non excutable stack support is requested... " >&6; }
15913# Check whether --enable-noexecstack was given.
15914if test "${enable_noexecstack+set}" = set; then :
15915  enableval=$enable_noexecstack; noexecstack_support=$enableval
15916else
15917  noexecstack_support=yes
15918fi
15919
15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
15921$as_echo "$noexecstack_support" >&6; }
15922
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
15924$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
15925if ${cl_cv_as_noexecstack+:} false; then :
15926  $as_echo_n "(cached) " >&6
15927else
15928    cat > conftest.c <<EOF
15929void foo() {}
15930EOF
15931  if { ac_try='${CC} $CFLAGS $CPPFLAGS
15932                     -S -o conftest.s conftest.c >/dev/null'
15933  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15934  (eval $ac_try) 2>&5
15935  ac_status=$?
15936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15937  test $ac_status = 0; }; } \
15938     && grep .note.GNU-stack conftest.s >/dev/null \
15939     && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
15940                       -c -o conftest.o conftest.s >/dev/null'
15941  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15942  (eval $ac_try) 2>&5
15943  ac_status=$?
15944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15945  test $ac_status = 0; }; }
15946  then
15947    cl_cv_as_noexecstack=yes
15948  else
15949    cl_cv_as_noexecstack=no
15950  fi
15951  rm -f conftest*
15952fi
15953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
15954$as_echo "$cl_cv_as_noexecstack" >&6; }
15955  if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
15956	NOEXECSTACK_FLAGS="-Wa,--noexecstack"
15957  else
15958        NOEXECSTACK_FLAGS=
15959  fi
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970ac_config_commands="$ac_config_commands gcrypt-conf"
15971
15972
15973#####################
15974#### Conclusion. ####
15975#####################
15976
15977# Define conditional sources and config.h symbols depending on the
15978# selected ciphers, pubkey-ciphers, digests and random modules.
15979
15980
15981name=arcfour
15982list=$enabled_ciphers
15983found=0
15984
15985for n in $list; do
15986  if test "x$name" = "x$n"; then
15987    found=1
15988  fi
15989done
15990
15991if test "$found" = "1"; then
15992   GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
15993
15994$as_echo "#define USE_ARCFOUR 1" >>confdefs.h
15995
15996fi
15997
15998
15999name=blowfish
16000list=$enabled_ciphers
16001found=0
16002
16003for n in $list; do
16004  if test "x$name" = "x$n"; then
16005    found=1
16006  fi
16007done
16008
16009if test "$found" = "1" ; then
16010   GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
16011
16012$as_echo "#define USE_BLOWFISH 1" >>confdefs.h
16013
16014fi
16015
16016
16017name=cast5
16018list=$enabled_ciphers
16019found=0
16020
16021for n in $list; do
16022  if test "x$name" = "x$n"; then
16023    found=1
16024  fi
16025done
16026
16027if test "$found" = "1" ; then
16028   GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
16029
16030$as_echo "#define USE_CAST5 1" >>confdefs.h
16031
16032fi
16033
16034
16035name=des
16036list=$enabled_ciphers
16037found=0
16038
16039for n in $list; do
16040  if test "x$name" = "x$n"; then
16041    found=1
16042  fi
16043done
16044
16045if test "$found" = "1" ; then
16046   GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
16047
16048$as_echo "#define USE_DES 1" >>confdefs.h
16049
16050fi
16051
16052
16053name=aes
16054list=$enabled_ciphers
16055found=0
16056
16057for n in $list; do
16058  if test "x$name" = "x$n"; then
16059    found=1
16060  fi
16061done
16062
16063if test "$found" = "1" ; then
16064   GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
16065
16066$as_echo "#define USE_AES 1" >>confdefs.h
16067
16068fi
16069
16070
16071name=twofish
16072list=$enabled_ciphers
16073found=0
16074
16075for n in $list; do
16076  if test "x$name" = "x$n"; then
16077    found=1
16078  fi
16079done
16080
16081if test "$found" = "1" ; then
16082   GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
16083
16084$as_echo "#define USE_TWOFISH 1" >>confdefs.h
16085
16086fi
16087
16088
16089name=serpent
16090list=$enabled_ciphers
16091found=0
16092
16093for n in $list; do
16094  if test "x$name" = "x$n"; then
16095    found=1
16096  fi
16097done
16098
16099if test "$found" = "1" ; then
16100   GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
16101
16102$as_echo "#define USE_SERPENT 1" >>confdefs.h
16103
16104fi
16105
16106
16107name=rfc2268
16108list=$enabled_ciphers
16109found=0
16110
16111for n in $list; do
16112  if test "x$name" = "x$n"; then
16113    found=1
16114  fi
16115done
16116
16117if test "$found" = "1" ; then
16118   GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
16119
16120$as_echo "#define USE_RFC2268 1" >>confdefs.h
16121
16122fi
16123
16124
16125name=seed
16126list=$enabled_ciphers
16127found=0
16128
16129for n in $list; do
16130  if test "x$name" = "x$n"; then
16131    found=1
16132  fi
16133done
16134
16135if test "$found" = "1" ; then
16136   GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
16137
16138$as_echo "#define USE_SEED 1" >>confdefs.h
16139
16140fi
16141
16142
16143name=camellia
16144list=$enabled_ciphers
16145found=0
16146
16147for n in $list; do
16148  if test "x$name" = "x$n"; then
16149    found=1
16150  fi
16151done
16152
16153if test "$found" = "1" ; then
16154   GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
16155
16156$as_echo "#define USE_CAMELLIA 1" >>confdefs.h
16157
16158fi
16159
16160
16161name=dsa
16162list=$enabled_pubkey_ciphers
16163found=0
16164
16165for n in $list; do
16166  if test "x$name" = "x$n"; then
16167    found=1
16168  fi
16169done
16170
16171if test "$found" = "1" ; then
16172   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
16173
16174$as_echo "#define USE_DSA 1" >>confdefs.h
16175
16176fi
16177
16178
16179name=rsa
16180list=$enabled_pubkey_ciphers
16181found=0
16182
16183for n in $list; do
16184  if test "x$name" = "x$n"; then
16185    found=1
16186  fi
16187done
16188
16189if test "$found" = "1" ; then
16190   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
16191
16192$as_echo "#define USE_RSA 1" >>confdefs.h
16193
16194fi
16195
16196
16197name=elgamal
16198list=$enabled_pubkey_ciphers
16199found=0
16200
16201for n in $list; do
16202  if test "x$name" = "x$n"; then
16203    found=1
16204  fi
16205done
16206
16207if test "$found" = "1" ; then
16208   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
16209
16210$as_echo "#define USE_ELGAMAL 1" >>confdefs.h
16211
16212fi
16213
16214
16215name=ecc
16216list=$enabled_pubkey_ciphers
16217found=0
16218
16219for n in $list; do
16220  if test "x$name" = "x$n"; then
16221    found=1
16222  fi
16223done
16224
16225if test "$found" = "1" ; then
16226   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS ecc.lo"
16227
16228$as_echo "#define USE_ECC 1" >>confdefs.h
16229
16230fi
16231
16232
16233name=crc
16234list=$enabled_digests
16235found=0
16236
16237for n in $list; do
16238  if test "x$name" = "x$n"; then
16239    found=1
16240  fi
16241done
16242
16243if test "$found" = "1" ; then
16244   GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
16245
16246$as_echo "#define USE_CRC 1" >>confdefs.h
16247
16248fi
16249
16250
16251name=md4
16252list=$enabled_digests
16253found=0
16254
16255for n in $list; do
16256  if test "x$name" = "x$n"; then
16257    found=1
16258  fi
16259done
16260
16261if test "$found" = "1" ; then
16262   GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
16263
16264$as_echo "#define USE_MD4 1" >>confdefs.h
16265
16266fi
16267
16268
16269name=md5
16270list=$enabled_digests
16271found=0
16272
16273for n in $list; do
16274  if test "x$name" = "x$n"; then
16275    found=1
16276  fi
16277done
16278
16279if test "$found" = "1" ; then
16280   GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
16281
16282$as_echo "#define USE_MD5 1" >>confdefs.h
16283
16284fi
16285
16286
16287name=sha256
16288list=$enabled_digests
16289found=0
16290
16291for n in $list; do
16292  if test "x$name" = "x$n"; then
16293    found=1
16294  fi
16295done
16296
16297if test "$found" = "1" ; then
16298   GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
16299
16300$as_echo "#define USE_SHA256 1" >>confdefs.h
16301
16302fi
16303
16304
16305name=sha512
16306list=$enabled_digests
16307found=0
16308
16309for n in $list; do
16310  if test "x$name" = "x$n"; then
16311    found=1
16312  fi
16313done
16314
16315if test "$found" = "1" ; then
16316   GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
16317
16318$as_echo "#define USE_SHA512 1" >>confdefs.h
16319
16320fi
16321
16322
16323name=tiger
16324list=$enabled_digests
16325found=0
16326
16327for n in $list; do
16328  if test "x$name" = "x$n"; then
16329    found=1
16330  fi
16331done
16332
16333if test "$found" = "1" ; then
16334   GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
16335
16336$as_echo "#define USE_TIGER 1" >>confdefs.h
16337
16338fi
16339
16340
16341name=whirlpool
16342list=$enabled_digests
16343found=0
16344
16345for n in $list; do
16346  if test "x$name" = "x$n"; then
16347    found=1
16348  fi
16349done
16350
16351if test "$found" = "1" ; then
16352   GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
16353
16354$as_echo "#define USE_WHIRLPOOL 1" >>confdefs.h
16355
16356fi
16357
16358# rmd160 and sha1 should be included always.
16359GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo sha1.lo"
16360
16361$as_echo "#define USE_RMD160 1" >>confdefs.h
16362
16363
16364$as_echo "#define USE_SHA1 1" >>confdefs.h
16365
16366
16367
16368name=linux
16369list=$random_modules
16370found=0
16371
16372for n in $list; do
16373  if test "x$name" = "x$n"; then
16374    found=1
16375  fi
16376done
16377
16378if test "$found" = "1" ; then
16379   GCRYPT_RANDOM="$GCRYPT_RANDOM rndlinux.lo"
16380
16381$as_echo "#define USE_RNDLINUX 1" >>confdefs.h
16382
16383fi
16384
16385
16386name=unix
16387list=$random_modules
16388found=0
16389
16390for n in $list; do
16391  if test "x$name" = "x$n"; then
16392    found=1
16393  fi
16394done
16395
16396if test "$found" = "1" ; then
16397   GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
16398
16399$as_echo "#define USE_RNDUNIX 1" >>confdefs.h
16400
16401   print_egd_notice=yes
16402fi
16403
16404
16405name=egd
16406list=$random_modules
16407found=0
16408
16409for n in $list; do
16410  if test "x$name" = "x$n"; then
16411    found=1
16412  fi
16413done
16414
16415if test "$found" = "1" ; then
16416   GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
16417
16418$as_echo "#define USE_RNDEGD 1" >>confdefs.h
16419
16420fi
16421
16422
16423name=w32
16424list=$random_modules
16425found=0
16426
16427for n in $list; do
16428  if test "x$name" = "x$n"; then
16429    found=1
16430  fi
16431done
16432
16433if test "$found" = "1" ; then
16434   GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
16435
16436$as_echo "#define USE_RNDW32 1" >>confdefs.h
16437
16438fi
16439
16440
16441name=w32ce
16442list=$random_modules
16443found=0
16444
16445for n in $list; do
16446  if test "x$name" = "x$n"; then
16447    found=1
16448  fi
16449done
16450
16451if test "$found" = "1" ; then
16452   GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32ce.lo"
16453
16454$as_echo "#define USE_RNDW32CE 1" >>confdefs.h
16455
16456fi
16457
16458
16459
16460
16461
16462
16463LIBGCRYPT_CIPHERS=$enabled_ciphers
16464
16465LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
16466
16467LIBGCRYPT_DIGESTS=$enabled_digests
16468
16469
16470# For printing the configuration we need a colon separated list of
16471# algorithm names.
16472tmp=`echo "$enabled_ciphers" | tr ' ' : `
16473
16474cat >>confdefs.h <<_ACEOF
16475#define LIBGCRYPT_CIPHERS "$tmp"
16476_ACEOF
16477
16478tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
16479
16480cat >>confdefs.h <<_ACEOF
16481#define LIBGCRYPT_PUBKEY_CIPHERS "$tmp"
16482_ACEOF
16483
16484tmp=`echo "$enabled_digests" | tr ' ' : `
16485
16486cat >>confdefs.h <<_ACEOF
16487#define LIBGCRYPT_DIGESTS "$tmp"
16488_ACEOF
16489
16490
16491
16492
16493#
16494# Provide information about the build.
16495#
16496BUILD_REVISION="d2f2f90"
16497
16498
16499cat >>confdefs.h <<_ACEOF
16500#define BUILD_REVISION "$BUILD_REVISION"
16501_ACEOF
16502
16503
16504BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
16505BUILD_FILEVERSION="${BUILD_FILEVERSION}54002"
16506
16507
16508BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16509
16510
16511cat >>confdefs.h <<_ACEOF
16512#define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16513_ACEOF
16514
16515
16516
16517# And create the files.
16518ac_config_files="$ac_config_files Makefile m4/Makefile compat/Makefile mpi/Makefile cipher/Makefile random/Makefile doc/Makefile src/Makefile src/gcrypt.h src/libgcrypt-config src/versioninfo.rc tests/Makefile"
16519
16520cat >confcache <<\_ACEOF
16521# This file is a shell script that caches the results of configure
16522# tests run on this system so they can be shared between configure
16523# scripts and configure runs, see configure's option --config-cache.
16524# It is not useful on other systems.  If it contains results you don't
16525# want to keep, you may remove or edit it.
16526#
16527# config.status only pays attention to the cache file if you give it
16528# the --recheck option to rerun configure.
16529#
16530# `ac_cv_env_foo' variables (set or unset) will be overridden when
16531# loading this file, other *unset* `ac_cv_foo' will be assigned the
16532# following values.
16533
16534_ACEOF
16535
16536# The following way of writing the cache mishandles newlines in values,
16537# but we know of no workaround that is simple, portable, and efficient.
16538# So, we kill variables containing newlines.
16539# Ultrix sh set writes to stderr and can't be redirected directly,
16540# and sets the high bit in the cache file unless we assign to the vars.
16541(
16542  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16543    eval ac_val=\$$ac_var
16544    case $ac_val in #(
16545    *${as_nl}*)
16546      case $ac_var in #(
16547      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16548$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16549      esac
16550      case $ac_var in #(
16551      _ | IFS | as_nl) ;; #(
16552      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16553      *) { eval $ac_var=; unset $ac_var;} ;;
16554      esac ;;
16555    esac
16556  done
16557
16558  (set) 2>&1 |
16559    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16560    *${as_nl}ac_space=\ *)
16561      # `set' does not quote correctly, so add quotes: double-quote
16562      # substitution turns \\\\ into \\, and sed turns \\ into \.
16563      sed -n \
16564	"s/'/'\\\\''/g;
16565	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16566      ;; #(
16567    *)
16568      # `set' quotes correctly as required by POSIX, so do not add quotes.
16569      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16570      ;;
16571    esac |
16572    sort
16573) |
16574  sed '
16575     /^ac_cv_env_/b end
16576     t clear
16577     :clear
16578     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16579     t end
16580     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16581     :end' >>confcache
16582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16583  if test -w "$cache_file"; then
16584    if test "x$cache_file" != "x/dev/null"; then
16585      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16586$as_echo "$as_me: updating cache $cache_file" >&6;}
16587      if test ! -f "$cache_file" || test -h "$cache_file"; then
16588	cat confcache >"$cache_file"
16589      else
16590        case $cache_file in #(
16591        */* | ?:*)
16592	  mv -f confcache "$cache_file"$$ &&
16593	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16594        *)
16595	  mv -f confcache "$cache_file" ;;
16596	esac
16597      fi
16598    fi
16599  else
16600    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16602  fi
16603fi
16604rm -f confcache
16605
16606test "x$prefix" = xNONE && prefix=$ac_default_prefix
16607# Let make expand exec_prefix.
16608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16609
16610DEFS=-DHAVE_CONFIG_H
16611
16612ac_libobjs=
16613ac_ltlibobjs=
16614U=
16615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16616  # 1. Remove the extension, and $U if already installed.
16617  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16618  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16619  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16620  #    will be set to the directory where LIBOBJS objects are built.
16621  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16622  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16623done
16624LIBOBJS=$ac_libobjs
16625
16626LTLIBOBJS=$ac_ltlibobjs
16627
16628
16629 if test -n "$EXEEXT"; then
16630  am__EXEEXT_TRUE=
16631  am__EXEEXT_FALSE='#'
16632else
16633  am__EXEEXT_TRUE='#'
16634  am__EXEEXT_FALSE=
16635fi
16636
16637if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16638  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16639Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640fi
16641if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16642  as_fn_error $? "conditional \"AMDEP\" was never defined.
16643Usually this means the macro was only invoked conditionally." "$LINENO" 5
16644fi
16645if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16646  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16647Usually this means the macro was only invoked conditionally." "$LINENO" 5
16648fi
16649if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16650  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16651Usually this means the macro was only invoked conditionally." "$LINENO" 5
16652fi
16653if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16654  as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16655Usually this means the macro was only invoked conditionally." "$LINENO" 5
16656fi
16657if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16658  as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16659Usually this means the macro was only invoked conditionally." "$LINENO" 5
16660fi
16661
16662if test -z "${USE_RANDOM_DAEMON_TRUE}" && test -z "${USE_RANDOM_DAEMON_FALSE}"; then
16663  as_fn_error $? "conditional \"USE_RANDOM_DAEMON\" was never defined.
16664Usually this means the macro was only invoked conditionally." "$LINENO" 5
16665fi
16666if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
16667  as_fn_error $? "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
16668Usually this means the macro was only invoked conditionally." "$LINENO" 5
16669fi
16670if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16671  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16672Usually this means the macro was only invoked conditionally." "$LINENO" 5
16673fi
16674if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
16675  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
16676Usually this means the macro was only invoked conditionally." "$LINENO" 5
16677fi
16678if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
16679  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
16680Usually this means the macro was only invoked conditionally." "$LINENO" 5
16681fi
16682if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
16683  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
16684Usually this means the macro was only invoked conditionally." "$LINENO" 5
16685fi
16686if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
16687  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
16688Usually this means the macro was only invoked conditionally." "$LINENO" 5
16689fi
16690if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
16691  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
16692Usually this means the macro was only invoked conditionally." "$LINENO" 5
16693fi
16694if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
16695  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
16696Usually this means the macro was only invoked conditionally." "$LINENO" 5
16697fi
16698if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
16699  as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
16700Usually this means the macro was only invoked conditionally." "$LINENO" 5
16701fi
16702if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
16703  as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
16704Usually this means the macro was only invoked conditionally." "$LINENO" 5
16705fi
16706if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
16707  as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
16708Usually this means the macro was only invoked conditionally." "$LINENO" 5
16709fi
16710if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
16711  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
16712Usually this means the macro was only invoked conditionally." "$LINENO" 5
16713fi
16714if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
16715  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
16716Usually this means the macro was only invoked conditionally." "$LINENO" 5
16717fi
16718if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
16719  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
16720Usually this means the macro was only invoked conditionally." "$LINENO" 5
16721fi
16722if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
16723  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
16724Usually this means the macro was only invoked conditionally." "$LINENO" 5
16725fi
16726if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
16727  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
16728Usually this means the macro was only invoked conditionally." "$LINENO" 5
16729fi
16730if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
16731  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
16732Usually this means the macro was only invoked conditionally." "$LINENO" 5
16733fi
16734if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
16735  as_fn_error $? "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
16736Usually this means the macro was only invoked conditionally." "$LINENO" 5
16737fi
16738if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
16739  as_fn_error $? "conditional \"MPI_MOD_C_UDIV\" was never defined.
16740Usually this means the macro was only invoked conditionally." "$LINENO" 5
16741fi
16742if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
16743  as_fn_error $? "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
16744Usually this means the macro was only invoked conditionally." "$LINENO" 5
16745fi
16746if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16747  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16748Usually this means the macro was only invoked conditionally." "$LINENO" 5
16749fi
16750
16751: "${CONFIG_STATUS=./config.status}"
16752ac_write_fail=0
16753ac_clean_files_save=$ac_clean_files
16754ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16755{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16756$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16757as_write_fail=0
16758cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16759#! $SHELL
16760# Generated by $as_me.
16761# Run this file to recreate the current configuration.
16762# Compiler output produced by configure, useful for debugging
16763# configure, is in config.log if it exists.
16764
16765debug=false
16766ac_cs_recheck=false
16767ac_cs_silent=false
16768
16769SHELL=\${CONFIG_SHELL-$SHELL}
16770export SHELL
16771_ASEOF
16772cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16773## -------------------- ##
16774## M4sh Initialization. ##
16775## -------------------- ##
16776
16777# Be more Bourne compatible
16778DUALCASE=1; export DUALCASE # for MKS sh
16779if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16780  emulate sh
16781  NULLCMD=:
16782  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16783  # is contrary to our usage.  Disable this feature.
16784  alias -g '${1+"$@"}'='"$@"'
16785  setopt NO_GLOB_SUBST
16786else
16787  case `(set -o) 2>/dev/null` in #(
16788  *posix*) :
16789    set -o posix ;; #(
16790  *) :
16791     ;;
16792esac
16793fi
16794
16795
16796as_nl='
16797'
16798export as_nl
16799# Printing a long string crashes Solaris 7 /usr/bin/printf.
16800as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16801as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16802as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16803# Prefer a ksh shell builtin over an external printf program on Solaris,
16804# but without wasting forks for bash or zsh.
16805if test -z "$BASH_VERSION$ZSH_VERSION" \
16806    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16807  as_echo='print -r --'
16808  as_echo_n='print -rn --'
16809elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16810  as_echo='printf %s\n'
16811  as_echo_n='printf %s'
16812else
16813  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16814    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16815    as_echo_n='/usr/ucb/echo -n'
16816  else
16817    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16818    as_echo_n_body='eval
16819      arg=$1;
16820      case $arg in #(
16821      *"$as_nl"*)
16822	expr "X$arg" : "X\\(.*\\)$as_nl";
16823	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16824      esac;
16825      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16826    '
16827    export as_echo_n_body
16828    as_echo_n='sh -c $as_echo_n_body as_echo'
16829  fi
16830  export as_echo_body
16831  as_echo='sh -c $as_echo_body as_echo'
16832fi
16833
16834# The user is always right.
16835if test "${PATH_SEPARATOR+set}" != set; then
16836  PATH_SEPARATOR=:
16837  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16838    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16839      PATH_SEPARATOR=';'
16840  }
16841fi
16842
16843
16844# IFS
16845# We need space, tab and new line, in precisely that order.  Quoting is
16846# there to prevent editors from complaining about space-tab.
16847# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16848# splitting by setting IFS to empty value.)
16849IFS=" ""	$as_nl"
16850
16851# Find who we are.  Look in the path if we contain no directory separator.
16852as_myself=
16853case $0 in #((
16854  *[\\/]* ) as_myself=$0 ;;
16855  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16856for as_dir in $PATH
16857do
16858  IFS=$as_save_IFS
16859  test -z "$as_dir" && as_dir=.
16860    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16861  done
16862IFS=$as_save_IFS
16863
16864     ;;
16865esac
16866# We did not find ourselves, most probably we were run as `sh COMMAND'
16867# in which case we are not to be found in the path.
16868if test "x$as_myself" = x; then
16869  as_myself=$0
16870fi
16871if test ! -f "$as_myself"; then
16872  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16873  exit 1
16874fi
16875
16876# Unset variables that we do not need and which cause bugs (e.g. in
16877# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16878# suppresses any "Segmentation fault" message there.  '((' could
16879# trigger a bug in pdksh 5.2.14.
16880for as_var in BASH_ENV ENV MAIL MAILPATH
16881do eval test x\${$as_var+set} = xset \
16882  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16883done
16884PS1='$ '
16885PS2='> '
16886PS4='+ '
16887
16888# NLS nuisances.
16889LC_ALL=C
16890export LC_ALL
16891LANGUAGE=C
16892export LANGUAGE
16893
16894# CDPATH.
16895(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16896
16897
16898# as_fn_error STATUS ERROR [LINENO LOG_FD]
16899# ----------------------------------------
16900# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16901# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16902# script with STATUS, using 1 if that was 0.
16903as_fn_error ()
16904{
16905  as_status=$1; test $as_status -eq 0 && as_status=1
16906  if test "$4"; then
16907    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16908    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16909  fi
16910  $as_echo "$as_me: error: $2" >&2
16911  as_fn_exit $as_status
16912} # as_fn_error
16913
16914
16915# as_fn_set_status STATUS
16916# -----------------------
16917# Set $? to STATUS, without forking.
16918as_fn_set_status ()
16919{
16920  return $1
16921} # as_fn_set_status
16922
16923# as_fn_exit STATUS
16924# -----------------
16925# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16926as_fn_exit ()
16927{
16928  set +e
16929  as_fn_set_status $1
16930  exit $1
16931} # as_fn_exit
16932
16933# as_fn_unset VAR
16934# ---------------
16935# Portably unset VAR.
16936as_fn_unset ()
16937{
16938  { eval $1=; unset $1;}
16939}
16940as_unset=as_fn_unset
16941# as_fn_append VAR VALUE
16942# ----------------------
16943# Append the text in VALUE to the end of the definition contained in VAR. Take
16944# advantage of any shell optimizations that allow amortized linear growth over
16945# repeated appends, instead of the typical quadratic growth present in naive
16946# implementations.
16947if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16948  eval 'as_fn_append ()
16949  {
16950    eval $1+=\$2
16951  }'
16952else
16953  as_fn_append ()
16954  {
16955    eval $1=\$$1\$2
16956  }
16957fi # as_fn_append
16958
16959# as_fn_arith ARG...
16960# ------------------
16961# Perform arithmetic evaluation on the ARGs, and store the result in the
16962# global $as_val. Take advantage of shells that can avoid forks. The arguments
16963# must be portable across $(()) and expr.
16964if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16965  eval 'as_fn_arith ()
16966  {
16967    as_val=$(( $* ))
16968  }'
16969else
16970  as_fn_arith ()
16971  {
16972    as_val=`expr "$@" || test $? -eq 1`
16973  }
16974fi # as_fn_arith
16975
16976
16977if expr a : '\(a\)' >/dev/null 2>&1 &&
16978   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16979  as_expr=expr
16980else
16981  as_expr=false
16982fi
16983
16984if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16985  as_basename=basename
16986else
16987  as_basename=false
16988fi
16989
16990if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16991  as_dirname=dirname
16992else
16993  as_dirname=false
16994fi
16995
16996as_me=`$as_basename -- "$0" ||
16997$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16998	 X"$0" : 'X\(//\)$' \| \
16999	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17000$as_echo X/"$0" |
17001    sed '/^.*\/\([^/][^/]*\)\/*$/{
17002	    s//\1/
17003	    q
17004	  }
17005	  /^X\/\(\/\/\)$/{
17006	    s//\1/
17007	    q
17008	  }
17009	  /^X\/\(\/\).*/{
17010	    s//\1/
17011	    q
17012	  }
17013	  s/.*/./; q'`
17014
17015# Avoid depending upon Character Ranges.
17016as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17017as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17018as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17019as_cr_digits='0123456789'
17020as_cr_alnum=$as_cr_Letters$as_cr_digits
17021
17022ECHO_C= ECHO_N= ECHO_T=
17023case `echo -n x` in #(((((
17024-n*)
17025  case `echo 'xy\c'` in
17026  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17027  xy)  ECHO_C='\c';;
17028  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17029       ECHO_T='	';;
17030  esac;;
17031*)
17032  ECHO_N='-n';;
17033esac
17034
17035rm -f conf$$ conf$$.exe conf$$.file
17036if test -d conf$$.dir; then
17037  rm -f conf$$.dir/conf$$.file
17038else
17039  rm -f conf$$.dir
17040  mkdir conf$$.dir 2>/dev/null
17041fi
17042if (echo >conf$$.file) 2>/dev/null; then
17043  if ln -s conf$$.file conf$$ 2>/dev/null; then
17044    as_ln_s='ln -s'
17045    # ... but there are two gotchas:
17046    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17047    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17048    # In both cases, we have to default to `cp -pR'.
17049    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17050      as_ln_s='cp -pR'
17051  elif ln conf$$.file conf$$ 2>/dev/null; then
17052    as_ln_s=ln
17053  else
17054    as_ln_s='cp -pR'
17055  fi
17056else
17057  as_ln_s='cp -pR'
17058fi
17059rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17060rmdir conf$$.dir 2>/dev/null
17061
17062
17063# as_fn_mkdir_p
17064# -------------
17065# Create "$as_dir" as a directory, including parents if necessary.
17066as_fn_mkdir_p ()
17067{
17068
17069  case $as_dir in #(
17070  -*) as_dir=./$as_dir;;
17071  esac
17072  test -d "$as_dir" || eval $as_mkdir_p || {
17073    as_dirs=
17074    while :; do
17075      case $as_dir in #(
17076      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17077      *) as_qdir=$as_dir;;
17078      esac
17079      as_dirs="'$as_qdir' $as_dirs"
17080      as_dir=`$as_dirname -- "$as_dir" ||
17081$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17082	 X"$as_dir" : 'X\(//\)[^/]' \| \
17083	 X"$as_dir" : 'X\(//\)$' \| \
17084	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17085$as_echo X"$as_dir" |
17086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17087	    s//\1/
17088	    q
17089	  }
17090	  /^X\(\/\/\)[^/].*/{
17091	    s//\1/
17092	    q
17093	  }
17094	  /^X\(\/\/\)$/{
17095	    s//\1/
17096	    q
17097	  }
17098	  /^X\(\/\).*/{
17099	    s//\1/
17100	    q
17101	  }
17102	  s/.*/./; q'`
17103      test -d "$as_dir" && break
17104    done
17105    test -z "$as_dirs" || eval "mkdir $as_dirs"
17106  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17107
17108
17109} # as_fn_mkdir_p
17110if mkdir -p . 2>/dev/null; then
17111  as_mkdir_p='mkdir -p "$as_dir"'
17112else
17113  test -d ./-p && rmdir ./-p
17114  as_mkdir_p=false
17115fi
17116
17117
17118# as_fn_executable_p FILE
17119# -----------------------
17120# Test if FILE is an executable regular file.
17121as_fn_executable_p ()
17122{
17123  test -f "$1" && test -x "$1"
17124} # as_fn_executable_p
17125as_test_x='test -x'
17126as_executable_p=as_fn_executable_p
17127
17128# Sed expression to map a string onto a valid CPP name.
17129as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17130
17131# Sed expression to map a string onto a valid variable name.
17132as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17133
17134
17135exec 6>&1
17136## ----------------------------------- ##
17137## Main body of $CONFIG_STATUS script. ##
17138## ----------------------------------- ##
17139_ASEOF
17140test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17141
17142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17143# Save the log message, to keep $0 and so on meaningful, and to
17144# report actual input values of CONFIG_FILES etc. instead of their
17145# values after options handling.
17146ac_log="
17147This file was extended by libgcrypt $as_me 1.5.1, which was
17148generated by GNU Autoconf 2.69.  Invocation command line was
17149
17150  CONFIG_FILES    = $CONFIG_FILES
17151  CONFIG_HEADERS  = $CONFIG_HEADERS
17152  CONFIG_LINKS    = $CONFIG_LINKS
17153  CONFIG_COMMANDS = $CONFIG_COMMANDS
17154  $ $0 $@
17155
17156on `(hostname || uname -n) 2>/dev/null | sed 1q`
17157"
17158
17159_ACEOF
17160
17161case $ac_config_files in *"
17162"*) set x $ac_config_files; shift; ac_config_files=$*;;
17163esac
17164
17165case $ac_config_headers in *"
17166"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17167esac
17168
17169
17170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17171# Files that config.status was made for.
17172config_files="$ac_config_files"
17173config_headers="$ac_config_headers"
17174config_links="$ac_config_links"
17175config_commands="$ac_config_commands"
17176
17177_ACEOF
17178
17179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180ac_cs_usage="\
17181\`$as_me' instantiates files and other configuration actions
17182from templates according to the current configuration.  Unless the files
17183and actions are specified as TAGs, all are instantiated by default.
17184
17185Usage: $0 [OPTION]... [TAG]...
17186
17187  -h, --help       print this help, then exit
17188  -V, --version    print version number and configuration settings, then exit
17189      --config     print configuration, then exit
17190  -q, --quiet, --silent
17191                   do not print progress messages
17192  -d, --debug      don't remove temporary files
17193      --recheck    update $as_me by reconfiguring in the same conditions
17194      --file=FILE[:TEMPLATE]
17195                   instantiate the configuration file FILE
17196      --header=FILE[:TEMPLATE]
17197                   instantiate the configuration header FILE
17198
17199Configuration files:
17200$config_files
17201
17202Configuration headers:
17203$config_headers
17204
17205Configuration links:
17206$config_links
17207
17208Configuration commands:
17209$config_commands
17210
17211Report bugs to <http://bugs.gnupg.org>."
17212
17213_ACEOF
17214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17215ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17216ac_cs_version="\\
17217libgcrypt config.status 1.5.1
17218configured by $0, generated by GNU Autoconf 2.69,
17219  with options \\"\$ac_cs_config\\"
17220
17221Copyright (C) 2012 Free Software Foundation, Inc.
17222This config.status script is free software; the Free Software Foundation
17223gives unlimited permission to copy, distribute and modify it."
17224
17225ac_pwd='$ac_pwd'
17226srcdir='$srcdir'
17227INSTALL='$INSTALL'
17228MKDIR_P='$MKDIR_P'
17229AWK='$AWK'
17230test -n "\$AWK" || AWK=awk
17231_ACEOF
17232
17233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17234# The default lists apply if the user does not specify any file.
17235ac_need_defaults=:
17236while test $# != 0
17237do
17238  case $1 in
17239  --*=?*)
17240    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17241    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17242    ac_shift=:
17243    ;;
17244  --*=)
17245    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17246    ac_optarg=
17247    ac_shift=:
17248    ;;
17249  *)
17250    ac_option=$1
17251    ac_optarg=$2
17252    ac_shift=shift
17253    ;;
17254  esac
17255
17256  case $ac_option in
17257  # Handling of the options.
17258  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17259    ac_cs_recheck=: ;;
17260  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17261    $as_echo "$ac_cs_version"; exit ;;
17262  --config | --confi | --conf | --con | --co | --c )
17263    $as_echo "$ac_cs_config"; exit ;;
17264  --debug | --debu | --deb | --de | --d | -d )
17265    debug=: ;;
17266  --file | --fil | --fi | --f )
17267    $ac_shift
17268    case $ac_optarg in
17269    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17270    '') as_fn_error $? "missing file argument" ;;
17271    esac
17272    as_fn_append CONFIG_FILES " '$ac_optarg'"
17273    ac_need_defaults=false;;
17274  --header | --heade | --head | --hea )
17275    $ac_shift
17276    case $ac_optarg in
17277    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17278    esac
17279    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17280    ac_need_defaults=false;;
17281  --he | --h)
17282    # Conflict between --help and --header
17283    as_fn_error $? "ambiguous option: \`$1'
17284Try \`$0 --help' for more information.";;
17285  --help | --hel | -h )
17286    $as_echo "$ac_cs_usage"; exit ;;
17287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17288  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17289    ac_cs_silent=: ;;
17290
17291  # This is an error.
17292  -*) as_fn_error $? "unrecognized option: \`$1'
17293Try \`$0 --help' for more information." ;;
17294
17295  *) as_fn_append ac_config_targets " $1"
17296     ac_need_defaults=false ;;
17297
17298  esac
17299  shift
17300done
17301
17302ac_configure_extra_args=
17303
17304if $ac_cs_silent; then
17305  exec 6>/dev/null
17306  ac_configure_extra_args="$ac_configure_extra_args --silent"
17307fi
17308
17309_ACEOF
17310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311if \$ac_cs_recheck; then
17312  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17313  shift
17314  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17315  CONFIG_SHELL='$SHELL'
17316  export CONFIG_SHELL
17317  exec "\$@"
17318fi
17319
17320_ACEOF
17321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17322exec 5>>config.log
17323{
17324  echo
17325  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17326## Running $as_me. ##
17327_ASBOX
17328  $as_echo "$ac_log"
17329} >&5
17330
17331_ACEOF
17332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17333#
17334# INIT-COMMANDS
17335#
17336AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17337
17338
17339# The HP-UX ksh and POSIX shell print the target directory to stdout
17340# if CDPATH is set.
17341(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17342
17343sed_quote_subst='$sed_quote_subst'
17344double_quote_subst='$double_quote_subst'
17345delay_variable_subst='$delay_variable_subst'
17346macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17347macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17348AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17349DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17350OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17351enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17352enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17353pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17354enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17355SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17356ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17357PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17358host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17359host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17360host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17361build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17362build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17363build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17364SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17365Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17366GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17367EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17368FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17369LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17370NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17371LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17372max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17373ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17374exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17375lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17376lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17377lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17378lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17379lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17380reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17381reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17382deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17383file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17384file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17385want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17386sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17387AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17388AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17389archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17390STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17391RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17392old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17393old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17394old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17395lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17396CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17397CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17398compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17399GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17400lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17401lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17402lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17403lt_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"`'
17404nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17405lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17406objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17407MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17408lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17409lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17410lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17411lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17412lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17413need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17414MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17415DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17416NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17417LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17418OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17419OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17420libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17421shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17422extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17423archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17424enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17425export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17426whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17427compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17428old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17429old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17430archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17431archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17432module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17433module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17434with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17435allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17436no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17437hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17438hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17439hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17440hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17441hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17442hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17443hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17444inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17445link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17446always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17447export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17448exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17449include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17450prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17451postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17452file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17453variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17454need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17455need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17456version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17457runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17458shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17459shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17460libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17461library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17462soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17463install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17464postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17465postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17466finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17467finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17468hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17469sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17470sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17471hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17472enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17473enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17474enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17475old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17476striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17477LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17478reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17479reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17480old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17481compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17482GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17483lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17484lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17485lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17486lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17487lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17488archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17489enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17490export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17491whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17492compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17493old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17494old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17495archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17496archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17497module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17498module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17499with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17500allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17501no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17502hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17503hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17504hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17505hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17506hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17507hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17508hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17509inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17510link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17511always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17512export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17513exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17514include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17515prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17516postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17517file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17518hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17519
17520LTCC='$LTCC'
17521LTCFLAGS='$LTCFLAGS'
17522compiler='$compiler_DEFAULT'
17523
17524# A function that is used when there is no print builtin or printf.
17525func_fallback_echo ()
17526{
17527  eval 'cat <<_LTECHO_EOF
17528\$1
17529_LTECHO_EOF'
17530}
17531
17532# Quote evaled strings.
17533for var in AS \
17534DLLTOOL \
17535OBJDUMP \
17536SHELL \
17537ECHO \
17538PATH_SEPARATOR \
17539SED \
17540GREP \
17541EGREP \
17542FGREP \
17543LD \
17544NM \
17545LN_S \
17546lt_SP2NL \
17547lt_NL2SP \
17548reload_flag \
17549deplibs_check_method \
17550file_magic_cmd \
17551file_magic_glob \
17552want_nocaseglob \
17553sharedlib_from_linklib_cmd \
17554AR \
17555AR_FLAGS \
17556archiver_list_spec \
17557STRIP \
17558RANLIB \
17559CC \
17560CFLAGS \
17561compiler \
17562lt_cv_sys_global_symbol_pipe \
17563lt_cv_sys_global_symbol_to_cdecl \
17564lt_cv_sys_global_symbol_to_c_name_address \
17565lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17566nm_file_list_spec \
17567lt_prog_compiler_no_builtin_flag \
17568lt_prog_compiler_pic \
17569lt_prog_compiler_wl \
17570lt_prog_compiler_static \
17571lt_cv_prog_compiler_c_o \
17572need_locks \
17573MANIFEST_TOOL \
17574DSYMUTIL \
17575NMEDIT \
17576LIPO \
17577OTOOL \
17578OTOOL64 \
17579shrext_cmds \
17580export_dynamic_flag_spec \
17581whole_archive_flag_spec \
17582compiler_needs_object \
17583with_gnu_ld \
17584allow_undefined_flag \
17585no_undefined_flag \
17586hardcode_libdir_flag_spec \
17587hardcode_libdir_separator \
17588exclude_expsyms \
17589include_expsyms \
17590file_list_spec \
17591variables_saved_for_relink \
17592libname_spec \
17593library_names_spec \
17594soname_spec \
17595install_override_mode \
17596finish_eval \
17597old_striplib \
17598striplib \
17599LD_RC \
17600reload_flag_RC \
17601compiler_RC \
17602lt_prog_compiler_no_builtin_flag_RC \
17603lt_prog_compiler_pic_RC \
17604lt_prog_compiler_wl_RC \
17605lt_prog_compiler_static_RC \
17606lt_cv_prog_compiler_c_o_RC \
17607export_dynamic_flag_spec_RC \
17608whole_archive_flag_spec_RC \
17609compiler_needs_object_RC \
17610with_gnu_ld_RC \
17611allow_undefined_flag_RC \
17612no_undefined_flag_RC \
17613hardcode_libdir_flag_spec_RC \
17614hardcode_libdir_separator_RC \
17615exclude_expsyms_RC \
17616include_expsyms_RC \
17617file_list_spec_RC; do
17618    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17619    *[\\\\\\\`\\"\\\$]*)
17620      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17621      ;;
17622    *)
17623      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17624      ;;
17625    esac
17626done
17627
17628# Double-quote double-evaled strings.
17629for var in reload_cmds \
17630old_postinstall_cmds \
17631old_postuninstall_cmds \
17632old_archive_cmds \
17633extract_expsyms_cmds \
17634old_archive_from_new_cmds \
17635old_archive_from_expsyms_cmds \
17636archive_cmds \
17637archive_expsym_cmds \
17638module_cmds \
17639module_expsym_cmds \
17640export_symbols_cmds \
17641prelink_cmds \
17642postlink_cmds \
17643postinstall_cmds \
17644postuninstall_cmds \
17645finish_cmds \
17646sys_lib_search_path_spec \
17647sys_lib_dlsearch_path_spec \
17648reload_cmds_RC \
17649old_archive_cmds_RC \
17650old_archive_from_new_cmds_RC \
17651old_archive_from_expsyms_cmds_RC \
17652archive_cmds_RC \
17653archive_expsym_cmds_RC \
17654module_cmds_RC \
17655module_expsym_cmds_RC \
17656export_symbols_cmds_RC \
17657prelink_cmds_RC \
17658postlink_cmds_RC; do
17659    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17660    *[\\\\\\\`\\"\\\$]*)
17661      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17662      ;;
17663    *)
17664      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17665      ;;
17666    esac
17667done
17668
17669ac_aux_dir='$ac_aux_dir'
17670xsi_shell='$xsi_shell'
17671lt_shell_append='$lt_shell_append'
17672
17673# See if we are running on zsh, and set the options which allow our
17674# commands through without removal of \ escapes INIT.
17675if test -n "\${ZSH_VERSION+set}" ; then
17676   setopt NO_GLOB_SUBST
17677fi
17678
17679
17680    PACKAGE='$PACKAGE'
17681    VERSION='$VERSION'
17682    TIMESTAMP='$TIMESTAMP'
17683    RM='$RM'
17684    ofile='$ofile'
17685
17686
17687
17688
17689
17690
17691prefix=$prefix
17692exec_prefix=$exec_prefix
17693libdir=$libdir
17694datadir=$datadir
17695DATADIRNAME=$DATADIRNAME
17696
17697
17698_ACEOF
17699
17700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17701
17702# Handling of arguments.
17703for ac_config_target in $ac_config_targets
17704do
17705  case $ac_config_target in
17706    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17707    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17708    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17709    ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
17710    "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
17711    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17712    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17713    "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
17714    "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
17715    "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
17716    "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
17717    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17718    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17719    "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
17720    "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
17721    "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
17722    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17723
17724  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17725  esac
17726done
17727
17728
17729# If the user did not use the arguments to specify the items to instantiate,
17730# then the envvar interface is used.  Set only those that are not.
17731# We use the long form for the default assignment because of an extremely
17732# bizarre bug on SunOS 4.1.3.
17733if $ac_need_defaults; then
17734  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17735  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17736  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17737  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17738fi
17739
17740# Have a temporary directory for convenience.  Make it in the build tree
17741# simply because there is no reason against having it here, and in addition,
17742# creating and moving files from /tmp can sometimes cause problems.
17743# Hook for its removal unless debugging.
17744# Note that there is a small window in which the directory will not be cleaned:
17745# after its creation but before its name has been assigned to `$tmp'.
17746$debug ||
17747{
17748  tmp= ac_tmp=
17749  trap 'exit_status=$?
17750  : "${ac_tmp:=$tmp}"
17751  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17752' 0
17753  trap 'as_fn_exit 1' 1 2 13 15
17754}
17755# Create a (secure) tmp directory for tmp files.
17756
17757{
17758  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17759  test -d "$tmp"
17760}  ||
17761{
17762  tmp=./conf$$-$RANDOM
17763  (umask 077 && mkdir "$tmp")
17764} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17765ac_tmp=$tmp
17766
17767# Set up the scripts for CONFIG_FILES section.
17768# No need to generate them if there are no CONFIG_FILES.
17769# This happens for instance with `./config.status config.h'.
17770if test -n "$CONFIG_FILES"; then
17771
17772
17773ac_cr=`echo X | tr X '\015'`
17774# On cygwin, bash can eat \r inside `` if the user requested igncr.
17775# But we know of no other shell where ac_cr would be empty at this
17776# point, so we can use a bashism as a fallback.
17777if test "x$ac_cr" = x; then
17778  eval ac_cr=\$\'\\r\'
17779fi
17780ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17781if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17782  ac_cs_awk_cr='\\r'
17783else
17784  ac_cs_awk_cr=$ac_cr
17785fi
17786
17787echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17788_ACEOF
17789
17790
17791{
17792  echo "cat >conf$$subs.awk <<_ACEOF" &&
17793  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17794  echo "_ACEOF"
17795} >conf$$subs.sh ||
17796  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17797ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17798ac_delim='%!_!# '
17799for ac_last_try in false false false false false :; do
17800  . ./conf$$subs.sh ||
17801    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17802
17803  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17804  if test $ac_delim_n = $ac_delim_num; then
17805    break
17806  elif $ac_last_try; then
17807    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17808  else
17809    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17810  fi
17811done
17812rm -f conf$$subs.sh
17813
17814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17815cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17816_ACEOF
17817sed -n '
17818h
17819s/^/S["/; s/!.*/"]=/
17820p
17821g
17822s/^[^!]*!//
17823:repl
17824t repl
17825s/'"$ac_delim"'$//
17826t delim
17827:nl
17828h
17829s/\(.\{148\}\)..*/\1/
17830t more1
17831s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17832p
17833n
17834b repl
17835:more1
17836s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17837p
17838g
17839s/.\{148\}//
17840t nl
17841:delim
17842h
17843s/\(.\{148\}\)..*/\1/
17844t more2
17845s/["\\]/\\&/g; s/^/"/; s/$/"/
17846p
17847b
17848:more2
17849s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17850p
17851g
17852s/.\{148\}//
17853t delim
17854' <conf$$subs.awk | sed '
17855/^[^""]/{
17856  N
17857  s/\n//
17858}
17859' >>$CONFIG_STATUS || ac_write_fail=1
17860rm -f conf$$subs.awk
17861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862_ACAWK
17863cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17864  for (key in S) S_is_set[key] = 1
17865  FS = ""
17866
17867}
17868{
17869  line = $ 0
17870  nfields = split(line, field, "@")
17871  substed = 0
17872  len = length(field[1])
17873  for (i = 2; i < nfields; i++) {
17874    key = field[i]
17875    keylen = length(key)
17876    if (S_is_set[key]) {
17877      value = S[key]
17878      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17879      len += length(value) + length(field[++i])
17880      substed = 1
17881    } else
17882      len += 1 + keylen
17883  }
17884
17885  print line
17886}
17887
17888_ACAWK
17889_ACEOF
17890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17891if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17892  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17893else
17894  cat
17895fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17896  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17897_ACEOF
17898
17899# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17900# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17901# trailing colons and then remove the whole line if VPATH becomes empty
17902# (actually we leave an empty line to preserve line numbers).
17903if test "x$srcdir" = x.; then
17904  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17905h
17906s///
17907s/^/:/
17908s/[	 ]*$/:/
17909s/:\$(srcdir):/:/g
17910s/:\${srcdir}:/:/g
17911s/:@srcdir@:/:/g
17912s/^:*//
17913s/:*$//
17914x
17915s/\(=[	 ]*\).*/\1/
17916G
17917s/\n//
17918s/^[^=]*=[	 ]*$//
17919}'
17920fi
17921
17922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17923fi # test -n "$CONFIG_FILES"
17924
17925# Set up the scripts for CONFIG_HEADERS section.
17926# No need to generate them if there are no CONFIG_HEADERS.
17927# This happens for instance with `./config.status Makefile'.
17928if test -n "$CONFIG_HEADERS"; then
17929cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17930BEGIN {
17931_ACEOF
17932
17933# Transform confdefs.h into an awk script `defines.awk', embedded as
17934# here-document in config.status, that substitutes the proper values into
17935# config.h.in to produce config.h.
17936
17937# Create a delimiter string that does not exist in confdefs.h, to ease
17938# handling of long lines.
17939ac_delim='%!_!# '
17940for ac_last_try in false false :; do
17941  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17942  if test -z "$ac_tt"; then
17943    break
17944  elif $ac_last_try; then
17945    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17946  else
17947    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17948  fi
17949done
17950
17951# For the awk script, D is an array of macro values keyed by name,
17952# likewise P contains macro parameters if any.  Preserve backslash
17953# newline sequences.
17954
17955ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17956sed -n '
17957s/.\{148\}/&'"$ac_delim"'/g
17958t rset
17959:rset
17960s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17961t def
17962d
17963:def
17964s/\\$//
17965t bsnl
17966s/["\\]/\\&/g
17967s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17968D["\1"]=" \3"/p
17969s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17970d
17971:bsnl
17972s/["\\]/\\&/g
17973s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17974D["\1"]=" \3\\\\\\n"\\/p
17975t cont
17976s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17977t cont
17978d
17979:cont
17980n
17981s/.\{148\}/&'"$ac_delim"'/g
17982t clear
17983:clear
17984s/\\$//
17985t bsnlc
17986s/["\\]/\\&/g; s/^/"/; s/$/"/p
17987d
17988:bsnlc
17989s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17990b cont
17991' <confdefs.h | sed '
17992s/'"$ac_delim"'/"\\\
17993"/g' >>$CONFIG_STATUS || ac_write_fail=1
17994
17995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996  for (key in D) D_is_set[key] = 1
17997  FS = ""
17998}
17999/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18000  line = \$ 0
18001  split(line, arg, " ")
18002  if (arg[1] == "#") {
18003    defundef = arg[2]
18004    mac1 = arg[3]
18005  } else {
18006    defundef = substr(arg[1], 2)
18007    mac1 = arg[2]
18008  }
18009  split(mac1, mac2, "(") #)
18010  macro = mac2[1]
18011  prefix = substr(line, 1, index(line, defundef) - 1)
18012  if (D_is_set[macro]) {
18013    # Preserve the white space surrounding the "#".
18014    print prefix "define", macro P[macro] D[macro]
18015    next
18016  } else {
18017    # Replace #undef with comments.  This is necessary, for example,
18018    # in the case of _POSIX_SOURCE, which is predefined and required
18019    # on some systems where configure will not decide to define it.
18020    if (defundef == "undef") {
18021      print "/*", prefix defundef, macro, "*/"
18022      next
18023    }
18024  }
18025}
18026{ print }
18027_ACAWK
18028_ACEOF
18029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18030  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18031fi # test -n "$CONFIG_HEADERS"
18032
18033
18034eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18035shift
18036for ac_tag
18037do
18038  case $ac_tag in
18039  :[FHLC]) ac_mode=$ac_tag; continue;;
18040  esac
18041  case $ac_mode$ac_tag in
18042  :[FHL]*:*);;
18043  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18044  :[FH]-) ac_tag=-:-;;
18045  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18046  esac
18047  ac_save_IFS=$IFS
18048  IFS=:
18049  set x $ac_tag
18050  IFS=$ac_save_IFS
18051  shift
18052  ac_file=$1
18053  shift
18054
18055  case $ac_mode in
18056  :L) ac_source=$1;;
18057  :[FH])
18058    ac_file_inputs=
18059    for ac_f
18060    do
18061      case $ac_f in
18062      -) ac_f="$ac_tmp/stdin";;
18063      *) # Look for the file first in the build tree, then in the source tree
18064	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18065	 # because $ac_f cannot contain `:'.
18066	 test -f "$ac_f" ||
18067	   case $ac_f in
18068	   [\\/$]*) false;;
18069	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18070	   esac ||
18071	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18072      esac
18073      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18074      as_fn_append ac_file_inputs " '$ac_f'"
18075    done
18076
18077    # Let's still pretend it is `configure' which instantiates (i.e., don't
18078    # use $as_me), people would be surprised to read:
18079    #    /* config.h.  Generated by config.status.  */
18080    configure_input='Generated from '`
18081	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18082	`' by configure.'
18083    if test x"$ac_file" != x-; then
18084      configure_input="$ac_file.  $configure_input"
18085      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18086$as_echo "$as_me: creating $ac_file" >&6;}
18087    fi
18088    # Neutralize special characters interpreted by sed in replacement strings.
18089    case $configure_input in #(
18090    *\&* | *\|* | *\\* )
18091       ac_sed_conf_input=`$as_echo "$configure_input" |
18092       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18093    *) ac_sed_conf_input=$configure_input;;
18094    esac
18095
18096    case $ac_tag in
18097    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18098      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18099    esac
18100    ;;
18101  esac
18102
18103  ac_dir=`$as_dirname -- "$ac_file" ||
18104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18105	 X"$ac_file" : 'X\(//\)[^/]' \| \
18106	 X"$ac_file" : 'X\(//\)$' \| \
18107	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18108$as_echo X"$ac_file" |
18109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18110	    s//\1/
18111	    q
18112	  }
18113	  /^X\(\/\/\)[^/].*/{
18114	    s//\1/
18115	    q
18116	  }
18117	  /^X\(\/\/\)$/{
18118	    s//\1/
18119	    q
18120	  }
18121	  /^X\(\/\).*/{
18122	    s//\1/
18123	    q
18124	  }
18125	  s/.*/./; q'`
18126  as_dir="$ac_dir"; as_fn_mkdir_p
18127  ac_builddir=.
18128
18129case "$ac_dir" in
18130.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18131*)
18132  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18133  # A ".." for each directory in $ac_dir_suffix.
18134  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18135  case $ac_top_builddir_sub in
18136  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18137  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18138  esac ;;
18139esac
18140ac_abs_top_builddir=$ac_pwd
18141ac_abs_builddir=$ac_pwd$ac_dir_suffix
18142# for backward compatibility:
18143ac_top_builddir=$ac_top_build_prefix
18144
18145case $srcdir in
18146  .)  # We are building in place.
18147    ac_srcdir=.
18148    ac_top_srcdir=$ac_top_builddir_sub
18149    ac_abs_top_srcdir=$ac_pwd ;;
18150  [\\/]* | ?:[\\/]* )  # Absolute name.
18151    ac_srcdir=$srcdir$ac_dir_suffix;
18152    ac_top_srcdir=$srcdir
18153    ac_abs_top_srcdir=$srcdir ;;
18154  *) # Relative name.
18155    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18156    ac_top_srcdir=$ac_top_build_prefix$srcdir
18157    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18158esac
18159ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18160
18161
18162  case $ac_mode in
18163  :F)
18164  #
18165  # CONFIG_FILE
18166  #
18167
18168  case $INSTALL in
18169  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18170  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18171  esac
18172  ac_MKDIR_P=$MKDIR_P
18173  case $MKDIR_P in
18174  [\\/$]* | ?:[\\/]* ) ;;
18175  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18176  esac
18177_ACEOF
18178
18179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18180# If the template does not know about datarootdir, expand it.
18181# FIXME: This hack should be removed a few years after 2.60.
18182ac_datarootdir_hack=; ac_datarootdir_seen=
18183ac_sed_dataroot='
18184/datarootdir/ {
18185  p
18186  q
18187}
18188/@datadir@/p
18189/@docdir@/p
18190/@infodir@/p
18191/@localedir@/p
18192/@mandir@/p'
18193case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18194*datarootdir*) ac_datarootdir_seen=yes;;
18195*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18196  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18197$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18198_ACEOF
18199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18200  ac_datarootdir_hack='
18201  s&@datadir@&$datadir&g
18202  s&@docdir@&$docdir&g
18203  s&@infodir@&$infodir&g
18204  s&@localedir@&$localedir&g
18205  s&@mandir@&$mandir&g
18206  s&\\\${datarootdir}&$datarootdir&g' ;;
18207esac
18208_ACEOF
18209
18210# Neutralize VPATH when `$srcdir' = `.'.
18211# Shell code in configure.ac might set extrasub.
18212# FIXME: do we really want to maintain this feature?
18213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18214ac_sed_extra="$ac_vpsub
18215$extrasub
18216_ACEOF
18217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218:t
18219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18220s|@configure_input@|$ac_sed_conf_input|;t t
18221s&@top_builddir@&$ac_top_builddir_sub&;t t
18222s&@top_build_prefix@&$ac_top_build_prefix&;t t
18223s&@srcdir@&$ac_srcdir&;t t
18224s&@abs_srcdir@&$ac_abs_srcdir&;t t
18225s&@top_srcdir@&$ac_top_srcdir&;t t
18226s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18227s&@builddir@&$ac_builddir&;t t
18228s&@abs_builddir@&$ac_abs_builddir&;t t
18229s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18230s&@INSTALL@&$ac_INSTALL&;t t
18231s&@MKDIR_P@&$ac_MKDIR_P&;t t
18232$ac_datarootdir_hack
18233"
18234eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18235  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18236
18237test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18238  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18239  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18240      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18241  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18242which seems to be undefined.  Please make sure it is defined" >&5
18243$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18244which seems to be undefined.  Please make sure it is defined" >&2;}
18245
18246  rm -f "$ac_tmp/stdin"
18247  case $ac_file in
18248  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18249  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18250  esac \
18251  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18252 ;;
18253  :H)
18254  #
18255  # CONFIG_HEADER
18256  #
18257  if test x"$ac_file" != x-; then
18258    {
18259      $as_echo "/* $configure_input  */" \
18260      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18261    } >"$ac_tmp/config.h" \
18262      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18263    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18264      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18265$as_echo "$as_me: $ac_file is unchanged" >&6;}
18266    else
18267      rm -f "$ac_file"
18268      mv "$ac_tmp/config.h" "$ac_file" \
18269	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18270    fi
18271  else
18272    $as_echo "/* $configure_input  */" \
18273      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18274      || as_fn_error $? "could not create -" "$LINENO" 5
18275  fi
18276# Compute "$ac_file"'s index in $config_headers.
18277_am_arg="$ac_file"
18278_am_stamp_count=1
18279for _am_header in $config_headers :; do
18280  case $_am_header in
18281    $_am_arg | $_am_arg:* )
18282      break ;;
18283    * )
18284      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18285  esac
18286done
18287echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18288$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18289	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18290	 X"$_am_arg" : 'X\(//\)$' \| \
18291	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18292$as_echo X"$_am_arg" |
18293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18294	    s//\1/
18295	    q
18296	  }
18297	  /^X\(\/\/\)[^/].*/{
18298	    s//\1/
18299	    q
18300	  }
18301	  /^X\(\/\/\)$/{
18302	    s//\1/
18303	    q
18304	  }
18305	  /^X\(\/\).*/{
18306	    s//\1/
18307	    q
18308	  }
18309	  s/.*/./; q'`/stamp-h$_am_stamp_count
18310 ;;
18311  :L)
18312  #
18313  # CONFIG_LINK
18314  #
18315
18316  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18317    :
18318  else
18319    # Prefer the file from the source tree if names are identical.
18320    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18321      ac_source=$srcdir/$ac_source
18322    fi
18323
18324    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18325$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18326
18327    if test ! -r "$ac_source"; then
18328      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18329    fi
18330    rm -f "$ac_file"
18331
18332    # Try a relative symlink, then a hard link, then a copy.
18333    case $ac_source in
18334    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18335	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18336    esac
18337    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18338      ln "$ac_source" "$ac_file" 2>/dev/null ||
18339      cp -p "$ac_source" "$ac_file" ||
18340      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18341  fi
18342 ;;
18343  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18344$as_echo "$as_me: executing $ac_file commands" >&6;}
18345 ;;
18346  esac
18347
18348
18349  case $ac_file$ac_mode in
18350    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18351  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18352  # are listed without --file.  Let's play safe and only enable the eval
18353  # if we detect the quoting.
18354  case $CONFIG_FILES in
18355  *\'*) eval set x "$CONFIG_FILES" ;;
18356  *)   set x $CONFIG_FILES ;;
18357  esac
18358  shift
18359  for mf
18360  do
18361    # Strip MF so we end up with the name of the file.
18362    mf=`echo "$mf" | sed -e 's/:.*$//'`
18363    # Check whether this is an Automake generated Makefile or not.
18364    # We used to match only the files named `Makefile.in', but
18365    # some people rename them; so instead we look at the file content.
18366    # Grep'ing the first line is not enough: some people post-process
18367    # each Makefile.in and add a new line on top of each file to say so.
18368    # Grep'ing the whole file is not good either: AIX grep has a line
18369    # limit of 2048, but all sed's we know have understand at least 4000.
18370    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18371      dirpart=`$as_dirname -- "$mf" ||
18372$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18373	 X"$mf" : 'X\(//\)[^/]' \| \
18374	 X"$mf" : 'X\(//\)$' \| \
18375	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18376$as_echo X"$mf" |
18377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18378	    s//\1/
18379	    q
18380	  }
18381	  /^X\(\/\/\)[^/].*/{
18382	    s//\1/
18383	    q
18384	  }
18385	  /^X\(\/\/\)$/{
18386	    s//\1/
18387	    q
18388	  }
18389	  /^X\(\/\).*/{
18390	    s//\1/
18391	    q
18392	  }
18393	  s/.*/./; q'`
18394    else
18395      continue
18396    fi
18397    # Extract the definition of DEPDIR, am__include, and am__quote
18398    # from the Makefile without running `make'.
18399    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18400    test -z "$DEPDIR" && continue
18401    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18402    test -z "am__include" && continue
18403    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18404    # When using ansi2knr, U may be empty or an underscore; expand it
18405    U=`sed -n 's/^U = //p' < "$mf"`
18406    # Find all dependency output files, they are included files with
18407    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18408    # simplest approach to changing $(DEPDIR) to its actual value in the
18409    # expansion.
18410    for file in `sed -n "
18411      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18412	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18413      # Make sure the directory exists.
18414      test -f "$dirpart/$file" && continue
18415      fdir=`$as_dirname -- "$file" ||
18416$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18417	 X"$file" : 'X\(//\)[^/]' \| \
18418	 X"$file" : 'X\(//\)$' \| \
18419	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18420$as_echo X"$file" |
18421    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18422	    s//\1/
18423	    q
18424	  }
18425	  /^X\(\/\/\)[^/].*/{
18426	    s//\1/
18427	    q
18428	  }
18429	  /^X\(\/\/\)$/{
18430	    s//\1/
18431	    q
18432	  }
18433	  /^X\(\/\).*/{
18434	    s//\1/
18435	    q
18436	  }
18437	  s/.*/./; q'`
18438      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18439      # echo "creating $dirpart/$file"
18440      echo '# dummy' > "$dirpart/$file"
18441    done
18442  done
18443}
18444 ;;
18445    "libtool":C)
18446
18447    # See if we are running on zsh, and set the options which allow our
18448    # commands through without removal of \ escapes.
18449    if test -n "${ZSH_VERSION+set}" ; then
18450      setopt NO_GLOB_SUBST
18451    fi
18452
18453    cfgfile="${ofile}T"
18454    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18455    $RM "$cfgfile"
18456
18457    cat <<_LT_EOF >> "$cfgfile"
18458#! $SHELL
18459
18460# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18461# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18462# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18463# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18464#
18465#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18466#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18467#                 Foundation, Inc.
18468#   Written by Gordon Matzigkeit, 1996
18469#
18470#   This file is part of GNU Libtool.
18471#
18472# GNU Libtool is free software; you can redistribute it and/or
18473# modify it under the terms of the GNU General Public License as
18474# published by the Free Software Foundation; either version 2 of
18475# the License, or (at your option) any later version.
18476#
18477# As a special exception to the GNU General Public License,
18478# if you distribute this file as part of a program or library that
18479# is built using GNU Libtool, you may include this file under the
18480# same distribution terms that you use for the rest of that program.
18481#
18482# GNU Libtool is distributed in the hope that it will be useful,
18483# but WITHOUT ANY WARRANTY; without even the implied warranty of
18484# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18485# GNU General Public License for more details.
18486#
18487# You should have received a copy of the GNU General Public License
18488# along with GNU Libtool; see the file COPYING.  If not, a copy
18489# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18490# obtained by writing to the Free Software Foundation, Inc.,
18491# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18492
18493
18494# The names of the tagged configurations supported by this script.
18495available_tags="RC "
18496
18497# ### BEGIN LIBTOOL CONFIG
18498
18499# Which release of libtool.m4 was used?
18500macro_version=$macro_version
18501macro_revision=$macro_revision
18502
18503# Assembler program.
18504AS=$lt_AS
18505
18506# DLL creation program.
18507DLLTOOL=$lt_DLLTOOL
18508
18509# Object dumper program.
18510OBJDUMP=$lt_OBJDUMP
18511
18512# Whether or not to build static libraries.
18513build_old_libs=$enable_static
18514
18515# Whether or not to build shared libraries.
18516build_libtool_libs=$enable_shared
18517
18518# What type of objects to build.
18519pic_mode=$pic_mode
18520
18521# Whether or not to optimize for fast installation.
18522fast_install=$enable_fast_install
18523
18524# Shell to use when invoking shell scripts.
18525SHELL=$lt_SHELL
18526
18527# An echo program that protects backslashes.
18528ECHO=$lt_ECHO
18529
18530# The PATH separator for the build system.
18531PATH_SEPARATOR=$lt_PATH_SEPARATOR
18532
18533# The host system.
18534host_alias=$host_alias
18535host=$host
18536host_os=$host_os
18537
18538# The build system.
18539build_alias=$build_alias
18540build=$build
18541build_os=$build_os
18542
18543# A sed program that does not truncate output.
18544SED=$lt_SED
18545
18546# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18547Xsed="\$SED -e 1s/^X//"
18548
18549# A grep program that handles long lines.
18550GREP=$lt_GREP
18551
18552# An ERE matcher.
18553EGREP=$lt_EGREP
18554
18555# A literal string matcher.
18556FGREP=$lt_FGREP
18557
18558# A BSD- or MS-compatible name lister.
18559NM=$lt_NM
18560
18561# Whether we need soft or hard links.
18562LN_S=$lt_LN_S
18563
18564# What is the maximum length of a command?
18565max_cmd_len=$max_cmd_len
18566
18567# Object file suffix (normally "o").
18568objext=$ac_objext
18569
18570# Executable file suffix (normally "").
18571exeext=$exeext
18572
18573# whether the shell understands "unset".
18574lt_unset=$lt_unset
18575
18576# turn spaces into newlines.
18577SP2NL=$lt_lt_SP2NL
18578
18579# turn newlines into spaces.
18580NL2SP=$lt_lt_NL2SP
18581
18582# convert \$build file names to \$host format.
18583to_host_file_cmd=$lt_cv_to_host_file_cmd
18584
18585# convert \$build files to toolchain format.
18586to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18587
18588# Method to check whether dependent libraries are shared objects.
18589deplibs_check_method=$lt_deplibs_check_method
18590
18591# Command to use when deplibs_check_method = "file_magic".
18592file_magic_cmd=$lt_file_magic_cmd
18593
18594# How to find potential files when deplibs_check_method = "file_magic".
18595file_magic_glob=$lt_file_magic_glob
18596
18597# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18598want_nocaseglob=$lt_want_nocaseglob
18599
18600# Command to associate shared and link libraries.
18601sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18602
18603# The archiver.
18604AR=$lt_AR
18605
18606# Flags to create an archive.
18607AR_FLAGS=$lt_AR_FLAGS
18608
18609# How to feed a file listing to the archiver.
18610archiver_list_spec=$lt_archiver_list_spec
18611
18612# A symbol stripping program.
18613STRIP=$lt_STRIP
18614
18615# Commands used to install an old-style archive.
18616RANLIB=$lt_RANLIB
18617old_postinstall_cmds=$lt_old_postinstall_cmds
18618old_postuninstall_cmds=$lt_old_postuninstall_cmds
18619
18620# Whether to use a lock for old archive extraction.
18621lock_old_archive_extraction=$lock_old_archive_extraction
18622
18623# A C compiler.
18624LTCC=$lt_CC
18625
18626# LTCC compiler flags.
18627LTCFLAGS=$lt_CFLAGS
18628
18629# Take the output of nm and produce a listing of raw symbols and C names.
18630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18631
18632# Transform the output of nm in a proper C declaration.
18633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18634
18635# Transform the output of nm in a C name address pair.
18636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18637
18638# Transform the output of nm in a C name address pair when lib prefix is needed.
18639global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18640
18641# Specify filename containing input files for \$NM.
18642nm_file_list_spec=$lt_nm_file_list_spec
18643
18644# The root where to search for dependent libraries,and in which our libraries should be installed.
18645lt_sysroot=$lt_sysroot
18646
18647# The name of the directory that contains temporary libtool files.
18648objdir=$objdir
18649
18650# Used to examine libraries when file_magic_cmd begins with "file".
18651MAGIC_CMD=$MAGIC_CMD
18652
18653# Must we lock files when doing compilation?
18654need_locks=$lt_need_locks
18655
18656# Manifest tool.
18657MANIFEST_TOOL=$lt_MANIFEST_TOOL
18658
18659# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18660DSYMUTIL=$lt_DSYMUTIL
18661
18662# Tool to change global to local symbols on Mac OS X.
18663NMEDIT=$lt_NMEDIT
18664
18665# Tool to manipulate fat objects and archives on Mac OS X.
18666LIPO=$lt_LIPO
18667
18668# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18669OTOOL=$lt_OTOOL
18670
18671# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18672OTOOL64=$lt_OTOOL64
18673
18674# Old archive suffix (normally "a").
18675libext=$libext
18676
18677# Shared library suffix (normally ".so").
18678shrext_cmds=$lt_shrext_cmds
18679
18680# The commands to extract the exported symbol list from a shared archive.
18681extract_expsyms_cmds=$lt_extract_expsyms_cmds
18682
18683# Variables whose values should be saved in libtool wrapper scripts and
18684# restored at link time.
18685variables_saved_for_relink=$lt_variables_saved_for_relink
18686
18687# Do we need the "lib" prefix for modules?
18688need_lib_prefix=$need_lib_prefix
18689
18690# Do we need a version for libraries?
18691need_version=$need_version
18692
18693# Library versioning type.
18694version_type=$version_type
18695
18696# Shared library runtime path variable.
18697runpath_var=$runpath_var
18698
18699# Shared library path variable.
18700shlibpath_var=$shlibpath_var
18701
18702# Is shlibpath searched before the hard-coded library search path?
18703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18704
18705# Format of library name prefix.
18706libname_spec=$lt_libname_spec
18707
18708# List of archive names.  First name is the real one, the rest are links.
18709# The last name is the one that the linker finds with -lNAME
18710library_names_spec=$lt_library_names_spec
18711
18712# The coded name of the library, if different from the real name.
18713soname_spec=$lt_soname_spec
18714
18715# Permission mode override for installation of shared libraries.
18716install_override_mode=$lt_install_override_mode
18717
18718# Command to use after installation of a shared archive.
18719postinstall_cmds=$lt_postinstall_cmds
18720
18721# Command to use after uninstallation of a shared archive.
18722postuninstall_cmds=$lt_postuninstall_cmds
18723
18724# Commands used to finish a libtool library installation in a directory.
18725finish_cmds=$lt_finish_cmds
18726
18727# As "finish_cmds", except a single script fragment to be evaled but
18728# not shown.
18729finish_eval=$lt_finish_eval
18730
18731# Whether we should hardcode library paths into libraries.
18732hardcode_into_libs=$hardcode_into_libs
18733
18734# Compile-time system search path for libraries.
18735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18736
18737# Run-time system search path for libraries.
18738sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18739
18740# Whether dlopen is supported.
18741dlopen_support=$enable_dlopen
18742
18743# Whether dlopen of programs is supported.
18744dlopen_self=$enable_dlopen_self
18745
18746# Whether dlopen of statically linked programs is supported.
18747dlopen_self_static=$enable_dlopen_self_static
18748
18749# Commands to strip libraries.
18750old_striplib=$lt_old_striplib
18751striplib=$lt_striplib
18752
18753
18754# The linker used to build libraries.
18755LD=$lt_LD
18756
18757# How to create reloadable object files.
18758reload_flag=$lt_reload_flag
18759reload_cmds=$lt_reload_cmds
18760
18761# Commands used to build an old-style archive.
18762old_archive_cmds=$lt_old_archive_cmds
18763
18764# A language specific compiler.
18765CC=$lt_compiler
18766
18767# Is the compiler the GNU compiler?
18768with_gcc=$GCC
18769
18770# Compiler flag to turn off builtin functions.
18771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18772
18773# Additional compiler flags for building library objects.
18774pic_flag=$lt_lt_prog_compiler_pic
18775
18776# How to pass a linker flag through the compiler.
18777wl=$lt_lt_prog_compiler_wl
18778
18779# Compiler flag to prevent dynamic linking.
18780link_static_flag=$lt_lt_prog_compiler_static
18781
18782# Does compiler simultaneously support -c and -o options?
18783compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18784
18785# Whether or not to add -lc for building shared libraries.
18786build_libtool_need_lc=$archive_cmds_need_lc
18787
18788# Whether or not to disallow shared libs when runtime libs are static.
18789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18790
18791# Compiler flag to allow reflexive dlopens.
18792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18793
18794# Compiler flag to generate shared objects directly from archives.
18795whole_archive_flag_spec=$lt_whole_archive_flag_spec
18796
18797# Whether the compiler copes with passing no objects directly.
18798compiler_needs_object=$lt_compiler_needs_object
18799
18800# Create an old-style archive from a shared archive.
18801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18802
18803# Create a temporary old-style archive to link instead of a shared archive.
18804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18805
18806# Commands used to build a shared archive.
18807archive_cmds=$lt_archive_cmds
18808archive_expsym_cmds=$lt_archive_expsym_cmds
18809
18810# Commands used to build a loadable module if different from building
18811# a shared archive.
18812module_cmds=$lt_module_cmds
18813module_expsym_cmds=$lt_module_expsym_cmds
18814
18815# Whether we are building with GNU ld or not.
18816with_gnu_ld=$lt_with_gnu_ld
18817
18818# Flag that allows shared libraries with undefined symbols to be built.
18819allow_undefined_flag=$lt_allow_undefined_flag
18820
18821# Flag that enforces no undefined symbols.
18822no_undefined_flag=$lt_no_undefined_flag
18823
18824# Flag to hardcode \$libdir into a binary during linking.
18825# This must work even if \$libdir does not exist
18826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18827
18828# Whether we need a single "-rpath" flag with a separated argument.
18829hardcode_libdir_separator=$lt_hardcode_libdir_separator
18830
18831# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18832# DIR into the resulting binary.
18833hardcode_direct=$hardcode_direct
18834
18835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18836# DIR into the resulting binary and the resulting library dependency is
18837# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18838# library is relocated.
18839hardcode_direct_absolute=$hardcode_direct_absolute
18840
18841# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18842# into the resulting binary.
18843hardcode_minus_L=$hardcode_minus_L
18844
18845# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18846# into the resulting binary.
18847hardcode_shlibpath_var=$hardcode_shlibpath_var
18848
18849# Set to "yes" if building a shared library automatically hardcodes DIR
18850# into the library and all subsequent libraries and executables linked
18851# against it.
18852hardcode_automatic=$hardcode_automatic
18853
18854# Set to yes if linker adds runtime paths of dependent libraries
18855# to runtime path list.
18856inherit_rpath=$inherit_rpath
18857
18858# Whether libtool must link a program against all its dependency libraries.
18859link_all_deplibs=$link_all_deplibs
18860
18861# Set to "yes" if exported symbols are required.
18862always_export_symbols=$always_export_symbols
18863
18864# The commands to list exported symbols.
18865export_symbols_cmds=$lt_export_symbols_cmds
18866
18867# Symbols that should not be listed in the preloaded symbols.
18868exclude_expsyms=$lt_exclude_expsyms
18869
18870# Symbols that must always be exported.
18871include_expsyms=$lt_include_expsyms
18872
18873# Commands necessary for linking programs (against libraries) with templates.
18874prelink_cmds=$lt_prelink_cmds
18875
18876# Commands necessary for finishing linking programs.
18877postlink_cmds=$lt_postlink_cmds
18878
18879# Specify filename containing input files.
18880file_list_spec=$lt_file_list_spec
18881
18882# How to hardcode a shared library path into an executable.
18883hardcode_action=$hardcode_action
18884
18885# ### END LIBTOOL CONFIG
18886
18887_LT_EOF
18888
18889  case $host_os in
18890  aix3*)
18891    cat <<\_LT_EOF >> "$cfgfile"
18892# AIX sometimes has problems with the GCC collect2 program.  For some
18893# reason, if we set the COLLECT_NAMES environment variable, the problems
18894# vanish in a puff of smoke.
18895if test "X${COLLECT_NAMES+set}" != Xset; then
18896  COLLECT_NAMES=
18897  export COLLECT_NAMES
18898fi
18899_LT_EOF
18900    ;;
18901  esac
18902
18903
18904ltmain="$ac_aux_dir/ltmain.sh"
18905
18906
18907  # We use sed instead of cat because bash on DJGPP gets confused if
18908  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18909  # text mode, it properly converts lines to CR/LF.  This bash problem
18910  # is reportedly fixed, but why not run on old versions too?
18911  sed '$q' "$ltmain" >> "$cfgfile" \
18912     || (rm -f "$cfgfile"; exit 1)
18913
18914  if test x"$xsi_shell" = xyes; then
18915  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18916func_dirname ()\
18917{\
18918\    case ${1} in\
18919\      */*) func_dirname_result="${1%/*}${2}" ;;\
18920\      *  ) func_dirname_result="${3}" ;;\
18921\    esac\
18922} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18923  && mv -f "$cfgfile.tmp" "$cfgfile" \
18924    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18925test 0 -eq $? || _lt_function_replace_fail=:
18926
18927
18928  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18929func_basename ()\
18930{\
18931\    func_basename_result="${1##*/}"\
18932} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18933  && mv -f "$cfgfile.tmp" "$cfgfile" \
18934    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18935test 0 -eq $? || _lt_function_replace_fail=:
18936
18937
18938  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18939func_dirname_and_basename ()\
18940{\
18941\    case ${1} in\
18942\      */*) func_dirname_result="${1%/*}${2}" ;;\
18943\      *  ) func_dirname_result="${3}" ;;\
18944\    esac\
18945\    func_basename_result="${1##*/}"\
18946} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18947  && mv -f "$cfgfile.tmp" "$cfgfile" \
18948    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18949test 0 -eq $? || _lt_function_replace_fail=:
18950
18951
18952  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18953func_stripname ()\
18954{\
18955\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18956\    # positional parameters, so assign one to ordinary parameter first.\
18957\    func_stripname_result=${3}\
18958\    func_stripname_result=${func_stripname_result#"${1}"}\
18959\    func_stripname_result=${func_stripname_result%"${2}"}\
18960} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18961  && mv -f "$cfgfile.tmp" "$cfgfile" \
18962    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18963test 0 -eq $? || _lt_function_replace_fail=:
18964
18965
18966  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18967func_split_long_opt ()\
18968{\
18969\    func_split_long_opt_name=${1%%=*}\
18970\    func_split_long_opt_arg=${1#*=}\
18971} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18972  && mv -f "$cfgfile.tmp" "$cfgfile" \
18973    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18974test 0 -eq $? || _lt_function_replace_fail=:
18975
18976
18977  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18978func_split_short_opt ()\
18979{\
18980\    func_split_short_opt_arg=${1#??}\
18981\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18982} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18983  && mv -f "$cfgfile.tmp" "$cfgfile" \
18984    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18985test 0 -eq $? || _lt_function_replace_fail=:
18986
18987
18988  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18989func_lo2o ()\
18990{\
18991\    case ${1} in\
18992\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18993\      *)    func_lo2o_result=${1} ;;\
18994\    esac\
18995} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18996  && mv -f "$cfgfile.tmp" "$cfgfile" \
18997    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18998test 0 -eq $? || _lt_function_replace_fail=:
18999
19000
19001  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19002func_xform ()\
19003{\
19004    func_xform_result=${1%.*}.lo\
19005} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19006  && mv -f "$cfgfile.tmp" "$cfgfile" \
19007    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19008test 0 -eq $? || _lt_function_replace_fail=:
19009
19010
19011  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19012func_arith ()\
19013{\
19014    func_arith_result=$(( $* ))\
19015} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19016  && mv -f "$cfgfile.tmp" "$cfgfile" \
19017    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19018test 0 -eq $? || _lt_function_replace_fail=:
19019
19020
19021  sed -e '/^func_len ()$/,/^} # func_len /c\
19022func_len ()\
19023{\
19024    func_len_result=${#1}\
19025} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19026  && mv -f "$cfgfile.tmp" "$cfgfile" \
19027    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19028test 0 -eq $? || _lt_function_replace_fail=:
19029
19030fi
19031
19032if test x"$lt_shell_append" = xyes; then
19033  sed -e '/^func_append ()$/,/^} # func_append /c\
19034func_append ()\
19035{\
19036    eval "${1}+=\\${2}"\
19037} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19038  && mv -f "$cfgfile.tmp" "$cfgfile" \
19039    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19040test 0 -eq $? || _lt_function_replace_fail=:
19041
19042
19043  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19044func_append_quoted ()\
19045{\
19046\    func_quote_for_eval "${2}"\
19047\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19048} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19049  && mv -f "$cfgfile.tmp" "$cfgfile" \
19050    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19051test 0 -eq $? || _lt_function_replace_fail=:
19052
19053
19054  # Save a `func_append' function call where possible by direct use of '+='
19055  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19056    && mv -f "$cfgfile.tmp" "$cfgfile" \
19057      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19058  test 0 -eq $? || _lt_function_replace_fail=:
19059else
19060  # Save a `func_append' function call even when '+=' is not available
19061  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19062    && mv -f "$cfgfile.tmp" "$cfgfile" \
19063      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19064  test 0 -eq $? || _lt_function_replace_fail=:
19065fi
19066
19067if test x"$_lt_function_replace_fail" = x":"; then
19068  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19069$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19070fi
19071
19072
19073   mv -f "$cfgfile" "$ofile" ||
19074    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19075  chmod +x "$ofile"
19076
19077
19078    cat <<_LT_EOF >> "$ofile"
19079
19080# ### BEGIN LIBTOOL TAG CONFIG: RC
19081
19082# The linker used to build libraries.
19083LD=$lt_LD_RC
19084
19085# How to create reloadable object files.
19086reload_flag=$lt_reload_flag_RC
19087reload_cmds=$lt_reload_cmds_RC
19088
19089# Commands used to build an old-style archive.
19090old_archive_cmds=$lt_old_archive_cmds_RC
19091
19092# A language specific compiler.
19093CC=$lt_compiler_RC
19094
19095# Is the compiler the GNU compiler?
19096with_gcc=$GCC_RC
19097
19098# Compiler flag to turn off builtin functions.
19099no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19100
19101# Additional compiler flags for building library objects.
19102pic_flag=$lt_lt_prog_compiler_pic_RC
19103
19104# How to pass a linker flag through the compiler.
19105wl=$lt_lt_prog_compiler_wl_RC
19106
19107# Compiler flag to prevent dynamic linking.
19108link_static_flag=$lt_lt_prog_compiler_static_RC
19109
19110# Does compiler simultaneously support -c and -o options?
19111compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19112
19113# Whether or not to add -lc for building shared libraries.
19114build_libtool_need_lc=$archive_cmds_need_lc_RC
19115
19116# Whether or not to disallow shared libs when runtime libs are static.
19117allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19118
19119# Compiler flag to allow reflexive dlopens.
19120export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19121
19122# Compiler flag to generate shared objects directly from archives.
19123whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19124
19125# Whether the compiler copes with passing no objects directly.
19126compiler_needs_object=$lt_compiler_needs_object_RC
19127
19128# Create an old-style archive from a shared archive.
19129old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19130
19131# Create a temporary old-style archive to link instead of a shared archive.
19132old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19133
19134# Commands used to build a shared archive.
19135archive_cmds=$lt_archive_cmds_RC
19136archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19137
19138# Commands used to build a loadable module if different from building
19139# a shared archive.
19140module_cmds=$lt_module_cmds_RC
19141module_expsym_cmds=$lt_module_expsym_cmds_RC
19142
19143# Whether we are building with GNU ld or not.
19144with_gnu_ld=$lt_with_gnu_ld_RC
19145
19146# Flag that allows shared libraries with undefined symbols to be built.
19147allow_undefined_flag=$lt_allow_undefined_flag_RC
19148
19149# Flag that enforces no undefined symbols.
19150no_undefined_flag=$lt_no_undefined_flag_RC
19151
19152# Flag to hardcode \$libdir into a binary during linking.
19153# This must work even if \$libdir does not exist
19154hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19155
19156# Whether we need a single "-rpath" flag with a separated argument.
19157hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19158
19159# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19160# DIR into the resulting binary.
19161hardcode_direct=$hardcode_direct_RC
19162
19163# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19164# DIR into the resulting binary and the resulting library dependency is
19165# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19166# library is relocated.
19167hardcode_direct_absolute=$hardcode_direct_absolute_RC
19168
19169# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19170# into the resulting binary.
19171hardcode_minus_L=$hardcode_minus_L_RC
19172
19173# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19174# into the resulting binary.
19175hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19176
19177# Set to "yes" if building a shared library automatically hardcodes DIR
19178# into the library and all subsequent libraries and executables linked
19179# against it.
19180hardcode_automatic=$hardcode_automatic_RC
19181
19182# Set to yes if linker adds runtime paths of dependent libraries
19183# to runtime path list.
19184inherit_rpath=$inherit_rpath_RC
19185
19186# Whether libtool must link a program against all its dependency libraries.
19187link_all_deplibs=$link_all_deplibs_RC
19188
19189# Set to "yes" if exported symbols are required.
19190always_export_symbols=$always_export_symbols_RC
19191
19192# The commands to list exported symbols.
19193export_symbols_cmds=$lt_export_symbols_cmds_RC
19194
19195# Symbols that should not be listed in the preloaded symbols.
19196exclude_expsyms=$lt_exclude_expsyms_RC
19197
19198# Symbols that must always be exported.
19199include_expsyms=$lt_include_expsyms_RC
19200
19201# Commands necessary for linking programs (against libraries) with templates.
19202prelink_cmds=$lt_prelink_cmds_RC
19203
19204# Commands necessary for finishing linking programs.
19205postlink_cmds=$lt_postlink_cmds_RC
19206
19207# Specify filename containing input files.
19208file_list_spec=$lt_file_list_spec_RC
19209
19210# How to hardcode a shared library path into an executable.
19211hardcode_action=$hardcode_action_RC
19212
19213# ### END LIBTOOL TAG CONFIG: RC
19214_LT_EOF
19215
19216 ;;
19217    "gcrypt-conf":C)
19218chmod +x src/libgcrypt-config
19219 ;;
19220
19221  esac
19222done # for ac_tag
19223
19224
19225as_fn_exit 0
19226_ACEOF
19227ac_clean_files=$ac_clean_files_save
19228
19229test $ac_write_fail = 0 ||
19230  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19231
19232
19233# configure is writing to config.log, and then calls config.status.
19234# config.status does its own redirection, appending to config.log.
19235# Unfortunately, on DOS this fails, as config.log is still kept open
19236# by configure, so config.status won't be able to write to it; its
19237# output is simply discarded.  So we exec the FD to /dev/null,
19238# effectively closing config.log, so it can be properly (re)opened and
19239# appended to by config.status.  When coming back to configure, we
19240# need to make the FD available again.
19241if test "$no_create" != yes; then
19242  ac_cs_success=:
19243  ac_config_status_args=
19244  test "$silent" = yes &&
19245    ac_config_status_args="$ac_config_status_args --quiet"
19246  exec 5>/dev/null
19247  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19248  exec 5>>config.log
19249  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19250  # would make configure fail if this is the last instruction.
19251  $ac_cs_success || as_fn_exit 1
19252fi
19253if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19254  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19255$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19256fi
19257
19258
19259# Give some feedback
19260echo "
19261        Libgcrypt v${VERSION} has been configured as follows:
19262
19263        Revision:                  d2f2f90  (54002)
19264        Platform:                  $PRINTABLE_OS_NAME ($host)
19265        Enabled cipher algorithms: $enabled_ciphers
19266        Enabled digest algorithms: $enabled_digests
19267        Enabled pubkey algorithms: $enabled_pubkey_ciphers
19268        Random number generator:   $random
19269        Using linux capabilities:  $use_capabilities
19270        Try using Padlock crypto:  $padlocksupport
19271        Try using AES-NI crypto:   $aesnisupport
19272"
19273
19274if test "$print_egd_notice" = "yes"; then
19275cat <<G10EOF
19276
19277   The performance of the Unix random gatherer module (rndunix) is not
19278   very good and it does not keep the entropy pool over multiple
19279   invocations of Libgcrypt base applications.  The suggested way to
19280   overcome this problem is to use the
19281
19282                 Entropy Gathering Daemon (EGD)
19283
19284   which provides a entropy source for the whole system.  It is written
19285   in Perl and available at the GnuPG FTP servers.  To enable EGD you
19286   should rerun configure with the option "--enable-static-rnd=egd".
19287   For more information consult the GnuPG webpages:
19288
19289             http://www.gnupg.org/download.html#egd
19290
19291G10EOF
19292fi
19293
19294if test -n "$gpl"; then
19295  echo "Please note that you are building a version of Libgcrypt with"
19296  echo "  $gpl"
19297  echo "included.  These parts are licensed under the GPL and thus the"
19298  echo "use of this library has to comply with the conditions of the GPL."
19299fi
19300