xref: /freebsd/contrib/openpam/configure (revision 80dbff4e99ba37534b40803a1ddff842f5ebdd58)
1#! /bin/sh
2# From configure.ac Id: configure.ac 507 2011-12-18 14:43:40Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for OpenPAM 20111218.
5#
6# Report bugs to <des@des.no>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65	expr "X$arg" : "X\\(.*\\)$as_nl";
66	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""	$as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97  *[\\/]* ) as_myself=$0 ;;
98  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101  IFS=$as_save_IFS
102  test -z "$as_dir" && as_dir=.
103    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104  done
105IFS=$as_save_IFS
106
107     ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112  as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116  exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there.  '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142  emulate sh
143  NULLCMD=:
144  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145  # is contrary to our usage.  Disable this feature.
146  alias -g '\${1+\"\$@\"}'='\"\$@\"'
147  setopt NO_GLOB_SUBST
148else
149  case \`(set -o) 2>/dev/null\` in #(
150  *posix*) :
151    set -o posix ;; #(
152  *) :
153     ;;
154esac
155fi
156"
157  as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171  exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1
179
180  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184    PATH=/empty FPATH=/empty; export PATH FPATH
185    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187  if (eval "$as_required") 2>/dev/null; then :
188  as_have_required=yes
189else
190  as_have_required=no
191fi
192  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194else
195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196as_found=false
197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198do
199  IFS=$as_save_IFS
200  test -z "$as_dir" && as_dir=.
201  as_found=:
202  case $as_dir in #(
203	 /*)
204	   for as_base in sh bash ksh sh5; do
205	     # Try only shells that exist, to save several forks.
206	     as_shell=$as_dir/$as_base
207	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  CONFIG_SHELL=$as_shell as_have_required=yes
210		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211  break 2
212fi
213fi
214	   done;;
215       esac
216  as_found=false
217done
218$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220  CONFIG_SHELL=$SHELL as_have_required=yes
221fi; }
222IFS=$as_save_IFS
223
224
225      if test "x$CONFIG_SHELL" != x; then :
226  # We cannot yet assume a decent shell, so we have to provide a
227	# neutralization value for shells without unset; and this also
228	# works around shells that cannot unset nonexistent variables.
229	# Preserve -v and -x to the replacement shell.
230	BASH_ENV=/dev/null
231	ENV=/dev/null
232	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233	export CONFIG_SHELL
234	case $- in # ((((
235	  *v*x* | *x*v* ) as_opts=-vx ;;
236	  *v* ) as_opts=-v ;;
237	  *x* ) as_opts=-x ;;
238	  * ) as_opts= ;;
239	esac
240	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241fi
242
243    if test x$as_have_required = xno; then :
244  $as_echo "$0: This script requires a shell more modern than all"
245  $as_echo "$0: the shells that I found on your system."
246  if test x${ZSH_VERSION+set} = xset ; then
247    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249  else
250    $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
251$0: your system, including any error possibly output before
252$0: this message. Then install a modern shell, or manually
253$0: run the script under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='OpenPAM'
572PACKAGE_TARNAME='openpam'
573PACKAGE_VERSION='20111218'
574PACKAGE_STRING='OpenPAM 20111218'
575PACKAGE_BUGREPORT='des@des.no'
576PACKAGE_URL=''
577
578ac_unique_file="lib/pam_start.c"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619CRYPT_LIBS
620DL_LIBS
621WITH_SU_FALSE
622WITH_SU_TRUE
623WITH_PAMTEST_FALSE
624WITH_PAMTEST_TRUE
625WITH_PAM_UNIX_FALSE
626WITH_PAM_UNIX_TRUE
627WITH_DOC_FALSE
628WITH_DOC_TRUE
629OPENPAM_MODULES_DIR
630LIB_MAJ
631OTOOL64
632OTOOL
633LIPO
634NMEDIT
635DSYMUTIL
636MANIFEST_TOOL
637RANLIB
638ac_ct_AR
639AR
640DLLTOOL
641OBJDUMP
642LN_S
643NM
644ac_ct_DUMPBIN
645DUMPBIN
646LD
647FGREP
648SED
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
657LIBTOOL
658EGREP
659GREP
660CPP
661am__fastdepCC_FALSE
662am__fastdepCC_TRUE
663CCDEPMODE
664AMDEPBACKSLASH
665AMDEP_FALSE
666AMDEP_TRUE
667am__quote
668am__include
669DEPDIR
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677am__untar
678am__tar
679AMTAR
680am__leading_dot
681SET_MAKE
682AWK
683mkdir_p
684MKDIR_P
685INSTALL_STRIP_PROGRAM
686STRIP
687install_sh
688MAKEINFO
689AUTOHEADER
690AUTOMAKE
691AUTOCONF
692ACLOCAL
693VERSION
694PACKAGE
695CYGPATH_W
696am__isrc
697INSTALL_DATA
698INSTALL_SCRIPT
699INSTALL_PROGRAM
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files=''
739ac_user_opts='
740enable_option_checking
741enable_dependency_tracking
742enable_static
743enable_shared
744with_pic
745enable_fast_install
746with_gnu_ld
747with_sysroot
748enable_libtool_lock
749enable_debug
750enable_unversioned_modules
751with_modules_dir
752with_doc
753with_pam_unix
754with_pamtest
755with_su
756enable_developer_warnings
757enable_debugging_symbols
758enable_werror
759'
760      ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP'
769
770
771# Initialize some variables set by options.
772ac_init_help=
773ac_init_version=false
774ac_unrecognized_opts=
775ac_unrecognized_sep=
776# The variables have the same names as the options, with
777# dashes changed to underlines.
778cache_file=/dev/null
779exec_prefix=NONE
780no_create=
781no_recursion=
782prefix=NONE
783program_prefix=NONE
784program_suffix=NONE
785program_transform_name=s,x,x,
786silent=
787site=
788srcdir=
789verbose=
790x_includes=NONE
791x_libraries=NONE
792
793# Installation directory options.
794# These are left unexpanded so users can "make install exec_prefix=/foo"
795# and all the variables that are supposed to be based on exec_prefix
796# by default will actually change.
797# Use braces instead of parens because sh, perl, etc. also accept them.
798# (The list follows the same order as the GNU Coding Standards.)
799bindir='${exec_prefix}/bin'
800sbindir='${exec_prefix}/sbin'
801libexecdir='${exec_prefix}/libexec'
802datarootdir='${prefix}/share'
803datadir='${datarootdir}'
804sysconfdir='${prefix}/etc'
805sharedstatedir='${prefix}/com'
806localstatedir='${prefix}/var'
807includedir='${prefix}/include'
808oldincludedir='/usr/include'
809docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810infodir='${datarootdir}/info'
811htmldir='${docdir}'
812dvidir='${docdir}'
813pdfdir='${docdir}'
814psdir='${docdir}'
815libdir='${exec_prefix}/lib'
816localedir='${datarootdir}/locale'
817mandir='${datarootdir}/man'
818
819ac_prev=
820ac_dashdash=
821for ac_option
822do
823  # If the previous option needs an argument, assign it.
824  if test -n "$ac_prev"; then
825    eval $ac_prev=\$ac_option
826    ac_prev=
827    continue
828  fi
829
830  case $ac_option in
831  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832  *=)   ac_optarg= ;;
833  *)    ac_optarg=yes ;;
834  esac
835
836  # Accept the important Cygnus configure options, so we can diagnose typos.
837
838  case $ac_dashdash$ac_option in
839  --)
840    ac_dashdash=yes ;;
841
842  -bindir | --bindir | --bindi | --bind | --bin | --bi)
843    ac_prev=bindir ;;
844  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845    bindir=$ac_optarg ;;
846
847  -build | --build | --buil | --bui | --bu)
848    ac_prev=build_alias ;;
849  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850    build_alias=$ac_optarg ;;
851
852  -cache-file | --cache-file | --cache-fil | --cache-fi \
853  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854    ac_prev=cache_file ;;
855  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857    cache_file=$ac_optarg ;;
858
859  --config-cache | -C)
860    cache_file=config.cache ;;
861
862  -datadir | --datadir | --datadi | --datad)
863    ac_prev=datadir ;;
864  -datadir=* | --datadir=* | --datadi=* | --datad=*)
865    datadir=$ac_optarg ;;
866
867  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868  | --dataroo | --dataro | --datar)
869    ac_prev=datarootdir ;;
870  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872    datarootdir=$ac_optarg ;;
873
874  -disable-* | --disable-*)
875    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878      as_fn_error $? "invalid feature name: $ac_useropt"
879    ac_useropt_orig=$ac_useropt
880    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881    case $ac_user_opts in
882      *"
883"enable_$ac_useropt"
884"*) ;;
885      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886	 ac_unrecognized_sep=', ';;
887    esac
888    eval enable_$ac_useropt=no ;;
889
890  -docdir | --docdir | --docdi | --doc | --do)
891    ac_prev=docdir ;;
892  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893    docdir=$ac_optarg ;;
894
895  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896    ac_prev=dvidir ;;
897  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898    dvidir=$ac_optarg ;;
899
900  -enable-* | --enable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=\$ac_optarg ;;
915
916  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918  | --exec | --exe | --ex)
919    ac_prev=exec_prefix ;;
920  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922  | --exec=* | --exe=* | --ex=*)
923    exec_prefix=$ac_optarg ;;
924
925  -gas | --gas | --ga | --g)
926    # Obsolete; use --with-gas.
927    with_gas=yes ;;
928
929  -help | --help | --hel | --he | -h)
930    ac_init_help=long ;;
931  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932    ac_init_help=recursive ;;
933  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934    ac_init_help=short ;;
935
936  -host | --host | --hos | --ho)
937    ac_prev=host_alias ;;
938  -host=* | --host=* | --hos=* | --ho=*)
939    host_alias=$ac_optarg ;;
940
941  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942    ac_prev=htmldir ;;
943  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944  | --ht=*)
945    htmldir=$ac_optarg ;;
946
947  -includedir | --includedir | --includedi | --included | --include \
948  | --includ | --inclu | --incl | --inc)
949    ac_prev=includedir ;;
950  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951  | --includ=* | --inclu=* | --incl=* | --inc=*)
952    includedir=$ac_optarg ;;
953
954  -infodir | --infodir | --infodi | --infod | --info | --inf)
955    ac_prev=infodir ;;
956  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957    infodir=$ac_optarg ;;
958
959  -libdir | --libdir | --libdi | --libd)
960    ac_prev=libdir ;;
961  -libdir=* | --libdir=* | --libdi=* | --libd=*)
962    libdir=$ac_optarg ;;
963
964  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965  | --libexe | --libex | --libe)
966    ac_prev=libexecdir ;;
967  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968  | --libexe=* | --libex=* | --libe=*)
969    libexecdir=$ac_optarg ;;
970
971  -localedir | --localedir | --localedi | --localed | --locale)
972    ac_prev=localedir ;;
973  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974    localedir=$ac_optarg ;;
975
976  -localstatedir | --localstatedir | --localstatedi | --localstated \
977  | --localstate | --localstat | --localsta | --localst | --locals)
978    ac_prev=localstatedir ;;
979  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981    localstatedir=$ac_optarg ;;
982
983  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984    ac_prev=mandir ;;
985  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986    mandir=$ac_optarg ;;
987
988  -nfp | --nfp | --nf)
989    # Obsolete; use --without-fp.
990    with_fp=no ;;
991
992  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993  | --no-cr | --no-c | -n)
994    no_create=yes ;;
995
996  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998    no_recursion=yes ;;
999
1000  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002  | --oldin | --oldi | --old | --ol | --o)
1003    ac_prev=oldincludedir ;;
1004  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007    oldincludedir=$ac_optarg ;;
1008
1009  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010    ac_prev=prefix ;;
1011  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012    prefix=$ac_optarg ;;
1013
1014  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015  | --program-pre | --program-pr | --program-p)
1016    ac_prev=program_prefix ;;
1017  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019    program_prefix=$ac_optarg ;;
1020
1021  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022  | --program-suf | --program-su | --program-s)
1023    ac_prev=program_suffix ;;
1024  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026    program_suffix=$ac_optarg ;;
1027
1028  -program-transform-name | --program-transform-name \
1029  | --program-transform-nam | --program-transform-na \
1030  | --program-transform-n | --program-transform- \
1031  | --program-transform | --program-transfor \
1032  | --program-transfo | --program-transf \
1033  | --program-trans | --program-tran \
1034  | --progr-tra | --program-tr | --program-t)
1035    ac_prev=program_transform_name ;;
1036  -program-transform-name=* | --program-transform-name=* \
1037  | --program-transform-nam=* | --program-transform-na=* \
1038  | --program-transform-n=* | --program-transform-=* \
1039  | --program-transform=* | --program-transfor=* \
1040  | --program-transfo=* | --program-transf=* \
1041  | --program-trans=* | --program-tran=* \
1042  | --progr-tra=* | --program-tr=* | --program-t=*)
1043    program_transform_name=$ac_optarg ;;
1044
1045  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046    ac_prev=pdfdir ;;
1047  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048    pdfdir=$ac_optarg ;;
1049
1050  -psdir | --psdir | --psdi | --psd | --ps)
1051    ac_prev=psdir ;;
1052  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053    psdir=$ac_optarg ;;
1054
1055  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056  | -silent | --silent | --silen | --sile | --sil)
1057    silent=yes ;;
1058
1059  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060    ac_prev=sbindir ;;
1061  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062  | --sbi=* | --sb=*)
1063    sbindir=$ac_optarg ;;
1064
1065  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067  | --sharedst | --shareds | --shared | --share | --shar \
1068  | --sha | --sh)
1069    ac_prev=sharedstatedir ;;
1070  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073  | --sha=* | --sh=*)
1074    sharedstatedir=$ac_optarg ;;
1075
1076  -site | --site | --sit)
1077    ac_prev=site ;;
1078  -site=* | --site=* | --sit=*)
1079    site=$ac_optarg ;;
1080
1081  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082    ac_prev=srcdir ;;
1083  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084    srcdir=$ac_optarg ;;
1085
1086  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087  | --syscon | --sysco | --sysc | --sys | --sy)
1088    ac_prev=sysconfdir ;;
1089  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091    sysconfdir=$ac_optarg ;;
1092
1093  -target | --target | --targe | --targ | --tar | --ta | --t)
1094    ac_prev=target_alias ;;
1095  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096    target_alias=$ac_optarg ;;
1097
1098  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099    verbose=yes ;;
1100
1101  -version | --version | --versio | --versi | --vers | -V)
1102    ac_init_version=: ;;
1103
1104  -with-* | --with-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid package name: $ac_useropt"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"with_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval with_$ac_useropt=\$ac_optarg ;;
1119
1120  -without-* | --without-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=no ;;
1135
1136  --x)
1137    # Obsolete; use --with-x.
1138    with_x=yes ;;
1139
1140  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141  | --x-incl | --x-inc | --x-in | --x-i)
1142    ac_prev=x_includes ;;
1143  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145    x_includes=$ac_optarg ;;
1146
1147  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149    ac_prev=x_libraries ;;
1150  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152    x_libraries=$ac_optarg ;;
1153
1154  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155Try \`$0 --help' for more information"
1156    ;;
1157
1158  *=*)
1159    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160    # Reject names that are not valid shell variable names.
1161    case $ac_envvar in #(
1162      '' | [0-9]* | *[!_$as_cr_alnum]* )
1163      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164    esac
1165    eval $ac_envvar=\$ac_optarg
1166    export $ac_envvar ;;
1167
1168  *)
1169    # FIXME: should be removed in autoconf 3.0.
1170    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174    ;;
1175
1176  esac
1177done
1178
1179if test -n "$ac_prev"; then
1180  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181  as_fn_error $? "missing argument to $ac_option"
1182fi
1183
1184if test -n "$ac_unrecognized_opts"; then
1185  case $enable_option_checking in
1186    no) ;;
1187    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189  esac
1190fi
1191
1192# Check all directory arguments for consistency.
1193for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194		datadir sysconfdir sharedstatedir localstatedir includedir \
1195		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196		libdir localedir mandir
1197do
1198  eval ac_val=\$$ac_var
1199  # Remove trailing slashes.
1200  case $ac_val in
1201    */ )
1202      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203      eval $ac_var=\$ac_val;;
1204  esac
1205  # Be sure to have absolute directory names.
1206  case $ac_val in
1207    [\\/$]* | ?:[\\/]* )  continue;;
1208    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209  esac
1210  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211done
1212
1213# There might be people who depend on the old broken behavior: `$host'
1214# used to hold the argument of --host etc.
1215# FIXME: To remove some day.
1216build=$build_alias
1217host=$host_alias
1218target=$target_alias
1219
1220# FIXME: To remove some day.
1221if test "x$host_alias" != x; then
1222  if test "x$build_alias" = x; then
1223    cross_compiling=maybe
1224    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225    If a cross compiler is detected then cross compile mode will be used" >&2
1226  elif test "x$build_alias" != "x$host_alias"; then
1227    cross_compiling=yes
1228  fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240  as_fn_error $? "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242  as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247  ac_srcdir_defaulted=yes
1248  # Try the directory containing this script, then the parent directory.
1249  ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251	 X"$as_myself" : 'X\(//\)[^/]' \| \
1252	 X"$as_myself" : 'X\(//\)$' \| \
1253	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)[^/].*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\).*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  s/.*/./; q'`
1272  srcdir=$ac_confdir
1273  if test ! -r "$srcdir/$ac_unique_file"; then
1274    srcdir=..
1275  fi
1276else
1277  ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286	pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289  srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_env_${ac_var}_value=\$${ac_var}
1300  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308  # Omit some internal or obsolete options to make the list less imposing.
1309  # This message is too long to be a string in the A/UX 3.1 sh.
1310  cat <<_ACEOF
1311\`configure' configures OpenPAM 20111218 to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321  -h, --help              display this help and exit
1322      --help=short        display options specific to this package
1323      --help=recursive    display the short help of all the included packages
1324  -V, --version           display version information and exit
1325  -q, --quiet, --silent   do not print \`checking ...' messages
1326      --cache-file=FILE   cache test results in FILE [disabled]
1327  -C, --config-cache      alias for \`--cache-file=config.cache'
1328  -n, --no-create         do not create output files
1329      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331Installation directories:
1332  --prefix=PREFIX         install architecture-independent files in PREFIX
1333                          [$ac_default_prefix]
1334  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                          [PREFIX]
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
1345  --bindir=DIR            user executables [EPREFIX/bin]
1346  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347  --libexecdir=DIR        program executables [EPREFIX/libexec]
1348  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351  --libdir=DIR            object code libraries [EPREFIX/lib]
1352  --includedir=DIR        C header files [PREFIX/include]
1353  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356  --infodir=DIR           info documentation [DATAROOTDIR/info]
1357  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358  --mandir=DIR            man documentation [DATAROOTDIR/man]
1359  --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1360  --htmldir=DIR           html documentation [DOCDIR]
1361  --dvidir=DIR            dvi documentation [DOCDIR]
1362  --pdfdir=DIR            pdf documentation [DOCDIR]
1363  --psdir=DIR             ps documentation [DOCDIR]
1364_ACEOF
1365
1366  cat <<\_ACEOF
1367
1368Program names:
1369  --program-prefix=PREFIX            prepend PREFIX to installed program names
1370  --program-suffix=SUFFIX            append SUFFIX to installed program names
1371  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
1373System types:
1374  --build=BUILD     configure for building on BUILD [guessed]
1375  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376_ACEOF
1377fi
1378
1379if test -n "$ac_init_help"; then
1380  case $ac_init_help in
1381     short | recursive ) echo "Configuration of OpenPAM 20111218:";;
1382   esac
1383  cat <<\_ACEOF
1384
1385Optional Features:
1386  --disable-option-checking  ignore unrecognized --enable/--with options
1387  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389  --disable-dependency-tracking  speeds up one-time build
1390  --enable-dependency-tracking   do not reject slow dependency extractors
1391  --enable-static[=PKGS]  build static libraries [default=no]
1392  --enable-shared[=PKGS]  build shared libraries [default=yes]
1393  --enable-fast-install[=PKGS]
1394                          optimize for fast installation [default=yes]
1395  --disable-libtool-lock  avoid locking (might break parallel builds)
1396  --enable-debug          turn debugging on by default
1397  --disable-unversioned-modules
1398                          support loading of unversioned modules
1399  --enable-developer-warnings
1400                          enable strict warnings (default is NO)
1401  --enable-debugging-symbols
1402                          enable debugging symbols (default is NO)
1403  --enable-werror         use -Werror (default is NO)
1404
1405Optional Packages:
1406  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408  --with-pic              try to use only PIC/non-PIC objects [default=use
1409                          both]
1410  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411  --with-sysroot=DIR Search for dependent libraries within DIR
1412                        (or the compiler's sysroot if not specified).
1413  --with-modules-dir=DIR  OpenPAM modules directory
1414  --without-doc           do not build documentation
1415  --with-pam-unix         compile sample pam_unix(8) implementation
1416  --with-pamtest          compile test application
1417  --with-su               compile sample su(1) implementation
1418
1419Some influential environment variables:
1420  CC          C compiler command
1421  CFLAGS      C compiler flags
1422  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423              nonstandard directory <lib dir>
1424  LIBS        libraries to pass to the linker, e.g. -l<library>
1425  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426              you have headers in a nonstandard directory <include dir>
1427  CPP         C preprocessor
1428
1429Use these variables to override the choices made by `configure' or to help
1430it to find libraries and programs with nonstandard names/locations.
1431
1432Report bugs to <des@des.no>.
1433_ACEOF
1434ac_status=$?
1435fi
1436
1437if test "$ac_init_help" = "recursive"; then
1438  # If there are subdirs, report their specific --help.
1439  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440    test -d "$ac_dir" ||
1441      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442      continue
1443    ac_builddir=.
1444
1445case "$ac_dir" in
1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447*)
1448  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449  # A ".." for each directory in $ac_dir_suffix.
1450  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451  case $ac_top_builddir_sub in
1452  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454  esac ;;
1455esac
1456ac_abs_top_builddir=$ac_pwd
1457ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458# for backward compatibility:
1459ac_top_builddir=$ac_top_build_prefix
1460
1461case $srcdir in
1462  .)  # We are building in place.
1463    ac_srcdir=.
1464    ac_top_srcdir=$ac_top_builddir_sub
1465    ac_abs_top_srcdir=$ac_pwd ;;
1466  [\\/]* | ?:[\\/]* )  # Absolute name.
1467    ac_srcdir=$srcdir$ac_dir_suffix;
1468    ac_top_srcdir=$srcdir
1469    ac_abs_top_srcdir=$srcdir ;;
1470  *) # Relative name.
1471    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472    ac_top_srcdir=$ac_top_build_prefix$srcdir
1473    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474esac
1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477    cd "$ac_dir" || { ac_status=$?; continue; }
1478    # Check for guested configure.
1479    if test -f "$ac_srcdir/configure.gnu"; then
1480      echo &&
1481      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482    elif test -f "$ac_srcdir/configure"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure" --help=recursive
1485    else
1486      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487    fi || ac_status=$?
1488    cd "$ac_pwd" || { ac_status=$?; break; }
1489  done
1490fi
1491
1492test -n "$ac_init_help" && exit $ac_status
1493if $ac_init_version; then
1494  cat <<\_ACEOF
1495OpenPAM configure 20111218
1496generated by GNU Autoconf 2.68
1497
1498Copyright (C) 2010 Free Software Foundation, Inc.
1499This configure script is free software; the Free Software Foundation
1500gives unlimited permission to copy, distribute and modify it.
1501_ACEOF
1502  exit
1503fi
1504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515  rm -f conftest.$ac_objext
1516  if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_compile") 2>conftest.err
1524  ac_status=$?
1525  if test -s conftest.err; then
1526    grep -v '^ *+' conftest.err >conftest.er1
1527    cat conftest.er1 >&5
1528    mv -f conftest.er1 conftest.err
1529  fi
1530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531  test $ac_status = 0; } && {
1532	 test -z "$ac_c_werror_flag" ||
1533	 test ! -s conftest.err
1534       } && test -s conftest.$ac_objext; then :
1535  ac_retval=0
1536else
1537  $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540	ac_retval=1
1541fi
1542  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543  as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_try_cpp LINENO
1548# ----------------------
1549# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_cpp ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  if { { ac_try="$ac_cpp conftest.$ac_ext"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } > conftest.i && {
1569	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       }; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577    ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_cpp
1583
1584# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585# -------------------------------------------------------
1586# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587# the include files in INCLUDES and setting the cache variable VAR
1588# accordingly.
1589ac_fn_c_check_header_mongrel ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if eval \${$3+:} false; then :
1593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594$as_echo_n "checking for $2... " >&6; }
1595if eval \${$3+:} false; then :
1596  $as_echo_n "(cached) " >&6
1597fi
1598eval ac_res=\$$3
1599	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600$as_echo "$ac_res" >&6; }
1601else
1602  # Is the header compilable?
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604$as_echo_n "checking $2 usability... " >&6; }
1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611  ac_header_compiler=yes
1612else
1613  ac_header_compiler=no
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617$as_echo "$ac_header_compiler" >&6; }
1618
1619# Is the header present?
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621$as_echo_n "checking $2 presence... " >&6; }
1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_cpp "$LINENO"; then :
1627  ac_header_preproc=yes
1628else
1629  ac_header_preproc=no
1630fi
1631rm -f conftest.err conftest.i conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633$as_echo "$ac_header_preproc" >&6; }
1634
1635# So?  What about this header?
1636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637  yes:no: )
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642    ;;
1643  no:yes:* )
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1647$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1651$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654( $as_echo "## ------------------------- ##
1655## Report this to des@des.no ##
1656## ------------------------- ##"
1657     ) | sed "s/^/$as_me: WARNING:     /" >&2
1658    ;;
1659esac
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  eval "$3=\$ac_header_compiler"
1666fi
1667eval ac_res=\$$3
1668	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673} # ac_fn_c_check_header_mongrel
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693  { { case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_try") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; }; }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: program exited with status $ac_status" >&5
1706       $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709       ac_retval=$ac_status
1710fi
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  eval "$3=yes"
1736else
1737  eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746} # ac_fn_c_check_header_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  rm -f conftest.$ac_objext conftest$ac_exeext
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && {
1771	 test -z "$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       } && test -s conftest$ac_exeext && {
1774	 test "$cross_compiling" = yes ||
1775	 $as_test_x conftest$ac_exeext
1776       }; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782	ac_retval=1
1783fi
1784  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786  # interfere with the next link command; also delete a directory that is
1787  # left behind by Apple's compiler.  We do this before executing the actions.
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_link
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812    which can conflict with char $2 (); below.
1813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814    <limits.h> exists even on freestanding compilers.  */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825   Use char because int might match the return type of a GCC
1826   builtin and then its argument prototype would still apply.  */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832    to always fail with ENOSYS.  Some functions are actually named
1833    something starting with __ and the normal name is an alias.  */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852    conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_func
1860cat >config.log <<_ACEOF
1861This file contains any messages produced by compilers while
1862running configure, to aid debugging if configure makes a mistake.
1863
1864It was created by OpenPAM $as_me 20111218, which was
1865generated by GNU Autoconf 2.68.  Invocation command line was
1866
1867  $ $0 $@
1868
1869_ACEOF
1870exec 5>>config.log
1871{
1872cat <<_ASUNAME
1873## --------- ##
1874## Platform. ##
1875## --------- ##
1876
1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894_ASUNAME
1895
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  test -z "$as_dir" && as_dir=.
1901    $as_echo "PATH: $as_dir"
1902  done
1903IFS=$as_save_IFS
1904
1905} >&5
1906
1907cat >&5 <<_ACEOF
1908
1909
1910## ----------- ##
1911## Core tests. ##
1912## ----------- ##
1913
1914_ACEOF
1915
1916
1917# Keep a trace of the command line.
1918# Strip out --no-create and --no-recursion so they do not pile up.
1919# Strip out --silent because we don't want to record it for future runs.
1920# Also quote any args containing shell meta-characters.
1921# Make two passes to allow for proper duplicate-argument suppression.
1922ac_configure_args=
1923ac_configure_args0=
1924ac_configure_args1=
1925ac_must_keep_next=false
1926for ac_pass in 1 2
1927do
1928  for ac_arg
1929  do
1930    case $ac_arg in
1931    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933    | -silent | --silent | --silen | --sile | --sil)
1934      continue ;;
1935    *\'*)
1936      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937    esac
1938    case $ac_pass in
1939    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1940    2)
1941      as_fn_append ac_configure_args1 " '$ac_arg'"
1942      if test $ac_must_keep_next = true; then
1943	ac_must_keep_next=false # Got value, back to normal.
1944      else
1945	case $ac_arg in
1946	  *=* | --config-cache | -C | -disable-* | --disable-* \
1947	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949	  | -with-* | --with-* | -without-* | --without-* | --x)
1950	    case "$ac_configure_args0 " in
1951	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952	    esac
1953	    ;;
1954	  -* ) ac_must_keep_next=true ;;
1955	esac
1956      fi
1957      as_fn_append ac_configure_args " '$ac_arg'"
1958      ;;
1959    esac
1960  done
1961done
1962{ ac_configure_args0=; unset ac_configure_args0;}
1963{ ac_configure_args1=; unset ac_configure_args1;}
1964
1965# When interrupted or exit'd, cleanup temporary files, and complete
1966# config.log.  We remove comments because anyway the quotes in there
1967# would cause problems or look ugly.
1968# WARNING: Use '\'' to represent an apostrophe within the trap.
1969# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970trap 'exit_status=$?
1971  # Save into config.log some information that might help in debugging.
1972  {
1973    echo
1974
1975    $as_echo "## ---------------- ##
1976## Cache variables. ##
1977## ---------------- ##"
1978    echo
1979    # The following way of writing the cache mishandles newlines in values,
1980(
1981  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982    eval ac_val=\$$ac_var
1983    case $ac_val in #(
1984    *${as_nl}*)
1985      case $ac_var in #(
1986      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988      esac
1989      case $ac_var in #(
1990      _ | IFS | as_nl) ;; #(
1991      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992      *) { eval $ac_var=; unset $ac_var;} ;;
1993      esac ;;
1994    esac
1995  done
1996  (set) 2>&1 |
1997    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998    *${as_nl}ac_space=\ *)
1999      sed -n \
2000	"s/'\''/'\''\\\\'\'''\''/g;
2001	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002      ;; #(
2003    *)
2004      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005      ;;
2006    esac |
2007    sort
2008)
2009    echo
2010
2011    $as_echo "## ----------------- ##
2012## Output variables. ##
2013## ----------------- ##"
2014    echo
2015    for ac_var in $ac_subst_vars
2016    do
2017      eval ac_val=\$$ac_var
2018      case $ac_val in
2019      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020      esac
2021      $as_echo "$ac_var='\''$ac_val'\''"
2022    done | sort
2023    echo
2024
2025    if test -n "$ac_subst_files"; then
2026      $as_echo "## ------------------- ##
2027## File substitutions. ##
2028## ------------------- ##"
2029      echo
2030      for ac_var in $ac_subst_files
2031      do
2032	eval ac_val=\$$ac_var
2033	case $ac_val in
2034	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035	esac
2036	$as_echo "$ac_var='\''$ac_val'\''"
2037      done | sort
2038      echo
2039    fi
2040
2041    if test -s confdefs.h; then
2042      $as_echo "## ----------- ##
2043## confdefs.h. ##
2044## ----------- ##"
2045      echo
2046      cat confdefs.h
2047      echo
2048    fi
2049    test "$ac_signal" != 0 &&
2050      $as_echo "$as_me: caught signal $ac_signal"
2051    $as_echo "$as_me: exit $exit_status"
2052  } >&5
2053  rm -f core *.core core.conftest.* &&
2054    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055    exit $exit_status
2056' 0
2057for ac_signal in 1 2 13 15; do
2058  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059done
2060ac_signal=0
2061
2062# confdefs.h avoids OS command line length limits that DEFS can exceed.
2063rm -f -r conftest* confdefs.h
2064
2065$as_echo "/* confdefs.h */" > confdefs.h
2066
2067# Predefined preprocessor variables.
2068
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_NAME "$PACKAGE_NAME"
2071_ACEOF
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_VERSION "$PACKAGE_VERSION"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_STRING "$PACKAGE_STRING"
2083_ACEOF
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087_ACEOF
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_URL "$PACKAGE_URL"
2091_ACEOF
2092
2093
2094# Let the site file select an alternate cache file if it wants to.
2095# Prefer an explicitly selected file to automatically selected ones.
2096ac_site_file1=NONE
2097ac_site_file2=NONE
2098if test -n "$CONFIG_SITE"; then
2099  # We do not want a PATH search for config.site.
2100  case $CONFIG_SITE in #((
2101    -*)  ac_site_file1=./$CONFIG_SITE;;
2102    */*) ac_site_file1=$CONFIG_SITE;;
2103    *)   ac_site_file1=./$CONFIG_SITE;;
2104  esac
2105elif test "x$prefix" != xNONE; then
2106  ac_site_file1=$prefix/share/config.site
2107  ac_site_file2=$prefix/etc/config.site
2108else
2109  ac_site_file1=$ac_default_prefix/share/config.site
2110  ac_site_file2=$ac_default_prefix/etc/config.site
2111fi
2112for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2113do
2114  test "x$ac_site_file" = xNONE && continue
2115  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2118    sed 's/^/| /' "$ac_site_file" >&5
2119    . "$ac_site_file" \
2120      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122as_fn_error $? "failed to load site script $ac_site_file
2123See \`config.log' for more details" "$LINENO" 5; }
2124  fi
2125done
2126
2127if test -r "$cache_file"; then
2128  # Some versions of bash will fail to source /dev/null (special files
2129  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2130  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132$as_echo "$as_me: loading cache $cache_file" >&6;}
2133    case $cache_file in
2134      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135      *)                      . "./$cache_file";;
2136    esac
2137  fi
2138else
2139  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140$as_echo "$as_me: creating cache $cache_file" >&6;}
2141  >$cache_file
2142fi
2143
2144# Check that the precious variables saved in the cache have kept the same
2145# value.
2146ac_cache_corrupted=false
2147for ac_var in $ac_precious_vars; do
2148  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149  eval ac_new_set=\$ac_env_${ac_var}_set
2150  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151  eval ac_new_val=\$ac_env_${ac_var}_value
2152  case $ac_old_set,$ac_new_set in
2153    set,)
2154      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156      ac_cache_corrupted=: ;;
2157    ,set)
2158      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160      ac_cache_corrupted=: ;;
2161    ,);;
2162    *)
2163      if test "x$ac_old_val" != "x$ac_new_val"; then
2164	# differences in whitespace do not lead to failure.
2165	ac_old_val_w=`echo x $ac_old_val`
2166	ac_new_val_w=`echo x $ac_new_val`
2167	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170	  ac_cache_corrupted=:
2171	else
2172	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174	  eval $ac_var=\$ac_old_val
2175	fi
2176	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2177$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2178	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2179$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2180      fi;;
2181  esac
2182  # Pass precious variables to config.status.
2183  if test "$ac_new_set" = set; then
2184    case $ac_new_val in
2185    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186    *) ac_arg=$ac_var=$ac_new_val ;;
2187    esac
2188    case " $ac_configure_args " in
2189      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2190      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2191    esac
2192  fi
2193done
2194if $ac_cache_corrupted; then
2195  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2200fi
2201## -------------------- ##
2202## Main body of script. ##
2203## -------------------- ##
2204
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
2211
2212
2213
2214am__api_version='1.11'
2215
2216ac_aux_dir=
2217for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218  if test -f "$ac_dir/install-sh"; then
2219    ac_aux_dir=$ac_dir
2220    ac_install_sh="$ac_aux_dir/install-sh -c"
2221    break
2222  elif test -f "$ac_dir/install.sh"; then
2223    ac_aux_dir=$ac_dir
2224    ac_install_sh="$ac_aux_dir/install.sh -c"
2225    break
2226  elif test -f "$ac_dir/shtool"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/shtool install -c"
2229    break
2230  fi
2231done
2232if test -z "$ac_aux_dir"; then
2233  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2234fi
2235
2236# These three variables are undocumented and unsupported,
2237# and are intended to be withdrawn in a future Autoconf release.
2238# They can cause serious problems if a builder's source tree is in a directory
2239# whose full name contains unusual characters.
2240ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2241ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2242ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2243
2244
2245# Find a good install program.  We prefer a C program (faster),
2246# so one script is as good as another.  But avoid the broken or
2247# incompatible versions:
2248# SysV /etc/install, /usr/sbin/install
2249# SunOS /usr/etc/install
2250# IRIX /sbin/install
2251# AIX /bin/install
2252# AmigaOS /C/install, which installs bootblocks on floppy discs
2253# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256# OS/2's system install, which has a completely different semantic
2257# ./install, which can be erroneously created by make from ./install.sh.
2258# Reject install programs that cannot install multiple files.
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260$as_echo_n "checking for a BSD-compatible install... " >&6; }
2261if test -z "$INSTALL"; then
2262if ${ac_cv_path_install+:} false; then :
2263  $as_echo_n "(cached) " >&6
2264else
2265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268  IFS=$as_save_IFS
2269  test -z "$as_dir" && as_dir=.
2270    # Account for people who put trailing slashes in PATH elements.
2271case $as_dir/ in #((
2272  ./ | .// | /[cC]/* | \
2273  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2275  /usr/ucb/* ) ;;
2276  *)
2277    # OSF1 and SCO ODT 3.0 have their own names for install.
2278    # Don't use installbsd from OSF since it installs stuff as root
2279    # by default.
2280    for ac_prog in ginstall scoinst install; do
2281      for ac_exec_ext in '' $ac_executable_extensions; do
2282	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283	  if test $ac_prog = install &&
2284	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285	    # AIX install.  It has an incompatible calling convention.
2286	    :
2287	  elif test $ac_prog = install &&
2288	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289	    # program-specific install script used by HP pwplus--don't use.
2290	    :
2291	  else
2292	    rm -rf conftest.one conftest.two conftest.dir
2293	    echo one > conftest.one
2294	    echo two > conftest.two
2295	    mkdir conftest.dir
2296	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297	      test -s conftest.one && test -s conftest.two &&
2298	      test -s conftest.dir/conftest.one &&
2299	      test -s conftest.dir/conftest.two
2300	    then
2301	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302	      break 3
2303	    fi
2304	  fi
2305	fi
2306      done
2307    done
2308    ;;
2309esac
2310
2311  done
2312IFS=$as_save_IFS
2313
2314rm -rf conftest.one conftest.two conftest.dir
2315
2316fi
2317  if test "${ac_cv_path_install+set}" = set; then
2318    INSTALL=$ac_cv_path_install
2319  else
2320    # As a last resort, use the slow shell script.  Don't cache a
2321    # value for INSTALL within a source directory, because that will
2322    # break other packages using the cache if that directory is
2323    # removed, or if the value is a relative name.
2324    INSTALL=$ac_install_sh
2325  fi
2326fi
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328$as_echo "$INSTALL" >&6; }
2329
2330# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331# It thinks the first close brace ends the variable substitution.
2332test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339$as_echo_n "checking whether build environment is sane... " >&6; }
2340# Just in case
2341sleep 1
2342echo timestamp > conftest.file
2343# Reject unsafe characters in $srcdir or the absolute working directory
2344# name.  Accept space and tab only in the latter.
2345am_lf='
2346'
2347case `pwd` in
2348  *[\\\"\#\$\&\'\`$am_lf]*)
2349    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2350esac
2351case $srcdir in
2352  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2353    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2354esac
2355
2356# Do `set' in a subshell so we don't clobber the current shell's
2357# arguments.  Must try -L first in case configure is actually a
2358# symlink; some systems play weird games with the mod time of symlinks
2359# (eg FreeBSD returns the mod time of the symlink's containing
2360# directory).
2361if (
2362   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363   if test "$*" = "X"; then
2364      # -L didn't work.
2365      set X `ls -t "$srcdir/configure" conftest.file`
2366   fi
2367   rm -f conftest.file
2368   if test "$*" != "X $srcdir/configure conftest.file" \
2369      && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371      # If neither matched, then we have a broken ls.  This can happen
2372      # if, for instance, CONFIG_SHELL is bash and it inherits a
2373      # broken ls alias from the environment.  This has actually
2374      # happened.  Such a system could not be considered "sane".
2375      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2376alias in your environment" "$LINENO" 5
2377   fi
2378
2379   test "$2" = conftest.file
2380   )
2381then
2382   # Ok.
2383   :
2384else
2385   as_fn_error $? "newly created file is older than distributed files!
2386Check your system clock" "$LINENO" 5
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389$as_echo "yes" >&6; }
2390test "$program_prefix" != NONE &&
2391  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2392# Use a double $ so make ignores it.
2393test "$program_suffix" != NONE &&
2394  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2395# Double any \ or $.
2396# By default was `s,x,x', remove it if useless.
2397ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2398program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2399
2400# expand $ac_aux_dir to an absolute path
2401am_aux_dir=`cd $ac_aux_dir && pwd`
2402
2403if test x"${MISSING+set}" != xset; then
2404  case $am_aux_dir in
2405  *\ * | *\	*)
2406    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2407  *)
2408    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2409  esac
2410fi
2411# Use eval to expand $SHELL
2412if eval "$MISSING --run true"; then
2413  am_missing_run="$MISSING --run "
2414else
2415  am_missing_run=
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2417$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418fi
2419
2420if test x"${install_sh}" != xset; then
2421  case $am_aux_dir in
2422  *\ * | *\	*)
2423    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2424  *)
2425    install_sh="\${SHELL} $am_aux_dir/install-sh"
2426  esac
2427fi
2428
2429# Installed binaries are usually stripped using `strip' when the user
2430# run `make install-strip'.  However `strip' might not be the right
2431# tool to use in cross-compilation environments, therefore Automake
2432# will honor the `STRIP' environment variable to overrule this program.
2433if test "$cross_compiling" != no; then
2434  if test -n "$ac_tool_prefix"; then
2435  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436set dummy ${ac_tool_prefix}strip; ac_word=$2
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438$as_echo_n "checking for $ac_word... " >&6; }
2439if ${ac_cv_prog_STRIP+:} false; then :
2440  $as_echo_n "(cached) " >&6
2441else
2442  if test -n "$STRIP"; then
2443  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448  IFS=$as_save_IFS
2449  test -z "$as_dir" && as_dir=.
2450    for ac_exec_ext in '' $ac_executable_extensions; do
2451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454    break 2
2455  fi
2456done
2457  done
2458IFS=$as_save_IFS
2459
2460fi
2461fi
2462STRIP=$ac_cv_prog_STRIP
2463if test -n "$STRIP"; then
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2465$as_echo "$STRIP" >&6; }
2466else
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468$as_echo "no" >&6; }
2469fi
2470
2471
2472fi
2473if test -z "$ac_cv_prog_STRIP"; then
2474  ac_ct_STRIP=$STRIP
2475  # Extract the first word of "strip", so it can be a program name with args.
2476set dummy strip; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test -n "$ac_ct_STRIP"; then
2483  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_exec_ext in '' $ac_executable_extensions; do
2491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492    ac_cv_prog_ac_ct_STRIP="strip"
2493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497  done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503if test -n "$ac_ct_STRIP"; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2505$as_echo "$ac_ct_STRIP" >&6; }
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511  if test "x$ac_ct_STRIP" = x; then
2512    STRIP=":"
2513  else
2514    case $cross_compiling:$ac_tool_warned in
2515yes:)
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2518ac_tool_warned=yes ;;
2519esac
2520    STRIP=$ac_ct_STRIP
2521  fi
2522else
2523  STRIP="$ac_cv_prog_STRIP"
2524fi
2525
2526fi
2527INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2530$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2531if test -z "$MKDIR_P"; then
2532  if ${ac_cv_path_mkdir+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540    for ac_prog in mkdir gmkdir; do
2541	 for ac_exec_ext in '' $ac_executable_extensions; do
2542	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2543	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2544	     'mkdir (GNU coreutils) '* | \
2545	     'mkdir (coreutils) '* | \
2546	     'mkdir (fileutils) '4.1*)
2547	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2548	       break 3;;
2549	   esac
2550	 done
2551       done
2552  done
2553IFS=$as_save_IFS
2554
2555fi
2556
2557  test -d ./--version && rmdir ./--version
2558  if test "${ac_cv_path_mkdir+set}" = set; then
2559    MKDIR_P="$ac_cv_path_mkdir -p"
2560  else
2561    # As a last resort, use the slow shell script.  Don't cache a
2562    # value for MKDIR_P within a source directory, because that will
2563    # break other packages using the cache if that directory is
2564    # removed, or if the value is a relative name.
2565    MKDIR_P="$ac_install_sh -d"
2566  fi
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2569$as_echo "$MKDIR_P" >&6; }
2570
2571mkdir_p="$MKDIR_P"
2572case $mkdir_p in
2573  [\\/$]* | ?:[\\/]*) ;;
2574  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2575esac
2576
2577for ac_prog in gawk mawk nawk awk
2578do
2579  # Extract the first word of "$ac_prog", so it can be a program name with args.
2580set dummy $ac_prog; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if ${ac_cv_prog_AWK+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$AWK"; then
2587  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_exec_ext in '' $ac_executable_extensions; do
2595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596    ac_cv_prog_AWK="$ac_prog"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606AWK=$ac_cv_prog_AWK
2607if test -n "$AWK"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609$as_echo "$AWK" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615
2616  test -n "$AWK" && break
2617done
2618
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2621set x ${MAKE-make}
2622ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2623if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  cat >conftest.make <<\_ACEOF
2627SHELL = /bin/sh
2628all:
2629	@echo '@@@%%%=$(MAKE)=@@@%%%'
2630_ACEOF
2631# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2632case `${MAKE-make} -f conftest.make 2>/dev/null` in
2633  *@@@%%%=?*=@@@%%%*)
2634    eval ac_cv_prog_make_${ac_make}_set=yes;;
2635  *)
2636    eval ac_cv_prog_make_${ac_make}_set=no;;
2637esac
2638rm -f conftest.make
2639fi
2640if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642$as_echo "yes" >&6; }
2643  SET_MAKE=
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647  SET_MAKE="MAKE=${MAKE-make}"
2648fi
2649
2650rm -rf .tst 2>/dev/null
2651mkdir .tst 2>/dev/null
2652if test -d .tst; then
2653  am__leading_dot=.
2654else
2655  am__leading_dot=_
2656fi
2657rmdir .tst 2>/dev/null
2658
2659if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661  # is not polluted with repeated "-I."
2662  am__isrc=' -I$(srcdir)'
2663  # test to see if srcdir already configured
2664  if test -f $srcdir/config.status; then
2665    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2666  fi
2667fi
2668
2669# test whether we have cygpath
2670if test -z "$CYGPATH_W"; then
2671  if (cygpath --version) >/dev/null 2>/dev/null; then
2672    CYGPATH_W='cygpath -w'
2673  else
2674    CYGPATH_W=echo
2675  fi
2676fi
2677
2678
2679# Define the identity of the package.
2680 PACKAGE='openpam'
2681 VERSION='20111218'
2682
2683
2684cat >>confdefs.h <<_ACEOF
2685#define PACKAGE "$PACKAGE"
2686_ACEOF
2687
2688
2689cat >>confdefs.h <<_ACEOF
2690#define VERSION "$VERSION"
2691_ACEOF
2692
2693# Some tools Automake needs.
2694
2695ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2696
2697
2698AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2699
2700
2701AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2702
2703
2704AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2705
2706
2707MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
2709# We need awk for the "check" target.  The system "awk" is bad on
2710# some platforms.
2711# Always define AMTAR for backward compatibility.
2712
2713AMTAR=${AMTAR-"${am_missing_run}tar"}
2714
2715am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716
2717
2718
2719
2720
2721ac_config_headers="$ac_config_headers config.h"
2722
2723
2724# C compiler and features
2725ac_ext=c
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736if test -n "$ac_tool_prefix"; then
2737  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if ${ac_cv_prog_CC+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test -n "$CC"; then
2745  ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752    for ac_exec_ext in '' $ac_executable_extensions; do
2753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756    break 2
2757  fi
2758done
2759  done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767$as_echo "$CC" >&6; }
2768else
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774fi
2775if test -z "$ac_cv_prog_CC"; then
2776  ac_ct_CC=$CC
2777  # Extract the first word of "gcc", so it can be a program name with args.
2778set dummy gcc; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$ac_ct_CC"; then
2785  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    ac_cv_prog_ac_ct_CC="gcc"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805if test -n "$ac_ct_CC"; then
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807$as_echo "$ac_ct_CC" >&6; }
2808else
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813  if test "x$ac_ct_CC" = x; then
2814    CC=""
2815  else
2816    case $cross_compiling:$ac_tool_warned in
2817yes:)
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820ac_tool_warned=yes ;;
2821esac
2822    CC=$ac_ct_CC
2823  fi
2824else
2825  CC="$ac_cv_prog_CC"
2826fi
2827
2828if test -z "$CC"; then
2829          if test -n "$ac_tool_prefix"; then
2830    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831set dummy ${ac_tool_prefix}cc; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_CC+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    ac_cv_prog_CC="${ac_tool_prefix}cc"
2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867  fi
2868fi
2869if test -z "$CC"; then
2870  # Extract the first word of "cc", so it can be a program name with args.
2871set dummy cc; ac_word=$2
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873$as_echo_n "checking for $ac_word... " >&6; }
2874if ${ac_cv_prog_CC+:} false; then :
2875  $as_echo_n "(cached) " >&6
2876else
2877  if test -n "$CC"; then
2878  ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880  ac_prog_rejected=no
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889       ac_prog_rejected=yes
2890       continue
2891     fi
2892    ac_cv_prog_CC="cc"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900if test $ac_prog_rejected = yes; then
2901  # We found a bogon in the path, so make sure we never use it.
2902  set dummy $ac_cv_prog_CC
2903  shift
2904  if test $# != 0; then
2905    # We chose a different compiler from the bogus one.
2906    # However, it has the same basename, so the bogon will be chosen
2907    # first if we set CC to just the basename; use the full file name.
2908    shift
2909    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2910  fi
2911fi
2912fi
2913fi
2914CC=$ac_cv_prog_CC
2915if test -n "$CC"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917$as_echo "$CC" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924fi
2925if test -z "$CC"; then
2926  if test -n "$ac_tool_prefix"; then
2927  for ac_prog in cl.exe
2928  do
2929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$CC"; then
2937  ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956CC=$ac_cv_prog_CC
2957if test -n "$CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959$as_echo "$CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966    test -n "$CC" && break
2967  done
2968fi
2969if test -z "$CC"; then
2970  ac_ct_CC=$CC
2971  for ac_prog in cl.exe
2972do
2973  # Extract the first word of "$ac_prog", so it can be a program name with args.
2974set dummy $ac_prog; ac_word=$2
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976$as_echo_n "checking for $ac_word... " >&6; }
2977if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  if test -n "$ac_ct_CC"; then
2981  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986  IFS=$as_save_IFS
2987  test -z "$as_dir" && as_dir=.
2988    for ac_exec_ext in '' $ac_executable_extensions; do
2989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990    ac_cv_prog_ac_ct_CC="$ac_prog"
2991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992    break 2
2993  fi
2994done
2995  done
2996IFS=$as_save_IFS
2997
2998fi
2999fi
3000ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001if test -n "$ac_ct_CC"; then
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003$as_echo "$ac_ct_CC" >&6; }
3004else
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007fi
3008
3009
3010  test -n "$ac_ct_CC" && break
3011done
3012
3013  if test "x$ac_ct_CC" = x; then
3014    CC=""
3015  else
3016    case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022    CC=$ac_ct_CC
3023  fi
3024fi
3025
3026fi
3027
3028
3029test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error $? "no acceptable C compiler found in \$PATH
3032See \`config.log' for more details" "$LINENO" 5; }
3033
3034# Provide some information about the compiler.
3035$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3036set X $ac_compile
3037ac_compiler=$2
3038for ac_option in --version -v -V -qversion; do
3039  { { ac_try="$ac_compiler $ac_option >&5"
3040case "(($ac_try" in
3041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042  *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047  ac_status=$?
3048  if test -s conftest.err; then
3049    sed '10a\
3050... rest of stderr output deleted ...
3051         10q' conftest.err >conftest.er1
3052    cat conftest.er1 >&5
3053  fi
3054  rm -f conftest.er1 conftest.err
3055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056  test $ac_status = 0; }
3057done
3058
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070ac_clean_files_save=$ac_clean_files
3071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072# Try to create an executable without -o first, disregard a.out.
3073# It will help us diagnose broken compilers, and finding out an intuition
3074# of exeext.
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076$as_echo_n "checking whether the C compiler works... " >&6; }
3077ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079# The possible output files:
3080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082ac_rmfiles=
3083for ac_file in $ac_files
3084do
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088  esac
3089done
3090rm -f $ac_rmfiles
3091
3092if { { ac_try="$ac_link_default"
3093case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098$as_echo "$ac_try_echo"; } >&5
3099  (eval "$ac_link_default") 2>&5
3100  ac_status=$?
3101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102  test $ac_status = 0; }; then :
3103  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3106# so that the user can short-circuit this test for compilers unknown to
3107# Autoconf.
3108for ac_file in $ac_files ''
3109do
3110  test -f "$ac_file" || continue
3111  case $ac_file in
3112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113	;;
3114    [ab].out )
3115	# We found the default executable, but exeext='' is most
3116	# certainly right.
3117	break;;
3118    *.* )
3119	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120	then :; else
3121	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122	fi
3123	# We set ac_cv_exeext here because the later test for it is not
3124	# safe: cross compilers may not add the suffix if given an `-o'
3125	# argument, so we may need to know it at that point already.
3126	# Even if this section looks crufty: it has the advantage of
3127	# actually working.
3128	break;;
3129    * )
3130	break;;
3131  esac
3132done
3133test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135else
3136  ac_file=''
3137fi
3138if test -z "$ac_file"; then :
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141$as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error 77 "C compiler cannot create executables
3147See \`config.log' for more details" "$LINENO" 5; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150$as_echo "yes" >&6; }
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153$as_echo_n "checking for C compiler default output file name... " >&6; }
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156ac_exeext=$ac_cv_exeext
3157
3158rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159ac_clean_files=$ac_clean_files_save
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161$as_echo_n "checking for suffix of executables... " >&6; }
3162if { { ac_try="$ac_link"
3163case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168$as_echo "$ac_try_echo"; } >&5
3169  (eval "$ac_link") 2>&5
3170  ac_status=$?
3171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172  test $ac_status = 0; }; then :
3173  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3175# work properly (i.e., refer to `conftest.exe'), while it won't with
3176# `rm'.
3177for ac_file in conftest.exe conftest conftest.*; do
3178  test -f "$ac_file" || continue
3179  case $ac_file in
3180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182	  break;;
3183    * ) break;;
3184  esac
3185done
3186else
3187  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190See \`config.log' for more details" "$LINENO" 5; }
3191fi
3192rm -f conftest conftest$ac_cv_exeext
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194$as_echo "$ac_cv_exeext" >&6; }
3195
3196rm -f conftest.$ac_ext
3197EXEEXT=$ac_cv_exeext
3198ac_exeext=$EXEEXT
3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h.  */
3201#include <stdio.h>
3202int
3203main ()
3204{
3205FILE *f = fopen ("conftest.out", "w");
3206 return ferror (f) || fclose (f) != 0;
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212ac_clean_files="$ac_clean_files conftest.out"
3213# Check that the compiler produces executables we can run.  If not, either
3214# the compiler is broken, or we cross compile.
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216$as_echo_n "checking whether we are cross compiling... " >&6; }
3217if test "$cross_compiling" != yes; then
3218  { { ac_try="$ac_link"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_link") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }
3229  if { ac_try='./conftest$ac_cv_exeext'
3230  { { case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_try") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; }; then
3240    cross_compiling=no
3241  else
3242    if test "$cross_compiling" = maybe; then
3243	cross_compiling=yes
3244    else
3245	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "cannot run C compiled programs.
3248If you meant to cross compile, use \`--host'.
3249See \`config.log' for more details" "$LINENO" 5; }
3250    fi
3251  fi
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254$as_echo "$cross_compiling" >&6; }
3255
3256rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257ac_clean_files=$ac_clean_files_save
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259$as_echo_n "checking for suffix of object files... " >&6; }
3260if ${ac_cv_objext+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274rm -f conftest.o conftest.obj
3275if { { ac_try="$ac_compile"
3276case "(($ac_try" in
3277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278  *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282  (eval "$ac_compile") 2>&5
3283  ac_status=$?
3284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285  test $ac_status = 0; }; then :
3286  for ac_file in conftest.o conftest.obj conftest.*; do
3287  test -f "$ac_file" || continue;
3288  case $ac_file in
3289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291       break;;
3292  esac
3293done
3294else
3295  $as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error $? "cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details" "$LINENO" 5; }
3302fi
3303rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306$as_echo "$ac_cv_objext" >&6; }
3307OBJEXT=$ac_cv_objext
3308ac_objext=$OBJEXT
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311if ${ac_cv_c_compiler_gnu+:} false; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h.  */
3316
3317int
3318main ()
3319{
3320#ifndef __GNUC__
3321       choke me
3322#endif
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329  ac_compiler_gnu=yes
3330else
3331  ac_compiler_gnu=no
3332fi
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339if test $ac_compiler_gnu = yes; then
3340  GCC=yes
3341else
3342  GCC=
3343fi
3344ac_test_CFLAGS=${CFLAGS+set}
3345ac_save_CFLAGS=$CFLAGS
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347$as_echo_n "checking whether $CC accepts -g... " >&6; }
3348if ${ac_cv_prog_cc_g+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  ac_save_c_werror_flag=$ac_c_werror_flag
3352   ac_c_werror_flag=yes
3353   ac_cv_prog_cc_g=no
3354   CFLAGS="-g"
3355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357
3358int
3359main ()
3360{
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366if ac_fn_c_try_compile "$LINENO"; then :
3367  ac_cv_prog_cc_g=yes
3368else
3369  CFLAGS=""
3370      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381if ac_fn_c_try_compile "$LINENO"; then :
3382
3383else
3384  ac_c_werror_flag=$ac_save_c_werror_flag
3385	 CFLAGS="-g"
3386	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398  ac_cv_prog_cc_g=yes
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405   ac_c_werror_flag=$ac_save_c_werror_flag
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408$as_echo "$ac_cv_prog_cc_g" >&6; }
3409if test "$ac_test_CFLAGS" = set; then
3410  CFLAGS=$ac_save_CFLAGS
3411elif test $ac_cv_prog_cc_g = yes; then
3412  if test "$GCC" = yes; then
3413    CFLAGS="-g -O2"
3414  else
3415    CFLAGS="-g"
3416  fi
3417else
3418  if test "$GCC" = yes; then
3419    CFLAGS="-O2"
3420  else
3421    CFLAGS=
3422  fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426if ${ac_cv_prog_cc_c89+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  ac_cv_prog_cc_c89=no
3430ac_save_CC=$CC
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#include <stdarg.h>
3434#include <stdio.h>
3435#include <sys/types.h>
3436#include <sys/stat.h>
3437/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3438struct buf { int x; };
3439FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440static char *e (p, i)
3441     char **p;
3442     int i;
3443{
3444  return p[i];
3445}
3446static char *f (char * (*g) (char **, int), char **p, ...)
3447{
3448  char *s;
3449  va_list v;
3450  va_start (v,p);
3451  s = g (p, va_arg (v,int));
3452  va_end (v);
3453  return s;
3454}
3455
3456/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3457   function prototypes and stuff, but not '\xHH' hex character constants.
3458   These don't provoke an error unfortunately, instead are silently treated
3459   as 'x'.  The following induces an error, until -std is added to get
3460   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3461   array size at least.  It's necessary to write '\x00'==0 to get something
3462   that's true only with -std.  */
3463int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3464
3465/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466   inside strings and character constants.  */
3467#define FOO(x) 'x'
3468int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3469
3470int test (int i, double x);
3471struct s1 {int (*f) (int a);};
3472struct s2 {int (*f) (double a);};
3473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474int argc;
3475char **argv;
3476int
3477main ()
3478{
3479return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3486do
3487  CC="$ac_save_CC $ac_arg"
3488  if ac_fn_c_try_compile "$LINENO"; then :
3489  ac_cv_prog_cc_c89=$ac_arg
3490fi
3491rm -f core conftest.err conftest.$ac_objext
3492  test "x$ac_cv_prog_cc_c89" != "xno" && break
3493done
3494rm -f conftest.$ac_ext
3495CC=$ac_save_CC
3496
3497fi
3498# AC_CACHE_VAL
3499case "x$ac_cv_prog_cc_c89" in
3500  x)
3501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3502$as_echo "none needed" >&6; } ;;
3503  xno)
3504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3505$as_echo "unsupported" >&6; } ;;
3506  *)
3507    CC="$CC $ac_cv_prog_cc_c89"
3508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3509$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3510esac
3511if test "x$ac_cv_prog_cc_c89" != xno; then :
3512
3513fi
3514
3515ac_ext=c
3516ac_cpp='$CPP $CPPFLAGS'
3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520DEPDIR="${am__leading_dot}deps"
3521
3522ac_config_commands="$ac_config_commands depfiles"
3523
3524
3525am_make=${MAKE-make}
3526cat > confinc << 'END'
3527am__doit:
3528	@echo this is the am__doit target
3529.PHONY: am__doit
3530END
3531# If we don't find an include directive, just comment out the code.
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3533$as_echo_n "checking for style of include used by $am_make... " >&6; }
3534am__include="#"
3535am__quote=
3536_am_result=none
3537# First try GNU make style include.
3538echo "include confinc" > confmf
3539# Ignore all kinds of additional output from `make'.
3540case `$am_make -s -f confmf 2> /dev/null` in #(
3541*the\ am__doit\ target*)
3542  am__include=include
3543  am__quote=
3544  _am_result=GNU
3545  ;;
3546esac
3547# Now try BSD make style include.
3548if test "$am__include" = "#"; then
3549   echo '.include "confinc"' > confmf
3550   case `$am_make -s -f confmf 2> /dev/null` in #(
3551   *the\ am__doit\ target*)
3552     am__include=.include
3553     am__quote="\""
3554     _am_result=BSD
3555     ;;
3556   esac
3557fi
3558
3559
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3561$as_echo "$_am_result" >&6; }
3562rm -f confinc confmf
3563
3564# Check whether --enable-dependency-tracking was given.
3565if test "${enable_dependency_tracking+set}" = set; then :
3566  enableval=$enable_dependency_tracking;
3567fi
3568
3569if test "x$enable_dependency_tracking" != xno; then
3570  am_depcomp="$ac_aux_dir/depcomp"
3571  AMDEPBACKSLASH='\'
3572fi
3573 if test "x$enable_dependency_tracking" != xno; then
3574  AMDEP_TRUE=
3575  AMDEP_FALSE='#'
3576else
3577  AMDEP_TRUE='#'
3578  AMDEP_FALSE=
3579fi
3580
3581
3582
3583depcc="$CC"   am_compiler_list=
3584
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3586$as_echo_n "checking dependency style of $depcc... " >&6; }
3587if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3591  # We make a subdir and do the tests there.  Otherwise we can end up
3592  # making bogus files that we don't know about and never remove.  For
3593  # instance it was reported that on HP-UX the gcc test will end up
3594  # making a dummy file named `D' -- because `-MD' means `put the output
3595  # in D'.
3596  mkdir conftest.dir
3597  # Copy depcomp to subdir because otherwise we won't find it if we're
3598  # using a relative directory.
3599  cp "$am_depcomp" conftest.dir
3600  cd conftest.dir
3601  # We will build objects and dependencies in a subdirectory because
3602  # it helps to detect inapplicable dependency modes.  For instance
3603  # both Tru64's cc and ICC support -MD to output dependencies as a
3604  # side effect of compilation, but ICC will put the dependencies in
3605  # the current directory while Tru64 will put them in the object
3606  # directory.
3607  mkdir sub
3608
3609  am_cv_CC_dependencies_compiler_type=none
3610  if test "$am_compiler_list" = ""; then
3611     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3612  fi
3613  am__universal=false
3614  case " $depcc " in #(
3615     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3616     esac
3617
3618  for depmode in $am_compiler_list; do
3619    # Setup a source with many dependencies, because some compilers
3620    # like to wrap large dependency lists on column 80 (with \), and
3621    # we should not choose a depcomp mode which is confused by this.
3622    #
3623    # We need to recreate these files for each test, as the compiler may
3624    # overwrite some of them when testing with obscure command lines.
3625    # This happens at least with the AIX C compiler.
3626    : > sub/conftest.c
3627    for i in 1 2 3 4 5 6; do
3628      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630      # Solaris 8's {/usr,}/bin/sh.
3631      touch sub/conftst$i.h
3632    done
3633    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3634
3635    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3636    # mode.  It turns out that the SunPro C++ compiler does not properly
3637    # handle `-M -o', and we need to detect this.  Also, some Intel
3638    # versions had trouble with output in subdirs
3639    am__obj=sub/conftest.${OBJEXT-o}
3640    am__minus_obj="-o $am__obj"
3641    case $depmode in
3642    gcc)
3643      # This depmode causes a compiler race in universal mode.
3644      test "$am__universal" = false || continue
3645      ;;
3646    nosideeffect)
3647      # after this tag, mechanisms are not by side-effect, so they'll
3648      # only be used when explicitly requested
3649      if test "x$enable_dependency_tracking" = xyes; then
3650	continue
3651      else
3652	break
3653      fi
3654      ;;
3655    msvisualcpp | msvcmsys)
3656      # This compiler won't grok `-c -o', but also, the minuso test has
3657      # not run yet.  These depmodes are late enough in the game, and
3658      # so weak that their functioning should not be impacted.
3659      am__obj=conftest.${OBJEXT-o}
3660      am__minus_obj=
3661      ;;
3662    none) break ;;
3663    esac
3664    if depmode=$depmode \
3665       source=sub/conftest.c object=$am__obj \
3666       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3668         >/dev/null 2>conftest.err &&
3669       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3670       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3672       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673      # icc doesn't choke on unknown options, it will just issue warnings
3674      # or remarks (even with -Werror).  So we grep stderr for any message
3675      # that says an option was ignored or not supported.
3676      # When given -MP, icc 7.0 and 7.1 complain thusly:
3677      #   icc: Command line warning: ignoring option '-M'; no argument required
3678      # The diagnosis changed in icc 8.0:
3679      #   icc: Command line remark: option '-MP' not supported
3680      if (grep 'ignoring option' conftest.err ||
3681          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682        am_cv_CC_dependencies_compiler_type=$depmode
3683        break
3684      fi
3685    fi
3686  done
3687
3688  cd ..
3689  rm -rf conftest.dir
3690else
3691  am_cv_CC_dependencies_compiler_type=none
3692fi
3693
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3696$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3698
3699 if
3700  test "x$enable_dependency_tracking" != xno \
3701  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3702  am__fastdepCC_TRUE=
3703  am__fastdepCC_FALSE='#'
3704else
3705  am__fastdepCC_TRUE='#'
3706  am__fastdepCC_FALSE=
3707fi
3708
3709
3710   case $ac_cv_prog_cc_stdc in #(
3711  no) :
3712    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3713  *) :
3714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3715$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3716if ${ac_cv_prog_cc_c99+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  ac_cv_prog_cc_c99=no
3720ac_save_CC=$CC
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723#include <stdarg.h>
3724#include <stdbool.h>
3725#include <stdlib.h>
3726#include <wchar.h>
3727#include <stdio.h>
3728
3729// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3730#define debug(...) fprintf (stderr, __VA_ARGS__)
3731#define showlist(...) puts (#__VA_ARGS__)
3732#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3733static void
3734test_varargs_macros (void)
3735{
3736  int x = 1234;
3737  int y = 5678;
3738  debug ("Flag");
3739  debug ("X = %d\n", x);
3740  showlist (The first, second, and third items.);
3741  report (x>y, "x is %d but y is %d", x, y);
3742}
3743
3744// Check long long types.
3745#define BIG64 18446744073709551615ull
3746#define BIG32 4294967295ul
3747#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3748#if !BIG_OK
3749  your preprocessor is broken;
3750#endif
3751#if BIG_OK
3752#else
3753  your preprocessor is broken;
3754#endif
3755static long long int bignum = -9223372036854775807LL;
3756static unsigned long long int ubignum = BIG64;
3757
3758struct incomplete_array
3759{
3760  int datasize;
3761  double data[];
3762};
3763
3764struct named_init {
3765  int number;
3766  const wchar_t *name;
3767  double average;
3768};
3769
3770typedef const char *ccp;
3771
3772static inline int
3773test_restrict (ccp restrict text)
3774{
3775  // See if C++-style comments work.
3776  // Iterate through items via the restricted pointer.
3777  // Also check for declarations in for loops.
3778  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3779    continue;
3780  return 0;
3781}
3782
3783// Check varargs and va_copy.
3784static void
3785test_varargs (const char *format, ...)
3786{
3787  va_list args;
3788  va_start (args, format);
3789  va_list args_copy;
3790  va_copy (args_copy, args);
3791
3792  const char *str;
3793  int number;
3794  float fnumber;
3795
3796  while (*format)
3797    {
3798      switch (*format++)
3799	{
3800	case 's': // string
3801	  str = va_arg (args_copy, const char *);
3802	  break;
3803	case 'd': // int
3804	  number = va_arg (args_copy, int);
3805	  break;
3806	case 'f': // float
3807	  fnumber = va_arg (args_copy, double);
3808	  break;
3809	default:
3810	  break;
3811	}
3812    }
3813  va_end (args_copy);
3814  va_end (args);
3815}
3816
3817int
3818main ()
3819{
3820
3821  // Check bool.
3822  _Bool success = false;
3823
3824  // Check restrict.
3825  if (test_restrict ("String literal") == 0)
3826    success = true;
3827  char *restrict newvar = "Another string";
3828
3829  // Check varargs.
3830  test_varargs ("s, d' f .", "string", 65, 34.234);
3831  test_varargs_macros ();
3832
3833  // Check flexible array members.
3834  struct incomplete_array *ia =
3835    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3836  ia->datasize = 10;
3837  for (int i = 0; i < ia->datasize; ++i)
3838    ia->data[i] = i * 1.234;
3839
3840  // Check named initializers.
3841  struct named_init ni = {
3842    .number = 34,
3843    .name = L"Test wide string",
3844    .average = 543.34343,
3845  };
3846
3847  ni.number = 58;
3848
3849  int dynamic_array[ni.number];
3850  dynamic_array[ni.number - 1] = 543;
3851
3852  // work around unused variable warnings
3853  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3854	  || dynamic_array[ni.number - 1] != 543);
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3861do
3862  CC="$ac_save_CC $ac_arg"
3863  if ac_fn_c_try_compile "$LINENO"; then :
3864  ac_cv_prog_cc_c99=$ac_arg
3865fi
3866rm -f core conftest.err conftest.$ac_objext
3867  test "x$ac_cv_prog_cc_c99" != "xno" && break
3868done
3869rm -f conftest.$ac_ext
3870CC=$ac_save_CC
3871
3872fi
3873# AC_CACHE_VAL
3874case "x$ac_cv_prog_cc_c99" in
3875  x)
3876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3877$as_echo "none needed" >&6; } ;;
3878  xno)
3879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3880$as_echo "unsupported" >&6; } ;;
3881  *)
3882    CC="$CC $ac_cv_prog_cc_c99"
3883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3884$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3885esac
3886if test "x$ac_cv_prog_cc_c99" != xno; then :
3887  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891if ${ac_cv_prog_cc_c89+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  ac_cv_prog_cc_c89=no
3895ac_save_CC=$CC
3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898#include <stdarg.h>
3899#include <stdio.h>
3900#include <sys/types.h>
3901#include <sys/stat.h>
3902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3903struct buf { int x; };
3904FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905static char *e (p, i)
3906     char **p;
3907     int i;
3908{
3909  return p[i];
3910}
3911static char *f (char * (*g) (char **, int), char **p, ...)
3912{
3913  char *s;
3914  va_list v;
3915  va_start (v,p);
3916  s = g (p, va_arg (v,int));
3917  va_end (v);
3918  return s;
3919}
3920
3921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3922   function prototypes and stuff, but not '\xHH' hex character constants.
3923   These don't provoke an error unfortunately, instead are silently treated
3924   as 'x'.  The following induces an error, until -std is added to get
3925   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3926   array size at least.  It's necessary to write '\x00'==0 to get something
3927   that's true only with -std.  */
3928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931   inside strings and character constants.  */
3932#define FOO(x) 'x'
3933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935int test (int i, double x);
3936struct s1 {int (*f) (int a);};
3937struct s2 {int (*f) (double a);};
3938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939int argc;
3940char **argv;
3941int
3942main ()
3943{
3944return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951do
3952  CC="$ac_save_CC $ac_arg"
3953  if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_prog_cc_c89=$ac_arg
3955fi
3956rm -f core conftest.err conftest.$ac_objext
3957  test "x$ac_cv_prog_cc_c89" != "xno" && break
3958done
3959rm -f conftest.$ac_ext
3960CC=$ac_save_CC
3961
3962fi
3963# AC_CACHE_VAL
3964case "x$ac_cv_prog_cc_c89" in
3965  x)
3966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967$as_echo "none needed" >&6; } ;;
3968  xno)
3969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970$as_echo "unsupported" >&6; } ;;
3971  *)
3972    CC="$CC $ac_cv_prog_cc_c89"
3973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975esac
3976if test "x$ac_cv_prog_cc_c89" != xno; then :
3977  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3978else
3979  ac_cv_prog_cc_stdc=no
3980fi
3981
3982fi
3983 ;;
3984esac
3985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3986$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3987  if ${ac_cv_prog_cc_stdc+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989fi
3990
3991  case $ac_cv_prog_cc_stdc in #(
3992  no) :
3993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994$as_echo "unsupported" >&6; } ;; #(
3995  '') :
3996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997$as_echo "none needed" >&6; } ;; #(
3998  *) :
3999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4000$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4001esac
4002
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009$as_echo_n "checking how to run the C preprocessor... " >&6; }
4010# On Suns, sometimes $CPP names a directory.
4011if test -n "$CPP" && test -d "$CPP"; then
4012  CPP=
4013fi
4014if test -z "$CPP"; then
4015  if ${ac_cv_prog_CPP+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018      # Double quotes because CPP needs to be expanded
4019    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020    do
4021      ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024  # Use a header file that comes with gcc, so configuring glibc
4025  # with a fresh cross-compiler works.
4026  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027  # <limits.h> exists even on freestanding compilers.
4028  # On the NeXT, cc -E runs the code through the compiler's parser,
4029  # not just through cpp. "Syntax error" is here to catch this case.
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037		     Syntax error
4038_ACEOF
4039if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041else
4042  # Broken: fails on valid input.
4043continue
4044fi
4045rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047  # OK, works on sane cases.  Now check whether nonexistent headers
4048  # can be detected and how.
4049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h.  */
4051#include <ac_nonexistent.h>
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054  # Broken: success on invalid input.
4055continue
4056else
4057  # Passes both tests.
4058ac_preproc_ok=:
4059break
4060fi
4061rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063done
4064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065rm -f conftest.i conftest.err conftest.$ac_ext
4066if $ac_preproc_ok; then :
4067  break
4068fi
4069
4070    done
4071    ac_cv_prog_CPP=$CPP
4072
4073fi
4074  CPP=$ac_cv_prog_CPP
4075else
4076  ac_cv_prog_CPP=$CPP
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079$as_echo "$CPP" >&6; }
4080ac_preproc_ok=false
4081for ac_c_preproc_warn_flag in '' yes
4082do
4083  # Use a header file that comes with gcc, so configuring glibc
4084  # with a fresh cross-compiler works.
4085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086  # <limits.h> exists even on freestanding compilers.
4087  # On the NeXT, cc -E runs the code through the compiler's parser,
4088  # not just through cpp. "Syntax error" is here to catch this case.
4089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h.  */
4091#ifdef __STDC__
4092# include <limits.h>
4093#else
4094# include <assert.h>
4095#endif
4096		     Syntax error
4097_ACEOF
4098if ac_fn_c_try_cpp "$LINENO"; then :
4099
4100else
4101  # Broken: fails on valid input.
4102continue
4103fi
4104rm -f conftest.err conftest.i conftest.$ac_ext
4105
4106  # OK, works on sane cases.  Now check whether nonexistent headers
4107  # can be detected and how.
4108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <ac_nonexistent.h>
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113  # Broken: success on invalid input.
4114continue
4115else
4116  # Passes both tests.
4117ac_preproc_ok=:
4118break
4119fi
4120rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122done
4123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124rm -f conftest.i conftest.err conftest.$ac_ext
4125if $ac_preproc_ok; then :
4126
4127else
4128  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131See \`config.log' for more details" "$LINENO" 5; }
4132fi
4133
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4143$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4144if ${ac_cv_path_GREP+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  if test -z "$GREP"; then
4148  ac_path_GREP_found=false
4149  # Loop through the user's path and test for each of PROGNAME-LIST
4150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152do
4153  IFS=$as_save_IFS
4154  test -z "$as_dir" && as_dir=.
4155    for ac_prog in grep ggrep; do
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4159# Check for GNU ac_path_GREP and select it if it is found.
4160  # Check for GNU $ac_path_GREP
4161case `"$ac_path_GREP" --version 2>&1` in
4162*GNU*)
4163  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4164*)
4165  ac_count=0
4166  $as_echo_n 0123456789 >"conftest.in"
4167  while :
4168  do
4169    cat "conftest.in" "conftest.in" >"conftest.tmp"
4170    mv "conftest.tmp" "conftest.in"
4171    cp "conftest.in" "conftest.nl"
4172    $as_echo 'GREP' >> "conftest.nl"
4173    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175    as_fn_arith $ac_count + 1 && ac_count=$as_val
4176    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177      # Best one so far, save it but keep looking for a better one
4178      ac_cv_path_GREP="$ac_path_GREP"
4179      ac_path_GREP_max=$ac_count
4180    fi
4181    # 10*(2^10) chars as input seems more than enough
4182    test $ac_count -gt 10 && break
4183  done
4184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185esac
4186
4187      $ac_path_GREP_found && break 3
4188    done
4189  done
4190  done
4191IFS=$as_save_IFS
4192  if test -z "$ac_cv_path_GREP"; then
4193    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194  fi
4195else
4196  ac_cv_path_GREP=$GREP
4197fi
4198
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4201$as_echo "$ac_cv_path_GREP" >&6; }
4202 GREP="$ac_cv_path_GREP"
4203
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4206$as_echo_n "checking for egrep... " >&6; }
4207if ${ac_cv_path_EGREP+:} false; then :
4208  $as_echo_n "(cached) " >&6
4209else
4210  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211   then ac_cv_path_EGREP="$GREP -E"
4212   else
4213     if test -z "$EGREP"; then
4214  ac_path_EGREP_found=false
4215  # Loop through the user's path and test for each of PROGNAME-LIST
4216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221    for ac_prog in egrep; do
4222    for ac_exec_ext in '' $ac_executable_extensions; do
4223      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4224      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4225# Check for GNU ac_path_EGREP and select it if it is found.
4226  # Check for GNU $ac_path_EGREP
4227case `"$ac_path_EGREP" --version 2>&1` in
4228*GNU*)
4229  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4230*)
4231  ac_count=0
4232  $as_echo_n 0123456789 >"conftest.in"
4233  while :
4234  do
4235    cat "conftest.in" "conftest.in" >"conftest.tmp"
4236    mv "conftest.tmp" "conftest.in"
4237    cp "conftest.in" "conftest.nl"
4238    $as_echo 'EGREP' >> "conftest.nl"
4239    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241    as_fn_arith $ac_count + 1 && ac_count=$as_val
4242    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4243      # Best one so far, save it but keep looking for a better one
4244      ac_cv_path_EGREP="$ac_path_EGREP"
4245      ac_path_EGREP_max=$ac_count
4246    fi
4247    # 10*(2^10) chars as input seems more than enough
4248    test $ac_count -gt 10 && break
4249  done
4250  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251esac
4252
4253      $ac_path_EGREP_found && break 3
4254    done
4255  done
4256  done
4257IFS=$as_save_IFS
4258  if test -z "$ac_cv_path_EGREP"; then
4259    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260  fi
4261else
4262  ac_cv_path_EGREP=$EGREP
4263fi
4264
4265   fi
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4268$as_echo "$ac_cv_path_EGREP" >&6; }
4269 EGREP="$ac_cv_path_EGREP"
4270
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4273$as_echo_n "checking for ANSI C header files... " >&6; }
4274if ${ac_cv_header_stdc+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <stdlib.h>
4280#include <stdarg.h>
4281#include <string.h>
4282#include <float.h>
4283
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293  ac_cv_header_stdc=yes
4294else
4295  ac_cv_header_stdc=no
4296fi
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299if test $ac_cv_header_stdc = yes; then
4300  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <string.h>
4304
4305_ACEOF
4306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307  $EGREP "memchr" >/dev/null 2>&1; then :
4308
4309else
4310  ac_cv_header_stdc=no
4311fi
4312rm -f conftest*
4313
4314fi
4315
4316if test $ac_cv_header_stdc = yes; then
4317  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320#include <stdlib.h>
4321
4322_ACEOF
4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324  $EGREP "free" >/dev/null 2>&1; then :
4325
4326else
4327  ac_cv_header_stdc=no
4328fi
4329rm -f conftest*
4330
4331fi
4332
4333if test $ac_cv_header_stdc = yes; then
4334  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335  if test "$cross_compiling" = yes; then :
4336  :
4337else
4338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340#include <ctype.h>
4341#include <stdlib.h>
4342#if ((' ' & 0x0FF) == 0x020)
4343# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4345#else
4346# define ISLOWER(c) \
4347		   (('a' <= (c) && (c) <= 'i') \
4348		     || ('j' <= (c) && (c) <= 'r') \
4349		     || ('s' <= (c) && (c) <= 'z'))
4350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4351#endif
4352
4353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4354int
4355main ()
4356{
4357  int i;
4358  for (i = 0; i < 256; i++)
4359    if (XOR (islower (i), ISLOWER (i))
4360	|| toupper (i) != TOUPPER (i))
4361      return 2;
4362  return 0;
4363}
4364_ACEOF
4365if ac_fn_c_try_run "$LINENO"; then :
4366
4367else
4368  ac_cv_header_stdc=no
4369fi
4370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4371  conftest.$ac_objext conftest.beam conftest.$ac_ext
4372fi
4373
4374fi
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4377$as_echo "$ac_cv_header_stdc" >&6; }
4378if test $ac_cv_header_stdc = yes; then
4379
4380$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4381
4382fi
4383
4384# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386		  inttypes.h stdint.h unistd.h
4387do :
4388  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4390"
4391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4392  cat >>confdefs.h <<_ACEOF
4393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394_ACEOF
4395
4396fi
4397
4398done
4399
4400
4401
4402  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4403if test "x$ac_cv_header_minix_config_h" = xyes; then :
4404  MINIX=yes
4405else
4406  MINIX=
4407fi
4408
4409
4410  if test "$MINIX" = yes; then
4411
4412$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4413
4414
4415$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4416
4417
4418$as_echo "#define _MINIX 1" >>confdefs.h
4419
4420  fi
4421
4422
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4424$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4425if ${ac_cv_safe_to_define___extensions__+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h.  */
4430
4431#	  define __EXTENSIONS__ 1
4432	  $ac_includes_default
4433int
4434main ()
4435{
4436
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442  ac_cv_safe_to_define___extensions__=yes
4443else
4444  ac_cv_safe_to_define___extensions__=no
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4449$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4450  test $ac_cv_safe_to_define___extensions__ = yes &&
4451    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4452
4453  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4454
4455  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4456
4457  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4458
4459  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4460
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4464$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4465if ${ac_cv_c_const+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470
4471int
4472main ()
4473{
4474/* FIXME: Include the comments suggested by Paul. */
4475#ifndef __cplusplus
4476  /* Ultrix mips cc rejects this.  */
4477  typedef int charset[2];
4478  const charset cs;
4479  /* SunOS 4.1.1 cc rejects this.  */
4480  char const *const *pcpcc;
4481  char **ppc;
4482  /* NEC SVR4.0.2 mips cc rejects this.  */
4483  struct point {int x, y;};
4484  static struct point const zero = {0,0};
4485  /* AIX XL C 1.02.0.0 rejects this.
4486     It does not let you subtract one const X* pointer from another in
4487     an arm of an if-expression whose if-part is not a constant
4488     expression */
4489  const char *g = "string";
4490  pcpcc = &g + (g ? g-g : 0);
4491  /* HPUX 7.0 cc rejects these. */
4492  ++pcpcc;
4493  ppc = (char**) pcpcc;
4494  pcpcc = (char const *const *) ppc;
4495  { /* SCO 3.2v4 cc rejects this.  */
4496    char *t;
4497    char const *s = 0 ? (char *) 0 : (char const *) 0;
4498
4499    *t++ = 0;
4500    if (s) return 0;
4501  }
4502  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4503    int x[] = {25, 17};
4504    const int *foo = &x[0];
4505    ++foo;
4506  }
4507  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4508    typedef const int *iptr;
4509    iptr p = 0;
4510    ++p;
4511  }
4512  { /* AIX XL C 1.02.0.0 rejects this saying
4513       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4514    struct s { int j; const int *ap[3]; };
4515    struct s *b; b->j = 5;
4516  }
4517  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4518    const int foo = 10;
4519    if (!foo) return 0;
4520  }
4521  return !cs[0] && !zero.x;
4522#endif
4523
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528if ac_fn_c_try_compile "$LINENO"; then :
4529  ac_cv_c_const=yes
4530else
4531  ac_cv_c_const=no
4532fi
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4536$as_echo "$ac_cv_c_const" >&6; }
4537if test $ac_cv_c_const = no; then
4538
4539$as_echo "#define const /**/" >>confdefs.h
4540
4541fi
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4544$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4545if ${ac_cv_c_restrict+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  ac_cv_c_restrict=no
4549   # The order here caters to the fact that C++ does not require restrict.
4550   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h.  */
4553typedef int * int_ptr;
4554	int foo (int_ptr $ac_kw ip) {
4555	return ip[0];
4556       }
4557int
4558main ()
4559{
4560int s[1];
4561	int * $ac_kw t = s;
4562	t[0] = 0;
4563	return foo(t)
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568if ac_fn_c_try_compile "$LINENO"; then :
4569  ac_cv_c_restrict=$ac_kw
4570fi
4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572     test "$ac_cv_c_restrict" != no && break
4573   done
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4577$as_echo "$ac_cv_c_restrict" >&6; }
4578
4579 case $ac_cv_c_restrict in
4580   restrict) ;;
4581   no) $as_echo "#define restrict /**/" >>confdefs.h
4582 ;;
4583   *)  cat >>confdefs.h <<_ACEOF
4584#define restrict $ac_cv_c_restrict
4585_ACEOF
4586 ;;
4587 esac
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4590$as_echo_n "checking for working volatile... " >&6; }
4591if ${ac_cv_c_volatile+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596
4597int
4598main ()
4599{
4600
4601volatile int x;
4602int * volatile y = (int *) 0;
4603return !x && !y;
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608if ac_fn_c_try_compile "$LINENO"; then :
4609  ac_cv_c_volatile=yes
4610else
4611  ac_cv_c_volatile=no
4612fi
4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4616$as_echo "$ac_cv_c_volatile" >&6; }
4617if test $ac_cv_c_volatile = no; then
4618
4619$as_echo "#define volatile /**/" >>confdefs.h
4620
4621fi
4622
4623
4624# libtool
4625
4626case `pwd` in
4627  *\ * | *\	*)
4628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4630esac
4631
4632
4633
4634macro_version='2.4'
4635macro_revision='1.3293'
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649ltmain="$ac_aux_dir/ltmain.sh"
4650
4651# Make sure we can run config.sub.
4652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4653  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4654
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4656$as_echo_n "checking build system type... " >&6; }
4657if ${ac_cv_build+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  ac_build_alias=$build_alias
4661test "x$ac_build_alias" = x &&
4662  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4663test "x$ac_build_alias" = x &&
4664  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4665ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4666  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4667
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4670$as_echo "$ac_cv_build" >&6; }
4671case $ac_cv_build in
4672*-*-*) ;;
4673*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4674esac
4675build=$ac_cv_build
4676ac_save_IFS=$IFS; IFS='-'
4677set x $ac_cv_build
4678shift
4679build_cpu=$1
4680build_vendor=$2
4681shift; shift
4682# Remember, the first character of IFS is used to create $*,
4683# except with old shells:
4684build_os=$*
4685IFS=$ac_save_IFS
4686case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4687
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4690$as_echo_n "checking host system type... " >&6; }
4691if ${ac_cv_host+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test "x$host_alias" = x; then
4695  ac_cv_host=$ac_cv_build
4696else
4697  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4698    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4699fi
4700
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4703$as_echo "$ac_cv_host" >&6; }
4704case $ac_cv_host in
4705*-*-*) ;;
4706*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4707esac
4708host=$ac_cv_host
4709ac_save_IFS=$IFS; IFS='-'
4710set x $ac_cv_host
4711shift
4712host_cpu=$1
4713host_vendor=$2
4714shift; shift
4715# Remember, the first character of IFS is used to create $*,
4716# except with old shells:
4717host_os=$*
4718IFS=$ac_save_IFS
4719case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4720
4721
4722# Backslashify metacharacters that are still active within
4723# double-quoted strings.
4724sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4725
4726# Same as above, but do not quote variable references.
4727double_quote_subst='s/\(["`\\]\)/\\\1/g'
4728
4729# Sed substitution to delay expansion of an escaped shell variable in a
4730# double_quote_subst'ed string.
4731delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4732
4733# Sed substitution to delay expansion of an escaped single quote.
4734delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4735
4736# Sed substitution to avoid accidental globbing in evaled expressions
4737no_glob_subst='s/\*/\\\*/g'
4738
4739ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4740ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4741ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4744$as_echo_n "checking how to print strings... " >&6; }
4745# Test print first, because it will be a builtin if present.
4746if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4747   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4748  ECHO='print -r --'
4749elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4750  ECHO='printf %s\n'
4751else
4752  # Use this function as a fallback that always works.
4753  func_fallback_echo ()
4754  {
4755    eval 'cat <<_LTECHO_EOF
4756$1
4757_LTECHO_EOF'
4758  }
4759  ECHO='func_fallback_echo'
4760fi
4761
4762# func_echo_all arg...
4763# Invoke $ECHO with all args, space-separated.
4764func_echo_all ()
4765{
4766    $ECHO ""
4767}
4768
4769case "$ECHO" in
4770  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4771$as_echo "printf" >&6; } ;;
4772  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4773$as_echo "print -r" >&6; } ;;
4774  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4775$as_echo "cat" >&6; } ;;
4776esac
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4792$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4793if ${ac_cv_path_SED+:} false; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797     for ac_i in 1 2 3 4 5 6 7; do
4798       ac_script="$ac_script$as_nl$ac_script"
4799     done
4800     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801     { ac_script=; unset ac_script;}
4802     if test -z "$SED"; then
4803  ac_path_SED_found=false
4804  # Loop through the user's path and test for each of PROGNAME-LIST
4805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808  IFS=$as_save_IFS
4809  test -z "$as_dir" && as_dir=.
4810    for ac_prog in sed gsed; do
4811    for ac_exec_ext in '' $ac_executable_extensions; do
4812      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4813      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4814# Check for GNU ac_path_SED and select it if it is found.
4815  # Check for GNU $ac_path_SED
4816case `"$ac_path_SED" --version 2>&1` in
4817*GNU*)
4818  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4819*)
4820  ac_count=0
4821  $as_echo_n 0123456789 >"conftest.in"
4822  while :
4823  do
4824    cat "conftest.in" "conftest.in" >"conftest.tmp"
4825    mv "conftest.tmp" "conftest.in"
4826    cp "conftest.in" "conftest.nl"
4827    $as_echo '' >> "conftest.nl"
4828    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830    as_fn_arith $ac_count + 1 && ac_count=$as_val
4831    if test $ac_count -gt ${ac_path_SED_max-0}; then
4832      # Best one so far, save it but keep looking for a better one
4833      ac_cv_path_SED="$ac_path_SED"
4834      ac_path_SED_max=$ac_count
4835    fi
4836    # 10*(2^10) chars as input seems more than enough
4837    test $ac_count -gt 10 && break
4838  done
4839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840esac
4841
4842      $ac_path_SED_found && break 3
4843    done
4844  done
4845  done
4846IFS=$as_save_IFS
4847  if test -z "$ac_cv_path_SED"; then
4848    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4849  fi
4850else
4851  ac_cv_path_SED=$SED
4852fi
4853
4854fi
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4856$as_echo "$ac_cv_path_SED" >&6; }
4857 SED="$ac_cv_path_SED"
4858  rm -f conftest.sed
4859
4860test -z "$SED" && SED=sed
4861Xsed="$SED -e 1s/^X//"
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4874$as_echo_n "checking for fgrep... " >&6; }
4875if ${ac_cv_path_FGREP+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4879   then ac_cv_path_FGREP="$GREP -F"
4880   else
4881     if test -z "$FGREP"; then
4882  ac_path_FGREP_found=false
4883  # Loop through the user's path and test for each of PROGNAME-LIST
4884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_prog in fgrep; do
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4892      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4893# Check for GNU ac_path_FGREP and select it if it is found.
4894  # Check for GNU $ac_path_FGREP
4895case `"$ac_path_FGREP" --version 2>&1` in
4896*GNU*)
4897  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4898*)
4899  ac_count=0
4900  $as_echo_n 0123456789 >"conftest.in"
4901  while :
4902  do
4903    cat "conftest.in" "conftest.in" >"conftest.tmp"
4904    mv "conftest.tmp" "conftest.in"
4905    cp "conftest.in" "conftest.nl"
4906    $as_echo 'FGREP' >> "conftest.nl"
4907    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909    as_fn_arith $ac_count + 1 && ac_count=$as_val
4910    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4911      # Best one so far, save it but keep looking for a better one
4912      ac_cv_path_FGREP="$ac_path_FGREP"
4913      ac_path_FGREP_max=$ac_count
4914    fi
4915    # 10*(2^10) chars as input seems more than enough
4916    test $ac_count -gt 10 && break
4917  done
4918  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919esac
4920
4921      $ac_path_FGREP_found && break 3
4922    done
4923  done
4924  done
4925IFS=$as_save_IFS
4926  if test -z "$ac_cv_path_FGREP"; then
4927    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928  fi
4929else
4930  ac_cv_path_FGREP=$FGREP
4931fi
4932
4933   fi
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4936$as_echo "$ac_cv_path_FGREP" >&6; }
4937 FGREP="$ac_cv_path_FGREP"
4938
4939
4940test -z "$GREP" && GREP=grep
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960# Check whether --with-gnu-ld was given.
4961if test "${with_gnu_ld+set}" = set; then :
4962  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4963else
4964  with_gnu_ld=no
4965fi
4966
4967ac_prog=ld
4968if test "$GCC" = yes; then
4969  # Check if gcc -print-prog-name=ld gives a path.
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4971$as_echo_n "checking for ld used by $CC... " >&6; }
4972  case $host in
4973  *-*-mingw*)
4974    # gcc leaves a trailing carriage return which upsets mingw
4975    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4976  *)
4977    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4978  esac
4979  case $ac_prog in
4980    # Accept absolute paths.
4981    [\\/]* | ?:[\\/]*)
4982      re_direlt='/[^/][^/]*/\.\./'
4983      # Canonicalize the pathname of ld
4984      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4985      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4986	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4987      done
4988      test -z "$LD" && LD="$ac_prog"
4989      ;;
4990  "")
4991    # If it fails, then pretend we aren't using GCC.
4992    ac_prog=ld
4993    ;;
4994  *)
4995    # If it is relative, then search for the first ld in PATH.
4996    with_gnu_ld=unknown
4997    ;;
4998  esac
4999elif test "$with_gnu_ld" = yes; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5001$as_echo_n "checking for GNU ld... " >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5004$as_echo_n "checking for non-GNU ld... " >&6; }
5005fi
5006if ${lt_cv_path_LD+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -z "$LD"; then
5010  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5011  for ac_dir in $PATH; do
5012    IFS="$lt_save_ifs"
5013    test -z "$ac_dir" && ac_dir=.
5014    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5015      lt_cv_path_LD="$ac_dir/$ac_prog"
5016      # Check to see if the program is GNU ld.  I'd rather use --version,
5017      # but apparently some variants of GNU ld only accept -v.
5018      # Break only if it was the GNU/non-GNU ld that we prefer.
5019      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5020      *GNU* | *'with BFD'*)
5021	test "$with_gnu_ld" != no && break
5022	;;
5023      *)
5024	test "$with_gnu_ld" != yes && break
5025	;;
5026      esac
5027    fi
5028  done
5029  IFS="$lt_save_ifs"
5030else
5031  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5032fi
5033fi
5034
5035LD="$lt_cv_path_LD"
5036if test -n "$LD"; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5038$as_echo "$LD" >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5045$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5046if ${lt_cv_prog_gnu_ld+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5050case `$LD -v 2>&1 </dev/null` in
5051*GNU* | *'with BFD'*)
5052  lt_cv_prog_gnu_ld=yes
5053  ;;
5054*)
5055  lt_cv_prog_gnu_ld=no
5056  ;;
5057esac
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5060$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5061with_gnu_ld=$lt_cv_prog_gnu_ld
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5072$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5073if ${lt_cv_path_NM+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  if test -n "$NM"; then
5077  # Let the user override the test.
5078  lt_cv_path_NM="$NM"
5079else
5080  lt_nm_to_check="${ac_tool_prefix}nm"
5081  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5082    lt_nm_to_check="$lt_nm_to_check nm"
5083  fi
5084  for lt_tmp_nm in $lt_nm_to_check; do
5085    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5086    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5087      IFS="$lt_save_ifs"
5088      test -z "$ac_dir" && ac_dir=.
5089      tmp_nm="$ac_dir/$lt_tmp_nm"
5090      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5091	# Check to see if the nm accepts a BSD-compat flag.
5092	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5093	#   nm: unknown option "B" ignored
5094	# Tru64's nm complains that /dev/null is an invalid object file
5095	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5096	*/dev/null* | *'Invalid file or object type'*)
5097	  lt_cv_path_NM="$tmp_nm -B"
5098	  break
5099	  ;;
5100	*)
5101	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5102	  */dev/null*)
5103	    lt_cv_path_NM="$tmp_nm -p"
5104	    break
5105	    ;;
5106	  *)
5107	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5108	    continue # so that we can try to find one that supports BSD flags
5109	    ;;
5110	  esac
5111	  ;;
5112	esac
5113      fi
5114    done
5115    IFS="$lt_save_ifs"
5116  done
5117  : ${lt_cv_path_NM=no}
5118fi
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5121$as_echo "$lt_cv_path_NM" >&6; }
5122if test "$lt_cv_path_NM" != "no"; then
5123  NM="$lt_cv_path_NM"
5124else
5125  # Didn't find any BSD compatible name lister, look for dumpbin.
5126  if test -n "$DUMPBIN"; then :
5127    # Let the user override the test.
5128  else
5129    if test -n "$ac_tool_prefix"; then
5130  for ac_prog in dumpbin "link -dump"
5131  do
5132    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if ${ac_cv_prog_DUMPBIN+:} false; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  if test -n "$DUMPBIN"; then
5140  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145  IFS=$as_save_IFS
5146  test -z "$as_dir" && as_dir=.
5147    for ac_exec_ext in '' $ac_executable_extensions; do
5148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151    break 2
5152  fi
5153done
5154  done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159DUMPBIN=$ac_cv_prog_DUMPBIN
5160if test -n "$DUMPBIN"; then
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5162$as_echo "$DUMPBIN" >&6; }
5163else
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169    test -n "$DUMPBIN" && break
5170  done
5171fi
5172if test -z "$DUMPBIN"; then
5173  ac_ct_DUMPBIN=$DUMPBIN
5174  for ac_prog in dumpbin "link -dump"
5175do
5176  # Extract the first word of "$ac_prog", so it can be a program name with args.
5177set dummy $ac_prog; ac_word=$2
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
5180if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  if test -n "$ac_ct_DUMPBIN"; then
5184  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189  IFS=$as_save_IFS
5190  test -z "$as_dir" && as_dir=.
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198  done
5199IFS=$as_save_IFS
5200
5201fi
5202fi
5203ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5204if test -n "$ac_ct_DUMPBIN"; then
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5206$as_echo "$ac_ct_DUMPBIN" >&6; }
5207else
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210fi
5211
5212
5213  test -n "$ac_ct_DUMPBIN" && break
5214done
5215
5216  if test "x$ac_ct_DUMPBIN" = x; then
5217    DUMPBIN=":"
5218  else
5219    case $cross_compiling:$ac_tool_warned in
5220yes:)
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223ac_tool_warned=yes ;;
5224esac
5225    DUMPBIN=$ac_ct_DUMPBIN
5226  fi
5227fi
5228
5229    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5230    *COFF*)
5231      DUMPBIN="$DUMPBIN -symbols"
5232      ;;
5233    *)
5234      DUMPBIN=:
5235      ;;
5236    esac
5237  fi
5238
5239  if test "$DUMPBIN" != ":"; then
5240    NM="$DUMPBIN"
5241  fi
5242fi
5243test -z "$NM" && NM=nm
5244
5245
5246
5247
5248
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5251$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5252if ${lt_cv_nm_interface+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  lt_cv_nm_interface="BSD nm"
5256  echo "int some_variable = 0;" > conftest.$ac_ext
5257  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5258  (eval "$ac_compile" 2>conftest.err)
5259  cat conftest.err >&5
5260  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5261  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5262  cat conftest.err >&5
5263  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5264  cat conftest.out >&5
5265  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5266    lt_cv_nm_interface="MS dumpbin"
5267  fi
5268  rm -f conftest*
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5271$as_echo "$lt_cv_nm_interface" >&6; }
5272
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5274$as_echo_n "checking whether ln -s works... " >&6; }
5275LN_S=$as_ln_s
5276if test "$LN_S" = "ln -s"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278$as_echo "yes" >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5281$as_echo "no, using $LN_S" >&6; }
5282fi
5283
5284# find the maximum length of command line arguments
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5286$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5287if ${lt_cv_sys_max_cmd_len+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290    i=0
5291  teststring="ABCD"
5292
5293  case $build_os in
5294  msdosdjgpp*)
5295    # On DJGPP, this test can blow up pretty badly due to problems in libc
5296    # (any single argument exceeding 2000 bytes causes a buffer overrun
5297    # during glob expansion).  Even if it were fixed, the result of this
5298    # check would be larger than it should be.
5299    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5300    ;;
5301
5302  gnu*)
5303    # Under GNU Hurd, this test is not required because there is
5304    # no limit to the length of command line arguments.
5305    # Libtool will interpret -1 as no limit whatsoever
5306    lt_cv_sys_max_cmd_len=-1;
5307    ;;
5308
5309  cygwin* | mingw* | cegcc*)
5310    # On Win9x/ME, this test blows up -- it succeeds, but takes
5311    # about 5 minutes as the teststring grows exponentially.
5312    # Worse, since 9x/ME are not pre-emptively multitasking,
5313    # you end up with a "frozen" computer, even though with patience
5314    # the test eventually succeeds (with a max line length of 256k).
5315    # Instead, let's just punt: use the minimum linelength reported by
5316    # all of the supported platforms: 8192 (on NT/2K/XP).
5317    lt_cv_sys_max_cmd_len=8192;
5318    ;;
5319
5320  mint*)
5321    # On MiNT this can take a long time and run out of memory.
5322    lt_cv_sys_max_cmd_len=8192;
5323    ;;
5324
5325  amigaos*)
5326    # On AmigaOS with pdksh, this test takes hours, literally.
5327    # So we just punt and use a minimum line length of 8192.
5328    lt_cv_sys_max_cmd_len=8192;
5329    ;;
5330
5331  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5332    # This has been around since 386BSD, at least.  Likely further.
5333    if test -x /sbin/sysctl; then
5334      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5335    elif test -x /usr/sbin/sysctl; then
5336      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5337    else
5338      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5339    fi
5340    # And add a safety zone
5341    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5342    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5343    ;;
5344
5345  interix*)
5346    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5347    lt_cv_sys_max_cmd_len=196608
5348    ;;
5349
5350  osf*)
5351    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5352    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5353    # nice to cause kernel panics so lets avoid the loop below.
5354    # First set a reasonable default.
5355    lt_cv_sys_max_cmd_len=16384
5356    #
5357    if test -x /sbin/sysconfig; then
5358      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5359        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5360      esac
5361    fi
5362    ;;
5363  sco3.2v5*)
5364    lt_cv_sys_max_cmd_len=102400
5365    ;;
5366  sysv5* | sco5v6* | sysv4.2uw2*)
5367    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5368    if test -n "$kargmax"; then
5369      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5370    else
5371      lt_cv_sys_max_cmd_len=32768
5372    fi
5373    ;;
5374  *)
5375    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5376    if test -n "$lt_cv_sys_max_cmd_len"; then
5377      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5378      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5379    else
5380      # Make teststring a little bigger before we do anything with it.
5381      # a 1K string should be a reasonable start.
5382      for i in 1 2 3 4 5 6 7 8 ; do
5383        teststring=$teststring$teststring
5384      done
5385      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5386      # If test is not a shell built-in, we'll probably end up computing a
5387      # maximum length that is only half of the actual maximum length, but
5388      # we can't tell.
5389      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5390	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5391	      test $i != 17 # 1/2 MB should be enough
5392      do
5393        i=`expr $i + 1`
5394        teststring=$teststring$teststring
5395      done
5396      # Only check the string length outside the loop.
5397      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5398      teststring=
5399      # Add a significant safety factor because C++ compilers can tack on
5400      # massive amounts of additional arguments before passing them to the
5401      # linker.  It appears as though 1/2 is a usable value.
5402      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5403    fi
5404    ;;
5405  esac
5406
5407fi
5408
5409if test -n $lt_cv_sys_max_cmd_len ; then
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5411$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5412else
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5414$as_echo "none" >&6; }
5415fi
5416max_cmd_len=$lt_cv_sys_max_cmd_len
5417
5418
5419
5420
5421
5422
5423: ${CP="cp -f"}
5424: ${MV="mv -f"}
5425: ${RM="rm -f"}
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5428$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5429# Try some XSI features
5430xsi_shell=no
5431( _lt_dummy="a/b/c"
5432  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5433      = c,a/b,b/c, \
5434    && eval 'test $(( 1 + 1 )) -eq 2 \
5435    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5436  && xsi_shell=yes
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5438$as_echo "$xsi_shell" >&6; }
5439
5440
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5442$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5443lt_shell_append=no
5444( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5445    >/dev/null 2>&1 \
5446  && lt_shell_append=yes
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5448$as_echo "$lt_shell_append" >&6; }
5449
5450
5451if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5452  lt_unset=unset
5453else
5454  lt_unset=false
5455fi
5456
5457
5458
5459
5460
5461# test EBCDIC or ASCII
5462case `echo X|tr X '\101'` in
5463 A) # ASCII based system
5464    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5465  lt_SP2NL='tr \040 \012'
5466  lt_NL2SP='tr \015\012 \040\040'
5467  ;;
5468 *) # EBCDIC based system
5469  lt_SP2NL='tr \100 \n'
5470  lt_NL2SP='tr \r\n \100\100'
5471  ;;
5472esac
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5483$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5484if ${lt_cv_to_host_file_cmd+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  case $host in
5488  *-*-mingw* )
5489    case $build in
5490      *-*-mingw* ) # actually msys
5491        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5492        ;;
5493      *-*-cygwin* )
5494        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5495        ;;
5496      * ) # otherwise, assume *nix
5497        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5498        ;;
5499    esac
5500    ;;
5501  *-*-cygwin* )
5502    case $build in
5503      *-*-mingw* ) # actually msys
5504        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5505        ;;
5506      *-*-cygwin* )
5507        lt_cv_to_host_file_cmd=func_convert_file_noop
5508        ;;
5509      * ) # otherwise, assume *nix
5510        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5511        ;;
5512    esac
5513    ;;
5514  * ) # unhandled hosts (and "normal" native builds)
5515    lt_cv_to_host_file_cmd=func_convert_file_noop
5516    ;;
5517esac
5518
5519fi
5520
5521to_host_file_cmd=$lt_cv_to_host_file_cmd
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5523$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5524
5525
5526
5527
5528
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5530$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5531if ${lt_cv_to_tool_file_cmd+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  #assume ordinary cross tools, or native build.
5535lt_cv_to_tool_file_cmd=func_convert_file_noop
5536case $host in
5537  *-*-mingw* )
5538    case $build in
5539      *-*-mingw* ) # actually msys
5540        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5541        ;;
5542    esac
5543    ;;
5544esac
5545
5546fi
5547
5548to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5550$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5551
5552
5553
5554
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5557$as_echo_n "checking for $LD option to reload object files... " >&6; }
5558if ${lt_cv_ld_reload_flag+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  lt_cv_ld_reload_flag='-r'
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5564$as_echo "$lt_cv_ld_reload_flag" >&6; }
5565reload_flag=$lt_cv_ld_reload_flag
5566case $reload_flag in
5567"" | " "*) ;;
5568*) reload_flag=" $reload_flag" ;;
5569esac
5570reload_cmds='$LD$reload_flag -o $output$reload_objs'
5571case $host_os in
5572  cygwin* | mingw* | pw32* | cegcc*)
5573    if test "$GCC" != yes; then
5574      reload_cmds=false
5575    fi
5576    ;;
5577  darwin*)
5578    if test "$GCC" = yes; then
5579      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5580    else
5581      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582    fi
5583    ;;
5584esac
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594if test -n "$ac_tool_prefix"; then
5595  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5596set dummy ${ac_tool_prefix}objdump; ac_word=$2
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598$as_echo_n "checking for $ac_word... " >&6; }
5599if ${ac_cv_prog_OBJDUMP+:} false; then :
5600  $as_echo_n "(cached) " >&6
5601else
5602  if test -n "$OBJDUMP"; then
5603  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608  IFS=$as_save_IFS
5609  test -z "$as_dir" && as_dir=.
5610    for ac_exec_ext in '' $ac_executable_extensions; do
5611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614    break 2
5615  fi
5616done
5617  done
5618IFS=$as_save_IFS
5619
5620fi
5621fi
5622OBJDUMP=$ac_cv_prog_OBJDUMP
5623if test -n "$OBJDUMP"; then
5624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5625$as_echo "$OBJDUMP" >&6; }
5626else
5627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }
5629fi
5630
5631
5632fi
5633if test -z "$ac_cv_prog_OBJDUMP"; then
5634  ac_ct_OBJDUMP=$OBJDUMP
5635  # Extract the first word of "objdump", so it can be a program name with args.
5636set dummy objdump; ac_word=$2
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638$as_echo_n "checking for $ac_word... " >&6; }
5639if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  if test -n "$ac_ct_OBJDUMP"; then
5643  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648  IFS=$as_save_IFS
5649  test -z "$as_dir" && as_dir=.
5650    for ac_exec_ext in '' $ac_executable_extensions; do
5651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5652    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657  done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
5662ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5663if test -n "$ac_ct_OBJDUMP"; then
5664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5665$as_echo "$ac_ct_OBJDUMP" >&6; }
5666else
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }
5669fi
5670
5671  if test "x$ac_ct_OBJDUMP" = x; then
5672    OBJDUMP="false"
5673  else
5674    case $cross_compiling:$ac_tool_warned in
5675yes:)
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5678ac_tool_warned=yes ;;
5679esac
5680    OBJDUMP=$ac_ct_OBJDUMP
5681  fi
5682else
5683  OBJDUMP="$ac_cv_prog_OBJDUMP"
5684fi
5685
5686test -z "$OBJDUMP" && OBJDUMP=objdump
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5697$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5698if ${lt_cv_deplibs_check_method+:} false; then :
5699  $as_echo_n "(cached) " >&6
5700else
5701  lt_cv_file_magic_cmd='$MAGIC_CMD'
5702lt_cv_file_magic_test_file=
5703lt_cv_deplibs_check_method='unknown'
5704# Need to set the preceding variable on all platforms that support
5705# interlibrary dependencies.
5706# 'none' -- dependencies not supported.
5707# `unknown' -- same as none, but documents that we really don't know.
5708# 'pass_all' -- all dependencies passed with no checks.
5709# 'test_compile' -- check by making test program.
5710# 'file_magic [[regex]]' -- check by looking for files in library path
5711# which responds to the $file_magic_cmd with a given extended regex.
5712# If you have `file' or equivalent on your system and you're not sure
5713# whether `pass_all' will *always* work, you probably want this one.
5714
5715case $host_os in
5716aix[4-9]*)
5717  lt_cv_deplibs_check_method=pass_all
5718  ;;
5719
5720beos*)
5721  lt_cv_deplibs_check_method=pass_all
5722  ;;
5723
5724bsdi[45]*)
5725  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5726  lt_cv_file_magic_cmd='/usr/bin/file -L'
5727  lt_cv_file_magic_test_file=/shlib/libc.so
5728  ;;
5729
5730cygwin*)
5731  # func_win32_libid is a shell function defined in ltmain.sh
5732  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5733  lt_cv_file_magic_cmd='func_win32_libid'
5734  ;;
5735
5736mingw* | pw32*)
5737  # Base MSYS/MinGW do not provide the 'file' command needed by
5738  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5739  # unless we find 'file', for example because we are cross-compiling.
5740  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5741  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5742    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5743    lt_cv_file_magic_cmd='func_win32_libid'
5744  else
5745    # Keep this pattern in sync with the one in func_win32_libid.
5746    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5747    lt_cv_file_magic_cmd='$OBJDUMP -f'
5748  fi
5749  ;;
5750
5751cegcc*)
5752  # use the weaker test based on 'objdump'. See mingw*.
5753  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5754  lt_cv_file_magic_cmd='$OBJDUMP -f'
5755  ;;
5756
5757darwin* | rhapsody*)
5758  lt_cv_deplibs_check_method=pass_all
5759  ;;
5760
5761freebsd* | dragonfly*)
5762  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5763    case $host_cpu in
5764    i*86 )
5765      # Not sure whether the presence of OpenBSD here was a mistake.
5766      # Let's accept both of them until this is cleared up.
5767      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5768      lt_cv_file_magic_cmd=/usr/bin/file
5769      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5770      ;;
5771    esac
5772  else
5773    lt_cv_deplibs_check_method=pass_all
5774  fi
5775  ;;
5776
5777gnu*)
5778  lt_cv_deplibs_check_method=pass_all
5779  ;;
5780
5781haiku*)
5782  lt_cv_deplibs_check_method=pass_all
5783  ;;
5784
5785hpux10.20* | hpux11*)
5786  lt_cv_file_magic_cmd=/usr/bin/file
5787  case $host_cpu in
5788  ia64*)
5789    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5790    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5791    ;;
5792  hppa*64*)
5793    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]'
5794    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5795    ;;
5796  *)
5797    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5798    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5799    ;;
5800  esac
5801  ;;
5802
5803interix[3-9]*)
5804  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5805  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5806  ;;
5807
5808irix5* | irix6* | nonstopux*)
5809  case $LD in
5810  *-32|*"-32 ") libmagic=32-bit;;
5811  *-n32|*"-n32 ") libmagic=N32;;
5812  *-64|*"-64 ") libmagic=64-bit;;
5813  *) libmagic=never-match;;
5814  esac
5815  lt_cv_deplibs_check_method=pass_all
5816  ;;
5817
5818# This must be Linux ELF.
5819linux* | k*bsd*-gnu | kopensolaris*-gnu)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823netbsd*)
5824  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5826  else
5827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5828  fi
5829  ;;
5830
5831newos6*)
5832  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5833  lt_cv_file_magic_cmd=/usr/bin/file
5834  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5835  ;;
5836
5837*nto* | *qnx*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841openbsd*)
5842  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5843    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5844  else
5845    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5846  fi
5847  ;;
5848
5849osf3* | osf4* | osf5*)
5850  lt_cv_deplibs_check_method=pass_all
5851  ;;
5852
5853rdos*)
5854  lt_cv_deplibs_check_method=pass_all
5855  ;;
5856
5857solaris*)
5858  lt_cv_deplibs_check_method=pass_all
5859  ;;
5860
5861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5862  lt_cv_deplibs_check_method=pass_all
5863  ;;
5864
5865sysv4 | sysv4.3*)
5866  case $host_vendor in
5867  motorola)
5868    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]'
5869    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5870    ;;
5871  ncr)
5872    lt_cv_deplibs_check_method=pass_all
5873    ;;
5874  sequent)
5875    lt_cv_file_magic_cmd='/bin/file'
5876    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5877    ;;
5878  sni)
5879    lt_cv_file_magic_cmd='/bin/file'
5880    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5881    lt_cv_file_magic_test_file=/lib/libc.so
5882    ;;
5883  siemens)
5884    lt_cv_deplibs_check_method=pass_all
5885    ;;
5886  pc)
5887    lt_cv_deplibs_check_method=pass_all
5888    ;;
5889  esac
5890  ;;
5891
5892tpf*)
5893  lt_cv_deplibs_check_method=pass_all
5894  ;;
5895esac
5896
5897fi
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5899$as_echo "$lt_cv_deplibs_check_method" >&6; }
5900
5901file_magic_glob=
5902want_nocaseglob=no
5903if test "$build" = "$host"; then
5904  case $host_os in
5905  mingw* | pw32*)
5906    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5907      want_nocaseglob=yes
5908    else
5909      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5910    fi
5911    ;;
5912  esac
5913fi
5914
5915file_magic_cmd=$lt_cv_file_magic_cmd
5916deplibs_check_method=$lt_cv_deplibs_check_method
5917test -z "$deplibs_check_method" && deplibs_check_method=unknown
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940if test -n "$ac_tool_prefix"; then
5941  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5942set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944$as_echo_n "checking for $ac_word... " >&6; }
5945if ${ac_cv_prog_DLLTOOL+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  if test -n "$DLLTOOL"; then
5949  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954  IFS=$as_save_IFS
5955  test -z "$as_dir" && as_dir=.
5956    for ac_exec_ext in '' $ac_executable_extensions; do
5957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960    break 2
5961  fi
5962done
5963  done
5964IFS=$as_save_IFS
5965
5966fi
5967fi
5968DLLTOOL=$ac_cv_prog_DLLTOOL
5969if test -n "$DLLTOOL"; then
5970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5971$as_echo "$DLLTOOL" >&6; }
5972else
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
5975fi
5976
5977
5978fi
5979if test -z "$ac_cv_prog_DLLTOOL"; then
5980  ac_ct_DLLTOOL=$DLLTOOL
5981  # Extract the first word of "dlltool", so it can be a program name with args.
5982set dummy dlltool; ac_word=$2
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984$as_echo_n "checking for $ac_word... " >&6; }
5985if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  if test -n "$ac_ct_DLLTOOL"; then
5989  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994  IFS=$as_save_IFS
5995  test -z "$as_dir" && as_dir=.
5996    for ac_exec_ext in '' $ac_executable_extensions; do
5997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000    break 2
6001  fi
6002done
6003  done
6004IFS=$as_save_IFS
6005
6006fi
6007fi
6008ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6009if test -n "$ac_ct_DLLTOOL"; then
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6011$as_echo "$ac_ct_DLLTOOL" >&6; }
6012else
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015fi
6016
6017  if test "x$ac_ct_DLLTOOL" = x; then
6018    DLLTOOL="false"
6019  else
6020    case $cross_compiling:$ac_tool_warned in
6021yes:)
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024ac_tool_warned=yes ;;
6025esac
6026    DLLTOOL=$ac_ct_DLLTOOL
6027  fi
6028else
6029  DLLTOOL="$ac_cv_prog_DLLTOOL"
6030fi
6031
6032test -z "$DLLTOOL" && DLLTOOL=dlltool
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6044$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6045if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  lt_cv_sharedlib_from_linklib_cmd='unknown'
6049
6050case $host_os in
6051cygwin* | mingw* | pw32* | cegcc*)
6052  # two different shell functions defined in ltmain.sh
6053  # decide which to use based on capabilities of $DLLTOOL
6054  case `$DLLTOOL --help 2>&1` in
6055  *--identify-strict*)
6056    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6057    ;;
6058  *)
6059    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6060    ;;
6061  esac
6062  ;;
6063*)
6064  # fallback: assume linklib IS sharedlib
6065  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6066  ;;
6067esac
6068
6069fi
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6071$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6072sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6073test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6074
6075
6076
6077
6078
6079
6080
6081if test -n "$ac_tool_prefix"; then
6082  for ac_prog in ar
6083  do
6084    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085set dummy $ac_tool_prefix$ac_prog; 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_AR+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$AR"; then
6092  ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
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
6111AR=$ac_cv_prog_AR
6112if test -n "$AR"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6114$as_echo "$AR" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120
6121    test -n "$AR" && break
6122  done
6123fi
6124if test -z "$AR"; then
6125  ac_ct_AR=$AR
6126  for ac_prog in ar
6127do
6128  # Extract the first word of "$ac_prog", so it can be a program name with args.
6129set dummy $ac_prog; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if ${ac_cv_prog_ac_ct_AR+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  if test -n "$ac_ct_AR"; then
6136  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141  IFS=$as_save_IFS
6142  test -z "$as_dir" && as_dir=.
6143    for ac_exec_ext in '' $ac_executable_extensions; do
6144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145    ac_cv_prog_ac_ct_AR="$ac_prog"
6146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150  done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155ac_ct_AR=$ac_cv_prog_ac_ct_AR
6156if test -n "$ac_ct_AR"; then
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6158$as_echo "$ac_ct_AR" >&6; }
6159else
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164
6165  test -n "$ac_ct_AR" && break
6166done
6167
6168  if test "x$ac_ct_AR" = x; then
6169    AR="false"
6170  else
6171    case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177    AR=$ac_ct_AR
6178  fi
6179fi
6180
6181: ${AR=ar}
6182: ${AR_FLAGS=cru}
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6195$as_echo_n "checking for archiver @FILE support... " >&6; }
6196if ${lt_cv_ar_at_file+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  lt_cv_ar_at_file=no
6200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h.  */
6202
6203int
6204main ()
6205{
6206
6207  ;
6208  return 0;
6209}
6210_ACEOF
6211if ac_fn_c_try_compile "$LINENO"; then :
6212  echo conftest.$ac_objext > conftest.lst
6213      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6214      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6215  (eval $lt_ar_try) 2>&5
6216  ac_status=$?
6217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218  test $ac_status = 0; }
6219      if test "$ac_status" -eq 0; then
6220	# Ensure the archiver fails upon bogus file names.
6221	rm -f conftest.$ac_objext libconftest.a
6222	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6223  (eval $lt_ar_try) 2>&5
6224  ac_status=$?
6225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226  test $ac_status = 0; }
6227	if test "$ac_status" -ne 0; then
6228          lt_cv_ar_at_file=@
6229        fi
6230      fi
6231      rm -f conftest.* libconftest.a
6232
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235
6236fi
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6238$as_echo "$lt_cv_ar_at_file" >&6; }
6239
6240if test "x$lt_cv_ar_at_file" = xno; then
6241  archiver_list_spec=
6242else
6243  archiver_list_spec=$lt_cv_ar_at_file
6244fi
6245
6246
6247
6248
6249
6250
6251
6252if test -n "$ac_tool_prefix"; then
6253  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6254set dummy ${ac_tool_prefix}strip; ac_word=$2
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256$as_echo_n "checking for $ac_word... " >&6; }
6257if ${ac_cv_prog_STRIP+:} false; then :
6258  $as_echo_n "(cached) " >&6
6259else
6260  if test -n "$STRIP"; then
6261  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_exec_ext in '' $ac_executable_extensions; do
6269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272    break 2
6273  fi
6274done
6275  done
6276IFS=$as_save_IFS
6277
6278fi
6279fi
6280STRIP=$ac_cv_prog_STRIP
6281if test -n "$STRIP"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6283$as_echo "$STRIP" >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286$as_echo "no" >&6; }
6287fi
6288
6289
6290fi
6291if test -z "$ac_cv_prog_STRIP"; then
6292  ac_ct_STRIP=$STRIP
6293  # Extract the first word of "strip", so it can be a program name with args.
6294set dummy strip; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  if test -n "$ac_ct_STRIP"; then
6301  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308    for ac_exec_ext in '' $ac_executable_extensions; do
6309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310    ac_cv_prog_ac_ct_STRIP="strip"
6311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315  done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6321if test -n "$ac_ct_STRIP"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6323$as_echo "$ac_ct_STRIP" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329  if test "x$ac_ct_STRIP" = x; then
6330    STRIP=":"
6331  else
6332    case $cross_compiling:$ac_tool_warned in
6333yes:)
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336ac_tool_warned=yes ;;
6337esac
6338    STRIP=$ac_ct_STRIP
6339  fi
6340else
6341  STRIP="$ac_cv_prog_STRIP"
6342fi
6343
6344test -z "$STRIP" && STRIP=:
6345
6346
6347
6348
6349
6350
6351if test -n "$ac_tool_prefix"; then
6352  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6353set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355$as_echo_n "checking for $ac_word... " >&6; }
6356if ${ac_cv_prog_RANLIB+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  if test -n "$RANLIB"; then
6360  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365  IFS=$as_save_IFS
6366  test -z "$as_dir" && as_dir=.
6367    for ac_exec_ext in '' $ac_executable_extensions; do
6368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371    break 2
6372  fi
6373done
6374  done
6375IFS=$as_save_IFS
6376
6377fi
6378fi
6379RANLIB=$ac_cv_prog_RANLIB
6380if test -n "$RANLIB"; then
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6382$as_echo "$RANLIB" >&6; }
6383else
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385$as_echo "no" >&6; }
6386fi
6387
6388
6389fi
6390if test -z "$ac_cv_prog_RANLIB"; then
6391  ac_ct_RANLIB=$RANLIB
6392  # Extract the first word of "ranlib", so it can be a program name with args.
6393set dummy ranlib; ac_word=$2
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395$as_echo_n "checking for $ac_word... " >&6; }
6396if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  if test -n "$ac_ct_RANLIB"; then
6400  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405  IFS=$as_save_IFS
6406  test -z "$as_dir" && as_dir=.
6407    for ac_exec_ext in '' $ac_executable_extensions; do
6408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409    ac_cv_prog_ac_ct_RANLIB="ranlib"
6410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411    break 2
6412  fi
6413done
6414  done
6415IFS=$as_save_IFS
6416
6417fi
6418fi
6419ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420if test -n "$ac_ct_RANLIB"; then
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6422$as_echo "$ac_ct_RANLIB" >&6; }
6423else
6424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426fi
6427
6428  if test "x$ac_ct_RANLIB" = x; then
6429    RANLIB=":"
6430  else
6431    case $cross_compiling:$ac_tool_warned in
6432yes:)
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435ac_tool_warned=yes ;;
6436esac
6437    RANLIB=$ac_ct_RANLIB
6438  fi
6439else
6440  RANLIB="$ac_cv_prog_RANLIB"
6441fi
6442
6443test -z "$RANLIB" && RANLIB=:
6444
6445
6446
6447
6448
6449
6450# Determine commands to create old-style static archives.
6451old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6452old_postinstall_cmds='chmod 644 $oldlib'
6453old_postuninstall_cmds=
6454
6455if test -n "$RANLIB"; then
6456  case $host_os in
6457  openbsd*)
6458    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6459    ;;
6460  *)
6461    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6462    ;;
6463  esac
6464  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6465fi
6466
6467case $host_os in
6468  darwin*)
6469    lock_old_archive_extraction=yes ;;
6470  *)
6471    lock_old_archive_extraction=no ;;
6472esac
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512# If no C compiler was specified, use CC.
6513LTCC=${LTCC-"$CC"}
6514
6515# If no C compiler flags were specified, use CFLAGS.
6516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6517
6518# Allow CC to be a program name with arguments.
6519compiler=$CC
6520
6521
6522# Check for command to grab the raw symbol name followed by C symbol from nm.
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6524$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6525if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528
6529# These are sane defaults that work on at least a few old systems.
6530# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6531
6532# Character class describing NM global symbol codes.
6533symcode='[BCDEGRST]'
6534
6535# Regexp to match symbols that can be accessed directly from C.
6536sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6537
6538# Define system-specific variables.
6539case $host_os in
6540aix*)
6541  symcode='[BCDT]'
6542  ;;
6543cygwin* | mingw* | pw32* | cegcc*)
6544  symcode='[ABCDGISTW]'
6545  ;;
6546hpux*)
6547  if test "$host_cpu" = ia64; then
6548    symcode='[ABCDEGRST]'
6549  fi
6550  ;;
6551irix* | nonstopux*)
6552  symcode='[BCDEGRST]'
6553  ;;
6554osf*)
6555  symcode='[BCDEGQRST]'
6556  ;;
6557solaris*)
6558  symcode='[BDRT]'
6559  ;;
6560sco3.2v5*)
6561  symcode='[DT]'
6562  ;;
6563sysv4.2uw2*)
6564  symcode='[DT]'
6565  ;;
6566sysv5* | sco5v6* | unixware* | OpenUNIX*)
6567  symcode='[ABDT]'
6568  ;;
6569sysv4)
6570  symcode='[DFNSTU]'
6571  ;;
6572esac
6573
6574# If we're using GNU nm, then use its standard symbol codes.
6575case `$NM -V 2>&1` in
6576*GNU* | *'with BFD'*)
6577  symcode='[ABCDGIRSTW]' ;;
6578esac
6579
6580# Transform an extracted symbol line into a proper C declaration.
6581# Some systems (esp. on ia64) link data and code symbols differently,
6582# so use this general approach.
6583lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6584
6585# Transform an extracted symbol line into symbol name and symbol address
6586lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6587lt_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'"
6588
6589# Handle CRLF in mingw tool chain
6590opt_cr=
6591case $build_os in
6592mingw*)
6593  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6594  ;;
6595esac
6596
6597# Try without a prefix underscore, then with it.
6598for ac_symprfx in "" "_"; do
6599
6600  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6601  symxfrm="\\1 $ac_symprfx\\2 \\2"
6602
6603  # Write the raw and C identifiers.
6604  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6605    # Fake it for dumpbin and say T for any non-static function
6606    # and D for any global variable.
6607    # Also find C++ and __fastcall symbols from MSVC++,
6608    # which start with @ or ?.
6609    lt_cv_sys_global_symbol_pipe="$AWK '"\
6610"     {last_section=section; section=\$ 3};"\
6611"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6612"     \$ 0!~/External *\|/{next};"\
6613"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6614"     {if(hide[section]) next};"\
6615"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6616"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6617"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6618"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6619"     ' prfx=^$ac_symprfx"
6620  else
6621    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6622  fi
6623  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6624
6625  # Check to see that the pipe works correctly.
6626  pipe_works=no
6627
6628  rm -f conftest*
6629  cat > conftest.$ac_ext <<_LT_EOF
6630#ifdef __cplusplus
6631extern "C" {
6632#endif
6633char nm_test_var;
6634void nm_test_func(void);
6635void nm_test_func(void){}
6636#ifdef __cplusplus
6637}
6638#endif
6639int main(){nm_test_var='a';nm_test_func();return(0);}
6640_LT_EOF
6641
6642  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6643  (eval $ac_compile) 2>&5
6644  ac_status=$?
6645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646  test $ac_status = 0; }; then
6647    # Now try to grab the symbols.
6648    nlist=conftest.nm
6649    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6650  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6651  ac_status=$?
6652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653  test $ac_status = 0; } && test -s "$nlist"; then
6654      # Try sorting and uniquifying the output.
6655      if sort "$nlist" | uniq > "$nlist"T; then
6656	mv -f "$nlist"T "$nlist"
6657      else
6658	rm -f "$nlist"T
6659      fi
6660
6661      # Make sure that we snagged all the symbols we need.
6662      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6663	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6664	  cat <<_LT_EOF > conftest.$ac_ext
6665/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6666#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6667/* DATA imports from DLLs on WIN32 con't be const, because runtime
6668   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6669# define LT_DLSYM_CONST
6670#elif defined(__osf__)
6671/* This system does not cope well with relocations in const data.  */
6672# define LT_DLSYM_CONST
6673#else
6674# define LT_DLSYM_CONST const
6675#endif
6676
6677#ifdef __cplusplus
6678extern "C" {
6679#endif
6680
6681_LT_EOF
6682	  # Now generate the symbol file.
6683	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6684
6685	  cat <<_LT_EOF >> conftest.$ac_ext
6686
6687/* The mapping between symbol names and symbols.  */
6688LT_DLSYM_CONST struct {
6689  const char *name;
6690  void       *address;
6691}
6692lt__PROGRAM__LTX_preloaded_symbols[] =
6693{
6694  { "@PROGRAM@", (void *) 0 },
6695_LT_EOF
6696	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6697	  cat <<\_LT_EOF >> conftest.$ac_ext
6698  {0, (void *) 0}
6699};
6700
6701/* This works around a problem in FreeBSD linker */
6702#ifdef FREEBSD_WORKAROUND
6703static const void *lt_preloaded_setup() {
6704  return lt__PROGRAM__LTX_preloaded_symbols;
6705}
6706#endif
6707
6708#ifdef __cplusplus
6709}
6710#endif
6711_LT_EOF
6712	  # Now try linking the two files.
6713	  mv conftest.$ac_objext conftstm.$ac_objext
6714	  lt_globsym_save_LIBS=$LIBS
6715	  lt_globsym_save_CFLAGS=$CFLAGS
6716	  LIBS="conftstm.$ac_objext"
6717	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6718	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6719  (eval $ac_link) 2>&5
6720  ac_status=$?
6721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6723	    pipe_works=yes
6724	  fi
6725	  LIBS=$lt_globsym_save_LIBS
6726	  CFLAGS=$lt_globsym_save_CFLAGS
6727	else
6728	  echo "cannot find nm_test_func in $nlist" >&5
6729	fi
6730      else
6731	echo "cannot find nm_test_var in $nlist" >&5
6732      fi
6733    else
6734      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6735    fi
6736  else
6737    echo "$progname: failed program was:" >&5
6738    cat conftest.$ac_ext >&5
6739  fi
6740  rm -rf conftest* conftst*
6741
6742  # Do not use the global_symbol_pipe unless it works.
6743  if test "$pipe_works" = yes; then
6744    break
6745  else
6746    lt_cv_sys_global_symbol_pipe=
6747  fi
6748done
6749
6750fi
6751
6752if test -z "$lt_cv_sys_global_symbol_pipe"; then
6753  lt_cv_sys_global_symbol_to_cdecl=
6754fi
6755if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6757$as_echo "failed" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6760$as_echo "ok" >&6; }
6761fi
6762
6763# Response file support.
6764if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6765  nm_file_list_spec='@'
6766elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6767  nm_file_list_spec='@'
6768fi
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6797$as_echo_n "checking for sysroot... " >&6; }
6798
6799# Check whether --with-sysroot was given.
6800if test "${with_sysroot+set}" = set; then :
6801  withval=$with_sysroot;
6802else
6803  with_sysroot=no
6804fi
6805
6806
6807lt_sysroot=
6808case ${with_sysroot} in #(
6809 yes)
6810   if test "$GCC" = yes; then
6811     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6812   fi
6813   ;; #(
6814 /*)
6815   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6816   ;; #(
6817 no|'')
6818   ;; #(
6819 *)
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6821$as_echo "${with_sysroot}" >&6; }
6822   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6823   ;;
6824esac
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6827$as_echo "${lt_sysroot:-no}" >&6; }
6828
6829
6830
6831
6832
6833# Check whether --enable-libtool-lock was given.
6834if test "${enable_libtool_lock+set}" = set; then :
6835  enableval=$enable_libtool_lock;
6836fi
6837
6838test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6839
6840# Some flags need to be propagated to the compiler or linker for good
6841# libtool support.
6842case $host in
6843ia64-*-hpux*)
6844  # Find out which ABI we are using.
6845  echo 'int i;' > conftest.$ac_ext
6846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6847  (eval $ac_compile) 2>&5
6848  ac_status=$?
6849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850  test $ac_status = 0; }; then
6851    case `/usr/bin/file conftest.$ac_objext` in
6852      *ELF-32*)
6853	HPUX_IA64_MODE="32"
6854	;;
6855      *ELF-64*)
6856	HPUX_IA64_MODE="64"
6857	;;
6858    esac
6859  fi
6860  rm -rf conftest*
6861  ;;
6862*-*-irix6*)
6863  # Find out which ABI we are using.
6864  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6865  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6866  (eval $ac_compile) 2>&5
6867  ac_status=$?
6868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869  test $ac_status = 0; }; then
6870    if test "$lt_cv_prog_gnu_ld" = yes; then
6871      case `/usr/bin/file conftest.$ac_objext` in
6872	*32-bit*)
6873	  LD="${LD-ld} -melf32bsmip"
6874	  ;;
6875	*N32*)
6876	  LD="${LD-ld} -melf32bmipn32"
6877	  ;;
6878	*64-bit*)
6879	  LD="${LD-ld} -melf64bmip"
6880	;;
6881      esac
6882    else
6883      case `/usr/bin/file conftest.$ac_objext` in
6884	*32-bit*)
6885	  LD="${LD-ld} -32"
6886	  ;;
6887	*N32*)
6888	  LD="${LD-ld} -n32"
6889	  ;;
6890	*64-bit*)
6891	  LD="${LD-ld} -64"
6892	  ;;
6893      esac
6894    fi
6895  fi
6896  rm -rf conftest*
6897  ;;
6898
6899x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6900s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6901  # Find out which ABI we are using.
6902  echo 'int i;' > conftest.$ac_ext
6903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6904  (eval $ac_compile) 2>&5
6905  ac_status=$?
6906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907  test $ac_status = 0; }; then
6908    case `/usr/bin/file conftest.o` in
6909      *32-bit*)
6910	case $host in
6911	  x86_64-*kfreebsd*-gnu)
6912	    LD="${LD-ld} -m elf_i386_fbsd"
6913	    ;;
6914	  x86_64-*linux*)
6915	    LD="${LD-ld} -m elf_i386"
6916	    ;;
6917	  ppc64-*linux*|powerpc64-*linux*)
6918	    LD="${LD-ld} -m elf32ppclinux"
6919	    ;;
6920	  s390x-*linux*)
6921	    LD="${LD-ld} -m elf_s390"
6922	    ;;
6923	  sparc64-*linux*)
6924	    LD="${LD-ld} -m elf32_sparc"
6925	    ;;
6926	esac
6927	;;
6928      *64-bit*)
6929	case $host in
6930	  x86_64-*kfreebsd*-gnu)
6931	    LD="${LD-ld} -m elf_x86_64_fbsd"
6932	    ;;
6933	  x86_64-*linux*)
6934	    LD="${LD-ld} -m elf_x86_64"
6935	    ;;
6936	  ppc*-*linux*|powerpc*-*linux*)
6937	    LD="${LD-ld} -m elf64ppc"
6938	    ;;
6939	  s390*-*linux*|s390*-*tpf*)
6940	    LD="${LD-ld} -m elf64_s390"
6941	    ;;
6942	  sparc*-*linux*)
6943	    LD="${LD-ld} -m elf64_sparc"
6944	    ;;
6945	esac
6946	;;
6947    esac
6948  fi
6949  rm -rf conftest*
6950  ;;
6951
6952*-*-sco3.2v5*)
6953  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6954  SAVE_CFLAGS="$CFLAGS"
6955  CFLAGS="$CFLAGS -belf"
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6957$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6958if ${lt_cv_cc_needs_belf+:} false; then :
6959  $as_echo_n "(cached) " >&6
6960else
6961  ac_ext=c
6962ac_cpp='$CPP $CPPFLAGS'
6963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969
6970int
6971main ()
6972{
6973
6974  ;
6975  return 0;
6976}
6977_ACEOF
6978if ac_fn_c_try_link "$LINENO"; then :
6979  lt_cv_cc_needs_belf=yes
6980else
6981  lt_cv_cc_needs_belf=no
6982fi
6983rm -f core conftest.err conftest.$ac_objext \
6984    conftest$ac_exeext conftest.$ac_ext
6985     ac_ext=c
6986ac_cpp='$CPP $CPPFLAGS'
6987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6993$as_echo "$lt_cv_cc_needs_belf" >&6; }
6994  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6995    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6996    CFLAGS="$SAVE_CFLAGS"
6997  fi
6998  ;;
6999sparc*-*solaris*)
7000  # Find out which ABI we are using.
7001  echo 'int i;' > conftest.$ac_ext
7002  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7003  (eval $ac_compile) 2>&5
7004  ac_status=$?
7005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006  test $ac_status = 0; }; then
7007    case `/usr/bin/file conftest.o` in
7008    *64-bit*)
7009      case $lt_cv_prog_gnu_ld in
7010      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7011      *)
7012	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7013	  LD="${LD-ld} -64"
7014	fi
7015	;;
7016      esac
7017      ;;
7018    esac
7019  fi
7020  rm -rf conftest*
7021  ;;
7022esac
7023
7024need_locks="$enable_libtool_lock"
7025
7026if test -n "$ac_tool_prefix"; then
7027  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7028set dummy ${ac_tool_prefix}mt; ac_word=$2
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030$as_echo_n "checking for $ac_word... " >&6; }
7031if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  if test -n "$MANIFEST_TOOL"; then
7035  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7036else
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040  IFS=$as_save_IFS
7041  test -z "$as_dir" && as_dir=.
7042    for ac_exec_ext in '' $ac_executable_extensions; do
7043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046    break 2
7047  fi
7048done
7049  done
7050IFS=$as_save_IFS
7051
7052fi
7053fi
7054MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7055if test -n "$MANIFEST_TOOL"; then
7056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7057$as_echo "$MANIFEST_TOOL" >&6; }
7058else
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060$as_echo "no" >&6; }
7061fi
7062
7063
7064fi
7065if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7066  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7067  # Extract the first word of "mt", so it can be a program name with args.
7068set dummy mt; ac_word=$2
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070$as_echo_n "checking for $ac_word... " >&6; }
7071if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  if test -n "$ac_ct_MANIFEST_TOOL"; then
7075  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080  IFS=$as_save_IFS
7081  test -z "$as_dir" && as_dir=.
7082    for ac_exec_ext in '' $ac_executable_extensions; do
7083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086    break 2
7087  fi
7088done
7089  done
7090IFS=$as_save_IFS
7091
7092fi
7093fi
7094ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7095if test -n "$ac_ct_MANIFEST_TOOL"; then
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7097$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7098else
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100$as_echo "no" >&6; }
7101fi
7102
7103  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7104    MANIFEST_TOOL=":"
7105  else
7106    case $cross_compiling:$ac_tool_warned in
7107yes:)
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7113  fi
7114else
7115  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7116fi
7117
7118test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7120$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7121if ${lt_cv_path_mainfest_tool+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  lt_cv_path_mainfest_tool=no
7125  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7126  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7127  cat conftest.err >&5
7128  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7129    lt_cv_path_mainfest_tool=yes
7130  fi
7131  rm -f conftest*
7132fi
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7134$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7135if test "x$lt_cv_path_mainfest_tool" != xyes; then
7136  MANIFEST_TOOL=:
7137fi
7138
7139
7140
7141
7142
7143
7144  case $host_os in
7145    rhapsody* | darwin*)
7146    if test -n "$ac_tool_prefix"; then
7147  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7148set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150$as_echo_n "checking for $ac_word... " >&6; }
7151if ${ac_cv_prog_DSYMUTIL+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  if test -n "$DSYMUTIL"; then
7155  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160  IFS=$as_save_IFS
7161  test -z "$as_dir" && as_dir=.
7162    for ac_exec_ext in '' $ac_executable_extensions; do
7163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166    break 2
7167  fi
7168done
7169  done
7170IFS=$as_save_IFS
7171
7172fi
7173fi
7174DSYMUTIL=$ac_cv_prog_DSYMUTIL
7175if test -n "$DSYMUTIL"; then
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7177$as_echo "$DSYMUTIL" >&6; }
7178else
7179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180$as_echo "no" >&6; }
7181fi
7182
7183
7184fi
7185if test -z "$ac_cv_prog_DSYMUTIL"; then
7186  ac_ct_DSYMUTIL=$DSYMUTIL
7187  # Extract the first word of "dsymutil", so it can be a program name with args.
7188set dummy dsymutil; ac_word=$2
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190$as_echo_n "checking for $ac_word... " >&6; }
7191if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7192  $as_echo_n "(cached) " >&6
7193else
7194  if test -n "$ac_ct_DSYMUTIL"; then
7195  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7196else
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202    for ac_exec_ext in '' $ac_executable_extensions; do
7203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209  done
7210IFS=$as_save_IFS
7211
7212fi
7213fi
7214ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7215if test -n "$ac_ct_DSYMUTIL"; then
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7217$as_echo "$ac_ct_DSYMUTIL" >&6; }
7218else
7219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220$as_echo "no" >&6; }
7221fi
7222
7223  if test "x$ac_ct_DSYMUTIL" = x; then
7224    DSYMUTIL=":"
7225  else
7226    case $cross_compiling:$ac_tool_warned in
7227yes:)
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230ac_tool_warned=yes ;;
7231esac
7232    DSYMUTIL=$ac_ct_DSYMUTIL
7233  fi
7234else
7235  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7236fi
7237
7238    if test -n "$ac_tool_prefix"; then
7239  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7240set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242$as_echo_n "checking for $ac_word... " >&6; }
7243if ${ac_cv_prog_NMEDIT+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  if test -n "$NMEDIT"; then
7247  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7248else
7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252  IFS=$as_save_IFS
7253  test -z "$as_dir" && as_dir=.
7254    for ac_exec_ext in '' $ac_executable_extensions; do
7255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258    break 2
7259  fi
7260done
7261  done
7262IFS=$as_save_IFS
7263
7264fi
7265fi
7266NMEDIT=$ac_cv_prog_NMEDIT
7267if test -n "$NMEDIT"; then
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7269$as_echo "$NMEDIT" >&6; }
7270else
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273fi
7274
7275
7276fi
7277if test -z "$ac_cv_prog_NMEDIT"; then
7278  ac_ct_NMEDIT=$NMEDIT
7279  # Extract the first word of "nmedit", so it can be a program name with args.
7280set dummy nmedit; ac_word=$2
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282$as_echo_n "checking for $ac_word... " >&6; }
7283if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  if test -n "$ac_ct_NMEDIT"; then
7287  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7288else
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292  IFS=$as_save_IFS
7293  test -z "$as_dir" && as_dir=.
7294    for ac_exec_ext in '' $ac_executable_extensions; do
7295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298    break 2
7299  fi
7300done
7301  done
7302IFS=$as_save_IFS
7303
7304fi
7305fi
7306ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7307if test -n "$ac_ct_NMEDIT"; then
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7309$as_echo "$ac_ct_NMEDIT" >&6; }
7310else
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312$as_echo "no" >&6; }
7313fi
7314
7315  if test "x$ac_ct_NMEDIT" = x; then
7316    NMEDIT=":"
7317  else
7318    case $cross_compiling:$ac_tool_warned in
7319yes:)
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7322ac_tool_warned=yes ;;
7323esac
7324    NMEDIT=$ac_ct_NMEDIT
7325  fi
7326else
7327  NMEDIT="$ac_cv_prog_NMEDIT"
7328fi
7329
7330    if test -n "$ac_tool_prefix"; then
7331  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7332set dummy ${ac_tool_prefix}lipo; ac_word=$2
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334$as_echo_n "checking for $ac_word... " >&6; }
7335if ${ac_cv_prog_LIPO+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  if test -n "$LIPO"; then
7339  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346    for ac_exec_ext in '' $ac_executable_extensions; do
7347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353  done
7354IFS=$as_save_IFS
7355
7356fi
7357fi
7358LIPO=$ac_cv_prog_LIPO
7359if test -n "$LIPO"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7361$as_echo "$LIPO" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365fi
7366
7367
7368fi
7369if test -z "$ac_cv_prog_LIPO"; then
7370  ac_ct_LIPO=$LIPO
7371  # Extract the first word of "lipo", so it can be a program name with args.
7372set dummy lipo; ac_word=$2
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374$as_echo_n "checking for $ac_word... " >&6; }
7375if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  if test -n "$ac_ct_LIPO"; then
7379  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7380else
7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384  IFS=$as_save_IFS
7385  test -z "$as_dir" && as_dir=.
7386    for ac_exec_ext in '' $ac_executable_extensions; do
7387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388    ac_cv_prog_ac_ct_LIPO="lipo"
7389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390    break 2
7391  fi
7392done
7393  done
7394IFS=$as_save_IFS
7395
7396fi
7397fi
7398ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7399if test -n "$ac_ct_LIPO"; then
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7401$as_echo "$ac_ct_LIPO" >&6; }
7402else
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
7405fi
7406
7407  if test "x$ac_ct_LIPO" = x; then
7408    LIPO=":"
7409  else
7410    case $cross_compiling:$ac_tool_warned in
7411yes:)
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414ac_tool_warned=yes ;;
7415esac
7416    LIPO=$ac_ct_LIPO
7417  fi
7418else
7419  LIPO="$ac_cv_prog_LIPO"
7420fi
7421
7422    if test -n "$ac_tool_prefix"; then
7423  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7424set dummy ${ac_tool_prefix}otool; ac_word=$2
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426$as_echo_n "checking for $ac_word... " >&6; }
7427if ${ac_cv_prog_OTOOL+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  if test -n "$OTOOL"; then
7431  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436  IFS=$as_save_IFS
7437  test -z "$as_dir" && as_dir=.
7438    for ac_exec_ext in '' $ac_executable_extensions; do
7439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442    break 2
7443  fi
7444done
7445  done
7446IFS=$as_save_IFS
7447
7448fi
7449fi
7450OTOOL=$ac_cv_prog_OTOOL
7451if test -n "$OTOOL"; then
7452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7453$as_echo "$OTOOL" >&6; }
7454else
7455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
7457fi
7458
7459
7460fi
7461if test -z "$ac_cv_prog_OTOOL"; then
7462  ac_ct_OTOOL=$OTOOL
7463  # Extract the first word of "otool", so it can be a program name with args.
7464set dummy otool; ac_word=$2
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466$as_echo_n "checking for $ac_word... " >&6; }
7467if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  if test -n "$ac_ct_OTOOL"; then
7471  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476  IFS=$as_save_IFS
7477  test -z "$as_dir" && as_dir=.
7478    for ac_exec_ext in '' $ac_executable_extensions; do
7479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480    ac_cv_prog_ac_ct_OTOOL="otool"
7481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482    break 2
7483  fi
7484done
7485  done
7486IFS=$as_save_IFS
7487
7488fi
7489fi
7490ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7491if test -n "$ac_ct_OTOOL"; then
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7493$as_echo "$ac_ct_OTOOL" >&6; }
7494else
7495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496$as_echo "no" >&6; }
7497fi
7498
7499  if test "x$ac_ct_OTOOL" = x; then
7500    OTOOL=":"
7501  else
7502    case $cross_compiling:$ac_tool_warned in
7503yes:)
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506ac_tool_warned=yes ;;
7507esac
7508    OTOOL=$ac_ct_OTOOL
7509  fi
7510else
7511  OTOOL="$ac_cv_prog_OTOOL"
7512fi
7513
7514    if test -n "$ac_tool_prefix"; then
7515  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7516set dummy ${ac_tool_prefix}otool64; ac_word=$2
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518$as_echo_n "checking for $ac_word... " >&6; }
7519if ${ac_cv_prog_OTOOL64+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  if test -n "$OTOOL64"; then
7523  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7524else
7525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528  IFS=$as_save_IFS
7529  test -z "$as_dir" && as_dir=.
7530    for ac_exec_ext in '' $ac_executable_extensions; do
7531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534    break 2
7535  fi
7536done
7537  done
7538IFS=$as_save_IFS
7539
7540fi
7541fi
7542OTOOL64=$ac_cv_prog_OTOOL64
7543if test -n "$OTOOL64"; then
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7545$as_echo "$OTOOL64" >&6; }
7546else
7547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548$as_echo "no" >&6; }
7549fi
7550
7551
7552fi
7553if test -z "$ac_cv_prog_OTOOL64"; then
7554  ac_ct_OTOOL64=$OTOOL64
7555  # Extract the first word of "otool64", so it can be a program name with args.
7556set dummy otool64; ac_word=$2
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558$as_echo_n "checking for $ac_word... " >&6; }
7559if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  if test -n "$ac_ct_OTOOL64"; then
7563  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568  IFS=$as_save_IFS
7569  test -z "$as_dir" && as_dir=.
7570    for ac_exec_ext in '' $ac_executable_extensions; do
7571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572    ac_cv_prog_ac_ct_OTOOL64="otool64"
7573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574    break 2
7575  fi
7576done
7577  done
7578IFS=$as_save_IFS
7579
7580fi
7581fi
7582ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7583if test -n "$ac_ct_OTOOL64"; then
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7585$as_echo "$ac_ct_OTOOL64" >&6; }
7586else
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
7590
7591  if test "x$ac_ct_OTOOL64" = x; then
7592    OTOOL64=":"
7593  else
7594    case $cross_compiling:$ac_tool_warned in
7595yes:)
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598ac_tool_warned=yes ;;
7599esac
7600    OTOOL64=$ac_ct_OTOOL64
7601  fi
7602else
7603  OTOOL64="$ac_cv_prog_OTOOL64"
7604fi
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7633$as_echo_n "checking for -single_module linker flag... " >&6; }
7634if ${lt_cv_apple_cc_single_mod+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  lt_cv_apple_cc_single_mod=no
7638      if test -z "${LT_MULTI_MODULE}"; then
7639	# By default we will add the -single_module flag. You can override
7640	# by either setting the environment variable LT_MULTI_MODULE
7641	# non-empty at configure time, or by adding -multi_module to the
7642	# link flags.
7643	rm -rf libconftest.dylib*
7644	echo "int foo(void){return 1;}" > conftest.c
7645	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7646-dynamiclib -Wl,-single_module conftest.c" >&5
7647	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7648	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7649        _lt_result=$?
7650	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7651	  lt_cv_apple_cc_single_mod=yes
7652	else
7653	  cat conftest.err >&5
7654	fi
7655	rm -rf libconftest.dylib*
7656	rm -f conftest.*
7657      fi
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7660$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7662$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7663if ${lt_cv_ld_exported_symbols_list+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  lt_cv_ld_exported_symbols_list=no
7667      save_LDFLAGS=$LDFLAGS
7668      echo "_main" > conftest.sym
7669      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7670      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672
7673int
7674main ()
7675{
7676
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_c_try_link "$LINENO"; then :
7682  lt_cv_ld_exported_symbols_list=yes
7683else
7684  lt_cv_ld_exported_symbols_list=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext \
7687    conftest$ac_exeext conftest.$ac_ext
7688	LDFLAGS="$save_LDFLAGS"
7689
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7692$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7694$as_echo_n "checking for -force_load linker flag... " >&6; }
7695if ${lt_cv_ld_force_load+:} false; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  lt_cv_ld_force_load=no
7699      cat > conftest.c << _LT_EOF
7700int forced_loaded() { return 2;}
7701_LT_EOF
7702      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7703      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7704      echo "$AR cru libconftest.a conftest.o" >&5
7705      $AR cru libconftest.a conftest.o 2>&5
7706      echo "$RANLIB libconftest.a" >&5
7707      $RANLIB libconftest.a 2>&5
7708      cat > conftest.c << _LT_EOF
7709int main() { return 0;}
7710_LT_EOF
7711      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7712      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7713      _lt_result=$?
7714      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7715	lt_cv_ld_force_load=yes
7716      else
7717	cat conftest.err >&5
7718      fi
7719        rm -f conftest.err libconftest.a conftest conftest.c
7720        rm -rf conftest.dSYM
7721
7722fi
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7724$as_echo "$lt_cv_ld_force_load" >&6; }
7725    case $host_os in
7726    rhapsody* | darwin1.[012])
7727      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7728    darwin1.*)
7729      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7730    darwin*) # darwin 5.x on
7731      # if running on 10.5 or later, the deployment target defaults
7732      # to the OS version, if on x86, and 10.4, the deployment
7733      # target defaults to 10.4. Don't you love it?
7734      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7735	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7736	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7737	10.[012]*)
7738	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7739	10.*)
7740	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7741      esac
7742    ;;
7743  esac
7744    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7745      _lt_dar_single_mod='$single_module'
7746    fi
7747    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7748      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7749    else
7750      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7751    fi
7752    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7753      _lt_dsymutil='~$DSYMUTIL $lib || :'
7754    else
7755      _lt_dsymutil=
7756    fi
7757    ;;
7758  esac
7759
7760for ac_header in dlfcn.h
7761do :
7762  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7763"
7764if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7765  cat >>confdefs.h <<_ACEOF
7766#define HAVE_DLFCN_H 1
7767_ACEOF
7768
7769fi
7770
7771done
7772
7773
7774
7775
7776
7777# Set options
7778# Check whether --enable-static was given.
7779if test "${enable_static+set}" = set; then :
7780  enableval=$enable_static; p=${PACKAGE-default}
7781    case $enableval in
7782    yes) enable_static=yes ;;
7783    no) enable_static=no ;;
7784    *)
7785     enable_static=no
7786      # Look at the argument we got.  We use all the common list separators.
7787      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7788      for pkg in $enableval; do
7789	IFS="$lt_save_ifs"
7790	if test "X$pkg" = "X$p"; then
7791	  enable_static=yes
7792	fi
7793      done
7794      IFS="$lt_save_ifs"
7795      ;;
7796    esac
7797else
7798  enable_static=no
7799fi
7800
7801
7802
7803
7804
7805
7806
7807enable_dlopen=yes
7808
7809
7810
7811
7812  enable_win32_dll=no
7813
7814
7815            # Check whether --enable-shared was given.
7816if test "${enable_shared+set}" = set; then :
7817  enableval=$enable_shared; p=${PACKAGE-default}
7818    case $enableval in
7819    yes) enable_shared=yes ;;
7820    no) enable_shared=no ;;
7821    *)
7822      enable_shared=no
7823      # Look at the argument we got.  We use all the common list separators.
7824      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7825      for pkg in $enableval; do
7826	IFS="$lt_save_ifs"
7827	if test "X$pkg" = "X$p"; then
7828	  enable_shared=yes
7829	fi
7830      done
7831      IFS="$lt_save_ifs"
7832      ;;
7833    esac
7834else
7835  enable_shared=yes
7836fi
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848# Check whether --with-pic was given.
7849if test "${with_pic+set}" = set; then :
7850  withval=$with_pic; pic_mode="$withval"
7851else
7852  pic_mode=default
7853fi
7854
7855
7856test -z "$pic_mode" && pic_mode=default
7857
7858
7859
7860
7861
7862
7863
7864  # Check whether --enable-fast-install was given.
7865if test "${enable_fast_install+set}" = set; then :
7866  enableval=$enable_fast_install; p=${PACKAGE-default}
7867    case $enableval in
7868    yes) enable_fast_install=yes ;;
7869    no) enable_fast_install=no ;;
7870    *)
7871      enable_fast_install=no
7872      # Look at the argument we got.  We use all the common list separators.
7873      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7874      for pkg in $enableval; do
7875	IFS="$lt_save_ifs"
7876	if test "X$pkg" = "X$p"; then
7877	  enable_fast_install=yes
7878	fi
7879      done
7880      IFS="$lt_save_ifs"
7881      ;;
7882    esac
7883else
7884  enable_fast_install=yes
7885fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897# This can be used to rebuild libtool when needed
7898LIBTOOL_DEPS="$ltmain"
7899
7900# Always use our own libtool.
7901LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928test -z "$LN_S" && LN_S="ln -s"
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943if test -n "${ZSH_VERSION+set}" ; then
7944   setopt NO_GLOB_SUBST
7945fi
7946
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7948$as_echo_n "checking for objdir... " >&6; }
7949if ${lt_cv_objdir+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  rm -f .libs 2>/dev/null
7953mkdir .libs 2>/dev/null
7954if test -d .libs; then
7955  lt_cv_objdir=.libs
7956else
7957  # MS-DOS does not allow filenames that begin with a dot.
7958  lt_cv_objdir=_libs
7959fi
7960rmdir .libs 2>/dev/null
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7963$as_echo "$lt_cv_objdir" >&6; }
7964objdir=$lt_cv_objdir
7965
7966
7967
7968
7969
7970cat >>confdefs.h <<_ACEOF
7971#define LT_OBJDIR "$lt_cv_objdir/"
7972_ACEOF
7973
7974
7975
7976
7977case $host_os in
7978aix3*)
7979  # AIX sometimes has problems with the GCC collect2 program.  For some
7980  # reason, if we set the COLLECT_NAMES environment variable, the problems
7981  # vanish in a puff of smoke.
7982  if test "X${COLLECT_NAMES+set}" != Xset; then
7983    COLLECT_NAMES=
7984    export COLLECT_NAMES
7985  fi
7986  ;;
7987esac
7988
7989# Global variables:
7990ofile=libtool
7991can_build_shared=yes
7992
7993# All known linkers require a `.a' archive for static linking (except MSVC,
7994# which needs '.lib').
7995libext=a
7996
7997with_gnu_ld="$lt_cv_prog_gnu_ld"
7998
7999old_CC="$CC"
8000old_CFLAGS="$CFLAGS"
8001
8002# Set sane defaults for various variables
8003test -z "$CC" && CC=cc
8004test -z "$LTCC" && LTCC=$CC
8005test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8006test -z "$LD" && LD=ld
8007test -z "$ac_objext" && ac_objext=o
8008
8009for cc_temp in $compiler""; do
8010  case $cc_temp in
8011    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8012    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8013    \-*) ;;
8014    *) break;;
8015  esac
8016done
8017cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8018
8019
8020# Only perform the check for file, if the check method requires it
8021test -z "$MAGIC_CMD" && MAGIC_CMD=file
8022case $deplibs_check_method in
8023file_magic*)
8024  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8026$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8027if ${lt_cv_path_MAGIC_CMD+:} false; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  case $MAGIC_CMD in
8031[\\/*] |  ?:[\\/]*)
8032  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8033  ;;
8034*)
8035  lt_save_MAGIC_CMD="$MAGIC_CMD"
8036  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8037  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8038  for ac_dir in $ac_dummy; do
8039    IFS="$lt_save_ifs"
8040    test -z "$ac_dir" && ac_dir=.
8041    if test -f $ac_dir/${ac_tool_prefix}file; then
8042      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8043      if test -n "$file_magic_test_file"; then
8044	case $deplibs_check_method in
8045	"file_magic "*)
8046	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8047	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8049	    $EGREP "$file_magic_regex" > /dev/null; then
8050	    :
8051	  else
8052	    cat <<_LT_EOF 1>&2
8053
8054*** Warning: the command libtool uses to detect shared libraries,
8055*** $file_magic_cmd, produces output that libtool cannot recognize.
8056*** The result is that libtool may fail to recognize shared libraries
8057*** as such.  This will affect the creation of libtool libraries that
8058*** depend on shared libraries, but programs linked with such libtool
8059*** libraries will work regardless of this problem.  Nevertheless, you
8060*** may want to report the problem to your system manager and/or to
8061*** bug-libtool@gnu.org
8062
8063_LT_EOF
8064	  fi ;;
8065	esac
8066      fi
8067      break
8068    fi
8069  done
8070  IFS="$lt_save_ifs"
8071  MAGIC_CMD="$lt_save_MAGIC_CMD"
8072  ;;
8073esac
8074fi
8075
8076MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077if test -n "$MAGIC_CMD"; then
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8079$as_echo "$MAGIC_CMD" >&6; }
8080else
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8084
8085
8086
8087
8088
8089if test -z "$lt_cv_path_MAGIC_CMD"; then
8090  if test -n "$ac_tool_prefix"; then
8091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8092$as_echo_n "checking for file... " >&6; }
8093if ${lt_cv_path_MAGIC_CMD+:} false; then :
8094  $as_echo_n "(cached) " >&6
8095else
8096  case $MAGIC_CMD in
8097[\\/*] |  ?:[\\/]*)
8098  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8099  ;;
8100*)
8101  lt_save_MAGIC_CMD="$MAGIC_CMD"
8102  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8103  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8104  for ac_dir in $ac_dummy; do
8105    IFS="$lt_save_ifs"
8106    test -z "$ac_dir" && ac_dir=.
8107    if test -f $ac_dir/file; then
8108      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8109      if test -n "$file_magic_test_file"; then
8110	case $deplibs_check_method in
8111	"file_magic "*)
8112	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8113	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8114	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8115	    $EGREP "$file_magic_regex" > /dev/null; then
8116	    :
8117	  else
8118	    cat <<_LT_EOF 1>&2
8119
8120*** Warning: the command libtool uses to detect shared libraries,
8121*** $file_magic_cmd, produces output that libtool cannot recognize.
8122*** The result is that libtool may fail to recognize shared libraries
8123*** as such.  This will affect the creation of libtool libraries that
8124*** depend on shared libraries, but programs linked with such libtool
8125*** libraries will work regardless of this problem.  Nevertheless, you
8126*** may want to report the problem to your system manager and/or to
8127*** bug-libtool@gnu.org
8128
8129_LT_EOF
8130	  fi ;;
8131	esac
8132      fi
8133      break
8134    fi
8135  done
8136  IFS="$lt_save_ifs"
8137  MAGIC_CMD="$lt_save_MAGIC_CMD"
8138  ;;
8139esac
8140fi
8141
8142MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143if test -n "$MAGIC_CMD"; then
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8145$as_echo "$MAGIC_CMD" >&6; }
8146else
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151
8152  else
8153    MAGIC_CMD=:
8154  fi
8155fi
8156
8157  fi
8158  ;;
8159esac
8160
8161# Use C for the default configuration in the libtool script
8162
8163lt_save_CC="$CC"
8164ac_ext=c
8165ac_cpp='$CPP $CPPFLAGS'
8166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171# Source file extension for C test sources.
8172ac_ext=c
8173
8174# Object file extension for compiled C test sources.
8175objext=o
8176objext=$objext
8177
8178# Code to be used in simple compile tests
8179lt_simple_compile_test_code="int some_variable = 0;"
8180
8181# Code to be used in simple link tests
8182lt_simple_link_test_code='int main(){return(0);}'
8183
8184
8185
8186
8187
8188
8189
8190# If no C compiler was specified, use CC.
8191LTCC=${LTCC-"$CC"}
8192
8193# If no C compiler flags were specified, use CFLAGS.
8194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8195
8196# Allow CC to be a program name with arguments.
8197compiler=$CC
8198
8199# Save the default compiler, since it gets overwritten when the other
8200# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8201compiler_DEFAULT=$CC
8202
8203# save warnings/boilerplate of simple test code
8204ac_outfile=conftest.$ac_objext
8205echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8206eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207_lt_compiler_boilerplate=`cat conftest.err`
8208$RM conftest*
8209
8210ac_outfile=conftest.$ac_objext
8211echo "$lt_simple_link_test_code" >conftest.$ac_ext
8212eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8213_lt_linker_boilerplate=`cat conftest.err`
8214$RM -r conftest*
8215
8216
8217if test -n "$compiler"; then
8218
8219lt_prog_compiler_no_builtin_flag=
8220
8221if test "$GCC" = yes; then
8222  case $cc_basename in
8223  nvcc*)
8224    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8225  *)
8226    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8227  esac
8228
8229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8230$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8231if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  lt_cv_prog_compiler_rtti_exceptions=no
8235   ac_outfile=conftest.$ac_objext
8236   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8237   lt_compiler_flag="-fno-rtti -fno-exceptions"
8238   # Insert the option either (1) after the last *FLAGS variable, or
8239   # (2) before a word containing "conftest.", or (3) at the end.
8240   # Note that $ac_compile itself does not contain backslashes and begins
8241   # with a dollar sign (not a hyphen), so the echo should work correctly.
8242   # The option is referenced via a variable to avoid confusing sed.
8243   lt_compile=`echo "$ac_compile" | $SED \
8244   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8246   -e 's:$: $lt_compiler_flag:'`
8247   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8248   (eval "$lt_compile" 2>conftest.err)
8249   ac_status=$?
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   if (exit $ac_status) && test -s "$ac_outfile"; then
8253     # The compiler can only warn and ignore the option if not recognized
8254     # So say no if there are warnings other than the usual output.
8255     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8256     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8257     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8258       lt_cv_prog_compiler_rtti_exceptions=yes
8259     fi
8260   fi
8261   $RM conftest*
8262
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8265$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8266
8267if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8268    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8269else
8270    :
8271fi
8272
8273fi
8274
8275
8276
8277
8278
8279
8280  lt_prog_compiler_wl=
8281lt_prog_compiler_pic=
8282lt_prog_compiler_static=
8283
8284
8285  if test "$GCC" = yes; then
8286    lt_prog_compiler_wl='-Wl,'
8287    lt_prog_compiler_static='-static'
8288
8289    case $host_os in
8290      aix*)
8291      # All AIX code is PIC.
8292      if test "$host_cpu" = ia64; then
8293	# AIX 5 now supports IA64 processor
8294	lt_prog_compiler_static='-Bstatic'
8295      fi
8296      ;;
8297
8298    amigaos*)
8299      case $host_cpu in
8300      powerpc)
8301            # see comment about AmigaOS4 .so support
8302            lt_prog_compiler_pic='-fPIC'
8303        ;;
8304      m68k)
8305            # FIXME: we need at least 68020 code to build shared libraries, but
8306            # adding the `-m68020' flag to GCC prevents building anything better,
8307            # like `-m68040'.
8308            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8309        ;;
8310      esac
8311      ;;
8312
8313    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8314      # PIC is the default for these OSes.
8315      ;;
8316
8317    mingw* | cygwin* | pw32* | os2* | cegcc*)
8318      # This hack is so that the source file can tell whether it is being
8319      # built for inclusion in a dll (and should export symbols for example).
8320      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8321      # (--disable-auto-import) libraries
8322      lt_prog_compiler_pic='-DDLL_EXPORT'
8323      ;;
8324
8325    darwin* | rhapsody*)
8326      # PIC is the default on this platform
8327      # Common symbols not allowed in MH_DYLIB files
8328      lt_prog_compiler_pic='-fno-common'
8329      ;;
8330
8331    haiku*)
8332      # PIC is the default for Haiku.
8333      # The "-static" flag exists, but is broken.
8334      lt_prog_compiler_static=
8335      ;;
8336
8337    hpux*)
8338      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8339      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8340      # sets the default TLS model and affects inlining.
8341      case $host_cpu in
8342      hppa*64*)
8343	# +Z the default
8344	;;
8345      *)
8346	lt_prog_compiler_pic='-fPIC'
8347	;;
8348      esac
8349      ;;
8350
8351    interix[3-9]*)
8352      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8353      # Instead, we relocate shared libraries at runtime.
8354      ;;
8355
8356    msdosdjgpp*)
8357      # Just because we use GCC doesn't mean we suddenly get shared libraries
8358      # on systems that don't support them.
8359      lt_prog_compiler_can_build_shared=no
8360      enable_shared=no
8361      ;;
8362
8363    *nto* | *qnx*)
8364      # QNX uses GNU C++, but need to define -shared option too, otherwise
8365      # it will coredump.
8366      lt_prog_compiler_pic='-fPIC -shared'
8367      ;;
8368
8369    sysv4*MP*)
8370      if test -d /usr/nec; then
8371	lt_prog_compiler_pic=-Kconform_pic
8372      fi
8373      ;;
8374
8375    *)
8376      lt_prog_compiler_pic='-fPIC'
8377      ;;
8378    esac
8379
8380    case $cc_basename in
8381    nvcc*) # Cuda Compiler Driver 2.2
8382      lt_prog_compiler_wl='-Xlinker '
8383      lt_prog_compiler_pic='-Xcompiler -fPIC'
8384      ;;
8385    esac
8386  else
8387    # PORTME Check for flag to pass linker flags through the system compiler.
8388    case $host_os in
8389    aix*)
8390      lt_prog_compiler_wl='-Wl,'
8391      if test "$host_cpu" = ia64; then
8392	# AIX 5 now supports IA64 processor
8393	lt_prog_compiler_static='-Bstatic'
8394      else
8395	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8396      fi
8397      ;;
8398
8399    mingw* | cygwin* | pw32* | os2* | cegcc*)
8400      # This hack is so that the source file can tell whether it is being
8401      # built for inclusion in a dll (and should export symbols for example).
8402      lt_prog_compiler_pic='-DDLL_EXPORT'
8403      ;;
8404
8405    hpux9* | hpux10* | hpux11*)
8406      lt_prog_compiler_wl='-Wl,'
8407      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8408      # not for PA HP-UX.
8409      case $host_cpu in
8410      hppa*64*|ia64*)
8411	# +Z the default
8412	;;
8413      *)
8414	lt_prog_compiler_pic='+Z'
8415	;;
8416      esac
8417      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418      lt_prog_compiler_static='${wl}-a ${wl}archive'
8419      ;;
8420
8421    irix5* | irix6* | nonstopux*)
8422      lt_prog_compiler_wl='-Wl,'
8423      # PIC (with -KPIC) is the default.
8424      lt_prog_compiler_static='-non_shared'
8425      ;;
8426
8427    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8428      case $cc_basename in
8429      # old Intel for x86_64 which still supported -KPIC.
8430      ecc*)
8431	lt_prog_compiler_wl='-Wl,'
8432	lt_prog_compiler_pic='-KPIC'
8433	lt_prog_compiler_static='-static'
8434        ;;
8435      # icc used to be incompatible with GCC.
8436      # ICC 10 doesn't accept -KPIC any more.
8437      icc* | ifort*)
8438	lt_prog_compiler_wl='-Wl,'
8439	lt_prog_compiler_pic='-fPIC'
8440	lt_prog_compiler_static='-static'
8441        ;;
8442      # Lahey Fortran 8.1.
8443      lf95*)
8444	lt_prog_compiler_wl='-Wl,'
8445	lt_prog_compiler_pic='--shared'
8446	lt_prog_compiler_static='--static'
8447	;;
8448      nagfor*)
8449	# NAG Fortran compiler
8450	lt_prog_compiler_wl='-Wl,-Wl,,'
8451	lt_prog_compiler_pic='-PIC'
8452	lt_prog_compiler_static='-Bstatic'
8453	;;
8454      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8455        # Portland Group compilers (*not* the Pentium gcc compiler,
8456	# which looks to be a dead project)
8457	lt_prog_compiler_wl='-Wl,'
8458	lt_prog_compiler_pic='-fpic'
8459	lt_prog_compiler_static='-Bstatic'
8460        ;;
8461      ccc*)
8462        lt_prog_compiler_wl='-Wl,'
8463        # All Alpha code is PIC.
8464        lt_prog_compiler_static='-non_shared'
8465        ;;
8466      xl* | bgxl* | bgf* | mpixl*)
8467	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8468	lt_prog_compiler_wl='-Wl,'
8469	lt_prog_compiler_pic='-qpic'
8470	lt_prog_compiler_static='-qstaticlink'
8471	;;
8472      *)
8473	case `$CC -V 2>&1 | sed 5q` in
8474	*Sun\ F* | *Sun*Fortran*)
8475	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476	  lt_prog_compiler_pic='-KPIC'
8477	  lt_prog_compiler_static='-Bstatic'
8478	  lt_prog_compiler_wl=''
8479	  ;;
8480	*Sun\ C*)
8481	  # Sun C 5.9
8482	  lt_prog_compiler_pic='-KPIC'
8483	  lt_prog_compiler_static='-Bstatic'
8484	  lt_prog_compiler_wl='-Wl,'
8485	  ;;
8486	esac
8487	;;
8488      esac
8489      ;;
8490
8491    newsos6)
8492      lt_prog_compiler_pic='-KPIC'
8493      lt_prog_compiler_static='-Bstatic'
8494      ;;
8495
8496    *nto* | *qnx*)
8497      # QNX uses GNU C++, but need to define -shared option too, otherwise
8498      # it will coredump.
8499      lt_prog_compiler_pic='-fPIC -shared'
8500      ;;
8501
8502    osf3* | osf4* | osf5*)
8503      lt_prog_compiler_wl='-Wl,'
8504      # All OSF/1 code is PIC.
8505      lt_prog_compiler_static='-non_shared'
8506      ;;
8507
8508    rdos*)
8509      lt_prog_compiler_static='-non_shared'
8510      ;;
8511
8512    solaris*)
8513      lt_prog_compiler_pic='-KPIC'
8514      lt_prog_compiler_static='-Bstatic'
8515      case $cc_basename in
8516      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8517	lt_prog_compiler_wl='-Qoption ld ';;
8518      *)
8519	lt_prog_compiler_wl='-Wl,';;
8520      esac
8521      ;;
8522
8523    sunos4*)
8524      lt_prog_compiler_wl='-Qoption ld '
8525      lt_prog_compiler_pic='-PIC'
8526      lt_prog_compiler_static='-Bstatic'
8527      ;;
8528
8529    sysv4 | sysv4.2uw2* | sysv4.3*)
8530      lt_prog_compiler_wl='-Wl,'
8531      lt_prog_compiler_pic='-KPIC'
8532      lt_prog_compiler_static='-Bstatic'
8533      ;;
8534
8535    sysv4*MP*)
8536      if test -d /usr/nec ;then
8537	lt_prog_compiler_pic='-Kconform_pic'
8538	lt_prog_compiler_static='-Bstatic'
8539      fi
8540      ;;
8541
8542    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8543      lt_prog_compiler_wl='-Wl,'
8544      lt_prog_compiler_pic='-KPIC'
8545      lt_prog_compiler_static='-Bstatic'
8546      ;;
8547
8548    unicos*)
8549      lt_prog_compiler_wl='-Wl,'
8550      lt_prog_compiler_can_build_shared=no
8551      ;;
8552
8553    uts4*)
8554      lt_prog_compiler_pic='-pic'
8555      lt_prog_compiler_static='-Bstatic'
8556      ;;
8557
8558    *)
8559      lt_prog_compiler_can_build_shared=no
8560      ;;
8561    esac
8562  fi
8563
8564case $host_os in
8565  # For platforms which do not support PIC, -DPIC is meaningless:
8566  *djgpp*)
8567    lt_prog_compiler_pic=
8568    ;;
8569  *)
8570    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8571    ;;
8572esac
8573
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8575$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8576if ${lt_cv_prog_compiler_pic+:} false; then :
8577  $as_echo_n "(cached) " >&6
8578else
8579  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8582$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8583lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8584
8585#
8586# Check to make sure the PIC flag actually works.
8587#
8588if test -n "$lt_prog_compiler_pic"; then
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8590$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8591if ${lt_cv_prog_compiler_pic_works+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  lt_cv_prog_compiler_pic_works=no
8595   ac_outfile=conftest.$ac_objext
8596   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8597   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8598   # Insert the option either (1) after the last *FLAGS variable, or
8599   # (2) before a word containing "conftest.", or (3) at the end.
8600   # Note that $ac_compile itself does not contain backslashes and begins
8601   # with a dollar sign (not a hyphen), so the echo should work correctly.
8602   # The option is referenced via a variable to avoid confusing sed.
8603   lt_compile=`echo "$ac_compile" | $SED \
8604   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606   -e 's:$: $lt_compiler_flag:'`
8607   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8608   (eval "$lt_compile" 2>conftest.err)
8609   ac_status=$?
8610   cat conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   if (exit $ac_status) && test -s "$ac_outfile"; then
8613     # The compiler can only warn and ignore the option if not recognized
8614     # So say no if there are warnings other than the usual output.
8615     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8616     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8617     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8618       lt_cv_prog_compiler_pic_works=yes
8619     fi
8620   fi
8621   $RM conftest*
8622
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8625$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8626
8627if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8628    case $lt_prog_compiler_pic in
8629     "" | " "*) ;;
8630     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8631     esac
8632else
8633    lt_prog_compiler_pic=
8634     lt_prog_compiler_can_build_shared=no
8635fi
8636
8637fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649#
8650# Check to make sure the static flag actually works.
8651#
8652wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8654$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8655if ${lt_cv_prog_compiler_static_works+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658  lt_cv_prog_compiler_static_works=no
8659   save_LDFLAGS="$LDFLAGS"
8660   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8661   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8662   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8663     # The linker can only warn and ignore the option if not recognized
8664     # So say no if there are warnings
8665     if test -s conftest.err; then
8666       # Append any errors to the config.log.
8667       cat conftest.err 1>&5
8668       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8669       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8670       if diff conftest.exp conftest.er2 >/dev/null; then
8671         lt_cv_prog_compiler_static_works=yes
8672       fi
8673     else
8674       lt_cv_prog_compiler_static_works=yes
8675     fi
8676   fi
8677   $RM -r conftest*
8678   LDFLAGS="$save_LDFLAGS"
8679
8680fi
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8682$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8683
8684if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8685    :
8686else
8687    lt_prog_compiler_static=
8688fi
8689
8690
8691
8692
8693
8694
8695
8696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8697$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8698if ${lt_cv_prog_compiler_c_o+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  lt_cv_prog_compiler_c_o=no
8702   $RM -r conftest 2>/dev/null
8703   mkdir conftest
8704   cd conftest
8705   mkdir out
8706   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8707
8708   lt_compiler_flag="-o out/conftest2.$ac_objext"
8709   # Insert the option either (1) after the last *FLAGS variable, or
8710   # (2) before a word containing "conftest.", or (3) at the end.
8711   # Note that $ac_compile itself does not contain backslashes and begins
8712   # with a dollar sign (not a hyphen), so the echo should work correctly.
8713   lt_compile=`echo "$ac_compile" | $SED \
8714   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8715   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8716   -e 's:$: $lt_compiler_flag:'`
8717   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8718   (eval "$lt_compile" 2>out/conftest.err)
8719   ac_status=$?
8720   cat out/conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8723   then
8724     # The compiler can only warn and ignore the option if not recognized
8725     # So say no if there are warnings
8726     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8727     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8728     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8729       lt_cv_prog_compiler_c_o=yes
8730     fi
8731   fi
8732   chmod u+w . 2>&5
8733   $RM conftest*
8734   # SGI C++ compiler will create directory out/ii_files/ for
8735   # template instantiation
8736   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8737   $RM out/* && rmdir out
8738   cd ..
8739   $RM -r conftest
8740   $RM conftest*
8741
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8744$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8745
8746
8747
8748
8749
8750
8751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8752$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8753if ${lt_cv_prog_compiler_c_o+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  lt_cv_prog_compiler_c_o=no
8757   $RM -r conftest 2>/dev/null
8758   mkdir conftest
8759   cd conftest
8760   mkdir out
8761   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8762
8763   lt_compiler_flag="-o out/conftest2.$ac_objext"
8764   # Insert the option either (1) after the last *FLAGS variable, or
8765   # (2) before a word containing "conftest.", or (3) at the end.
8766   # Note that $ac_compile itself does not contain backslashes and begins
8767   # with a dollar sign (not a hyphen), so the echo should work correctly.
8768   lt_compile=`echo "$ac_compile" | $SED \
8769   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8770   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8771   -e 's:$: $lt_compiler_flag:'`
8772   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8773   (eval "$lt_compile" 2>out/conftest.err)
8774   ac_status=$?
8775   cat out/conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8778   then
8779     # The compiler can only warn and ignore the option if not recognized
8780     # So say no if there are warnings
8781     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8782     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8783     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8784       lt_cv_prog_compiler_c_o=yes
8785     fi
8786   fi
8787   chmod u+w . 2>&5
8788   $RM conftest*
8789   # SGI C++ compiler will create directory out/ii_files/ for
8790   # template instantiation
8791   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8792   $RM out/* && rmdir out
8793   cd ..
8794   $RM -r conftest
8795   $RM conftest*
8796
8797fi
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8799$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8800
8801
8802
8803
8804hard_links="nottested"
8805if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8806  # do not overwrite the value of need_locks provided by the user
8807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8808$as_echo_n "checking if we can lock with hard links... " >&6; }
8809  hard_links=yes
8810  $RM conftest*
8811  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8812  touch conftest.a
8813  ln conftest.a conftest.b 2>&5 || hard_links=no
8814  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8816$as_echo "$hard_links" >&6; }
8817  if test "$hard_links" = no; then
8818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8819$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8820    need_locks=warn
8821  fi
8822else
8823  need_locks=no
8824fi
8825
8826
8827
8828
8829
8830
8831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8832$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8833
8834  runpath_var=
8835  allow_undefined_flag=
8836  always_export_symbols=no
8837  archive_cmds=
8838  archive_expsym_cmds=
8839  compiler_needs_object=no
8840  enable_shared_with_static_runtimes=no
8841  export_dynamic_flag_spec=
8842  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8843  hardcode_automatic=no
8844  hardcode_direct=no
8845  hardcode_direct_absolute=no
8846  hardcode_libdir_flag_spec=
8847  hardcode_libdir_flag_spec_ld=
8848  hardcode_libdir_separator=
8849  hardcode_minus_L=no
8850  hardcode_shlibpath_var=unsupported
8851  inherit_rpath=no
8852  link_all_deplibs=unknown
8853  module_cmds=
8854  module_expsym_cmds=
8855  old_archive_from_new_cmds=
8856  old_archive_from_expsyms_cmds=
8857  thread_safe_flag_spec=
8858  whole_archive_flag_spec=
8859  # include_expsyms should be a list of space-separated symbols to be *always*
8860  # included in the symbol list
8861  include_expsyms=
8862  # exclude_expsyms can be an extended regexp of symbols to exclude
8863  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8864  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8865  # as well as any symbol that contains `d'.
8866  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8867  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8868  # platforms (ab)use it in PIC code, but their linkers get confused if
8869  # the symbol is explicitly referenced.  Since portable code cannot
8870  # rely on this symbol name, it's probably fine to never include it in
8871  # preloaded symbol tables.
8872  # Exclude shared library initialization/finalization symbols.
8873  extract_expsyms_cmds=
8874
8875  case $host_os in
8876  cygwin* | mingw* | pw32* | cegcc*)
8877    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8878    # When not using gcc, we currently assume that we are using
8879    # Microsoft Visual C++.
8880    if test "$GCC" != yes; then
8881      with_gnu_ld=no
8882    fi
8883    ;;
8884  interix*)
8885    # we just hope/assume this is gcc and not c89 (= MSVC++)
8886    with_gnu_ld=yes
8887    ;;
8888  openbsd*)
8889    with_gnu_ld=no
8890    ;;
8891  esac
8892
8893  ld_shlibs=yes
8894
8895  # On some targets, GNU ld is compatible enough with the native linker
8896  # that we're better off using the native interface for both.
8897  lt_use_gnu_ld_interface=no
8898  if test "$with_gnu_ld" = yes; then
8899    case $host_os in
8900      aix*)
8901	# The AIX port of GNU ld has always aspired to compatibility
8902	# with the native linker.  However, as the warning in the GNU ld
8903	# block says, versions before 2.19.5* couldn't really create working
8904	# shared libraries, regardless of the interface used.
8905	case `$LD -v 2>&1` in
8906	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8907	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8908	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8909	  *)
8910	    lt_use_gnu_ld_interface=yes
8911	    ;;
8912	esac
8913	;;
8914      *)
8915	lt_use_gnu_ld_interface=yes
8916	;;
8917    esac
8918  fi
8919
8920  if test "$lt_use_gnu_ld_interface" = yes; then
8921    # If archive_cmds runs LD, not CC, wlarc should be empty
8922    wlarc='${wl}'
8923
8924    # Set some defaults for GNU ld with shared library support. These
8925    # are reset later if shared libraries are not supported. Putting them
8926    # here allows them to be overridden if necessary.
8927    runpath_var=LD_RUN_PATH
8928    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929    export_dynamic_flag_spec='${wl}--export-dynamic'
8930    # ancient GNU ld didn't support --whole-archive et. al.
8931    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8932      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8933    else
8934      whole_archive_flag_spec=
8935    fi
8936    supports_anon_versioning=no
8937    case `$LD -v 2>&1` in
8938      *GNU\ gold*) supports_anon_versioning=yes ;;
8939      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8940      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8941      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8942      *\ 2.11.*) ;; # other 2.11 versions
8943      *) supports_anon_versioning=yes ;;
8944    esac
8945
8946    # See if GNU ld supports shared libraries.
8947    case $host_os in
8948    aix[3-9]*)
8949      # On AIX/PPC, the GNU linker is very broken
8950      if test "$host_cpu" != ia64; then
8951	ld_shlibs=no
8952	cat <<_LT_EOF 1>&2
8953
8954*** Warning: the GNU linker, at least up to release 2.19, is reported
8955*** to be unable to reliably create shared libraries on AIX.
8956*** Therefore, libtool is disabling shared libraries support.  If you
8957*** really care for shared libraries, you may want to install binutils
8958*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8959*** You will then need to restart the configuration process.
8960
8961_LT_EOF
8962      fi
8963      ;;
8964
8965    amigaos*)
8966      case $host_cpu in
8967      powerpc)
8968            # see comment about AmigaOS4 .so support
8969            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970            archive_expsym_cmds=''
8971        ;;
8972      m68k)
8973            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)'
8974            hardcode_libdir_flag_spec='-L$libdir'
8975            hardcode_minus_L=yes
8976        ;;
8977      esac
8978      ;;
8979
8980    beos*)
8981      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8982	allow_undefined_flag=unsupported
8983	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8984	# support --undefined.  This deserves some investigation.  FIXME
8985	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986      else
8987	ld_shlibs=no
8988      fi
8989      ;;
8990
8991    cygwin* | mingw* | pw32* | cegcc*)
8992      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8993      # as there is no search path for DLLs.
8994      hardcode_libdir_flag_spec='-L$libdir'
8995      export_dynamic_flag_spec='${wl}--export-all-symbols'
8996      allow_undefined_flag=unsupported
8997      always_export_symbols=no
8998      enable_shared_with_static_runtimes=yes
8999      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'
9000      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9001
9002      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9003        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004	# If the export-symbols file already is a .def file (1st line
9005	# is EXPORTS), use it as is; otherwise, prepend...
9006	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9007	  cp $export_symbols $output_objdir/$soname.def;
9008	else
9009	  echo EXPORTS > $output_objdir/$soname.def;
9010	  cat $export_symbols >> $output_objdir/$soname.def;
9011	fi~
9012	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9013      else
9014	ld_shlibs=no
9015      fi
9016      ;;
9017
9018    haiku*)
9019      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020      link_all_deplibs=yes
9021      ;;
9022
9023    interix[3-9]*)
9024      hardcode_direct=no
9025      hardcode_shlibpath_var=no
9026      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9027      export_dynamic_flag_spec='${wl}-E'
9028      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9029      # Instead, shared libraries are loaded at an image base (0x10000000 by
9030      # default) and relocated if they conflict, which is a slow very memory
9031      # consuming and fragmenting process.  To avoid this, we pick a random,
9032      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9033      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9034      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9035      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'
9036      ;;
9037
9038    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9039      tmp_diet=no
9040      if test "$host_os" = linux-dietlibc; then
9041	case $cc_basename in
9042	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9043	esac
9044      fi
9045      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9046	 && test "$tmp_diet" = no
9047      then
9048	tmp_addflag=' $pic_flag'
9049	tmp_sharedflag='-shared'
9050	case $cc_basename,$host_cpu in
9051        pgcc*)				# Portland Group C compiler
9052	  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'
9053	  tmp_addflag=' $pic_flag'
9054	  ;;
9055	pgf77* | pgf90* | pgf95* | pgfortran*)
9056					# Portland Group f77 and f90 compilers
9057	  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'
9058	  tmp_addflag=' $pic_flag -Mnomain' ;;
9059	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9060	  tmp_addflag=' -i_dynamic' ;;
9061	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9062	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9063	ifc* | ifort*)			# Intel Fortran compiler
9064	  tmp_addflag=' -nofor_main' ;;
9065	lf95*)				# Lahey Fortran 8.1
9066	  whole_archive_flag_spec=
9067	  tmp_sharedflag='--shared' ;;
9068	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9069	  tmp_sharedflag='-qmkshrobj'
9070	  tmp_addflag= ;;
9071	nvcc*)	# Cuda Compiler Driver 2.2
9072	  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'
9073	  compiler_needs_object=yes
9074	  ;;
9075	esac
9076	case `$CC -V 2>&1 | sed 5q` in
9077	*Sun\ C*)			# Sun C 5.9
9078	  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'
9079	  compiler_needs_object=yes
9080	  tmp_sharedflag='-G' ;;
9081	*Sun\ F*)			# Sun Fortran 8.3
9082	  tmp_sharedflag='-G' ;;
9083	esac
9084	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085
9086        if test "x$supports_anon_versioning" = xyes; then
9087          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9088	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9089	    echo "local: *; };" >> $output_objdir/$libname.ver~
9090	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9091        fi
9092
9093	case $cc_basename in
9094	xlf* | bgf* | bgxlf* | mpixlf*)
9095	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9096	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9097	  hardcode_libdir_flag_spec=
9098	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9099	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9100	  if test "x$supports_anon_versioning" = xyes; then
9101	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9102	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9103	      echo "local: *; };" >> $output_objdir/$libname.ver~
9104	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9105	  fi
9106	  ;;
9107	esac
9108      else
9109        ld_shlibs=no
9110      fi
9111      ;;
9112
9113    netbsd*)
9114      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9115	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9116	wlarc=
9117      else
9118	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9120      fi
9121      ;;
9122
9123    solaris*)
9124      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9125	ld_shlibs=no
9126	cat <<_LT_EOF 1>&2
9127
9128*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9129*** create shared libraries on Solaris systems.  Therefore, libtool
9130*** is disabling shared libraries support.  We urge you to upgrade GNU
9131*** binutils to release 2.9.1 or newer.  Another option is to modify
9132*** your PATH or compiler configuration so that the native linker is
9133*** used, and then restart.
9134
9135_LT_EOF
9136      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9137	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9138	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9139      else
9140	ld_shlibs=no
9141      fi
9142      ;;
9143
9144    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9145      case `$LD -v 2>&1` in
9146        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9147	ld_shlibs=no
9148	cat <<_LT_EOF 1>&2
9149
9150*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9151*** reliably create shared libraries on SCO systems.  Therefore, libtool
9152*** is disabling shared libraries support.  We urge you to upgrade GNU
9153*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9154*** your PATH or compiler configuration so that the native linker is
9155*** used, and then restart.
9156
9157_LT_EOF
9158	;;
9159	*)
9160	  # For security reasons, it is highly recommended that you always
9161	  # use absolute paths for naming shared libraries, and exclude the
9162	  # DT_RUNPATH tag from executables and libraries.  But doing so
9163	  # requires that you compile everything twice, which is a pain.
9164	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9165	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9168	  else
9169	    ld_shlibs=no
9170	  fi
9171	;;
9172      esac
9173      ;;
9174
9175    sunos4*)
9176      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9177      wlarc=
9178      hardcode_direct=yes
9179      hardcode_shlibpath_var=no
9180      ;;
9181
9182    *)
9183      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9184	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9186      else
9187	ld_shlibs=no
9188      fi
9189      ;;
9190    esac
9191
9192    if test "$ld_shlibs" = no; then
9193      runpath_var=
9194      hardcode_libdir_flag_spec=
9195      export_dynamic_flag_spec=
9196      whole_archive_flag_spec=
9197    fi
9198  else
9199    # PORTME fill in a description of your system's linker (not GNU ld)
9200    case $host_os in
9201    aix3*)
9202      allow_undefined_flag=unsupported
9203      always_export_symbols=yes
9204      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'
9205      # Note: this linker hardcodes the directories in LIBPATH if there
9206      # are no directories specified by -L.
9207      hardcode_minus_L=yes
9208      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9209	# Neither direct hardcoding nor static linking is supported with a
9210	# broken collect2.
9211	hardcode_direct=unsupported
9212      fi
9213      ;;
9214
9215    aix[4-9]*)
9216      if test "$host_cpu" = ia64; then
9217	# On IA64, the linker does run time linking by default, so we don't
9218	# have to do anything special.
9219	aix_use_runtimelinking=no
9220	exp_sym_flag='-Bexport'
9221	no_entry_flag=""
9222      else
9223	# If we're using GNU nm, then we don't want the "-C" option.
9224	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9225	# Also, AIX nm treats weak defined symbols like other global
9226	# defined symbols, whereas GNU nm marks them as "W".
9227	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9228	  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'
9229	else
9230	  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'
9231	fi
9232	aix_use_runtimelinking=no
9233
9234	# Test if we are trying to use run time linking or normal
9235	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9236	# need to do runtime linking.
9237	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9238	  for ld_flag in $LDFLAGS; do
9239	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9240	    aix_use_runtimelinking=yes
9241	    break
9242	  fi
9243	  done
9244	  ;;
9245	esac
9246
9247	exp_sym_flag='-bexport'
9248	no_entry_flag='-bnoentry'
9249      fi
9250
9251      # When large executables or shared objects are built, AIX ld can
9252      # have problems creating the table of contents.  If linking a library
9253      # or program results in "error TOC overflow" add -mminimal-toc to
9254      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9255      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9256
9257      archive_cmds=''
9258      hardcode_direct=yes
9259      hardcode_direct_absolute=yes
9260      hardcode_libdir_separator=':'
9261      link_all_deplibs=yes
9262      file_list_spec='${wl}-f,'
9263
9264      if test "$GCC" = yes; then
9265	case $host_os in aix4.[012]|aix4.[012].*)
9266	# We only want to do this on AIX 4.2 and lower, the check
9267	# below for broken collect2 doesn't work under 4.3+
9268	  collect2name=`${CC} -print-prog-name=collect2`
9269	  if test -f "$collect2name" &&
9270	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9271	  then
9272	  # We have reworked collect2
9273	  :
9274	  else
9275	  # We have old collect2
9276	  hardcode_direct=unsupported
9277	  # It fails to find uninstalled libraries when the uninstalled
9278	  # path is not listed in the libpath.  Setting hardcode_minus_L
9279	  # to unsupported forces relinking
9280	  hardcode_minus_L=yes
9281	  hardcode_libdir_flag_spec='-L$libdir'
9282	  hardcode_libdir_separator=
9283	  fi
9284	  ;;
9285	esac
9286	shared_flag='-shared'
9287	if test "$aix_use_runtimelinking" = yes; then
9288	  shared_flag="$shared_flag "'${wl}-G'
9289	fi
9290      else
9291	# not using gcc
9292	if test "$host_cpu" = ia64; then
9293	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9294	# chokes on -Wl,-G. The following line is correct:
9295	  shared_flag='-G'
9296	else
9297	  if test "$aix_use_runtimelinking" = yes; then
9298	    shared_flag='${wl}-G'
9299	  else
9300	    shared_flag='${wl}-bM:SRE'
9301	  fi
9302	fi
9303      fi
9304
9305      export_dynamic_flag_spec='${wl}-bexpall'
9306      # It seems that -bexpall does not export symbols beginning with
9307      # underscore (_), so it is better to generate a list of symbols to export.
9308      always_export_symbols=yes
9309      if test "$aix_use_runtimelinking" = yes; then
9310	# Warning - without using the other runtime loading flags (-brtl),
9311	# -berok will link without error, but may produce a broken library.
9312	allow_undefined_flag='-berok'
9313        # Determine the default libpath from the value encoded in an
9314        # empty executable.
9315        if test "${lt_cv_aix_libpath+set}" = set; then
9316  aix_libpath=$lt_cv_aix_libpath
9317else
9318  if ${lt_cv_aix_libpath_+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"; then :
9333
9334  lt_aix_libpath_sed='
9335      /Import File Strings/,/^$/ {
9336	  /^0/ {
9337	      s/^0  *\([^ ]*\) *$/\1/
9338	      p
9339	  }
9340      }'
9341  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9342  # Check for a 64-bit object if we didn't find anything.
9343  if test -z "$lt_cv_aix_libpath_"; then
9344    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9345  fi
9346fi
9347rm -f core conftest.err conftest.$ac_objext \
9348    conftest$ac_exeext conftest.$ac_ext
9349  if test -z "$lt_cv_aix_libpath_"; then
9350    lt_cv_aix_libpath_="/usr/lib:/lib"
9351  fi
9352
9353fi
9354
9355  aix_libpath=$lt_cv_aix_libpath_
9356fi
9357
9358        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9359        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"
9360      else
9361	if test "$host_cpu" = ia64; then
9362	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9363	  allow_undefined_flag="-z nodefs"
9364	  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"
9365	else
9366	 # Determine the default libpath from the value encoded in an
9367	 # empty executable.
9368	 if test "${lt_cv_aix_libpath+set}" = set; then
9369  aix_libpath=$lt_cv_aix_libpath
9370else
9371  if ${lt_cv_aix_libpath_+:} false; then :
9372  $as_echo_n "(cached) " >&6
9373else
9374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376
9377int
9378main ()
9379{
9380
9381  ;
9382  return 0;
9383}
9384_ACEOF
9385if ac_fn_c_try_link "$LINENO"; then :
9386
9387  lt_aix_libpath_sed='
9388      /Import File Strings/,/^$/ {
9389	  /^0/ {
9390	      s/^0  *\([^ ]*\) *$/\1/
9391	      p
9392	  }
9393      }'
9394  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9395  # Check for a 64-bit object if we didn't find anything.
9396  if test -z "$lt_cv_aix_libpath_"; then
9397    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9398  fi
9399fi
9400rm -f core conftest.err conftest.$ac_objext \
9401    conftest$ac_exeext conftest.$ac_ext
9402  if test -z "$lt_cv_aix_libpath_"; then
9403    lt_cv_aix_libpath_="/usr/lib:/lib"
9404  fi
9405
9406fi
9407
9408  aix_libpath=$lt_cv_aix_libpath_
9409fi
9410
9411	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9412	  # Warning - without using the other run time loading flags,
9413	  # -berok will link without error, but may produce a broken library.
9414	  no_undefined_flag=' ${wl}-bernotok'
9415	  allow_undefined_flag=' ${wl}-berok'
9416	  if test "$with_gnu_ld" = yes; then
9417	    # We only use this code for GNU lds that support --whole-archive.
9418	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9419	  else
9420	    # Exported symbols can be pulled into shared objects from archives
9421	    whole_archive_flag_spec='$convenience'
9422	  fi
9423	  archive_cmds_need_lc=yes
9424	  # This is similar to how AIX traditionally builds its shared libraries.
9425	  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'
9426	fi
9427      fi
9428      ;;
9429
9430    amigaos*)
9431      case $host_cpu in
9432      powerpc)
9433            # see comment about AmigaOS4 .so support
9434            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435            archive_expsym_cmds=''
9436        ;;
9437      m68k)
9438            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)'
9439            hardcode_libdir_flag_spec='-L$libdir'
9440            hardcode_minus_L=yes
9441        ;;
9442      esac
9443      ;;
9444
9445    bsdi[45]*)
9446      export_dynamic_flag_spec=-rdynamic
9447      ;;
9448
9449    cygwin* | mingw* | pw32* | cegcc*)
9450      # When not using gcc, we currently assume that we are using
9451      # Microsoft Visual C++.
9452      # hardcode_libdir_flag_spec is actually meaningless, as there is
9453      # no search path for DLLs.
9454      case $cc_basename in
9455      cl*)
9456	# Native MSVC
9457	hardcode_libdir_flag_spec=' '
9458	allow_undefined_flag=unsupported
9459	always_export_symbols=yes
9460	file_list_spec='@'
9461	# Tell ltmain to make .lib files, not .a files.
9462	libext=lib
9463	# Tell ltmain to make .dll files, not .so files.
9464	shrext_cmds=".dll"
9465	# FIXME: Setting linknames here is a bad hack.
9466	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9467	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9469	  else
9470	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9471	  fi~
9472	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9473	  linknames='
9474	# The linker will not automatically build a static lib if we build a DLL.
9475	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9476	enable_shared_with_static_runtimes=yes
9477	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9478	# Don't use ranlib
9479	old_postinstall_cmds='chmod 644 $oldlib'
9480	postlink_cmds='lt_outputfile="@OUTPUT@"~
9481	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9482	  case $lt_outputfile in
9483	    *.exe|*.EXE) ;;
9484	    *)
9485	      lt_outputfile="$lt_outputfile.exe"
9486	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9487	      ;;
9488	  esac~
9489	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9490	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9491	    $RM "$lt_outputfile.manifest";
9492	  fi'
9493	;;
9494      *)
9495	# Assume MSVC wrapper
9496	hardcode_libdir_flag_spec=' '
9497	allow_undefined_flag=unsupported
9498	# Tell ltmain to make .lib files, not .a files.
9499	libext=lib
9500	# Tell ltmain to make .dll files, not .so files.
9501	shrext_cmds=".dll"
9502	# FIXME: Setting linknames here is a bad hack.
9503	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9504	# The linker will automatically build a .lib file if we build a DLL.
9505	old_archive_from_new_cmds='true'
9506	# FIXME: Should let the user specify the lib program.
9507	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9508	enable_shared_with_static_runtimes=yes
9509	;;
9510      esac
9511      ;;
9512
9513    darwin* | rhapsody*)
9514
9515
9516  archive_cmds_need_lc=no
9517  hardcode_direct=no
9518  hardcode_automatic=yes
9519  hardcode_shlibpath_var=unsupported
9520  if test "$lt_cv_ld_force_load" = "yes"; then
9521    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\"`'
9522  else
9523    whole_archive_flag_spec=''
9524  fi
9525  link_all_deplibs=yes
9526  allow_undefined_flag="$_lt_dar_allow_undefined"
9527  case $cc_basename in
9528     ifort*) _lt_dar_can_shared=yes ;;
9529     *) _lt_dar_can_shared=$GCC ;;
9530  esac
9531  if test "$_lt_dar_can_shared" = "yes"; then
9532    output_verbose_link_cmd=func_echo_all
9533    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9534    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9535    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}"
9536    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}"
9537
9538  else
9539  ld_shlibs=no
9540  fi
9541
9542      ;;
9543
9544    dgux*)
9545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546      hardcode_libdir_flag_spec='-L$libdir'
9547      hardcode_shlibpath_var=no
9548      ;;
9549
9550    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9551    # support.  Future versions do this automatically, but an explicit c++rt0.o
9552    # does not break anything, and helps significantly (at the cost of a little
9553    # extra space).
9554    freebsd2.2*)
9555      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9556      hardcode_libdir_flag_spec='-R$libdir'
9557      hardcode_direct=yes
9558      hardcode_shlibpath_var=no
9559      ;;
9560
9561    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9562    freebsd2.*)
9563      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564      hardcode_direct=yes
9565      hardcode_minus_L=yes
9566      hardcode_shlibpath_var=no
9567      ;;
9568
9569    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9570    freebsd* | dragonfly*)
9571      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572      hardcode_libdir_flag_spec='-R$libdir'
9573      hardcode_direct=yes
9574      hardcode_shlibpath_var=no
9575      ;;
9576
9577    hpux9*)
9578      if test "$GCC" = yes; then
9579	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'
9580      else
9581	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'
9582      fi
9583      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9584      hardcode_libdir_separator=:
9585      hardcode_direct=yes
9586
9587      # hardcode_minus_L: Not really in the search PATH,
9588      # but as the default location of the library.
9589      hardcode_minus_L=yes
9590      export_dynamic_flag_spec='${wl}-E'
9591      ;;
9592
9593    hpux10*)
9594      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9595	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9596      else
9597	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9598      fi
9599      if test "$with_gnu_ld" = no; then
9600	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9601	hardcode_libdir_flag_spec_ld='+b $libdir'
9602	hardcode_libdir_separator=:
9603	hardcode_direct=yes
9604	hardcode_direct_absolute=yes
9605	export_dynamic_flag_spec='${wl}-E'
9606	# hardcode_minus_L: Not really in the search PATH,
9607	# but as the default location of the library.
9608	hardcode_minus_L=yes
9609      fi
9610      ;;
9611
9612    hpux11*)
9613      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9614	case $host_cpu in
9615	hppa*64*)
9616	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9617	  ;;
9618	ia64*)
9619	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9620	  ;;
9621	*)
9622	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9623	  ;;
9624	esac
9625      else
9626	case $host_cpu in
9627	hppa*64*)
9628	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9629	  ;;
9630	ia64*)
9631	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9632	  ;;
9633	*)
9634
9635	  # Older versions of the 11.00 compiler do not understand -b yet
9636	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9637	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9638$as_echo_n "checking if $CC understands -b... " >&6; }
9639if ${lt_cv_prog_compiler__b+:} false; then :
9640  $as_echo_n "(cached) " >&6
9641else
9642  lt_cv_prog_compiler__b=no
9643   save_LDFLAGS="$LDFLAGS"
9644   LDFLAGS="$LDFLAGS -b"
9645   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9646   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9647     # The linker can only warn and ignore the option if not recognized
9648     # So say no if there are warnings
9649     if test -s conftest.err; then
9650       # Append any errors to the config.log.
9651       cat conftest.err 1>&5
9652       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9653       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654       if diff conftest.exp conftest.er2 >/dev/null; then
9655         lt_cv_prog_compiler__b=yes
9656       fi
9657     else
9658       lt_cv_prog_compiler__b=yes
9659     fi
9660   fi
9661   $RM -r conftest*
9662   LDFLAGS="$save_LDFLAGS"
9663
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9666$as_echo "$lt_cv_prog_compiler__b" >&6; }
9667
9668if test x"$lt_cv_prog_compiler__b" = xyes; then
9669    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670else
9671    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9672fi
9673
9674	  ;;
9675	esac
9676      fi
9677      if test "$with_gnu_ld" = no; then
9678	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9679	hardcode_libdir_separator=:
9680
9681	case $host_cpu in
9682	hppa*64*|ia64*)
9683	  hardcode_direct=no
9684	  hardcode_shlibpath_var=no
9685	  ;;
9686	*)
9687	  hardcode_direct=yes
9688	  hardcode_direct_absolute=yes
9689	  export_dynamic_flag_spec='${wl}-E'
9690
9691	  # hardcode_minus_L: Not really in the search PATH,
9692	  # but as the default location of the library.
9693	  hardcode_minus_L=yes
9694	  ;;
9695	esac
9696      fi
9697      ;;
9698
9699    irix5* | irix6* | nonstopux*)
9700      if test "$GCC" = yes; then
9701	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'
9702	# Try to use the -exported_symbol ld option, if it does not
9703	# work, assume that -exports_file does not work either and
9704	# implicitly export all symbols.
9705	# This should be the same for all languages, so no per-tag cache variable.
9706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9707$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9708if ${lt_cv_irix_exported_symbol+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  save_LDFLAGS="$LDFLAGS"
9712	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9713	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715int foo (void) { return 0; }
9716_ACEOF
9717if ac_fn_c_try_link "$LINENO"; then :
9718  lt_cv_irix_exported_symbol=yes
9719else
9720  lt_cv_irix_exported_symbol=no
9721fi
9722rm -f core conftest.err conftest.$ac_objext \
9723    conftest$ac_exeext conftest.$ac_ext
9724           LDFLAGS="$save_LDFLAGS"
9725fi
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9727$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9728	if test "$lt_cv_irix_exported_symbol" = yes; then
9729          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'
9730	fi
9731      else
9732	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'
9733	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'
9734      fi
9735      archive_cmds_need_lc='no'
9736      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9737      hardcode_libdir_separator=:
9738      inherit_rpath=yes
9739      link_all_deplibs=yes
9740      ;;
9741
9742    netbsd*)
9743      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9744	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9745      else
9746	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9747      fi
9748      hardcode_libdir_flag_spec='-R$libdir'
9749      hardcode_direct=yes
9750      hardcode_shlibpath_var=no
9751      ;;
9752
9753    newsos6)
9754      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755      hardcode_direct=yes
9756      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9757      hardcode_libdir_separator=:
9758      hardcode_shlibpath_var=no
9759      ;;
9760
9761    *nto* | *qnx*)
9762      ;;
9763
9764    openbsd*)
9765      if test -f /usr/libexec/ld.so; then
9766	hardcode_direct=yes
9767	hardcode_shlibpath_var=no
9768	hardcode_direct_absolute=yes
9769	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9770	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9771	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9772	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9773	  export_dynamic_flag_spec='${wl}-E'
9774	else
9775	  case $host_os in
9776	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9777	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9778	     hardcode_libdir_flag_spec='-R$libdir'
9779	     ;;
9780	   *)
9781	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9782	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9783	     ;;
9784	  esac
9785	fi
9786      else
9787	ld_shlibs=no
9788      fi
9789      ;;
9790
9791    os2*)
9792      hardcode_libdir_flag_spec='-L$libdir'
9793      hardcode_minus_L=yes
9794      allow_undefined_flag=unsupported
9795      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'
9796      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9797      ;;
9798
9799    osf3*)
9800      if test "$GCC" = yes; then
9801	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9802	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'
9803      else
9804	allow_undefined_flag=' -expect_unresolved \*'
9805	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'
9806      fi
9807      archive_cmds_need_lc='no'
9808      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9809      hardcode_libdir_separator=:
9810      ;;
9811
9812    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9813      if test "$GCC" = yes; then
9814	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9815	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'
9816	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817      else
9818	allow_undefined_flag=' -expect_unresolved \*'
9819	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'
9820	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~
9821	$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'
9822
9823	# Both c and cxx compiler support -rpath directly
9824	hardcode_libdir_flag_spec='-rpath $libdir'
9825      fi
9826      archive_cmds_need_lc='no'
9827      hardcode_libdir_separator=:
9828      ;;
9829
9830    solaris*)
9831      no_undefined_flag=' -z defs'
9832      if test "$GCC" = yes; then
9833	wlarc='${wl}'
9834	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9835	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9836	  $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'
9837      else
9838	case `$CC -V 2>&1` in
9839	*"Compilers 5.0"*)
9840	  wlarc=''
9841	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9843	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9844	  ;;
9845	*)
9846	  wlarc='${wl}'
9847	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9848	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9849	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9850	  ;;
9851	esac
9852      fi
9853      hardcode_libdir_flag_spec='-R$libdir'
9854      hardcode_shlibpath_var=no
9855      case $host_os in
9856      solaris2.[0-5] | solaris2.[0-5].*) ;;
9857      *)
9858	# The compiler driver will combine and reorder linker options,
9859	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9860	# but is careful enough not to reorder.
9861	# Supported since Solaris 2.6 (maybe 2.5.1?)
9862	if test "$GCC" = yes; then
9863	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9864	else
9865	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9866	fi
9867	;;
9868      esac
9869      link_all_deplibs=yes
9870      ;;
9871
9872    sunos4*)
9873      if test "x$host_vendor" = xsequent; then
9874	# Use $CC to link under sequent, because it throws in some extra .o
9875	# files that make .init and .fini sections work.
9876	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9877      else
9878	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9879      fi
9880      hardcode_libdir_flag_spec='-L$libdir'
9881      hardcode_direct=yes
9882      hardcode_minus_L=yes
9883      hardcode_shlibpath_var=no
9884      ;;
9885
9886    sysv4)
9887      case $host_vendor in
9888	sni)
9889	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890	  hardcode_direct=yes # is this really true???
9891	;;
9892	siemens)
9893	  ## LD is ld it makes a PLAMLIB
9894	  ## CC just makes a GrossModule.
9895	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9896	  reload_cmds='$CC -r -o $output$reload_objs'
9897	  hardcode_direct=no
9898        ;;
9899	motorola)
9900	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9902	;;
9903      esac
9904      runpath_var='LD_RUN_PATH'
9905      hardcode_shlibpath_var=no
9906      ;;
9907
9908    sysv4.3*)
9909      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910      hardcode_shlibpath_var=no
9911      export_dynamic_flag_spec='-Bexport'
9912      ;;
9913
9914    sysv4*MP*)
9915      if test -d /usr/nec; then
9916	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917	hardcode_shlibpath_var=no
9918	runpath_var=LD_RUN_PATH
9919	hardcode_runpath_var=yes
9920	ld_shlibs=yes
9921      fi
9922      ;;
9923
9924    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9925      no_undefined_flag='${wl}-z,text'
9926      archive_cmds_need_lc=no
9927      hardcode_shlibpath_var=no
9928      runpath_var='LD_RUN_PATH'
9929
9930      if test "$GCC" = yes; then
9931	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933      else
9934	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936      fi
9937      ;;
9938
9939    sysv5* | sco3.2v5* | sco5v6*)
9940      # Note: We can NOT use -z defs as we might desire, because we do not
9941      # link with -lc, and that would cause any symbols used from libc to
9942      # always be unresolved, which means just about no library would
9943      # ever link correctly.  If we're not using GNU ld we use -z text
9944      # though, which does catch some bad symbols but isn't as heavy-handed
9945      # as -z defs.
9946      no_undefined_flag='${wl}-z,text'
9947      allow_undefined_flag='${wl}-z,nodefs'
9948      archive_cmds_need_lc=no
9949      hardcode_shlibpath_var=no
9950      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9951      hardcode_libdir_separator=':'
9952      link_all_deplibs=yes
9953      export_dynamic_flag_spec='${wl}-Bexport'
9954      runpath_var='LD_RUN_PATH'
9955
9956      if test "$GCC" = yes; then
9957	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9958	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959      else
9960	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9961	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962      fi
9963      ;;
9964
9965    uts4*)
9966      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967      hardcode_libdir_flag_spec='-L$libdir'
9968      hardcode_shlibpath_var=no
9969      ;;
9970
9971    *)
9972      ld_shlibs=no
9973      ;;
9974    esac
9975
9976    if test x$host_vendor = xsni; then
9977      case $host in
9978      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9979	export_dynamic_flag_spec='${wl}-Blargedynsym'
9980	;;
9981      esac
9982    fi
9983  fi
9984
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9986$as_echo "$ld_shlibs" >&6; }
9987test "$ld_shlibs" = no && can_build_shared=no
9988
9989with_gnu_ld=$with_gnu_ld
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005#
10006# Do we need to explicitly link libc?
10007#
10008case "x$archive_cmds_need_lc" in
10009x|xyes)
10010  # Assume -lc should be added
10011  archive_cmds_need_lc=yes
10012
10013  if test "$enable_shared" = yes && test "$GCC" = yes; then
10014    case $archive_cmds in
10015    *'~'*)
10016      # FIXME: we may have to deal with multi-command sequences.
10017      ;;
10018    '$CC '*)
10019      # Test whether the compiler implicitly links with -lc since on some
10020      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10021      # to ld, don't add -lc before -lgcc.
10022      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10023$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10024if ${lt_cv_archive_cmds_need_lc+:} false; then :
10025  $as_echo_n "(cached) " >&6
10026else
10027  $RM conftest*
10028	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10029
10030	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10031  (eval $ac_compile) 2>&5
10032  ac_status=$?
10033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10034  test $ac_status = 0; } 2>conftest.err; then
10035	  soname=conftest
10036	  lib=conftest
10037	  libobjs=conftest.$ac_objext
10038	  deplibs=
10039	  wl=$lt_prog_compiler_wl
10040	  pic_flag=$lt_prog_compiler_pic
10041	  compiler_flags=-v
10042	  linker_flags=-v
10043	  verstring=
10044	  output_objdir=.
10045	  libname=conftest
10046	  lt_save_allow_undefined_flag=$allow_undefined_flag
10047	  allow_undefined_flag=
10048	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10049  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10050  ac_status=$?
10051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10052  test $ac_status = 0; }
10053	  then
10054	    lt_cv_archive_cmds_need_lc=no
10055	  else
10056	    lt_cv_archive_cmds_need_lc=yes
10057	  fi
10058	  allow_undefined_flag=$lt_save_allow_undefined_flag
10059	else
10060	  cat conftest.err 1>&5
10061	fi
10062	$RM conftest*
10063
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10066$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10067      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10068      ;;
10069    esac
10070  fi
10071  ;;
10072esac
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10231$as_echo_n "checking dynamic linker characteristics... " >&6; }
10232
10233if test "$GCC" = yes; then
10234  case $host_os in
10235    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10236    *) lt_awk_arg="/^libraries:/" ;;
10237  esac
10238  case $host_os in
10239    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10240    *) lt_sed_strip_eq="s,=/,/,g" ;;
10241  esac
10242  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10243  case $lt_search_path_spec in
10244  *\;*)
10245    # if the path contains ";" then we assume it to be the separator
10246    # otherwise default to the standard path separator (i.e. ":") - it is
10247    # assumed that no part of a normal pathname contains ";" but that should
10248    # okay in the real world where ";" in dirpaths is itself problematic.
10249    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10250    ;;
10251  *)
10252    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10253    ;;
10254  esac
10255  # Ok, now we have the path, separated by spaces, we can step through it
10256  # and add multilib dir if necessary.
10257  lt_tmp_lt_search_path_spec=
10258  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10259  for lt_sys_path in $lt_search_path_spec; do
10260    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10261      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10262    else
10263      test -d "$lt_sys_path" && \
10264	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10265    fi
10266  done
10267  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10268BEGIN {RS=" "; FS="/|\n";} {
10269  lt_foo="";
10270  lt_count=0;
10271  for (lt_i = NF; lt_i > 0; lt_i--) {
10272    if ($lt_i != "" && $lt_i != ".") {
10273      if ($lt_i == "..") {
10274        lt_count++;
10275      } else {
10276        if (lt_count == 0) {
10277          lt_foo="/" $lt_i lt_foo;
10278        } else {
10279          lt_count--;
10280        }
10281      }
10282    }
10283  }
10284  if (lt_foo != "") { lt_freq[lt_foo]++; }
10285  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10286}'`
10287  # AWK program above erroneously prepends '/' to C:/dos/paths
10288  # for these hosts.
10289  case $host_os in
10290    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10291      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10292  esac
10293  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10294else
10295  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10296fi
10297library_names_spec=
10298libname_spec='lib$name'
10299soname_spec=
10300shrext_cmds=".so"
10301postinstall_cmds=
10302postuninstall_cmds=
10303finish_cmds=
10304finish_eval=
10305shlibpath_var=
10306shlibpath_overrides_runpath=unknown
10307version_type=none
10308dynamic_linker="$host_os ld.so"
10309sys_lib_dlsearch_path_spec="/lib /usr/lib"
10310need_lib_prefix=unknown
10311hardcode_into_libs=no
10312
10313# when you set need_version to no, make sure it does not cause -set_version
10314# flags to be left without arguments
10315need_version=unknown
10316
10317case $host_os in
10318aix3*)
10319  version_type=linux
10320  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10321  shlibpath_var=LIBPATH
10322
10323  # AIX 3 has no versioning support, so we append a major version to the name.
10324  soname_spec='${libname}${release}${shared_ext}$major'
10325  ;;
10326
10327aix[4-9]*)
10328  version_type=linux
10329  need_lib_prefix=no
10330  need_version=no
10331  hardcode_into_libs=yes
10332  if test "$host_cpu" = ia64; then
10333    # AIX 5 supports IA64
10334    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10335    shlibpath_var=LD_LIBRARY_PATH
10336  else
10337    # With GCC up to 2.95.x, collect2 would create an import file
10338    # for dependence libraries.  The import file would start with
10339    # the line `#! .'.  This would cause the generated library to
10340    # depend on `.', always an invalid library.  This was fixed in
10341    # development snapshots of GCC prior to 3.0.
10342    case $host_os in
10343      aix4 | aix4.[01] | aix4.[01].*)
10344      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10345	   echo ' yes '
10346	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10347	:
10348      else
10349	can_build_shared=no
10350      fi
10351      ;;
10352    esac
10353    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10354    # soname into executable. Probably we can add versioning support to
10355    # collect2, so additional links can be useful in future.
10356    if test "$aix_use_runtimelinking" = yes; then
10357      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10358      # instead of lib<name>.a to let people know that these are not
10359      # typical AIX shared libraries.
10360      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361    else
10362      # We preserve .a as extension for shared libraries through AIX4.2
10363      # and later when we are not doing run time linking.
10364      library_names_spec='${libname}${release}.a $libname.a'
10365      soname_spec='${libname}${release}${shared_ext}$major'
10366    fi
10367    shlibpath_var=LIBPATH
10368  fi
10369  ;;
10370
10371amigaos*)
10372  case $host_cpu in
10373  powerpc)
10374    # Since July 2007 AmigaOS4 officially supports .so libraries.
10375    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10376    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377    ;;
10378  m68k)
10379    library_names_spec='$libname.ixlibrary $libname.a'
10380    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10381    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'
10382    ;;
10383  esac
10384  ;;
10385
10386beos*)
10387  library_names_spec='${libname}${shared_ext}'
10388  dynamic_linker="$host_os ld.so"
10389  shlibpath_var=LIBRARY_PATH
10390  ;;
10391
10392bsdi[45]*)
10393  version_type=linux
10394  need_version=no
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396  soname_spec='${libname}${release}${shared_ext}$major'
10397  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10398  shlibpath_var=LD_LIBRARY_PATH
10399  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10400  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10401  # the default ld.so.conf also contains /usr/contrib/lib and
10402  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10403  # libtool to hard-code these into programs
10404  ;;
10405
10406cygwin* | mingw* | pw32* | cegcc*)
10407  version_type=windows
10408  shrext_cmds=".dll"
10409  need_version=no
10410  need_lib_prefix=no
10411
10412  case $GCC,$cc_basename in
10413  yes,*)
10414    # gcc
10415    library_names_spec='$libname.dll.a'
10416    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10417    postinstall_cmds='base_file=`basename \${file}`~
10418      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10419      dldir=$destdir/`dirname \$dlpath`~
10420      test -d \$dldir || mkdir -p \$dldir~
10421      $install_prog $dir/$dlname \$dldir/$dlname~
10422      chmod a+x \$dldir/$dlname~
10423      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10424        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10425      fi'
10426    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10427      dlpath=$dir/\$dldll~
10428       $RM \$dlpath'
10429    shlibpath_overrides_runpath=yes
10430
10431    case $host_os in
10432    cygwin*)
10433      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10434      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10435
10436      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10437      ;;
10438    mingw* | cegcc*)
10439      # MinGW DLLs use traditional 'lib' prefix
10440      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10441      ;;
10442    pw32*)
10443      # pw32 DLLs use 'pw' prefix rather than 'lib'
10444      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10445      ;;
10446    esac
10447    dynamic_linker='Win32 ld.exe'
10448    ;;
10449
10450  *,cl*)
10451    # Native MSVC
10452    libname_spec='$name'
10453    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10454    library_names_spec='${libname}.dll.lib'
10455
10456    case $build_os in
10457    mingw*)
10458      sys_lib_search_path_spec=
10459      lt_save_ifs=$IFS
10460      IFS=';'
10461      for lt_path in $LIB
10462      do
10463        IFS=$lt_save_ifs
10464        # Let DOS variable expansion print the short 8.3 style file name.
10465        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10466        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10467      done
10468      IFS=$lt_save_ifs
10469      # Convert to MSYS style.
10470      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10471      ;;
10472    cygwin*)
10473      # Convert to unix form, then to dos form, then back to unix form
10474      # but this time dos style (no spaces!) so that the unix form looks
10475      # like /cygdrive/c/PROGRA~1:/cygdr...
10476      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10477      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10478      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10479      ;;
10480    *)
10481      sys_lib_search_path_spec="$LIB"
10482      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10483        # It is most probably a Windows format PATH.
10484        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10485      else
10486        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10487      fi
10488      # FIXME: find the short name or the path components, as spaces are
10489      # common. (e.g. "Program Files" -> "PROGRA~1")
10490      ;;
10491    esac
10492
10493    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10494    postinstall_cmds='base_file=`basename \${file}`~
10495      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10496      dldir=$destdir/`dirname \$dlpath`~
10497      test -d \$dldir || mkdir -p \$dldir~
10498      $install_prog $dir/$dlname \$dldir/$dlname'
10499    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10500      dlpath=$dir/\$dldll~
10501       $RM \$dlpath'
10502    shlibpath_overrides_runpath=yes
10503    dynamic_linker='Win32 link.exe'
10504    ;;
10505
10506  *)
10507    # Assume MSVC wrapper
10508    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10509    dynamic_linker='Win32 ld.exe'
10510    ;;
10511  esac
10512  # FIXME: first we should search . and the directory the executable is in
10513  shlibpath_var=PATH
10514  ;;
10515
10516darwin* | rhapsody*)
10517  dynamic_linker="$host_os dyld"
10518  version_type=darwin
10519  need_lib_prefix=no
10520  need_version=no
10521  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10522  soname_spec='${libname}${release}${major}$shared_ext'
10523  shlibpath_overrides_runpath=yes
10524  shlibpath_var=DYLD_LIBRARY_PATH
10525  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10526
10527  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10528  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10529  ;;
10530
10531dgux*)
10532  version_type=linux
10533  need_lib_prefix=no
10534  need_version=no
10535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10536  soname_spec='${libname}${release}${shared_ext}$major'
10537  shlibpath_var=LD_LIBRARY_PATH
10538  ;;
10539
10540freebsd* | dragonfly*)
10541  # DragonFly does not have aout.  When/if they implement a new
10542  # versioning mechanism, adjust this.
10543  if test -x /usr/bin/objformat; then
10544    objformat=`/usr/bin/objformat`
10545  else
10546    case $host_os in
10547    freebsd[23].*) objformat=aout ;;
10548    *) objformat=elf ;;
10549    esac
10550  fi
10551  version_type=freebsd-$objformat
10552  case $version_type in
10553    freebsd-elf*)
10554      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10555      need_version=no
10556      need_lib_prefix=no
10557      ;;
10558    freebsd-*)
10559      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10560      need_version=yes
10561      ;;
10562  esac
10563  shlibpath_var=LD_LIBRARY_PATH
10564  case $host_os in
10565  freebsd2.*)
10566    shlibpath_overrides_runpath=yes
10567    ;;
10568  freebsd3.[01]* | freebsdelf3.[01]*)
10569    shlibpath_overrides_runpath=yes
10570    hardcode_into_libs=yes
10571    ;;
10572  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10573  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10574    shlibpath_overrides_runpath=no
10575    hardcode_into_libs=yes
10576    ;;
10577  *) # from 4.6 on, and DragonFly
10578    shlibpath_overrides_runpath=yes
10579    hardcode_into_libs=yes
10580    ;;
10581  esac
10582  ;;
10583
10584gnu*)
10585  version_type=linux
10586  need_lib_prefix=no
10587  need_version=no
10588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10589  soname_spec='${libname}${release}${shared_ext}$major'
10590  shlibpath_var=LD_LIBRARY_PATH
10591  hardcode_into_libs=yes
10592  ;;
10593
10594haiku*)
10595  version_type=linux
10596  need_lib_prefix=no
10597  need_version=no
10598  dynamic_linker="$host_os runtime_loader"
10599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10600  soname_spec='${libname}${release}${shared_ext}$major'
10601  shlibpath_var=LIBRARY_PATH
10602  shlibpath_overrides_runpath=yes
10603  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10604  hardcode_into_libs=yes
10605  ;;
10606
10607hpux9* | hpux10* | hpux11*)
10608  # Give a soname corresponding to the major version so that dld.sl refuses to
10609  # link against other versions.
10610  version_type=sunos
10611  need_lib_prefix=no
10612  need_version=no
10613  case $host_cpu in
10614  ia64*)
10615    shrext_cmds='.so'
10616    hardcode_into_libs=yes
10617    dynamic_linker="$host_os dld.so"
10618    shlibpath_var=LD_LIBRARY_PATH
10619    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621    soname_spec='${libname}${release}${shared_ext}$major'
10622    if test "X$HPUX_IA64_MODE" = X32; then
10623      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10624    else
10625      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10626    fi
10627    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10628    ;;
10629  hppa*64*)
10630    shrext_cmds='.sl'
10631    hardcode_into_libs=yes
10632    dynamic_linker="$host_os dld.sl"
10633    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10634    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10635    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636    soname_spec='${libname}${release}${shared_ext}$major'
10637    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10638    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10639    ;;
10640  *)
10641    shrext_cmds='.sl'
10642    dynamic_linker="$host_os dld.sl"
10643    shlibpath_var=SHLIB_PATH
10644    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646    soname_spec='${libname}${release}${shared_ext}$major'
10647    ;;
10648  esac
10649  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10650  postinstall_cmds='chmod 555 $lib'
10651  # or fails outright, so override atomically:
10652  install_override_mode=555
10653  ;;
10654
10655interix[3-9]*)
10656  version_type=linux
10657  need_lib_prefix=no
10658  need_version=no
10659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10660  soname_spec='${libname}${release}${shared_ext}$major'
10661  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10662  shlibpath_var=LD_LIBRARY_PATH
10663  shlibpath_overrides_runpath=no
10664  hardcode_into_libs=yes
10665  ;;
10666
10667irix5* | irix6* | nonstopux*)
10668  case $host_os in
10669    nonstopux*) version_type=nonstopux ;;
10670    *)
10671	if test "$lt_cv_prog_gnu_ld" = yes; then
10672		version_type=linux
10673	else
10674		version_type=irix
10675	fi ;;
10676  esac
10677  need_lib_prefix=no
10678  need_version=no
10679  soname_spec='${libname}${release}${shared_ext}$major'
10680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10681  case $host_os in
10682  irix5* | nonstopux*)
10683    libsuff= shlibsuff=
10684    ;;
10685  *)
10686    case $LD in # libtool.m4 will add one of these switches to LD
10687    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10688      libsuff= shlibsuff= libmagic=32-bit;;
10689    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10690      libsuff=32 shlibsuff=N32 libmagic=N32;;
10691    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10692      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10693    *) libsuff= shlibsuff= libmagic=never-match;;
10694    esac
10695    ;;
10696  esac
10697  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10698  shlibpath_overrides_runpath=no
10699  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10700  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10701  hardcode_into_libs=yes
10702  ;;
10703
10704# No shared lib support for Linux oldld, aout, or coff.
10705linux*oldld* | linux*aout* | linux*coff*)
10706  dynamic_linker=no
10707  ;;
10708
10709# This must be Linux ELF.
10710linux* | k*bsd*-gnu | kopensolaris*-gnu)
10711  version_type=linux
10712  need_lib_prefix=no
10713  need_version=no
10714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715  soname_spec='${libname}${release}${shared_ext}$major'
10716  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10717  shlibpath_var=LD_LIBRARY_PATH
10718  shlibpath_overrides_runpath=no
10719
10720  # Some binutils ld are patched to set DT_RUNPATH
10721  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10722  $as_echo_n "(cached) " >&6
10723else
10724  lt_cv_shlibpath_overrides_runpath=no
10725    save_LDFLAGS=$LDFLAGS
10726    save_libdir=$libdir
10727    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10728	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10729    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731
10732int
10733main ()
10734{
10735
10736  ;
10737  return 0;
10738}
10739_ACEOF
10740if ac_fn_c_try_link "$LINENO"; then :
10741  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10742  lt_cv_shlibpath_overrides_runpath=yes
10743fi
10744fi
10745rm -f core conftest.err conftest.$ac_objext \
10746    conftest$ac_exeext conftest.$ac_ext
10747    LDFLAGS=$save_LDFLAGS
10748    libdir=$save_libdir
10749
10750fi
10751
10752  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10753
10754  # This implies no fast_install, which is unacceptable.
10755  # Some rework will be needed to allow for fast_install
10756  # before this can be enabled.
10757  hardcode_into_libs=yes
10758
10759  # Append ld.so.conf contents to the search path
10760  if test -f /etc/ld.so.conf; then
10761    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' ' '`
10762    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10763  fi
10764
10765  # We used to test for /lib/ld.so.1 and disable shared libraries on
10766  # powerpc, because MkLinux only supported shared libraries with the
10767  # GNU dynamic linker.  Since this was broken with cross compilers,
10768  # most powerpc-linux boxes support dynamic linking these days and
10769  # people can always --disable-shared, the test was removed, and we
10770  # assume the GNU/Linux dynamic linker is in use.
10771  dynamic_linker='GNU/Linux ld.so'
10772  ;;
10773
10774netbsd*)
10775  version_type=sunos
10776  need_lib_prefix=no
10777  need_version=no
10778  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10780    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10781    dynamic_linker='NetBSD (a.out) ld.so'
10782  else
10783    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10784    soname_spec='${libname}${release}${shared_ext}$major'
10785    dynamic_linker='NetBSD ld.elf_so'
10786  fi
10787  shlibpath_var=LD_LIBRARY_PATH
10788  shlibpath_overrides_runpath=yes
10789  hardcode_into_libs=yes
10790  ;;
10791
10792newsos6)
10793  version_type=linux
10794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795  shlibpath_var=LD_LIBRARY_PATH
10796  shlibpath_overrides_runpath=yes
10797  ;;
10798
10799*nto* | *qnx*)
10800  version_type=qnx
10801  need_lib_prefix=no
10802  need_version=no
10803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804  soname_spec='${libname}${release}${shared_ext}$major'
10805  shlibpath_var=LD_LIBRARY_PATH
10806  shlibpath_overrides_runpath=no
10807  hardcode_into_libs=yes
10808  dynamic_linker='ldqnx.so'
10809  ;;
10810
10811openbsd*)
10812  version_type=sunos
10813  sys_lib_dlsearch_path_spec="/usr/lib"
10814  need_lib_prefix=no
10815  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10816  case $host_os in
10817    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10818    *)				need_version=no  ;;
10819  esac
10820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10821  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10822  shlibpath_var=LD_LIBRARY_PATH
10823  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10824    case $host_os in
10825      openbsd2.[89] | openbsd2.[89].*)
10826	shlibpath_overrides_runpath=no
10827	;;
10828      *)
10829	shlibpath_overrides_runpath=yes
10830	;;
10831      esac
10832  else
10833    shlibpath_overrides_runpath=yes
10834  fi
10835  ;;
10836
10837os2*)
10838  libname_spec='$name'
10839  shrext_cmds=".dll"
10840  need_lib_prefix=no
10841  library_names_spec='$libname${shared_ext} $libname.a'
10842  dynamic_linker='OS/2 ld.exe'
10843  shlibpath_var=LIBPATH
10844  ;;
10845
10846osf3* | osf4* | osf5*)
10847  version_type=osf
10848  need_lib_prefix=no
10849  need_version=no
10850  soname_spec='${libname}${release}${shared_ext}$major'
10851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852  shlibpath_var=LD_LIBRARY_PATH
10853  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10854  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10855  ;;
10856
10857rdos*)
10858  dynamic_linker=no
10859  ;;
10860
10861solaris*)
10862  version_type=linux
10863  need_lib_prefix=no
10864  need_version=no
10865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866  soname_spec='${libname}${release}${shared_ext}$major'
10867  shlibpath_var=LD_LIBRARY_PATH
10868  shlibpath_overrides_runpath=yes
10869  hardcode_into_libs=yes
10870  # ldd complains unless libraries are executable
10871  postinstall_cmds='chmod +x $lib'
10872  ;;
10873
10874sunos4*)
10875  version_type=sunos
10876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10877  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10878  shlibpath_var=LD_LIBRARY_PATH
10879  shlibpath_overrides_runpath=yes
10880  if test "$with_gnu_ld" = yes; then
10881    need_lib_prefix=no
10882  fi
10883  need_version=yes
10884  ;;
10885
10886sysv4 | sysv4.3*)
10887  version_type=linux
10888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889  soname_spec='${libname}${release}${shared_ext}$major'
10890  shlibpath_var=LD_LIBRARY_PATH
10891  case $host_vendor in
10892    sni)
10893      shlibpath_overrides_runpath=no
10894      need_lib_prefix=no
10895      runpath_var=LD_RUN_PATH
10896      ;;
10897    siemens)
10898      need_lib_prefix=no
10899      ;;
10900    motorola)
10901      need_lib_prefix=no
10902      need_version=no
10903      shlibpath_overrides_runpath=no
10904      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10905      ;;
10906  esac
10907  ;;
10908
10909sysv4*MP*)
10910  if test -d /usr/nec ;then
10911    version_type=linux
10912    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10913    soname_spec='$libname${shared_ext}.$major'
10914    shlibpath_var=LD_LIBRARY_PATH
10915  fi
10916  ;;
10917
10918sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10919  version_type=freebsd-elf
10920  need_lib_prefix=no
10921  need_version=no
10922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10923  soname_spec='${libname}${release}${shared_ext}$major'
10924  shlibpath_var=LD_LIBRARY_PATH
10925  shlibpath_overrides_runpath=yes
10926  hardcode_into_libs=yes
10927  if test "$with_gnu_ld" = yes; then
10928    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10929  else
10930    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10931    case $host_os in
10932      sco3.2v5*)
10933        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10934	;;
10935    esac
10936  fi
10937  sys_lib_dlsearch_path_spec='/usr/lib'
10938  ;;
10939
10940tpf*)
10941  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10942  version_type=linux
10943  need_lib_prefix=no
10944  need_version=no
10945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  shlibpath_overrides_runpath=no
10948  hardcode_into_libs=yes
10949  ;;
10950
10951uts4*)
10952  version_type=linux
10953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954  soname_spec='${libname}${release}${shared_ext}$major'
10955  shlibpath_var=LD_LIBRARY_PATH
10956  ;;
10957
10958*)
10959  dynamic_linker=no
10960  ;;
10961esac
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10963$as_echo "$dynamic_linker" >&6; }
10964test "$dynamic_linker" = no && can_build_shared=no
10965
10966variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10967if test "$GCC" = yes; then
10968  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10969fi
10970
10971if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10972  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10973fi
10974if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10975  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10976fi
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
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11070$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11071hardcode_action=
11072if test -n "$hardcode_libdir_flag_spec" ||
11073   test -n "$runpath_var" ||
11074   test "X$hardcode_automatic" = "Xyes" ; then
11075
11076  # We can hardcode non-existent directories.
11077  if test "$hardcode_direct" != no &&
11078     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11079     # have to relink, otherwise we might link with an installed library
11080     # when we should be linking with a yet-to-be-installed one
11081     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11082     test "$hardcode_minus_L" != no; then
11083    # Linking always hardcodes the temporary library directory.
11084    hardcode_action=relink
11085  else
11086    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11087    hardcode_action=immediate
11088  fi
11089else
11090  # We cannot hardcode anything, or else we can only hardcode existing
11091  # directories.
11092  hardcode_action=unsupported
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11095$as_echo "$hardcode_action" >&6; }
11096
11097if test "$hardcode_action" = relink ||
11098   test "$inherit_rpath" = yes; then
11099  # Fast installation is not supported
11100  enable_fast_install=no
11101elif test "$shlibpath_overrides_runpath" = yes ||
11102     test "$enable_shared" = no; then
11103  # Fast installation is not necessary
11104  enable_fast_install=needless
11105fi
11106
11107
11108
11109
11110
11111
11112  if test "x$enable_dlopen" != xyes; then
11113  enable_dlopen=unknown
11114  enable_dlopen_self=unknown
11115  enable_dlopen_self_static=unknown
11116else
11117  lt_cv_dlopen=no
11118  lt_cv_dlopen_libs=
11119
11120  case $host_os in
11121  beos*)
11122    lt_cv_dlopen="load_add_on"
11123    lt_cv_dlopen_libs=
11124    lt_cv_dlopen_self=yes
11125    ;;
11126
11127  mingw* | pw32* | cegcc*)
11128    lt_cv_dlopen="LoadLibrary"
11129    lt_cv_dlopen_libs=
11130    ;;
11131
11132  cygwin*)
11133    lt_cv_dlopen="dlopen"
11134    lt_cv_dlopen_libs=
11135    ;;
11136
11137  darwin*)
11138  # if libdl is installed we need to link against it
11139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11140$as_echo_n "checking for dlopen in -ldl... " >&6; }
11141if ${ac_cv_lib_dl_dlopen+:} false; then :
11142  $as_echo_n "(cached) " >&6
11143else
11144  ac_check_lib_save_LIBS=$LIBS
11145LIBS="-ldl  $LIBS"
11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147/* end confdefs.h.  */
11148
11149/* Override any GCC internal prototype to avoid an error.
11150   Use char because int might match the return type of a GCC
11151   builtin and then its argument prototype would still apply.  */
11152#ifdef __cplusplus
11153extern "C"
11154#endif
11155char dlopen ();
11156int
11157main ()
11158{
11159return dlopen ();
11160  ;
11161  return 0;
11162}
11163_ACEOF
11164if ac_fn_c_try_link "$LINENO"; then :
11165  ac_cv_lib_dl_dlopen=yes
11166else
11167  ac_cv_lib_dl_dlopen=no
11168fi
11169rm -f core conftest.err conftest.$ac_objext \
11170    conftest$ac_exeext conftest.$ac_ext
11171LIBS=$ac_check_lib_save_LIBS
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11174$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11175if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11176  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11177else
11178
11179    lt_cv_dlopen="dyld"
11180    lt_cv_dlopen_libs=
11181    lt_cv_dlopen_self=yes
11182
11183fi
11184
11185    ;;
11186
11187  *)
11188    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11189if test "x$ac_cv_func_shl_load" = xyes; then :
11190  lt_cv_dlopen="shl_load"
11191else
11192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11193$as_echo_n "checking for shl_load in -ldld... " >&6; }
11194if ${ac_cv_lib_dld_shl_load+:} false; then :
11195  $as_echo_n "(cached) " >&6
11196else
11197  ac_check_lib_save_LIBS=$LIBS
11198LIBS="-ldld  $LIBS"
11199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200/* end confdefs.h.  */
11201
11202/* Override any GCC internal prototype to avoid an error.
11203   Use char because int might match the return type of a GCC
11204   builtin and then its argument prototype would still apply.  */
11205#ifdef __cplusplus
11206extern "C"
11207#endif
11208char shl_load ();
11209int
11210main ()
11211{
11212return shl_load ();
11213  ;
11214  return 0;
11215}
11216_ACEOF
11217if ac_fn_c_try_link "$LINENO"; then :
11218  ac_cv_lib_dld_shl_load=yes
11219else
11220  ac_cv_lib_dld_shl_load=no
11221fi
11222rm -f core conftest.err conftest.$ac_objext \
11223    conftest$ac_exeext conftest.$ac_ext
11224LIBS=$ac_check_lib_save_LIBS
11225fi
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11227$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11228if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11229  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11230else
11231  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11232if test "x$ac_cv_func_dlopen" = xyes; then :
11233  lt_cv_dlopen="dlopen"
11234else
11235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11236$as_echo_n "checking for dlopen in -ldl... " >&6; }
11237if ${ac_cv_lib_dl_dlopen+:} false; then :
11238  $as_echo_n "(cached) " >&6
11239else
11240  ac_check_lib_save_LIBS=$LIBS
11241LIBS="-ldl  $LIBS"
11242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243/* end confdefs.h.  */
11244
11245/* Override any GCC internal prototype to avoid an error.
11246   Use char because int might match the return type of a GCC
11247   builtin and then its argument prototype would still apply.  */
11248#ifdef __cplusplus
11249extern "C"
11250#endif
11251char dlopen ();
11252int
11253main ()
11254{
11255return dlopen ();
11256  ;
11257  return 0;
11258}
11259_ACEOF
11260if ac_fn_c_try_link "$LINENO"; then :
11261  ac_cv_lib_dl_dlopen=yes
11262else
11263  ac_cv_lib_dl_dlopen=no
11264fi
11265rm -f core conftest.err conftest.$ac_objext \
11266    conftest$ac_exeext conftest.$ac_ext
11267LIBS=$ac_check_lib_save_LIBS
11268fi
11269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11270$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11271if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11272  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11273else
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11275$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11276if ${ac_cv_lib_svld_dlopen+:} false; then :
11277  $as_echo_n "(cached) " >&6
11278else
11279  ac_check_lib_save_LIBS=$LIBS
11280LIBS="-lsvld  $LIBS"
11281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282/* end confdefs.h.  */
11283
11284/* Override any GCC internal prototype to avoid an error.
11285   Use char because int might match the return type of a GCC
11286   builtin and then its argument prototype would still apply.  */
11287#ifdef __cplusplus
11288extern "C"
11289#endif
11290char dlopen ();
11291int
11292main ()
11293{
11294return dlopen ();
11295  ;
11296  return 0;
11297}
11298_ACEOF
11299if ac_fn_c_try_link "$LINENO"; then :
11300  ac_cv_lib_svld_dlopen=yes
11301else
11302  ac_cv_lib_svld_dlopen=no
11303fi
11304rm -f core conftest.err conftest.$ac_objext \
11305    conftest$ac_exeext conftest.$ac_ext
11306LIBS=$ac_check_lib_save_LIBS
11307fi
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11309$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11310if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11311  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11312else
11313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11314$as_echo_n "checking for dld_link in -ldld... " >&6; }
11315if ${ac_cv_lib_dld_dld_link+:} false; then :
11316  $as_echo_n "(cached) " >&6
11317else
11318  ac_check_lib_save_LIBS=$LIBS
11319LIBS="-ldld  $LIBS"
11320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321/* end confdefs.h.  */
11322
11323/* Override any GCC internal prototype to avoid an error.
11324   Use char because int might match the return type of a GCC
11325   builtin and then its argument prototype would still apply.  */
11326#ifdef __cplusplus
11327extern "C"
11328#endif
11329char dld_link ();
11330int
11331main ()
11332{
11333return dld_link ();
11334  ;
11335  return 0;
11336}
11337_ACEOF
11338if ac_fn_c_try_link "$LINENO"; then :
11339  ac_cv_lib_dld_dld_link=yes
11340else
11341  ac_cv_lib_dld_dld_link=no
11342fi
11343rm -f core conftest.err conftest.$ac_objext \
11344    conftest$ac_exeext conftest.$ac_ext
11345LIBS=$ac_check_lib_save_LIBS
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11348$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11349if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11350  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11351fi
11352
11353
11354fi
11355
11356
11357fi
11358
11359
11360fi
11361
11362
11363fi
11364
11365
11366fi
11367
11368    ;;
11369  esac
11370
11371  if test "x$lt_cv_dlopen" != xno; then
11372    enable_dlopen=yes
11373  else
11374    enable_dlopen=no
11375  fi
11376
11377  case $lt_cv_dlopen in
11378  dlopen)
11379    save_CPPFLAGS="$CPPFLAGS"
11380    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11381
11382    save_LDFLAGS="$LDFLAGS"
11383    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11384
11385    save_LIBS="$LIBS"
11386    LIBS="$lt_cv_dlopen_libs $LIBS"
11387
11388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11389$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11390if ${lt_cv_dlopen_self+:} false; then :
11391  $as_echo_n "(cached) " >&6
11392else
11393  	  if test "$cross_compiling" = yes; then :
11394  lt_cv_dlopen_self=cross
11395else
11396  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11397  lt_status=$lt_dlunknown
11398  cat > conftest.$ac_ext <<_LT_EOF
11399#line $LINENO "configure"
11400#include "confdefs.h"
11401
11402#if HAVE_DLFCN_H
11403#include <dlfcn.h>
11404#endif
11405
11406#include <stdio.h>
11407
11408#ifdef RTLD_GLOBAL
11409#  define LT_DLGLOBAL		RTLD_GLOBAL
11410#else
11411#  ifdef DL_GLOBAL
11412#    define LT_DLGLOBAL		DL_GLOBAL
11413#  else
11414#    define LT_DLGLOBAL		0
11415#  endif
11416#endif
11417
11418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11419   find out it does not work in some platform. */
11420#ifndef LT_DLLAZY_OR_NOW
11421#  ifdef RTLD_LAZY
11422#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11423#  else
11424#    ifdef DL_LAZY
11425#      define LT_DLLAZY_OR_NOW		DL_LAZY
11426#    else
11427#      ifdef RTLD_NOW
11428#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11429#      else
11430#        ifdef DL_NOW
11431#          define LT_DLLAZY_OR_NOW	DL_NOW
11432#        else
11433#          define LT_DLLAZY_OR_NOW	0
11434#        endif
11435#      endif
11436#    endif
11437#  endif
11438#endif
11439
11440/* When -fvisbility=hidden is used, assume the code has been annotated
11441   correspondingly for the symbols needed.  */
11442#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11443int fnord () __attribute__((visibility("default")));
11444#endif
11445
11446int fnord () { return 42; }
11447int main ()
11448{
11449  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11450  int status = $lt_dlunknown;
11451
11452  if (self)
11453    {
11454      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11455      else
11456        {
11457	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11458          else puts (dlerror ());
11459	}
11460      /* dlclose (self); */
11461    }
11462  else
11463    puts (dlerror ());
11464
11465  return status;
11466}
11467_LT_EOF
11468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11469  (eval $ac_link) 2>&5
11470  ac_status=$?
11471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11472  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11473    (./conftest; exit; ) >&5 2>/dev/null
11474    lt_status=$?
11475    case x$lt_status in
11476      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11477      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11478      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11479    esac
11480  else :
11481    # compilation failed
11482    lt_cv_dlopen_self=no
11483  fi
11484fi
11485rm -fr conftest*
11486
11487
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11490$as_echo "$lt_cv_dlopen_self" >&6; }
11491
11492    if test "x$lt_cv_dlopen_self" = xyes; then
11493      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11494      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11495$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11496if ${lt_cv_dlopen_self_static+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  	  if test "$cross_compiling" = yes; then :
11500  lt_cv_dlopen_self_static=cross
11501else
11502  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11503  lt_status=$lt_dlunknown
11504  cat > conftest.$ac_ext <<_LT_EOF
11505#line $LINENO "configure"
11506#include "confdefs.h"
11507
11508#if HAVE_DLFCN_H
11509#include <dlfcn.h>
11510#endif
11511
11512#include <stdio.h>
11513
11514#ifdef RTLD_GLOBAL
11515#  define LT_DLGLOBAL		RTLD_GLOBAL
11516#else
11517#  ifdef DL_GLOBAL
11518#    define LT_DLGLOBAL		DL_GLOBAL
11519#  else
11520#    define LT_DLGLOBAL		0
11521#  endif
11522#endif
11523
11524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11525   find out it does not work in some platform. */
11526#ifndef LT_DLLAZY_OR_NOW
11527#  ifdef RTLD_LAZY
11528#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11529#  else
11530#    ifdef DL_LAZY
11531#      define LT_DLLAZY_OR_NOW		DL_LAZY
11532#    else
11533#      ifdef RTLD_NOW
11534#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11535#      else
11536#        ifdef DL_NOW
11537#          define LT_DLLAZY_OR_NOW	DL_NOW
11538#        else
11539#          define LT_DLLAZY_OR_NOW	0
11540#        endif
11541#      endif
11542#    endif
11543#  endif
11544#endif
11545
11546/* When -fvisbility=hidden is used, assume the code has been annotated
11547   correspondingly for the symbols needed.  */
11548#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11549int fnord () __attribute__((visibility("default")));
11550#endif
11551
11552int fnord () { return 42; }
11553int main ()
11554{
11555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11556  int status = $lt_dlunknown;
11557
11558  if (self)
11559    {
11560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11561      else
11562        {
11563	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11564          else puts (dlerror ());
11565	}
11566      /* dlclose (self); */
11567    }
11568  else
11569    puts (dlerror ());
11570
11571  return status;
11572}
11573_LT_EOF
11574  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11575  (eval $ac_link) 2>&5
11576  ac_status=$?
11577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11578  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11579    (./conftest; exit; ) >&5 2>/dev/null
11580    lt_status=$?
11581    case x$lt_status in
11582      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11583      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11584      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11585    esac
11586  else :
11587    # compilation failed
11588    lt_cv_dlopen_self_static=no
11589  fi
11590fi
11591rm -fr conftest*
11592
11593
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11596$as_echo "$lt_cv_dlopen_self_static" >&6; }
11597    fi
11598
11599    CPPFLAGS="$save_CPPFLAGS"
11600    LDFLAGS="$save_LDFLAGS"
11601    LIBS="$save_LIBS"
11602    ;;
11603  esac
11604
11605  case $lt_cv_dlopen_self in
11606  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11607  *) enable_dlopen_self=unknown ;;
11608  esac
11609
11610  case $lt_cv_dlopen_self_static in
11611  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11612  *) enable_dlopen_self_static=unknown ;;
11613  esac
11614fi
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632striplib=
11633old_striplib=
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11635$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11636if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11637  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11638  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640$as_echo "yes" >&6; }
11641else
11642# FIXME - insert some real tests, host_os isn't really good enough
11643  case $host_os in
11644  darwin*)
11645    if test -n "$STRIP" ; then
11646      striplib="$STRIP -x"
11647      old_striplib="$STRIP -S"
11648      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649$as_echo "yes" >&6; }
11650    else
11651      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652$as_echo "no" >&6; }
11653    fi
11654    ;;
11655  *)
11656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658    ;;
11659  esac
11660fi
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673  # Report which library types will actually be built
11674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11675$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11677$as_echo "$can_build_shared" >&6; }
11678
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11680$as_echo_n "checking whether to build shared libraries... " >&6; }
11681  test "$can_build_shared" = "no" && enable_shared=no
11682
11683  # On AIX, shared libraries and static libraries use the same namespace, and
11684  # are all built from PIC.
11685  case $host_os in
11686  aix3*)
11687    test "$enable_shared" = yes && enable_static=no
11688    if test -n "$RANLIB"; then
11689      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11690      postinstall_cmds='$RANLIB $lib'
11691    fi
11692    ;;
11693
11694  aix[4-9]*)
11695    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11696      test "$enable_shared" = yes && enable_static=no
11697    fi
11698    ;;
11699  esac
11700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11701$as_echo "$enable_shared" >&6; }
11702
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11704$as_echo_n "checking whether to build static libraries... " >&6; }
11705  # Make sure either enable_shared or enable_static is yes.
11706  test "$enable_shared" = yes || enable_static=yes
11707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11708$as_echo "$enable_static" >&6; }
11709
11710
11711
11712
11713fi
11714ac_ext=c
11715ac_cpp='$CPP $CPPFLAGS'
11716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719
11720CC="$lt_save_CC"
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734        ac_config_commands="$ac_config_commands libtool"
11735
11736
11737
11738
11739# Only expand once:
11740
11741
11742
11743# other programs
11744
11745
11746LIB_MAJ=2
11747
11748
11749cat >>confdefs.h <<_ACEOF
11750#define LIB_MAJ $LIB_MAJ
11751_ACEOF
11752
11753
11754# Check whether --enable-debug was given.
11755if test "${enable_debug+set}" = set; then :
11756  enableval=$enable_debug;
11757$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
11758
11759fi
11760
11761
11762# Check whether --enable-unversioned-modules was given.
11763if test "${enable_unversioned_modules+set}" = set; then :
11764  enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
11765
11766
11767$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
11768
11769
11770fi
11771fi
11772
11773
11774
11775# Check whether --with-modules-dir was given.
11776if test "${with_modules_dir+set}" = set; then :
11777  withval=$with_modules_dir; if test x"$withval" != x"no"; then :
11778
11779	OPENPAM_MODULES_DIR="$withval"
11780
11781else
11782
11783	OPENPAM_MODULES_DIR="$libdir"
11784
11785fi
11786else
11787  OPENPAM_MODULES_DIR="$libdir"
11788fi
11789
11790
11791cat >>confdefs.h <<_ACEOF
11792#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}/"
11793_ACEOF
11794
11795
11796
11797
11798# Check whether --with-doc was given.
11799if test "${with_doc+set}" = set; then :
11800  withval=$with_doc;
11801else
11802  with_doc=yes
11803fi
11804
11805 if test x"$with_doc" = x"yes"; then
11806  WITH_DOC_TRUE=
11807  WITH_DOC_FALSE='#'
11808else
11809  WITH_DOC_TRUE='#'
11810  WITH_DOC_FALSE=
11811fi
11812
11813
11814
11815# Check whether --with-pam-unix was given.
11816if test "${with_pam_unix+set}" = set; then :
11817  withval=$with_pam_unix;
11818else
11819  with_pam_unix=no
11820fi
11821
11822 if test x"$with_pam_unix" = x"yes"; then
11823  WITH_PAM_UNIX_TRUE=
11824  WITH_PAM_UNIX_FALSE='#'
11825else
11826  WITH_PAM_UNIX_TRUE='#'
11827  WITH_PAM_UNIX_FALSE=
11828fi
11829
11830
11831
11832# Check whether --with-pamtest was given.
11833if test "${with_pamtest+set}" = set; then :
11834  withval=$with_pamtest;
11835else
11836  with_pamtest=no
11837fi
11838
11839 if test x"$with_pamtest" = x"yes"; then
11840  WITH_PAMTEST_TRUE=
11841  WITH_PAMTEST_FALSE='#'
11842else
11843  WITH_PAMTEST_TRUE='#'
11844  WITH_PAMTEST_FALSE=
11845fi
11846
11847
11848
11849# Check whether --with-su was given.
11850if test "${with_su+set}" = set; then :
11851  withval=$with_su;
11852else
11853  with_su=no
11854fi
11855
11856 if test x"$with_su" = x"yes"; then
11857  WITH_SU_TRUE=
11858  WITH_SU_FALSE='#'
11859else
11860  WITH_SU_TRUE='#'
11861  WITH_SU_FALSE=
11862fi
11863
11864
11865for ac_header in crypt.h
11866do :
11867  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
11868if test "x$ac_cv_header_crypt_h" = xyes; then :
11869  cat >>confdefs.h <<_ACEOF
11870#define HAVE_CRYPT_H 1
11871_ACEOF
11872
11873fi
11874
11875done
11876
11877
11878for ac_func in fpurge strlcmp strlcpy
11879do :
11880  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11882if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11883  cat >>confdefs.h <<_ACEOF
11884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11885_ACEOF
11886
11887fi
11888done
11889
11890
11891saved_LIBS="${LIBS}"
11892LIBS=""
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894$as_echo_n "checking for dlopen in -ldl... " >&6; }
11895if ${ac_cv_lib_dl_dlopen+:} false; then :
11896  $as_echo_n "(cached) " >&6
11897else
11898  ac_check_lib_save_LIBS=$LIBS
11899LIBS="-ldl  $LIBS"
11900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901/* end confdefs.h.  */
11902
11903/* Override any GCC internal prototype to avoid an error.
11904   Use char because int might match the return type of a GCC
11905   builtin and then its argument prototype would still apply.  */
11906#ifdef __cplusplus
11907extern "C"
11908#endif
11909char dlopen ();
11910int
11911main ()
11912{
11913return dlopen ();
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919  ac_cv_lib_dl_dlopen=yes
11920else
11921  ac_cv_lib_dl_dlopen=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924    conftest$ac_exeext conftest.$ac_ext
11925LIBS=$ac_check_lib_save_LIBS
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930  cat >>confdefs.h <<_ACEOF
11931#define HAVE_LIBDL 1
11932_ACEOF
11933
11934  LIBS="-ldl $LIBS"
11935
11936fi
11937
11938DL_LIBS="${LIBS}"
11939LIBS="${saved_LIBS}"
11940
11941
11942saved_LIBS="${LIBS}"
11943LIBS=""
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11945$as_echo_n "checking for crypt in -lcrypt... " >&6; }
11946if ${ac_cv_lib_crypt_crypt+:} false; then :
11947  $as_echo_n "(cached) " >&6
11948else
11949  ac_check_lib_save_LIBS=$LIBS
11950LIBS="-lcrypt  $LIBS"
11951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953
11954/* Override any GCC internal prototype to avoid an error.
11955   Use char because int might match the return type of a GCC
11956   builtin and then its argument prototype would still apply.  */
11957#ifdef __cplusplus
11958extern "C"
11959#endif
11960char crypt ();
11961int
11962main ()
11963{
11964return crypt ();
11965  ;
11966  return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_link "$LINENO"; then :
11970  ac_cv_lib_crypt_crypt=yes
11971else
11972  ac_cv_lib_crypt_crypt=no
11973fi
11974rm -f core conftest.err conftest.$ac_objext \
11975    conftest$ac_exeext conftest.$ac_ext
11976LIBS=$ac_check_lib_save_LIBS
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11979$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11980if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11981  cat >>confdefs.h <<_ACEOF
11982#define HAVE_LIBCRYPT 1
11983_ACEOF
11984
11985  LIBS="-lcrypt $LIBS"
11986
11987fi
11988
11989CRYPT_LIBS="${LIBS}"
11990LIBS="${saved_LIBS}"
11991
11992
11993# Check whether --enable-developer-warnings was given.
11994if test "${enable_developer_warnings+set}" = set; then :
11995  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
11996fi
11997
11998# Check whether --enable-debugging-symbols was given.
11999if test "${enable_debugging_symbols+set}" = set; then :
12000  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12001fi
12002
12003# Check whether --enable-werror was given.
12004if test "${enable_werror+set}" = set; then :
12005  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12006fi
12007
12008
12009ac_config_files="$ac_config_files bin/Makefile bin/pamtest/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
12010
12011cat >confcache <<\_ACEOF
12012# This file is a shell script that caches the results of configure
12013# tests run on this system so they can be shared between configure
12014# scripts and configure runs, see configure's option --config-cache.
12015# It is not useful on other systems.  If it contains results you don't
12016# want to keep, you may remove or edit it.
12017#
12018# config.status only pays attention to the cache file if you give it
12019# the --recheck option to rerun configure.
12020#
12021# `ac_cv_env_foo' variables (set or unset) will be overridden when
12022# loading this file, other *unset* `ac_cv_foo' will be assigned the
12023# following values.
12024
12025_ACEOF
12026
12027# The following way of writing the cache mishandles newlines in values,
12028# but we know of no workaround that is simple, portable, and efficient.
12029# So, we kill variables containing newlines.
12030# Ultrix sh set writes to stderr and can't be redirected directly,
12031# and sets the high bit in the cache file unless we assign to the vars.
12032(
12033  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12034    eval ac_val=\$$ac_var
12035    case $ac_val in #(
12036    *${as_nl}*)
12037      case $ac_var in #(
12038      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12040      esac
12041      case $ac_var in #(
12042      _ | IFS | as_nl) ;; #(
12043      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12044      *) { eval $ac_var=; unset $ac_var;} ;;
12045      esac ;;
12046    esac
12047  done
12048
12049  (set) 2>&1 |
12050    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12051    *${as_nl}ac_space=\ *)
12052      # `set' does not quote correctly, so add quotes: double-quote
12053      # substitution turns \\\\ into \\, and sed turns \\ into \.
12054      sed -n \
12055	"s/'/'\\\\''/g;
12056	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12057      ;; #(
12058    *)
12059      # `set' quotes correctly as required by POSIX, so do not add quotes.
12060      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12061      ;;
12062    esac |
12063    sort
12064) |
12065  sed '
12066     /^ac_cv_env_/b end
12067     t clear
12068     :clear
12069     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12070     t end
12071     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12072     :end' >>confcache
12073if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12074  if test -w "$cache_file"; then
12075    if test "x$cache_file" != "x/dev/null"; then
12076      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12077$as_echo "$as_me: updating cache $cache_file" >&6;}
12078      if test ! -f "$cache_file" || test -h "$cache_file"; then
12079	cat confcache >"$cache_file"
12080      else
12081        case $cache_file in #(
12082        */* | ?:*)
12083	  mv -f confcache "$cache_file"$$ &&
12084	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12085        *)
12086	  mv -f confcache "$cache_file" ;;
12087	esac
12088      fi
12089    fi
12090  else
12091    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12092$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12093  fi
12094fi
12095rm -f confcache
12096
12097test "x$prefix" = xNONE && prefix=$ac_default_prefix
12098# Let make expand exec_prefix.
12099test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12100
12101DEFS=-DHAVE_CONFIG_H
12102
12103ac_libobjs=
12104ac_ltlibobjs=
12105U=
12106for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12107  # 1. Remove the extension, and $U if already installed.
12108  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12109  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12110  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12111  #    will be set to the directory where LIBOBJS objects are built.
12112  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12113  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12114done
12115LIBOBJS=$ac_libobjs
12116
12117LTLIBOBJS=$ac_ltlibobjs
12118
12119
12120 if test -n "$EXEEXT"; then
12121  am__EXEEXT_TRUE=
12122  am__EXEEXT_FALSE='#'
12123else
12124  am__EXEEXT_TRUE='#'
12125  am__EXEEXT_FALSE=
12126fi
12127
12128if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12129  as_fn_error $? "conditional \"AMDEP\" was never defined.
12130Usually this means the macro was only invoked conditionally." "$LINENO" 5
12131fi
12132if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12133  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12134Usually this means the macro was only invoked conditionally." "$LINENO" 5
12135fi
12136if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12137  as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12138Usually this means the macro was only invoked conditionally." "$LINENO" 5
12139fi
12140if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12141  as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12142Usually this means the macro was only invoked conditionally." "$LINENO" 5
12143fi
12144if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12145  as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12146Usually this means the macro was only invoked conditionally." "$LINENO" 5
12147fi
12148if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12149  as_fn_error $? "conditional \"WITH_SU\" was never defined.
12150Usually this means the macro was only invoked conditionally." "$LINENO" 5
12151fi
12152
12153: "${CONFIG_STATUS=./config.status}"
12154ac_write_fail=0
12155ac_clean_files_save=$ac_clean_files
12156ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12158$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12159as_write_fail=0
12160cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12161#! $SHELL
12162# Generated by $as_me.
12163# Run this file to recreate the current configuration.
12164# Compiler output produced by configure, useful for debugging
12165# configure, is in config.log if it exists.
12166
12167debug=false
12168ac_cs_recheck=false
12169ac_cs_silent=false
12170
12171SHELL=\${CONFIG_SHELL-$SHELL}
12172export SHELL
12173_ASEOF
12174cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12175## -------------------- ##
12176## M4sh Initialization. ##
12177## -------------------- ##
12178
12179# Be more Bourne compatible
12180DUALCASE=1; export DUALCASE # for MKS sh
12181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12182  emulate sh
12183  NULLCMD=:
12184  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12185  # is contrary to our usage.  Disable this feature.
12186  alias -g '${1+"$@"}'='"$@"'
12187  setopt NO_GLOB_SUBST
12188else
12189  case `(set -o) 2>/dev/null` in #(
12190  *posix*) :
12191    set -o posix ;; #(
12192  *) :
12193     ;;
12194esac
12195fi
12196
12197
12198as_nl='
12199'
12200export as_nl
12201# Printing a long string crashes Solaris 7 /usr/bin/printf.
12202as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12203as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12204as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12205# Prefer a ksh shell builtin over an external printf program on Solaris,
12206# but without wasting forks for bash or zsh.
12207if test -z "$BASH_VERSION$ZSH_VERSION" \
12208    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12209  as_echo='print -r --'
12210  as_echo_n='print -rn --'
12211elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12212  as_echo='printf %s\n'
12213  as_echo_n='printf %s'
12214else
12215  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12216    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12217    as_echo_n='/usr/ucb/echo -n'
12218  else
12219    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12220    as_echo_n_body='eval
12221      arg=$1;
12222      case $arg in #(
12223      *"$as_nl"*)
12224	expr "X$arg" : "X\\(.*\\)$as_nl";
12225	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12226      esac;
12227      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12228    '
12229    export as_echo_n_body
12230    as_echo_n='sh -c $as_echo_n_body as_echo'
12231  fi
12232  export as_echo_body
12233  as_echo='sh -c $as_echo_body as_echo'
12234fi
12235
12236# The user is always right.
12237if test "${PATH_SEPARATOR+set}" != set; then
12238  PATH_SEPARATOR=:
12239  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12240    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12241      PATH_SEPARATOR=';'
12242  }
12243fi
12244
12245
12246# IFS
12247# We need space, tab and new line, in precisely that order.  Quoting is
12248# there to prevent editors from complaining about space-tab.
12249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12250# splitting by setting IFS to empty value.)
12251IFS=" ""	$as_nl"
12252
12253# Find who we are.  Look in the path if we contain no directory separator.
12254as_myself=
12255case $0 in #((
12256  *[\\/]* ) as_myself=$0 ;;
12257  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260  IFS=$as_save_IFS
12261  test -z "$as_dir" && as_dir=.
12262    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12263  done
12264IFS=$as_save_IFS
12265
12266     ;;
12267esac
12268# We did not find ourselves, most probably we were run as `sh COMMAND'
12269# in which case we are not to be found in the path.
12270if test "x$as_myself" = x; then
12271  as_myself=$0
12272fi
12273if test ! -f "$as_myself"; then
12274  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12275  exit 1
12276fi
12277
12278# Unset variables that we do not need and which cause bugs (e.g. in
12279# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12280# suppresses any "Segmentation fault" message there.  '((' could
12281# trigger a bug in pdksh 5.2.14.
12282for as_var in BASH_ENV ENV MAIL MAILPATH
12283do eval test x\${$as_var+set} = xset \
12284  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12285done
12286PS1='$ '
12287PS2='> '
12288PS4='+ '
12289
12290# NLS nuisances.
12291LC_ALL=C
12292export LC_ALL
12293LANGUAGE=C
12294export LANGUAGE
12295
12296# CDPATH.
12297(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12298
12299
12300# as_fn_error STATUS ERROR [LINENO LOG_FD]
12301# ----------------------------------------
12302# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12303# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12304# script with STATUS, using 1 if that was 0.
12305as_fn_error ()
12306{
12307  as_status=$1; test $as_status -eq 0 && as_status=1
12308  if test "$4"; then
12309    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12310    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12311  fi
12312  $as_echo "$as_me: error: $2" >&2
12313  as_fn_exit $as_status
12314} # as_fn_error
12315
12316
12317# as_fn_set_status STATUS
12318# -----------------------
12319# Set $? to STATUS, without forking.
12320as_fn_set_status ()
12321{
12322  return $1
12323} # as_fn_set_status
12324
12325# as_fn_exit STATUS
12326# -----------------
12327# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12328as_fn_exit ()
12329{
12330  set +e
12331  as_fn_set_status $1
12332  exit $1
12333} # as_fn_exit
12334
12335# as_fn_unset VAR
12336# ---------------
12337# Portably unset VAR.
12338as_fn_unset ()
12339{
12340  { eval $1=; unset $1;}
12341}
12342as_unset=as_fn_unset
12343# as_fn_append VAR VALUE
12344# ----------------------
12345# Append the text in VALUE to the end of the definition contained in VAR. Take
12346# advantage of any shell optimizations that allow amortized linear growth over
12347# repeated appends, instead of the typical quadratic growth present in naive
12348# implementations.
12349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12350  eval 'as_fn_append ()
12351  {
12352    eval $1+=\$2
12353  }'
12354else
12355  as_fn_append ()
12356  {
12357    eval $1=\$$1\$2
12358  }
12359fi # as_fn_append
12360
12361# as_fn_arith ARG...
12362# ------------------
12363# Perform arithmetic evaluation on the ARGs, and store the result in the
12364# global $as_val. Take advantage of shells that can avoid forks. The arguments
12365# must be portable across $(()) and expr.
12366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12367  eval 'as_fn_arith ()
12368  {
12369    as_val=$(( $* ))
12370  }'
12371else
12372  as_fn_arith ()
12373  {
12374    as_val=`expr "$@" || test $? -eq 1`
12375  }
12376fi # as_fn_arith
12377
12378
12379if expr a : '\(a\)' >/dev/null 2>&1 &&
12380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12381  as_expr=expr
12382else
12383  as_expr=false
12384fi
12385
12386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12387  as_basename=basename
12388else
12389  as_basename=false
12390fi
12391
12392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12393  as_dirname=dirname
12394else
12395  as_dirname=false
12396fi
12397
12398as_me=`$as_basename -- "$0" ||
12399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12400	 X"$0" : 'X\(//\)$' \| \
12401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12402$as_echo X/"$0" |
12403    sed '/^.*\/\([^/][^/]*\)\/*$/{
12404	    s//\1/
12405	    q
12406	  }
12407	  /^X\/\(\/\/\)$/{
12408	    s//\1/
12409	    q
12410	  }
12411	  /^X\/\(\/\).*/{
12412	    s//\1/
12413	    q
12414	  }
12415	  s/.*/./; q'`
12416
12417# Avoid depending upon Character Ranges.
12418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12421as_cr_digits='0123456789'
12422as_cr_alnum=$as_cr_Letters$as_cr_digits
12423
12424ECHO_C= ECHO_N= ECHO_T=
12425case `echo -n x` in #(((((
12426-n*)
12427  case `echo 'xy\c'` in
12428  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12429  xy)  ECHO_C='\c';;
12430  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12431       ECHO_T='	';;
12432  esac;;
12433*)
12434  ECHO_N='-n';;
12435esac
12436
12437rm -f conf$$ conf$$.exe conf$$.file
12438if test -d conf$$.dir; then
12439  rm -f conf$$.dir/conf$$.file
12440else
12441  rm -f conf$$.dir
12442  mkdir conf$$.dir 2>/dev/null
12443fi
12444if (echo >conf$$.file) 2>/dev/null; then
12445  if ln -s conf$$.file conf$$ 2>/dev/null; then
12446    as_ln_s='ln -s'
12447    # ... but there are two gotchas:
12448    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12449    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12450    # In both cases, we have to default to `cp -p'.
12451    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12452      as_ln_s='cp -p'
12453  elif ln conf$$.file conf$$ 2>/dev/null; then
12454    as_ln_s=ln
12455  else
12456    as_ln_s='cp -p'
12457  fi
12458else
12459  as_ln_s='cp -p'
12460fi
12461rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12462rmdir conf$$.dir 2>/dev/null
12463
12464
12465# as_fn_mkdir_p
12466# -------------
12467# Create "$as_dir" as a directory, including parents if necessary.
12468as_fn_mkdir_p ()
12469{
12470
12471  case $as_dir in #(
12472  -*) as_dir=./$as_dir;;
12473  esac
12474  test -d "$as_dir" || eval $as_mkdir_p || {
12475    as_dirs=
12476    while :; do
12477      case $as_dir in #(
12478      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12479      *) as_qdir=$as_dir;;
12480      esac
12481      as_dirs="'$as_qdir' $as_dirs"
12482      as_dir=`$as_dirname -- "$as_dir" ||
12483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12484	 X"$as_dir" : 'X\(//\)[^/]' \| \
12485	 X"$as_dir" : 'X\(//\)$' \| \
12486	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12487$as_echo X"$as_dir" |
12488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12489	    s//\1/
12490	    q
12491	  }
12492	  /^X\(\/\/\)[^/].*/{
12493	    s//\1/
12494	    q
12495	  }
12496	  /^X\(\/\/\)$/{
12497	    s//\1/
12498	    q
12499	  }
12500	  /^X\(\/\).*/{
12501	    s//\1/
12502	    q
12503	  }
12504	  s/.*/./; q'`
12505      test -d "$as_dir" && break
12506    done
12507    test -z "$as_dirs" || eval "mkdir $as_dirs"
12508  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12509
12510
12511} # as_fn_mkdir_p
12512if mkdir -p . 2>/dev/null; then
12513  as_mkdir_p='mkdir -p "$as_dir"'
12514else
12515  test -d ./-p && rmdir ./-p
12516  as_mkdir_p=false
12517fi
12518
12519if test -x / >/dev/null 2>&1; then
12520  as_test_x='test -x'
12521else
12522  if ls -dL / >/dev/null 2>&1; then
12523    as_ls_L_option=L
12524  else
12525    as_ls_L_option=
12526  fi
12527  as_test_x='
12528    eval sh -c '\''
12529      if test -d "$1"; then
12530	test -d "$1/.";
12531      else
12532	case $1 in #(
12533	-*)set "./$1";;
12534	esac;
12535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12536	???[sx]*):;;*)false;;esac;fi
12537    '\'' sh
12538  '
12539fi
12540as_executable_p=$as_test_x
12541
12542# Sed expression to map a string onto a valid CPP name.
12543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12544
12545# Sed expression to map a string onto a valid variable name.
12546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12547
12548
12549exec 6>&1
12550## ----------------------------------- ##
12551## Main body of $CONFIG_STATUS script. ##
12552## ----------------------------------- ##
12553_ASEOF
12554test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12555
12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557# Save the log message, to keep $0 and so on meaningful, and to
12558# report actual input values of CONFIG_FILES etc. instead of their
12559# values after options handling.
12560ac_log="
12561This file was extended by OpenPAM $as_me 20111218, which was
12562generated by GNU Autoconf 2.68.  Invocation command line was
12563
12564  CONFIG_FILES    = $CONFIG_FILES
12565  CONFIG_HEADERS  = $CONFIG_HEADERS
12566  CONFIG_LINKS    = $CONFIG_LINKS
12567  CONFIG_COMMANDS = $CONFIG_COMMANDS
12568  $ $0 $@
12569
12570on `(hostname || uname -n) 2>/dev/null | sed 1q`
12571"
12572
12573_ACEOF
12574
12575case $ac_config_files in *"
12576"*) set x $ac_config_files; shift; ac_config_files=$*;;
12577esac
12578
12579case $ac_config_headers in *"
12580"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12581esac
12582
12583
12584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12585# Files that config.status was made for.
12586config_files="$ac_config_files"
12587config_headers="$ac_config_headers"
12588config_commands="$ac_config_commands"
12589
12590_ACEOF
12591
12592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12593ac_cs_usage="\
12594\`$as_me' instantiates files and other configuration actions
12595from templates according to the current configuration.  Unless the files
12596and actions are specified as TAGs, all are instantiated by default.
12597
12598Usage: $0 [OPTION]... [TAG]...
12599
12600  -h, --help       print this help, then exit
12601  -V, --version    print version number and configuration settings, then exit
12602      --config     print configuration, then exit
12603  -q, --quiet, --silent
12604                   do not print progress messages
12605  -d, --debug      don't remove temporary files
12606      --recheck    update $as_me by reconfiguring in the same conditions
12607      --file=FILE[:TEMPLATE]
12608                   instantiate the configuration file FILE
12609      --header=FILE[:TEMPLATE]
12610                   instantiate the configuration header FILE
12611
12612Configuration files:
12613$config_files
12614
12615Configuration headers:
12616$config_headers
12617
12618Configuration commands:
12619$config_commands
12620
12621Report bugs to <des@des.no>."
12622
12623_ACEOF
12624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12625ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12626ac_cs_version="\\
12627OpenPAM config.status 20111218
12628configured by $0, generated by GNU Autoconf 2.68,
12629  with options \\"\$ac_cs_config\\"
12630
12631Copyright (C) 2010 Free Software Foundation, Inc.
12632This config.status script is free software; the Free Software Foundation
12633gives unlimited permission to copy, distribute and modify it."
12634
12635ac_pwd='$ac_pwd'
12636srcdir='$srcdir'
12637INSTALL='$INSTALL'
12638MKDIR_P='$MKDIR_P'
12639AWK='$AWK'
12640test -n "\$AWK" || AWK=awk
12641_ACEOF
12642
12643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644# The default lists apply if the user does not specify any file.
12645ac_need_defaults=:
12646while test $# != 0
12647do
12648  case $1 in
12649  --*=?*)
12650    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12651    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12652    ac_shift=:
12653    ;;
12654  --*=)
12655    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12656    ac_optarg=
12657    ac_shift=:
12658    ;;
12659  *)
12660    ac_option=$1
12661    ac_optarg=$2
12662    ac_shift=shift
12663    ;;
12664  esac
12665
12666  case $ac_option in
12667  # Handling of the options.
12668  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12669    ac_cs_recheck=: ;;
12670  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12671    $as_echo "$ac_cs_version"; exit ;;
12672  --config | --confi | --conf | --con | --co | --c )
12673    $as_echo "$ac_cs_config"; exit ;;
12674  --debug | --debu | --deb | --de | --d | -d )
12675    debug=: ;;
12676  --file | --fil | --fi | --f )
12677    $ac_shift
12678    case $ac_optarg in
12679    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12680    '') as_fn_error $? "missing file argument" ;;
12681    esac
12682    as_fn_append CONFIG_FILES " '$ac_optarg'"
12683    ac_need_defaults=false;;
12684  --header | --heade | --head | --hea )
12685    $ac_shift
12686    case $ac_optarg in
12687    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12688    esac
12689    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12690    ac_need_defaults=false;;
12691  --he | --h)
12692    # Conflict between --help and --header
12693    as_fn_error $? "ambiguous option: \`$1'
12694Try \`$0 --help' for more information.";;
12695  --help | --hel | -h )
12696    $as_echo "$ac_cs_usage"; exit ;;
12697  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12698  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12699    ac_cs_silent=: ;;
12700
12701  # This is an error.
12702  -*) as_fn_error $? "unrecognized option: \`$1'
12703Try \`$0 --help' for more information." ;;
12704
12705  *) as_fn_append ac_config_targets " $1"
12706     ac_need_defaults=false ;;
12707
12708  esac
12709  shift
12710done
12711
12712ac_configure_extra_args=
12713
12714if $ac_cs_silent; then
12715  exec 6>/dev/null
12716  ac_configure_extra_args="$ac_configure_extra_args --silent"
12717fi
12718
12719_ACEOF
12720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12721if \$ac_cs_recheck; then
12722  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12723  shift
12724  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12725  CONFIG_SHELL='$SHELL'
12726  export CONFIG_SHELL
12727  exec "\$@"
12728fi
12729
12730_ACEOF
12731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12732exec 5>>config.log
12733{
12734  echo
12735  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12736## Running $as_me. ##
12737_ASBOX
12738  $as_echo "$ac_log"
12739} >&5
12740
12741_ACEOF
12742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743#
12744# INIT-COMMANDS
12745#
12746AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12747
12748
12749# The HP-UX ksh and POSIX shell print the target directory to stdout
12750# if CDPATH is set.
12751(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12752
12753sed_quote_subst='$sed_quote_subst'
12754double_quote_subst='$double_quote_subst'
12755delay_variable_subst='$delay_variable_subst'
12756macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12757macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12758enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12759enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12760pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12761enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12762SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12763ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12764host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12765host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12766host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12767build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12768build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12769build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12770SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12771Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12772GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12773EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12774FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12775LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12776NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12777LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12778max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12779ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12780exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12781lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12782lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12783lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12784lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12785lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12786reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12787reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12788OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12789deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12790file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12791file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12792want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12793DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12794sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12795AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12796AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12797archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12798STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12799RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12800old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12801old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12802old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12803lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12804CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12805CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12806compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12807GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12808lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12809lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12810lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12811lt_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"`'
12812nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12813lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12814objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12815MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12816lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12817lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12818lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12819lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12820lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12821need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12822MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12823DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12824NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12825LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12826OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12827OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12828libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12829shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12830extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12831archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12832enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12833export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12834whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12835compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12836old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12837old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12838archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12839archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12840module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12841module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12842with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12843allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12844no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12845hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12846hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12847hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12848hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12849hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12850hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12851hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12852hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12853inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12854link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12855always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12856export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12857exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12858include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12859prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12860postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12861file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12862variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12863need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12864need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12865version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12866runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12867shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12868shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12869libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12870library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12871soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12872install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12873postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12874postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12875finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12876finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12877hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12878sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12879sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12880hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12881enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12882enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12883enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12884old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12885striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12886
12887LTCC='$LTCC'
12888LTCFLAGS='$LTCFLAGS'
12889compiler='$compiler_DEFAULT'
12890
12891# A function that is used when there is no print builtin or printf.
12892func_fallback_echo ()
12893{
12894  eval 'cat <<_LTECHO_EOF
12895\$1
12896_LTECHO_EOF'
12897}
12898
12899# Quote evaled strings.
12900for var in SHELL \
12901ECHO \
12902SED \
12903GREP \
12904EGREP \
12905FGREP \
12906LD \
12907NM \
12908LN_S \
12909lt_SP2NL \
12910lt_NL2SP \
12911reload_flag \
12912OBJDUMP \
12913deplibs_check_method \
12914file_magic_cmd \
12915file_magic_glob \
12916want_nocaseglob \
12917DLLTOOL \
12918sharedlib_from_linklib_cmd \
12919AR \
12920AR_FLAGS \
12921archiver_list_spec \
12922STRIP \
12923RANLIB \
12924CC \
12925CFLAGS \
12926compiler \
12927lt_cv_sys_global_symbol_pipe \
12928lt_cv_sys_global_symbol_to_cdecl \
12929lt_cv_sys_global_symbol_to_c_name_address \
12930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12931nm_file_list_spec \
12932lt_prog_compiler_no_builtin_flag \
12933lt_prog_compiler_pic \
12934lt_prog_compiler_wl \
12935lt_prog_compiler_static \
12936lt_cv_prog_compiler_c_o \
12937need_locks \
12938MANIFEST_TOOL \
12939DSYMUTIL \
12940NMEDIT \
12941LIPO \
12942OTOOL \
12943OTOOL64 \
12944shrext_cmds \
12945export_dynamic_flag_spec \
12946whole_archive_flag_spec \
12947compiler_needs_object \
12948with_gnu_ld \
12949allow_undefined_flag \
12950no_undefined_flag \
12951hardcode_libdir_flag_spec \
12952hardcode_libdir_flag_spec_ld \
12953hardcode_libdir_separator \
12954exclude_expsyms \
12955include_expsyms \
12956file_list_spec \
12957variables_saved_for_relink \
12958libname_spec \
12959library_names_spec \
12960soname_spec \
12961install_override_mode \
12962finish_eval \
12963old_striplib \
12964striplib; do
12965    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12966    *[\\\\\\\`\\"\\\$]*)
12967      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12968      ;;
12969    *)
12970      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12971      ;;
12972    esac
12973done
12974
12975# Double-quote double-evaled strings.
12976for var in reload_cmds \
12977old_postinstall_cmds \
12978old_postuninstall_cmds \
12979old_archive_cmds \
12980extract_expsyms_cmds \
12981old_archive_from_new_cmds \
12982old_archive_from_expsyms_cmds \
12983archive_cmds \
12984archive_expsym_cmds \
12985module_cmds \
12986module_expsym_cmds \
12987export_symbols_cmds \
12988prelink_cmds \
12989postlink_cmds \
12990postinstall_cmds \
12991postuninstall_cmds \
12992finish_cmds \
12993sys_lib_search_path_spec \
12994sys_lib_dlsearch_path_spec; do
12995    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12996    *[\\\\\\\`\\"\\\$]*)
12997      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12998      ;;
12999    *)
13000      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13001      ;;
13002    esac
13003done
13004
13005ac_aux_dir='$ac_aux_dir'
13006xsi_shell='$xsi_shell'
13007lt_shell_append='$lt_shell_append'
13008
13009# See if we are running on zsh, and set the options which allow our
13010# commands through without removal of \ escapes INIT.
13011if test -n "\${ZSH_VERSION+set}" ; then
13012   setopt NO_GLOB_SUBST
13013fi
13014
13015
13016    PACKAGE='$PACKAGE'
13017    VERSION='$VERSION'
13018    TIMESTAMP='$TIMESTAMP'
13019    RM='$RM'
13020    ofile='$ofile'
13021
13022
13023
13024
13025_ACEOF
13026
13027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028
13029# Handling of arguments.
13030for ac_config_target in $ac_config_targets
13031do
13032  case $ac_config_target in
13033    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13034    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13035    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13036    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13037    "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13038    "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13039    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13040    "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13041    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13042    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13043    "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13044    "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13045    "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13046    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13047    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13048    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13049
13050  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13051  esac
13052done
13053
13054
13055# If the user did not use the arguments to specify the items to instantiate,
13056# then the envvar interface is used.  Set only those that are not.
13057# We use the long form for the default assignment because of an extremely
13058# bizarre bug on SunOS 4.1.3.
13059if $ac_need_defaults; then
13060  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13061  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13062  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13063fi
13064
13065# Have a temporary directory for convenience.  Make it in the build tree
13066# simply because there is no reason against having it here, and in addition,
13067# creating and moving files from /tmp can sometimes cause problems.
13068# Hook for its removal unless debugging.
13069# Note that there is a small window in which the directory will not be cleaned:
13070# after its creation but before its name has been assigned to `$tmp'.
13071$debug ||
13072{
13073  tmp= ac_tmp=
13074  trap 'exit_status=$?
13075  : "${ac_tmp:=$tmp}"
13076  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13077' 0
13078  trap 'as_fn_exit 1' 1 2 13 15
13079}
13080# Create a (secure) tmp directory for tmp files.
13081
13082{
13083  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13084  test -d "$tmp"
13085}  ||
13086{
13087  tmp=./conf$$-$RANDOM
13088  (umask 077 && mkdir "$tmp")
13089} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13090ac_tmp=$tmp
13091
13092# Set up the scripts for CONFIG_FILES section.
13093# No need to generate them if there are no CONFIG_FILES.
13094# This happens for instance with `./config.status config.h'.
13095if test -n "$CONFIG_FILES"; then
13096
13097
13098ac_cr=`echo X | tr X '\015'`
13099# On cygwin, bash can eat \r inside `` if the user requested igncr.
13100# But we know of no other shell where ac_cr would be empty at this
13101# point, so we can use a bashism as a fallback.
13102if test "x$ac_cr" = x; then
13103  eval ac_cr=\$\'\\r\'
13104fi
13105ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13106if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13107  ac_cs_awk_cr='\\r'
13108else
13109  ac_cs_awk_cr=$ac_cr
13110fi
13111
13112echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13113_ACEOF
13114
13115
13116{
13117  echo "cat >conf$$subs.awk <<_ACEOF" &&
13118  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13119  echo "_ACEOF"
13120} >conf$$subs.sh ||
13121  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13122ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13123ac_delim='%!_!# '
13124for ac_last_try in false false false false false :; do
13125  . ./conf$$subs.sh ||
13126    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13127
13128  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13129  if test $ac_delim_n = $ac_delim_num; then
13130    break
13131  elif $ac_last_try; then
13132    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13133  else
13134    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13135  fi
13136done
13137rm -f conf$$subs.sh
13138
13139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13140cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13141_ACEOF
13142sed -n '
13143h
13144s/^/S["/; s/!.*/"]=/
13145p
13146g
13147s/^[^!]*!//
13148:repl
13149t repl
13150s/'"$ac_delim"'$//
13151t delim
13152:nl
13153h
13154s/\(.\{148\}\)..*/\1/
13155t more1
13156s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13157p
13158n
13159b repl
13160:more1
13161s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13162p
13163g
13164s/.\{148\}//
13165t nl
13166:delim
13167h
13168s/\(.\{148\}\)..*/\1/
13169t more2
13170s/["\\]/\\&/g; s/^/"/; s/$/"/
13171p
13172b
13173:more2
13174s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13175p
13176g
13177s/.\{148\}//
13178t delim
13179' <conf$$subs.awk | sed '
13180/^[^""]/{
13181  N
13182  s/\n//
13183}
13184' >>$CONFIG_STATUS || ac_write_fail=1
13185rm -f conf$$subs.awk
13186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187_ACAWK
13188cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13189  for (key in S) S_is_set[key] = 1
13190  FS = ""
13191
13192}
13193{
13194  line = $ 0
13195  nfields = split(line, field, "@")
13196  substed = 0
13197  len = length(field[1])
13198  for (i = 2; i < nfields; i++) {
13199    key = field[i]
13200    keylen = length(key)
13201    if (S_is_set[key]) {
13202      value = S[key]
13203      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13204      len += length(value) + length(field[++i])
13205      substed = 1
13206    } else
13207      len += 1 + keylen
13208  }
13209
13210  print line
13211}
13212
13213_ACAWK
13214_ACEOF
13215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13216if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13217  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13218else
13219  cat
13220fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13221  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13222_ACEOF
13223
13224# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13225# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13226# trailing colons and then remove the whole line if VPATH becomes empty
13227# (actually we leave an empty line to preserve line numbers).
13228if test "x$srcdir" = x.; then
13229  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13230h
13231s///
13232s/^/:/
13233s/[	 ]*$/:/
13234s/:\$(srcdir):/:/g
13235s/:\${srcdir}:/:/g
13236s/:@srcdir@:/:/g
13237s/^:*//
13238s/:*$//
13239x
13240s/\(=[	 ]*\).*/\1/
13241G
13242s/\n//
13243s/^[^=]*=[	 ]*$//
13244}'
13245fi
13246
13247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13248fi # test -n "$CONFIG_FILES"
13249
13250# Set up the scripts for CONFIG_HEADERS section.
13251# No need to generate them if there are no CONFIG_HEADERS.
13252# This happens for instance with `./config.status Makefile'.
13253if test -n "$CONFIG_HEADERS"; then
13254cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13255BEGIN {
13256_ACEOF
13257
13258# Transform confdefs.h into an awk script `defines.awk', embedded as
13259# here-document in config.status, that substitutes the proper values into
13260# config.h.in to produce config.h.
13261
13262# Create a delimiter string that does not exist in confdefs.h, to ease
13263# handling of long lines.
13264ac_delim='%!_!# '
13265for ac_last_try in false false :; do
13266  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13267  if test -z "$ac_tt"; then
13268    break
13269  elif $ac_last_try; then
13270    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13271  else
13272    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13273  fi
13274done
13275
13276# For the awk script, D is an array of macro values keyed by name,
13277# likewise P contains macro parameters if any.  Preserve backslash
13278# newline sequences.
13279
13280ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13281sed -n '
13282s/.\{148\}/&'"$ac_delim"'/g
13283t rset
13284:rset
13285s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13286t def
13287d
13288:def
13289s/\\$//
13290t bsnl
13291s/["\\]/\\&/g
13292s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13293D["\1"]=" \3"/p
13294s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13295d
13296:bsnl
13297s/["\\]/\\&/g
13298s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13299D["\1"]=" \3\\\\\\n"\\/p
13300t cont
13301s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13302t cont
13303d
13304:cont
13305n
13306s/.\{148\}/&'"$ac_delim"'/g
13307t clear
13308:clear
13309s/\\$//
13310t bsnlc
13311s/["\\]/\\&/g; s/^/"/; s/$/"/p
13312d
13313:bsnlc
13314s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13315b cont
13316' <confdefs.h | sed '
13317s/'"$ac_delim"'/"\\\
13318"/g' >>$CONFIG_STATUS || ac_write_fail=1
13319
13320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321  for (key in D) D_is_set[key] = 1
13322  FS = ""
13323}
13324/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13325  line = \$ 0
13326  split(line, arg, " ")
13327  if (arg[1] == "#") {
13328    defundef = arg[2]
13329    mac1 = arg[3]
13330  } else {
13331    defundef = substr(arg[1], 2)
13332    mac1 = arg[2]
13333  }
13334  split(mac1, mac2, "(") #)
13335  macro = mac2[1]
13336  prefix = substr(line, 1, index(line, defundef) - 1)
13337  if (D_is_set[macro]) {
13338    # Preserve the white space surrounding the "#".
13339    print prefix "define", macro P[macro] D[macro]
13340    next
13341  } else {
13342    # Replace #undef with comments.  This is necessary, for example,
13343    # in the case of _POSIX_SOURCE, which is predefined and required
13344    # on some systems where configure will not decide to define it.
13345    if (defundef == "undef") {
13346      print "/*", prefix defundef, macro, "*/"
13347      next
13348    }
13349  }
13350}
13351{ print }
13352_ACAWK
13353_ACEOF
13354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13355  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13356fi # test -n "$CONFIG_HEADERS"
13357
13358
13359eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13360shift
13361for ac_tag
13362do
13363  case $ac_tag in
13364  :[FHLC]) ac_mode=$ac_tag; continue;;
13365  esac
13366  case $ac_mode$ac_tag in
13367  :[FHL]*:*);;
13368  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13369  :[FH]-) ac_tag=-:-;;
13370  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13371  esac
13372  ac_save_IFS=$IFS
13373  IFS=:
13374  set x $ac_tag
13375  IFS=$ac_save_IFS
13376  shift
13377  ac_file=$1
13378  shift
13379
13380  case $ac_mode in
13381  :L) ac_source=$1;;
13382  :[FH])
13383    ac_file_inputs=
13384    for ac_f
13385    do
13386      case $ac_f in
13387      -) ac_f="$ac_tmp/stdin";;
13388      *) # Look for the file first in the build tree, then in the source tree
13389	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13390	 # because $ac_f cannot contain `:'.
13391	 test -f "$ac_f" ||
13392	   case $ac_f in
13393	   [\\/$]*) false;;
13394	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13395	   esac ||
13396	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13397      esac
13398      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13399      as_fn_append ac_file_inputs " '$ac_f'"
13400    done
13401
13402    # Let's still pretend it is `configure' which instantiates (i.e., don't
13403    # use $as_me), people would be surprised to read:
13404    #    /* config.h.  Generated by config.status.  */
13405    configure_input='Generated from '`
13406	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13407	`' by configure.'
13408    if test x"$ac_file" != x-; then
13409      configure_input="$ac_file.  $configure_input"
13410      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13411$as_echo "$as_me: creating $ac_file" >&6;}
13412    fi
13413    # Neutralize special characters interpreted by sed in replacement strings.
13414    case $configure_input in #(
13415    *\&* | *\|* | *\\* )
13416       ac_sed_conf_input=`$as_echo "$configure_input" |
13417       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13418    *) ac_sed_conf_input=$configure_input;;
13419    esac
13420
13421    case $ac_tag in
13422    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13423      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13424    esac
13425    ;;
13426  esac
13427
13428  ac_dir=`$as_dirname -- "$ac_file" ||
13429$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13430	 X"$ac_file" : 'X\(//\)[^/]' \| \
13431	 X"$ac_file" : 'X\(//\)$' \| \
13432	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13433$as_echo X"$ac_file" |
13434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13435	    s//\1/
13436	    q
13437	  }
13438	  /^X\(\/\/\)[^/].*/{
13439	    s//\1/
13440	    q
13441	  }
13442	  /^X\(\/\/\)$/{
13443	    s//\1/
13444	    q
13445	  }
13446	  /^X\(\/\).*/{
13447	    s//\1/
13448	    q
13449	  }
13450	  s/.*/./; q'`
13451  as_dir="$ac_dir"; as_fn_mkdir_p
13452  ac_builddir=.
13453
13454case "$ac_dir" in
13455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13456*)
13457  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13458  # A ".." for each directory in $ac_dir_suffix.
13459  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13460  case $ac_top_builddir_sub in
13461  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13462  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13463  esac ;;
13464esac
13465ac_abs_top_builddir=$ac_pwd
13466ac_abs_builddir=$ac_pwd$ac_dir_suffix
13467# for backward compatibility:
13468ac_top_builddir=$ac_top_build_prefix
13469
13470case $srcdir in
13471  .)  # We are building in place.
13472    ac_srcdir=.
13473    ac_top_srcdir=$ac_top_builddir_sub
13474    ac_abs_top_srcdir=$ac_pwd ;;
13475  [\\/]* | ?:[\\/]* )  # Absolute name.
13476    ac_srcdir=$srcdir$ac_dir_suffix;
13477    ac_top_srcdir=$srcdir
13478    ac_abs_top_srcdir=$srcdir ;;
13479  *) # Relative name.
13480    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13481    ac_top_srcdir=$ac_top_build_prefix$srcdir
13482    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13483esac
13484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13485
13486
13487  case $ac_mode in
13488  :F)
13489  #
13490  # CONFIG_FILE
13491  #
13492
13493  case $INSTALL in
13494  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13495  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13496  esac
13497  ac_MKDIR_P=$MKDIR_P
13498  case $MKDIR_P in
13499  [\\/$]* | ?:[\\/]* ) ;;
13500  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13501  esac
13502_ACEOF
13503
13504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13505# If the template does not know about datarootdir, expand it.
13506# FIXME: This hack should be removed a few years after 2.60.
13507ac_datarootdir_hack=; ac_datarootdir_seen=
13508ac_sed_dataroot='
13509/datarootdir/ {
13510  p
13511  q
13512}
13513/@datadir@/p
13514/@docdir@/p
13515/@infodir@/p
13516/@localedir@/p
13517/@mandir@/p'
13518case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13519*datarootdir*) ac_datarootdir_seen=yes;;
13520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13521  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13522$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13523_ACEOF
13524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13525  ac_datarootdir_hack='
13526  s&@datadir@&$datadir&g
13527  s&@docdir@&$docdir&g
13528  s&@infodir@&$infodir&g
13529  s&@localedir@&$localedir&g
13530  s&@mandir@&$mandir&g
13531  s&\\\${datarootdir}&$datarootdir&g' ;;
13532esac
13533_ACEOF
13534
13535# Neutralize VPATH when `$srcdir' = `.'.
13536# Shell code in configure.ac might set extrasub.
13537# FIXME: do we really want to maintain this feature?
13538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13539ac_sed_extra="$ac_vpsub
13540$extrasub
13541_ACEOF
13542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13543:t
13544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13545s|@configure_input@|$ac_sed_conf_input|;t t
13546s&@top_builddir@&$ac_top_builddir_sub&;t t
13547s&@top_build_prefix@&$ac_top_build_prefix&;t t
13548s&@srcdir@&$ac_srcdir&;t t
13549s&@abs_srcdir@&$ac_abs_srcdir&;t t
13550s&@top_srcdir@&$ac_top_srcdir&;t t
13551s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13552s&@builddir@&$ac_builddir&;t t
13553s&@abs_builddir@&$ac_abs_builddir&;t t
13554s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13555s&@INSTALL@&$ac_INSTALL&;t t
13556s&@MKDIR_P@&$ac_MKDIR_P&;t t
13557$ac_datarootdir_hack
13558"
13559eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13560  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13561
13562test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13563  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13564  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13565      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13566  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13567which seems to be undefined.  Please make sure it is defined" >&5
13568$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13569which seems to be undefined.  Please make sure it is defined" >&2;}
13570
13571  rm -f "$ac_tmp/stdin"
13572  case $ac_file in
13573  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13574  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13575  esac \
13576  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13577 ;;
13578  :H)
13579  #
13580  # CONFIG_HEADER
13581  #
13582  if test x"$ac_file" != x-; then
13583    {
13584      $as_echo "/* $configure_input  */" \
13585      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13586    } >"$ac_tmp/config.h" \
13587      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13588    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13589      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13590$as_echo "$as_me: $ac_file is unchanged" >&6;}
13591    else
13592      rm -f "$ac_file"
13593      mv "$ac_tmp/config.h" "$ac_file" \
13594	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13595    fi
13596  else
13597    $as_echo "/* $configure_input  */" \
13598      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13599      || as_fn_error $? "could not create -" "$LINENO" 5
13600  fi
13601# Compute "$ac_file"'s index in $config_headers.
13602_am_arg="$ac_file"
13603_am_stamp_count=1
13604for _am_header in $config_headers :; do
13605  case $_am_header in
13606    $_am_arg | $_am_arg:* )
13607      break ;;
13608    * )
13609      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13610  esac
13611done
13612echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13613$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13614	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13615	 X"$_am_arg" : 'X\(//\)$' \| \
13616	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13617$as_echo X"$_am_arg" |
13618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13619	    s//\1/
13620	    q
13621	  }
13622	  /^X\(\/\/\)[^/].*/{
13623	    s//\1/
13624	    q
13625	  }
13626	  /^X\(\/\/\)$/{
13627	    s//\1/
13628	    q
13629	  }
13630	  /^X\(\/\).*/{
13631	    s//\1/
13632	    q
13633	  }
13634	  s/.*/./; q'`/stamp-h$_am_stamp_count
13635 ;;
13636
13637  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13638$as_echo "$as_me: executing $ac_file commands" >&6;}
13639 ;;
13640  esac
13641
13642
13643  case $ac_file$ac_mode in
13644    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13645  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13646  # are listed without --file.  Let's play safe and only enable the eval
13647  # if we detect the quoting.
13648  case $CONFIG_FILES in
13649  *\'*) eval set x "$CONFIG_FILES" ;;
13650  *)   set x $CONFIG_FILES ;;
13651  esac
13652  shift
13653  for mf
13654  do
13655    # Strip MF so we end up with the name of the file.
13656    mf=`echo "$mf" | sed -e 's/:.*$//'`
13657    # Check whether this is an Automake generated Makefile or not.
13658    # We used to match only the files named `Makefile.in', but
13659    # some people rename them; so instead we look at the file content.
13660    # Grep'ing the first line is not enough: some people post-process
13661    # each Makefile.in and add a new line on top of each file to say so.
13662    # Grep'ing the whole file is not good either: AIX grep has a line
13663    # limit of 2048, but all sed's we know have understand at least 4000.
13664    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13665      dirpart=`$as_dirname -- "$mf" ||
13666$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13667	 X"$mf" : 'X\(//\)[^/]' \| \
13668	 X"$mf" : 'X\(//\)$' \| \
13669	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13670$as_echo X"$mf" |
13671    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13672	    s//\1/
13673	    q
13674	  }
13675	  /^X\(\/\/\)[^/].*/{
13676	    s//\1/
13677	    q
13678	  }
13679	  /^X\(\/\/\)$/{
13680	    s//\1/
13681	    q
13682	  }
13683	  /^X\(\/\).*/{
13684	    s//\1/
13685	    q
13686	  }
13687	  s/.*/./; q'`
13688    else
13689      continue
13690    fi
13691    # Extract the definition of DEPDIR, am__include, and am__quote
13692    # from the Makefile without running `make'.
13693    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13694    test -z "$DEPDIR" && continue
13695    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13696    test -z "am__include" && continue
13697    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13698    # When using ansi2knr, U may be empty or an underscore; expand it
13699    U=`sed -n 's/^U = //p' < "$mf"`
13700    # Find all dependency output files, they are included files with
13701    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13702    # simplest approach to changing $(DEPDIR) to its actual value in the
13703    # expansion.
13704    for file in `sed -n "
13705      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13706	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13707      # Make sure the directory exists.
13708      test -f "$dirpart/$file" && continue
13709      fdir=`$as_dirname -- "$file" ||
13710$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13711	 X"$file" : 'X\(//\)[^/]' \| \
13712	 X"$file" : 'X\(//\)$' \| \
13713	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13714$as_echo X"$file" |
13715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13716	    s//\1/
13717	    q
13718	  }
13719	  /^X\(\/\/\)[^/].*/{
13720	    s//\1/
13721	    q
13722	  }
13723	  /^X\(\/\/\)$/{
13724	    s//\1/
13725	    q
13726	  }
13727	  /^X\(\/\).*/{
13728	    s//\1/
13729	    q
13730	  }
13731	  s/.*/./; q'`
13732      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13733      # echo "creating $dirpart/$file"
13734      echo '# dummy' > "$dirpart/$file"
13735    done
13736  done
13737}
13738 ;;
13739    "libtool":C)
13740
13741    # See if we are running on zsh, and set the options which allow our
13742    # commands through without removal of \ escapes.
13743    if test -n "${ZSH_VERSION+set}" ; then
13744      setopt NO_GLOB_SUBST
13745    fi
13746
13747    cfgfile="${ofile}T"
13748    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13749    $RM "$cfgfile"
13750
13751    cat <<_LT_EOF >> "$cfgfile"
13752#! $SHELL
13753
13754# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13755# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13756# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13757# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13758#
13759#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13760#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13761#                 Inc.
13762#   Written by Gordon Matzigkeit, 1996
13763#
13764#   This file is part of GNU Libtool.
13765#
13766# GNU Libtool is free software; you can redistribute it and/or
13767# modify it under the terms of the GNU General Public License as
13768# published by the Free Software Foundation; either version 2 of
13769# the License, or (at your option) any later version.
13770#
13771# As a special exception to the GNU General Public License,
13772# if you distribute this file as part of a program or library that
13773# is built using GNU Libtool, you may include this file under the
13774# same distribution terms that you use for the rest of that program.
13775#
13776# GNU Libtool is distributed in the hope that it will be useful,
13777# but WITHOUT ANY WARRANTY; without even the implied warranty of
13778# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13779# GNU General Public License for more details.
13780#
13781# You should have received a copy of the GNU General Public License
13782# along with GNU Libtool; see the file COPYING.  If not, a copy
13783# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13784# obtained by writing to the Free Software Foundation, Inc.,
13785# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13786
13787
13788# The names of the tagged configurations supported by this script.
13789available_tags=""
13790
13791# ### BEGIN LIBTOOL CONFIG
13792
13793# Which release of libtool.m4 was used?
13794macro_version=$macro_version
13795macro_revision=$macro_revision
13796
13797# Whether or not to build static libraries.
13798build_old_libs=$enable_static
13799
13800# Whether or not to build shared libraries.
13801build_libtool_libs=$enable_shared
13802
13803# What type of objects to build.
13804pic_mode=$pic_mode
13805
13806# Whether or not to optimize for fast installation.
13807fast_install=$enable_fast_install
13808
13809# Shell to use when invoking shell scripts.
13810SHELL=$lt_SHELL
13811
13812# An echo program that protects backslashes.
13813ECHO=$lt_ECHO
13814
13815# The host system.
13816host_alias=$host_alias
13817host=$host
13818host_os=$host_os
13819
13820# The build system.
13821build_alias=$build_alias
13822build=$build
13823build_os=$build_os
13824
13825# A sed program that does not truncate output.
13826SED=$lt_SED
13827
13828# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13829Xsed="\$SED -e 1s/^X//"
13830
13831# A grep program that handles long lines.
13832GREP=$lt_GREP
13833
13834# An ERE matcher.
13835EGREP=$lt_EGREP
13836
13837# A literal string matcher.
13838FGREP=$lt_FGREP
13839
13840# A BSD- or MS-compatible name lister.
13841NM=$lt_NM
13842
13843# Whether we need soft or hard links.
13844LN_S=$lt_LN_S
13845
13846# What is the maximum length of a command?
13847max_cmd_len=$max_cmd_len
13848
13849# Object file suffix (normally "o").
13850objext=$ac_objext
13851
13852# Executable file suffix (normally "").
13853exeext=$exeext
13854
13855# whether the shell understands "unset".
13856lt_unset=$lt_unset
13857
13858# turn spaces into newlines.
13859SP2NL=$lt_lt_SP2NL
13860
13861# turn newlines into spaces.
13862NL2SP=$lt_lt_NL2SP
13863
13864# convert \$build file names to \$host format.
13865to_host_file_cmd=$lt_cv_to_host_file_cmd
13866
13867# convert \$build files to toolchain format.
13868to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13869
13870# An object symbol dumper.
13871OBJDUMP=$lt_OBJDUMP
13872
13873# Method to check whether dependent libraries are shared objects.
13874deplibs_check_method=$lt_deplibs_check_method
13875
13876# Command to use when deplibs_check_method = "file_magic".
13877file_magic_cmd=$lt_file_magic_cmd
13878
13879# How to find potential files when deplibs_check_method = "file_magic".
13880file_magic_glob=$lt_file_magic_glob
13881
13882# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13883want_nocaseglob=$lt_want_nocaseglob
13884
13885# DLL creation program.
13886DLLTOOL=$lt_DLLTOOL
13887
13888# Command to associate shared and link libraries.
13889sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13890
13891# The archiver.
13892AR=$lt_AR
13893
13894# Flags to create an archive.
13895AR_FLAGS=$lt_AR_FLAGS
13896
13897# How to feed a file listing to the archiver.
13898archiver_list_spec=$lt_archiver_list_spec
13899
13900# A symbol stripping program.
13901STRIP=$lt_STRIP
13902
13903# Commands used to install an old-style archive.
13904RANLIB=$lt_RANLIB
13905old_postinstall_cmds=$lt_old_postinstall_cmds
13906old_postuninstall_cmds=$lt_old_postuninstall_cmds
13907
13908# Whether to use a lock for old archive extraction.
13909lock_old_archive_extraction=$lock_old_archive_extraction
13910
13911# A C compiler.
13912LTCC=$lt_CC
13913
13914# LTCC compiler flags.
13915LTCFLAGS=$lt_CFLAGS
13916
13917# Take the output of nm and produce a listing of raw symbols and C names.
13918global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13919
13920# Transform the output of nm in a proper C declaration.
13921global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13922
13923# Transform the output of nm in a C name address pair.
13924global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13925
13926# Transform the output of nm in a C name address pair when lib prefix is needed.
13927global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13928
13929# Specify filename containing input files for \$NM.
13930nm_file_list_spec=$lt_nm_file_list_spec
13931
13932# The root where to search for dependent libraries,and in which our libraries should be installed.
13933lt_sysroot=$lt_sysroot
13934
13935# The name of the directory that contains temporary libtool files.
13936objdir=$objdir
13937
13938# Used to examine libraries when file_magic_cmd begins with "file".
13939MAGIC_CMD=$MAGIC_CMD
13940
13941# Must we lock files when doing compilation?
13942need_locks=$lt_need_locks
13943
13944# Manifest tool.
13945MANIFEST_TOOL=$lt_MANIFEST_TOOL
13946
13947# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13948DSYMUTIL=$lt_DSYMUTIL
13949
13950# Tool to change global to local symbols on Mac OS X.
13951NMEDIT=$lt_NMEDIT
13952
13953# Tool to manipulate fat objects and archives on Mac OS X.
13954LIPO=$lt_LIPO
13955
13956# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13957OTOOL=$lt_OTOOL
13958
13959# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13960OTOOL64=$lt_OTOOL64
13961
13962# Old archive suffix (normally "a").
13963libext=$libext
13964
13965# Shared library suffix (normally ".so").
13966shrext_cmds=$lt_shrext_cmds
13967
13968# The commands to extract the exported symbol list from a shared archive.
13969extract_expsyms_cmds=$lt_extract_expsyms_cmds
13970
13971# Variables whose values should be saved in libtool wrapper scripts and
13972# restored at link time.
13973variables_saved_for_relink=$lt_variables_saved_for_relink
13974
13975# Do we need the "lib" prefix for modules?
13976need_lib_prefix=$need_lib_prefix
13977
13978# Do we need a version for libraries?
13979need_version=$need_version
13980
13981# Library versioning type.
13982version_type=$version_type
13983
13984# Shared library runtime path variable.
13985runpath_var=$runpath_var
13986
13987# Shared library path variable.
13988shlibpath_var=$shlibpath_var
13989
13990# Is shlibpath searched before the hard-coded library search path?
13991shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13992
13993# Format of library name prefix.
13994libname_spec=$lt_libname_spec
13995
13996# List of archive names.  First name is the real one, the rest are links.
13997# The last name is the one that the linker finds with -lNAME
13998library_names_spec=$lt_library_names_spec
13999
14000# The coded name of the library, if different from the real name.
14001soname_spec=$lt_soname_spec
14002
14003# Permission mode override for installation of shared libraries.
14004install_override_mode=$lt_install_override_mode
14005
14006# Command to use after installation of a shared archive.
14007postinstall_cmds=$lt_postinstall_cmds
14008
14009# Command to use after uninstallation of a shared archive.
14010postuninstall_cmds=$lt_postuninstall_cmds
14011
14012# Commands used to finish a libtool library installation in a directory.
14013finish_cmds=$lt_finish_cmds
14014
14015# As "finish_cmds", except a single script fragment to be evaled but
14016# not shown.
14017finish_eval=$lt_finish_eval
14018
14019# Whether we should hardcode library paths into libraries.
14020hardcode_into_libs=$hardcode_into_libs
14021
14022# Compile-time system search path for libraries.
14023sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14024
14025# Run-time system search path for libraries.
14026sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14027
14028# Whether dlopen is supported.
14029dlopen_support=$enable_dlopen
14030
14031# Whether dlopen of programs is supported.
14032dlopen_self=$enable_dlopen_self
14033
14034# Whether dlopen of statically linked programs is supported.
14035dlopen_self_static=$enable_dlopen_self_static
14036
14037# Commands to strip libraries.
14038old_striplib=$lt_old_striplib
14039striplib=$lt_striplib
14040
14041
14042# The linker used to build libraries.
14043LD=$lt_LD
14044
14045# How to create reloadable object files.
14046reload_flag=$lt_reload_flag
14047reload_cmds=$lt_reload_cmds
14048
14049# Commands used to build an old-style archive.
14050old_archive_cmds=$lt_old_archive_cmds
14051
14052# A language specific compiler.
14053CC=$lt_compiler
14054
14055# Is the compiler the GNU compiler?
14056with_gcc=$GCC
14057
14058# Compiler flag to turn off builtin functions.
14059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14060
14061# Additional compiler flags for building library objects.
14062pic_flag=$lt_lt_prog_compiler_pic
14063
14064# How to pass a linker flag through the compiler.
14065wl=$lt_lt_prog_compiler_wl
14066
14067# Compiler flag to prevent dynamic linking.
14068link_static_flag=$lt_lt_prog_compiler_static
14069
14070# Does compiler simultaneously support -c and -o options?
14071compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14072
14073# Whether or not to add -lc for building shared libraries.
14074build_libtool_need_lc=$archive_cmds_need_lc
14075
14076# Whether or not to disallow shared libs when runtime libs are static.
14077allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14078
14079# Compiler flag to allow reflexive dlopens.
14080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14081
14082# Compiler flag to generate shared objects directly from archives.
14083whole_archive_flag_spec=$lt_whole_archive_flag_spec
14084
14085# Whether the compiler copes with passing no objects directly.
14086compiler_needs_object=$lt_compiler_needs_object
14087
14088# Create an old-style archive from a shared archive.
14089old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14090
14091# Create a temporary old-style archive to link instead of a shared archive.
14092old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14093
14094# Commands used to build a shared archive.
14095archive_cmds=$lt_archive_cmds
14096archive_expsym_cmds=$lt_archive_expsym_cmds
14097
14098# Commands used to build a loadable module if different from building
14099# a shared archive.
14100module_cmds=$lt_module_cmds
14101module_expsym_cmds=$lt_module_expsym_cmds
14102
14103# Whether we are building with GNU ld or not.
14104with_gnu_ld=$lt_with_gnu_ld
14105
14106# Flag that allows shared libraries with undefined symbols to be built.
14107allow_undefined_flag=$lt_allow_undefined_flag
14108
14109# Flag that enforces no undefined symbols.
14110no_undefined_flag=$lt_no_undefined_flag
14111
14112# Flag to hardcode \$libdir into a binary during linking.
14113# This must work even if \$libdir does not exist
14114hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14115
14116# If ld is used when linking, flag to hardcode \$libdir into a binary
14117# during linking.  This must work even if \$libdir does not exist.
14118hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14119
14120# Whether we need a single "-rpath" flag with a separated argument.
14121hardcode_libdir_separator=$lt_hardcode_libdir_separator
14122
14123# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14124# DIR into the resulting binary.
14125hardcode_direct=$hardcode_direct
14126
14127# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14128# DIR into the resulting binary and the resulting library dependency is
14129# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14130# library is relocated.
14131hardcode_direct_absolute=$hardcode_direct_absolute
14132
14133# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14134# into the resulting binary.
14135hardcode_minus_L=$hardcode_minus_L
14136
14137# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14138# into the resulting binary.
14139hardcode_shlibpath_var=$hardcode_shlibpath_var
14140
14141# Set to "yes" if building a shared library automatically hardcodes DIR
14142# into the library and all subsequent libraries and executables linked
14143# against it.
14144hardcode_automatic=$hardcode_automatic
14145
14146# Set to yes if linker adds runtime paths of dependent libraries
14147# to runtime path list.
14148inherit_rpath=$inherit_rpath
14149
14150# Whether libtool must link a program against all its dependency libraries.
14151link_all_deplibs=$link_all_deplibs
14152
14153# Set to "yes" if exported symbols are required.
14154always_export_symbols=$always_export_symbols
14155
14156# The commands to list exported symbols.
14157export_symbols_cmds=$lt_export_symbols_cmds
14158
14159# Symbols that should not be listed in the preloaded symbols.
14160exclude_expsyms=$lt_exclude_expsyms
14161
14162# Symbols that must always be exported.
14163include_expsyms=$lt_include_expsyms
14164
14165# Commands necessary for linking programs (against libraries) with templates.
14166prelink_cmds=$lt_prelink_cmds
14167
14168# Commands necessary for finishing linking programs.
14169postlink_cmds=$lt_postlink_cmds
14170
14171# Specify filename containing input files.
14172file_list_spec=$lt_file_list_spec
14173
14174# How to hardcode a shared library path into an executable.
14175hardcode_action=$hardcode_action
14176
14177# ### END LIBTOOL CONFIG
14178
14179_LT_EOF
14180
14181  case $host_os in
14182  aix3*)
14183    cat <<\_LT_EOF >> "$cfgfile"
14184# AIX sometimes has problems with the GCC collect2 program.  For some
14185# reason, if we set the COLLECT_NAMES environment variable, the problems
14186# vanish in a puff of smoke.
14187if test "X${COLLECT_NAMES+set}" != Xset; then
14188  COLLECT_NAMES=
14189  export COLLECT_NAMES
14190fi
14191_LT_EOF
14192    ;;
14193  esac
14194
14195
14196ltmain="$ac_aux_dir/ltmain.sh"
14197
14198
14199  # We use sed instead of cat because bash on DJGPP gets confused if
14200  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14201  # text mode, it properly converts lines to CR/LF.  This bash problem
14202  # is reportedly fixed, but why not run on old versions too?
14203  sed '$q' "$ltmain" >> "$cfgfile" \
14204     || (rm -f "$cfgfile"; exit 1)
14205
14206  if test x"$xsi_shell" = xyes; then
14207  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14208func_dirname ()\
14209{\
14210\    case ${1} in\
14211\      */*) func_dirname_result="${1%/*}${2}" ;;\
14212\      *  ) func_dirname_result="${3}" ;;\
14213\    esac\
14214} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14215  && mv -f "$cfgfile.tmp" "$cfgfile" \
14216    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14217test 0 -eq $? || _lt_function_replace_fail=:
14218
14219
14220  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14221func_basename ()\
14222{\
14223\    func_basename_result="${1##*/}"\
14224} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14225  && mv -f "$cfgfile.tmp" "$cfgfile" \
14226    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14227test 0 -eq $? || _lt_function_replace_fail=:
14228
14229
14230  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14231func_dirname_and_basename ()\
14232{\
14233\    case ${1} in\
14234\      */*) func_dirname_result="${1%/*}${2}" ;;\
14235\      *  ) func_dirname_result="${3}" ;;\
14236\    esac\
14237\    func_basename_result="${1##*/}"\
14238} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14239  && mv -f "$cfgfile.tmp" "$cfgfile" \
14240    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14241test 0 -eq $? || _lt_function_replace_fail=:
14242
14243
14244  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14245func_stripname ()\
14246{\
14247\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14248\    # positional parameters, so assign one to ordinary parameter first.\
14249\    func_stripname_result=${3}\
14250\    func_stripname_result=${func_stripname_result#"${1}"}\
14251\    func_stripname_result=${func_stripname_result%"${2}"}\
14252} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14253  && mv -f "$cfgfile.tmp" "$cfgfile" \
14254    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14255test 0 -eq $? || _lt_function_replace_fail=:
14256
14257
14258  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14259func_split_long_opt ()\
14260{\
14261\    func_split_long_opt_name=${1%%=*}\
14262\    func_split_long_opt_arg=${1#*=}\
14263} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14264  && mv -f "$cfgfile.tmp" "$cfgfile" \
14265    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14266test 0 -eq $? || _lt_function_replace_fail=:
14267
14268
14269  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14270func_split_short_opt ()\
14271{\
14272\    func_split_short_opt_arg=${1#??}\
14273\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14274} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14275  && mv -f "$cfgfile.tmp" "$cfgfile" \
14276    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14277test 0 -eq $? || _lt_function_replace_fail=:
14278
14279
14280  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14281func_lo2o ()\
14282{\
14283\    case ${1} in\
14284\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14285\      *)    func_lo2o_result=${1} ;;\
14286\    esac\
14287} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14288  && mv -f "$cfgfile.tmp" "$cfgfile" \
14289    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14290test 0 -eq $? || _lt_function_replace_fail=:
14291
14292
14293  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14294func_xform ()\
14295{\
14296    func_xform_result=${1%.*}.lo\
14297} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14298  && mv -f "$cfgfile.tmp" "$cfgfile" \
14299    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14300test 0 -eq $? || _lt_function_replace_fail=:
14301
14302
14303  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14304func_arith ()\
14305{\
14306    func_arith_result=$(( $* ))\
14307} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14308  && mv -f "$cfgfile.tmp" "$cfgfile" \
14309    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14310test 0 -eq $? || _lt_function_replace_fail=:
14311
14312
14313  sed -e '/^func_len ()$/,/^} # func_len /c\
14314func_len ()\
14315{\
14316    func_len_result=${#1}\
14317} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14318  && mv -f "$cfgfile.tmp" "$cfgfile" \
14319    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14320test 0 -eq $? || _lt_function_replace_fail=:
14321
14322fi
14323
14324if test x"$lt_shell_append" = xyes; then
14325  sed -e '/^func_append ()$/,/^} # func_append /c\
14326func_append ()\
14327{\
14328    eval "${1}+=\\${2}"\
14329} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14330  && mv -f "$cfgfile.tmp" "$cfgfile" \
14331    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14332test 0 -eq $? || _lt_function_replace_fail=:
14333
14334
14335  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14336func_append_quoted ()\
14337{\
14338\    func_quote_for_eval "${2}"\
14339\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14340} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14341  && mv -f "$cfgfile.tmp" "$cfgfile" \
14342    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14343test 0 -eq $? || _lt_function_replace_fail=:
14344
14345
14346  # Save a `func_append' function call where possible by direct use of '+='
14347  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14348    && mv -f "$cfgfile.tmp" "$cfgfile" \
14349      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14350  test 0 -eq $? || _lt_function_replace_fail=:
14351else
14352  # Save a `func_append' function call even when '+=' is not available
14353  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14354    && mv -f "$cfgfile.tmp" "$cfgfile" \
14355      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14356  test 0 -eq $? || _lt_function_replace_fail=:
14357fi
14358
14359if test x"$_lt_function_replace_fail" = x":"; then
14360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14361$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14362fi
14363
14364
14365   mv -f "$cfgfile" "$ofile" ||
14366    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14367  chmod +x "$ofile"
14368
14369 ;;
14370
14371  esac
14372done # for ac_tag
14373
14374
14375as_fn_exit 0
14376_ACEOF
14377ac_clean_files=$ac_clean_files_save
14378
14379test $ac_write_fail = 0 ||
14380  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14381
14382
14383# configure is writing to config.log, and then calls config.status.
14384# config.status does its own redirection, appending to config.log.
14385# Unfortunately, on DOS this fails, as config.log is still kept open
14386# by configure, so config.status won't be able to write to it; its
14387# output is simply discarded.  So we exec the FD to /dev/null,
14388# effectively closing config.log, so it can be properly (re)opened and
14389# appended to by config.status.  When coming back to configure, we
14390# need to make the FD available again.
14391if test "$no_create" != yes; then
14392  ac_cs_success=:
14393  ac_config_status_args=
14394  test "$silent" = yes &&
14395    ac_config_status_args="$ac_config_status_args --quiet"
14396  exec 5>/dev/null
14397  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14398  exec 5>>config.log
14399  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14400  # would make configure fail if this is the last instruction.
14401  $ac_cs_success || as_fn_exit 1
14402fi
14403if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14404  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14405$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14406fi
14407
14408