xref: /freebsd/contrib/openpam/configure (revision 4e27d36d38f4c3b12bcc1855c5d41527d08d1ce0)
1#! /bin/sh
2# From configure.ac Id: configure.ac 816 2014-09-12 07:50:22Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenPAM 20140912.
5#
6# Report bugs to <des@des.no>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     # Try only shells that exist, to save several forks.
230	     as_shell=$as_dir/$as_base
231	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238	   done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='OpenPAM'
592PACKAGE_TARNAME='openpam'
593PACKAGE_VERSION='20140912'
594PACKAGE_STRING='OpenPAM 20140912'
595PACKAGE_BUGREPORT='des@des.no'
596PACKAGE_URL='http://www.openpam.org/'
597
598ac_unique_file="lib/libpam/pam_start.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CRYPTO_LIBS
640CRYPT_LIBS
641DL_LIBS
642WITH_SU_FALSE
643WITH_SU_TRUE
644WITH_PAMTEST_FALSE
645WITH_PAMTEST_TRUE
646WITH_PAM_UNIX_FALSE
647WITH_PAM_UNIX_TRUE
648WITH_DOC_FALSE
649WITH_DOC_TRUE
650CUSTOM_MODULES_DIR_FALSE
651CUSTOM_MODULES_DIR_TRUE
652OPENPAM_MODULES_DIR
653LIB_MAJ
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663DLLTOOL
664OBJDUMP
665LN_S
666NM
667ac_ct_DUMPBIN
668DUMPBIN
669LD
670FGREP
671SED
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680LIBTOOL
681EGREP
682GREP
683CPP
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705am__untar
706am__tar
707AMTAR
708am__leading_dot
709SET_MAKE
710AWK
711mkdir_p
712MKDIR_P
713INSTALL_STRIP_PROGRAM
714STRIP
715install_sh
716MAKEINFO
717AUTOHEADER
718AUTOMAKE
719AUTOCONF
720ACLOCAL
721VERSION
722PACKAGE
723CYGPATH_W
724am__isrc
725INSTALL_DATA
726INSTALL_SCRIPT
727INSTALL_PROGRAM
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769enable_silent_rules
770enable_dependency_tracking
771enable_static
772enable_shared
773with_pic
774enable_fast_install
775with_gnu_ld
776with_sysroot
777enable_libtool_lock
778enable_debug
779enable_unversioned_modules
780with_modules_dir
781with_doc
782with_pam_unix
783with_pamtest
784with_su
785enable_developer_warnings
786enable_debugging_symbols
787enable_werror
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=\$ac_optarg ;;
1148
1149  -without-* | --without-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=no ;;
1164
1165  --x)
1166    # Obsolete; use --with-x.
1167    with_x=yes ;;
1168
1169  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170  | --x-incl | --x-inc | --x-in | --x-i)
1171    ac_prev=x_includes ;;
1172  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174    x_includes=$ac_optarg ;;
1175
1176  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178    ac_prev=x_libraries ;;
1179  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181    x_libraries=$ac_optarg ;;
1182
1183  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information"
1185    ;;
1186
1187  *=*)
1188    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189    # Reject names that are not valid shell variable names.
1190    case $ac_envvar in #(
1191      '' | [0-9]* | *[!_$as_cr_alnum]* )
1192      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193    esac
1194    eval $ac_envvar=\$ac_optarg
1195    export $ac_envvar ;;
1196
1197  *)
1198    # FIXME: should be removed in autoconf 3.0.
1199    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203    ;;
1204
1205  esac
1206done
1207
1208if test -n "$ac_prev"; then
1209  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210  as_fn_error $? "missing argument to $ac_option"
1211fi
1212
1213if test -n "$ac_unrecognized_opts"; then
1214  case $enable_option_checking in
1215    no) ;;
1216    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218  esac
1219fi
1220
1221# Check all directory arguments for consistency.
1222for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223		datadir sysconfdir sharedstatedir localstatedir includedir \
1224		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225		libdir localedir mandir
1226do
1227  eval ac_val=\$$ac_var
1228  # Remove trailing slashes.
1229  case $ac_val in
1230    */ )
1231      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232      eval $ac_var=\$ac_val;;
1233  esac
1234  # Be sure to have absolute directory names.
1235  case $ac_val in
1236    [\\/$]* | ?:[\\/]* )  continue;;
1237    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238  esac
1239  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240done
1241
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251  if test "x$build_alias" = x; then
1252    cross_compiling=maybe
1253  elif test "x$build_alias" != "x$host_alias"; then
1254    cross_compiling=yes
1255  fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267  as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274  ac_srcdir_defaulted=yes
1275  # Try the directory containing this script, then the parent directory.
1276  ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278	 X"$as_myself" : 'X\(//\)[^/]' \| \
1279	 X"$as_myself" : 'X\(//\)$' \| \
1280	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)[^/].*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\).*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  s/.*/./; q'`
1299  srcdir=$ac_confdir
1300  if test ! -r "$srcdir/$ac_unique_file"; then
1301    srcdir=..
1302  fi
1303else
1304  ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313	pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316  srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_env_${ac_var}_value=\$${ac_var}
1327  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335  # Omit some internal or obsolete options to make the list less imposing.
1336  # This message is too long to be a string in the A/UX 3.1 sh.
1337  cat <<_ACEOF
1338\`configure' configures OpenPAM 20140912 to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348  -h, --help              display this help and exit
1349      --help=short        display options specific to this package
1350      --help=recursive    display the short help of all the included packages
1351  -V, --version           display version information and exit
1352  -q, --quiet, --silent   do not print \`checking ...' messages
1353      --cache-file=FILE   cache test results in FILE [disabled]
1354  -C, --config-cache      alias for \`--cache-file=config.cache'
1355  -n, --no-create         do not create output files
1356      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1357
1358Installation directories:
1359  --prefix=PREFIX         install architecture-independent files in PREFIX
1360                          [$ac_default_prefix]
1361  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                          [PREFIX]
1363
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372  --bindir=DIR            user executables [EPREFIX/bin]
1373  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374  --libexecdir=DIR        program executables [EPREFIX/libexec]
1375  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378  --libdir=DIR            object code libraries [EPREFIX/lib]
1379  --includedir=DIR        C header files [PREFIX/include]
1380  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1382  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1383  --infodir=DIR           info documentation [DATAROOTDIR/info]
1384  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1385  --mandir=DIR            man documentation [DATAROOTDIR/man]
1386  --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1387  --htmldir=DIR           html documentation [DOCDIR]
1388  --dvidir=DIR            dvi documentation [DOCDIR]
1389  --pdfdir=DIR            pdf documentation [DOCDIR]
1390  --psdir=DIR             ps documentation [DOCDIR]
1391_ACEOF
1392
1393  cat <<\_ACEOF
1394
1395Program names:
1396  --program-prefix=PREFIX            prepend PREFIX to installed program names
1397  --program-suffix=SUFFIX            append SUFFIX to installed program names
1398  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1399
1400System types:
1401  --build=BUILD     configure for building on BUILD [guessed]
1402  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407  case $ac_init_help in
1408     short | recursive ) echo "Configuration of OpenPAM 20140912:";;
1409   esac
1410  cat <<\_ACEOF
1411
1412Optional Features:
1413  --disable-option-checking  ignore unrecognized --enable/--with options
1414  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416  --enable-silent-rules   less verbose build output (undo: "make V=1")
1417  --disable-silent-rules  verbose build output (undo: "make V=0")
1418  --enable-dependency-tracking
1419                          do not reject slow dependency extractors
1420  --disable-dependency-tracking
1421                          speeds up one-time build
1422  --enable-static[=PKGS]  build static libraries [default=no]
1423  --enable-shared[=PKGS]  build shared libraries [default=yes]
1424  --enable-fast-install[=PKGS]
1425                          optimize for fast installation [default=yes]
1426  --disable-libtool-lock  avoid locking (might break parallel builds)
1427  --enable-debug          turn debugging macros on
1428  --disable-unversioned-modules
1429                          support loading of unversioned modules
1430  --enable-developer-warnings
1431                          enable strict warnings (default is NO)
1432  --enable-debugging-symbols
1433                          enable debugging symbols (default is NO)
1434  --enable-werror         use -Werror (default is NO)
1435
1436Optional Packages:
1437  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1440                          both]
1441  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442  --with-sysroot=DIR Search for dependent libraries within DIR
1443                        (or the compiler's sysroot if not specified).
1444  --with-modules-dir=DIR  OpenPAM modules directory
1445  --without-doc           do not build documentation
1446  --with-pam-unix         compile sample pam_unix(8) module
1447  --with-pamtest          compile test application
1448  --with-su               compile sample su(1) implementation
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  CPP         C preprocessor
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to <des@des.no>.
1464OpenPAM home page: <http://www.openpam.org/>.
1465_ACEOF
1466ac_status=$?
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470  # If there are subdirs, report their specific --help.
1471  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472    test -d "$ac_dir" ||
1473      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474      continue
1475    ac_builddir=.
1476
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481  # A ".." for each directory in $ac_dir_suffix.
1482  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483  case $ac_top_builddir_sub in
1484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486  esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
1492
1493case $srcdir in
1494  .)  # We are building in place.
1495    ac_srcdir=.
1496    ac_top_srcdir=$ac_top_builddir_sub
1497    ac_abs_top_srcdir=$ac_pwd ;;
1498  [\\/]* | ?:[\\/]* )  # Absolute name.
1499    ac_srcdir=$srcdir$ac_dir_suffix;
1500    ac_top_srcdir=$srcdir
1501    ac_abs_top_srcdir=$srcdir ;;
1502  *) # Relative name.
1503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504    ac_top_srcdir=$ac_top_build_prefix$srcdir
1505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506esac
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509    cd "$ac_dir" || { ac_status=$?; continue; }
1510    # Check for guested configure.
1511    if test -f "$ac_srcdir/configure.gnu"; then
1512      echo &&
1513      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514    elif test -f "$ac_srcdir/configure"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure" --help=recursive
1517    else
1518      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519    fi || ac_status=$?
1520    cd "$ac_pwd" || { ac_status=$?; break; }
1521  done
1522fi
1523
1524test -n "$ac_init_help" && exit $ac_status
1525if $ac_init_version; then
1526  cat <<\_ACEOF
1527OpenPAM configure 20140912
1528generated by GNU Autoconf 2.69
1529
1530Copyright (C) 2012 Free Software Foundation, Inc.
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
1534  exit
1535fi
1536
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
1540
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  rm -f conftest.$ac_objext
1548  if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_compile") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } && {
1564	 test -z "$ac_c_werror_flag" ||
1565	 test ! -s conftest.err
1566       } && test -s conftest.$ac_objext; then :
1567  ac_retval=0
1568else
1569  $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572	ac_retval=1
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_compile
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } > conftest.i && {
1601	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       }; then :
1604  ac_retval=0
1605else
1606  $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609    ac_retval=1
1610fi
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619# the include files in INCLUDES and setting the cache variable VAR
1620# accordingly.
1621ac_fn_c_check_header_mongrel ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if eval \${$3+:} false; then :
1625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval \${$3+:} false; then :
1628  $as_echo_n "(cached) " >&6
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633else
1634  # Is the header compilable?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636$as_echo_n "checking $2 usability... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h.  */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643  ac_header_compiler=yes
1644else
1645  ac_header_compiler=no
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649$as_echo "$ac_header_compiler" >&6; }
1650
1651# Is the header present?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653$as_echo_n "checking $2 presence... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659  ac_header_preproc=yes
1660else
1661  ac_header_preproc=no
1662fi
1663rm -f conftest.err conftest.i conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665$as_echo "$ac_header_preproc" >&6; }
1666
1667# So?  What about this header?
1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669  yes:no: )
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674    ;;
1675  no:yes:* )
1676    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1679$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1683$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686( $as_echo "## ------------------------- ##
1687## Report this to des@des.no ##
1688## ------------------------- ##"
1689     ) | sed "s/^/$as_me: WARNING:     /" >&2
1690    ;;
1691esac
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  eval "$3=\$ac_header_compiler"
1698fi
1699eval ac_res=\$$3
1700	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701$as_echo "$ac_res" >&6; }
1702fi
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_mongrel
1706
1707# ac_fn_c_try_run LINENO
1708# ----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710# that executables *can* be run.
1711ac_fn_c_try_run ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>&5
1722  ac_status=$?
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725  { { case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_try") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; }; }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: program exited with status $ac_status" >&5
1738       $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741       ac_retval=$ac_status
1742fi
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_run
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  rm -f conftest.$ac_objext conftest$ac_exeext
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>conftest.err
1795  ac_status=$?
1796  if test -s conftest.err; then
1797    grep -v '^ *+' conftest.err >conftest.er1
1798    cat conftest.er1 >&5
1799    mv -f conftest.er1 conftest.err
1800  fi
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; } && {
1803	 test -z "$ac_c_werror_flag" ||
1804	 test ! -s conftest.err
1805       } && test -s conftest$ac_exeext && {
1806	 test "$cross_compiling" = yes ||
1807	 test -x conftest$ac_exeext
1808       }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892cat >config.log <<_ACEOF
1893This file contains any messages produced by compilers while
1894running configure, to aid debugging if configure makes a mistake.
1895
1896It was created by OpenPAM $as_me 20140912, which was
1897generated by GNU Autoconf 2.69.  Invocation command line was
1898
1899  $ $0 $@
1900
1901_ACEOF
1902exec 5>>config.log
1903{
1904cat <<_ASUNAME
1905## --------- ##
1906## Platform. ##
1907## --------- ##
1908
1909hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1917
1918/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1919/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1920/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1922/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1923/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1924/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1925
1926_ASUNAME
1927
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931  IFS=$as_save_IFS
1932  test -z "$as_dir" && as_dir=.
1933    $as_echo "PATH: $as_dir"
1934  done
1935IFS=$as_save_IFS
1936
1937} >&5
1938
1939cat >&5 <<_ACEOF
1940
1941
1942## ----------- ##
1943## Core tests. ##
1944## ----------- ##
1945
1946_ACEOF
1947
1948
1949# Keep a trace of the command line.
1950# Strip out --no-create and --no-recursion so they do not pile up.
1951# Strip out --silent because we don't want to record it for future runs.
1952# Also quote any args containing shell meta-characters.
1953# Make two passes to allow for proper duplicate-argument suppression.
1954ac_configure_args=
1955ac_configure_args0=
1956ac_configure_args1=
1957ac_must_keep_next=false
1958for ac_pass in 1 2
1959do
1960  for ac_arg
1961  do
1962    case $ac_arg in
1963    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965    | -silent | --silent | --silen | --sile | --sil)
1966      continue ;;
1967    *\'*)
1968      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969    esac
1970    case $ac_pass in
1971    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972    2)
1973      as_fn_append ac_configure_args1 " '$ac_arg'"
1974      if test $ac_must_keep_next = true; then
1975	ac_must_keep_next=false # Got value, back to normal.
1976      else
1977	case $ac_arg in
1978	  *=* | --config-cache | -C | -disable-* | --disable-* \
1979	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981	  | -with-* | --with-* | -without-* | --without-* | --x)
1982	    case "$ac_configure_args0 " in
1983	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984	    esac
1985	    ;;
1986	  -* ) ac_must_keep_next=true ;;
1987	esac
1988      fi
1989      as_fn_append ac_configure_args " '$ac_arg'"
1990      ;;
1991    esac
1992  done
1993done
1994{ ac_configure_args0=; unset ac_configure_args0;}
1995{ ac_configure_args1=; unset ac_configure_args1;}
1996
1997# When interrupted or exit'd, cleanup temporary files, and complete
1998# config.log.  We remove comments because anyway the quotes in there
1999# would cause problems or look ugly.
2000# WARNING: Use '\'' to represent an apostrophe within the trap.
2001# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002trap 'exit_status=$?
2003  # Save into config.log some information that might help in debugging.
2004  {
2005    echo
2006
2007    $as_echo "## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##"
2010    echo
2011    # The following way of writing the cache mishandles newlines in values,
2012(
2013  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014    eval ac_val=\$$ac_var
2015    case $ac_val in #(
2016    *${as_nl}*)
2017      case $ac_var in #(
2018      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020      esac
2021      case $ac_var in #(
2022      _ | IFS | as_nl) ;; #(
2023      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024      *) { eval $ac_var=; unset $ac_var;} ;;
2025      esac ;;
2026    esac
2027  done
2028  (set) 2>&1 |
2029    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030    *${as_nl}ac_space=\ *)
2031      sed -n \
2032	"s/'\''/'\''\\\\'\'''\''/g;
2033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034      ;; #(
2035    *)
2036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037      ;;
2038    esac |
2039    sort
2040)
2041    echo
2042
2043    $as_echo "## ----------------- ##
2044## Output variables. ##
2045## ----------------- ##"
2046    echo
2047    for ac_var in $ac_subst_vars
2048    do
2049      eval ac_val=\$$ac_var
2050      case $ac_val in
2051      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052      esac
2053      $as_echo "$ac_var='\''$ac_val'\''"
2054    done | sort
2055    echo
2056
2057    if test -n "$ac_subst_files"; then
2058      $as_echo "## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##"
2061      echo
2062      for ac_var in $ac_subst_files
2063      do
2064	eval ac_val=\$$ac_var
2065	case $ac_val in
2066	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067	esac
2068	$as_echo "$ac_var='\''$ac_val'\''"
2069      done | sort
2070      echo
2071    fi
2072
2073    if test -s confdefs.h; then
2074      $as_echo "## ----------- ##
2075## confdefs.h. ##
2076## ----------- ##"
2077      echo
2078      cat confdefs.h
2079      echo
2080    fi
2081    test "$ac_signal" != 0 &&
2082      $as_echo "$as_me: caught signal $ac_signal"
2083    $as_echo "$as_me: exit $exit_status"
2084  } >&5
2085  rm -f core *.core core.conftest.* &&
2086    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087    exit $exit_status
2088' 0
2089for ac_signal in 1 2 13 15; do
2090  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091done
2092ac_signal=0
2093
2094# confdefs.h avoids OS command line length limits that DEFS can exceed.
2095rm -f -r conftest* confdefs.h
2096
2097$as_echo "/* confdefs.h */" > confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_NAME "$PACKAGE_NAME"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_VERSION "$PACKAGE_VERSION"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_STRING "$PACKAGE_STRING"
2115_ACEOF
2116
2117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119_ACEOF
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_URL "$PACKAGE_URL"
2123_ACEOF
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128ac_site_file1=NONE
2129ac_site_file2=NONE
2130if test -n "$CONFIG_SITE"; then
2131  # We do not want a PATH search for config.site.
2132  case $CONFIG_SITE in #((
2133    -*)  ac_site_file1=./$CONFIG_SITE;;
2134    */*) ac_site_file1=$CONFIG_SITE;;
2135    *)   ac_site_file1=./$CONFIG_SITE;;
2136  esac
2137elif test "x$prefix" != xNONE; then
2138  ac_site_file1=$prefix/share/config.site
2139  ac_site_file2=$prefix/etc/config.site
2140else
2141  ac_site_file1=$ac_default_prefix/share/config.site
2142  ac_site_file2=$ac_default_prefix/etc/config.site
2143fi
2144for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145do
2146  test "x$ac_site_file" = xNONE && continue
2147  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150    sed 's/^/| /' "$ac_site_file" >&5
2151    . "$ac_site_file" \
2152      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154as_fn_error $? "failed to load site script $ac_site_file
2155See \`config.log' for more details" "$LINENO" 5; }
2156  fi
2157done
2158
2159if test -r "$cache_file"; then
2160  # Some versions of bash will fail to source /dev/null (special files
2161  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2162  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164$as_echo "$as_me: loading cache $cache_file" >&6;}
2165    case $cache_file in
2166      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167      *)                      . "./$cache_file";;
2168    esac
2169  fi
2170else
2171  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172$as_echo "$as_me: creating cache $cache_file" >&6;}
2173  >$cache_file
2174fi
2175
2176# Check that the precious variables saved in the cache have kept the same
2177# value.
2178ac_cache_corrupted=false
2179for ac_var in $ac_precious_vars; do
2180  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181  eval ac_new_set=\$ac_env_${ac_var}_set
2182  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183  eval ac_new_val=\$ac_env_${ac_var}_value
2184  case $ac_old_set,$ac_new_set in
2185    set,)
2186      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188      ac_cache_corrupted=: ;;
2189    ,set)
2190      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192      ac_cache_corrupted=: ;;
2193    ,);;
2194    *)
2195      if test "x$ac_old_val" != "x$ac_new_val"; then
2196	# differences in whitespace do not lead to failure.
2197	ac_old_val_w=`echo x $ac_old_val`
2198	ac_new_val_w=`echo x $ac_new_val`
2199	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202	  ac_cache_corrupted=:
2203	else
2204	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206	  eval $ac_var=\$ac_old_val
2207	fi
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2209$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2210	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2211$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2212      fi;;
2213  esac
2214  # Pass precious variables to config.status.
2215  if test "$ac_new_set" = set; then
2216    case $ac_new_val in
2217    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    *) ac_arg=$ac_var=$ac_new_val ;;
2219    esac
2220    case " $ac_configure_args " in
2221      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2222      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223    esac
2224  fi
2225done
2226if $ac_cache_corrupted; then
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232fi
2233## -------------------- ##
2234## Main body of script. ##
2235## -------------------- ##
2236
2237ac_ext=c
2238ac_cpp='$CPP $CPPFLAGS'
2239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244
2245
2246am__api_version='1.14'
2247
2248ac_aux_dir=
2249for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250  if test -f "$ac_dir/install-sh"; then
2251    ac_aux_dir=$ac_dir
2252    ac_install_sh="$ac_aux_dir/install-sh -c"
2253    break
2254  elif test -f "$ac_dir/install.sh"; then
2255    ac_aux_dir=$ac_dir
2256    ac_install_sh="$ac_aux_dir/install.sh -c"
2257    break
2258  elif test -f "$ac_dir/shtool"; then
2259    ac_aux_dir=$ac_dir
2260    ac_install_sh="$ac_aux_dir/shtool install -c"
2261    break
2262  fi
2263done
2264if test -z "$ac_aux_dir"; then
2265  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2266fi
2267
2268# These three variables are undocumented and unsupported,
2269# and are intended to be withdrawn in a future Autoconf release.
2270# They can cause serious problems if a builder's source tree is in a directory
2271# whose full name contains unusual characters.
2272ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2273ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2274ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2275
2276
2277# Find a good install program.  We prefer a C program (faster),
2278# so one script is as good as another.  But avoid the broken or
2279# incompatible versions:
2280# SysV /etc/install, /usr/sbin/install
2281# SunOS /usr/etc/install
2282# IRIX /sbin/install
2283# AIX /bin/install
2284# AmigaOS /C/install, which installs bootblocks on floppy discs
2285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288# OS/2's system install, which has a completely different semantic
2289# ./install, which can be erroneously created by make from ./install.sh.
2290# Reject install programs that cannot install multiple files.
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292$as_echo_n "checking for a BSD-compatible install... " >&6; }
2293if test -z "$INSTALL"; then
2294if ${ac_cv_path_install+:} false; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300  IFS=$as_save_IFS
2301  test -z "$as_dir" && as_dir=.
2302    # Account for people who put trailing slashes in PATH elements.
2303case $as_dir/ in #((
2304  ./ | .// | /[cC]/* | \
2305  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2307  /usr/ucb/* ) ;;
2308  *)
2309    # OSF1 and SCO ODT 3.0 have their own names for install.
2310    # Don't use installbsd from OSF since it installs stuff as root
2311    # by default.
2312    for ac_prog in ginstall scoinst install; do
2313      for ac_exec_ext in '' $ac_executable_extensions; do
2314	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315	  if test $ac_prog = install &&
2316	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317	    # AIX install.  It has an incompatible calling convention.
2318	    :
2319	  elif test $ac_prog = install &&
2320	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321	    # program-specific install script used by HP pwplus--don't use.
2322	    :
2323	  else
2324	    rm -rf conftest.one conftest.two conftest.dir
2325	    echo one > conftest.one
2326	    echo two > conftest.two
2327	    mkdir conftest.dir
2328	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329	      test -s conftest.one && test -s conftest.two &&
2330	      test -s conftest.dir/conftest.one &&
2331	      test -s conftest.dir/conftest.two
2332	    then
2333	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334	      break 3
2335	    fi
2336	  fi
2337	fi
2338      done
2339    done
2340    ;;
2341esac
2342
2343  done
2344IFS=$as_save_IFS
2345
2346rm -rf conftest.one conftest.two conftest.dir
2347
2348fi
2349  if test "${ac_cv_path_install+set}" = set; then
2350    INSTALL=$ac_cv_path_install
2351  else
2352    # As a last resort, use the slow shell script.  Don't cache a
2353    # value for INSTALL within a source directory, because that will
2354    # break other packages using the cache if that directory is
2355    # removed, or if the value is a relative name.
2356    INSTALL=$ac_install_sh
2357  fi
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360$as_echo "$INSTALL" >&6; }
2361
2362# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363# It thinks the first close brace ends the variable substitution.
2364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371$as_echo_n "checking whether build environment is sane... " >&6; }
2372# Reject unsafe characters in $srcdir or the absolute working directory
2373# name.  Accept space and tab only in the latter.
2374am_lf='
2375'
2376case `pwd` in
2377  *[\\\"\#\$\&\'\`$am_lf]*)
2378    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2379esac
2380case $srcdir in
2381  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2382    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2383esac
2384
2385# Do 'set' in a subshell so we don't clobber the current shell's
2386# arguments.  Must try -L first in case configure is actually a
2387# symlink; some systems play weird games with the mod time of symlinks
2388# (eg FreeBSD returns the mod time of the symlink's containing
2389# directory).
2390if (
2391   am_has_slept=no
2392   for am_try in 1 2; do
2393     echo "timestamp, slept: $am_has_slept" > conftest.file
2394     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395     if test "$*" = "X"; then
2396	# -L didn't work.
2397	set X `ls -t "$srcdir/configure" conftest.file`
2398     fi
2399     if test "$*" != "X $srcdir/configure conftest.file" \
2400	&& test "$*" != "X conftest.file $srcdir/configure"; then
2401
2402	# If neither matched, then we have a broken ls.  This can happen
2403	# if, for instance, CONFIG_SHELL is bash and it inherits a
2404	# broken ls alias from the environment.  This has actually
2405	# happened.  Such a system could not be considered "sane".
2406	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2407  alias in your environment" "$LINENO" 5
2408     fi
2409     if test "$2" = conftest.file || test $am_try -eq 2; then
2410       break
2411     fi
2412     # Just in case.
2413     sleep 1
2414     am_has_slept=yes
2415   done
2416   test "$2" = conftest.file
2417   )
2418then
2419   # Ok.
2420   :
2421else
2422   as_fn_error $? "newly created file is older than distributed files!
2423Check your system clock" "$LINENO" 5
2424fi
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426$as_echo "yes" >&6; }
2427# If we didn't sleep, we still need to ensure time stamps of config.status and
2428# generated files are strictly newer.
2429am_sleep_pid=
2430if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2431  ( sleep 1 ) &
2432  am_sleep_pid=$!
2433fi
2434
2435rm -f conftest.file
2436
2437test "$program_prefix" != NONE &&
2438  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439# Use a double $ so make ignores it.
2440test "$program_suffix" != NONE &&
2441  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442# Double any \ or $.
2443# By default was `s,x,x', remove it if useless.
2444ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446
2447# expand $ac_aux_dir to an absolute path
2448am_aux_dir=`cd $ac_aux_dir && pwd`
2449
2450if test x"${MISSING+set}" != xset; then
2451  case $am_aux_dir in
2452  *\ * | *\	*)
2453    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2454  *)
2455    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456  esac
2457fi
2458# Use eval to expand $SHELL
2459if eval "$MISSING --is-lightweight"; then
2460  am_missing_run="$MISSING "
2461else
2462  am_missing_run=
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2464$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2465fi
2466
2467if test x"${install_sh}" != xset; then
2468  case $am_aux_dir in
2469  *\ * | *\	*)
2470    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2471  *)
2472    install_sh="\${SHELL} $am_aux_dir/install-sh"
2473  esac
2474fi
2475
2476# Installed binaries are usually stripped using 'strip' when the user
2477# run "make install-strip".  However 'strip' might not be the right
2478# tool to use in cross-compilation environments, therefore Automake
2479# will honor the 'STRIP' environment variable to overrule this program.
2480if test "$cross_compiling" != no; then
2481  if test -n "$ac_tool_prefix"; then
2482  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483set dummy ${ac_tool_prefix}strip; ac_word=$2
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if ${ac_cv_prog_STRIP+:} false; then :
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$STRIP"; then
2490  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_exec_ext in '' $ac_executable_extensions; do
2498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504  done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509STRIP=$ac_cv_prog_STRIP
2510if test -n "$STRIP"; then
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512$as_echo "$STRIP" >&6; }
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519fi
2520if test -z "$ac_cv_prog_STRIP"; then
2521  ac_ct_STRIP=$STRIP
2522  # Extract the first word of "strip", so it can be a program name with args.
2523set dummy strip; ac_word=$2
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527  $as_echo_n "(cached) " >&6
2528else
2529  if test -n "$ac_ct_STRIP"; then
2530  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537    for ac_exec_ext in '' $ac_executable_extensions; do
2538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539    ac_cv_prog_ac_ct_STRIP="strip"
2540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544  done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550if test -n "$ac_ct_STRIP"; then
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552$as_echo "$ac_ct_STRIP" >&6; }
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
2556fi
2557
2558  if test "x$ac_ct_STRIP" = x; then
2559    STRIP=":"
2560  else
2561    case $cross_compiling:$ac_tool_warned in
2562yes:)
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565ac_tool_warned=yes ;;
2566esac
2567    STRIP=$ac_ct_STRIP
2568  fi
2569else
2570  STRIP="$ac_cv_prog_STRIP"
2571fi
2572
2573fi
2574INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578if test -z "$MKDIR_P"; then
2579  if ${ac_cv_path_mkdir+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_prog in mkdir gmkdir; do
2588	 for ac_exec_ext in '' $ac_executable_extensions; do
2589	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591	     'mkdir (GNU coreutils) '* | \
2592	     'mkdir (coreutils) '* | \
2593	     'mkdir (fileutils) '4.1*)
2594	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2595	       break 3;;
2596	   esac
2597	 done
2598       done
2599  done
2600IFS=$as_save_IFS
2601
2602fi
2603
2604  test -d ./--version && rmdir ./--version
2605  if test "${ac_cv_path_mkdir+set}" = set; then
2606    MKDIR_P="$ac_cv_path_mkdir -p"
2607  else
2608    # As a last resort, use the slow shell script.  Don't cache a
2609    # value for MKDIR_P within a source directory, because that will
2610    # break other packages using the cache if that directory is
2611    # removed, or if the value is a relative name.
2612    MKDIR_P="$ac_install_sh -d"
2613  fi
2614fi
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616$as_echo "$MKDIR_P" >&6; }
2617
2618for ac_prog in gawk mawk nawk awk
2619do
2620  # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if ${ac_cv_prog_AWK+:} false; then :
2625  $as_echo_n "(cached) " >&6
2626else
2627  if test -n "$AWK"; then
2628  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635    for ac_exec_ext in '' $ac_executable_extensions; do
2636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637    ac_cv_prog_AWK="$ac_prog"
2638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642  done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647AWK=$ac_cv_prog_AWK
2648if test -n "$AWK"; then
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650$as_echo "$AWK" >&6; }
2651else
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
2654fi
2655
2656
2657  test -n "$AWK" && break
2658done
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2662set x ${MAKE-make}
2663ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665  $as_echo_n "(cached) " >&6
2666else
2667  cat >conftest.make <<\_ACEOF
2668SHELL = /bin/sh
2669all:
2670	@echo '@@@%%%=$(MAKE)=@@@%%%'
2671_ACEOF
2672# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673case `${MAKE-make} -f conftest.make 2>/dev/null` in
2674  *@@@%%%=?*=@@@%%%*)
2675    eval ac_cv_prog_make_${ac_make}_set=yes;;
2676  *)
2677    eval ac_cv_prog_make_${ac_make}_set=no;;
2678esac
2679rm -f conftest.make
2680fi
2681if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683$as_echo "yes" >&6; }
2684  SET_MAKE=
2685else
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688  SET_MAKE="MAKE=${MAKE-make}"
2689fi
2690
2691rm -rf .tst 2>/dev/null
2692mkdir .tst 2>/dev/null
2693if test -d .tst; then
2694  am__leading_dot=.
2695else
2696  am__leading_dot=_
2697fi
2698rmdir .tst 2>/dev/null
2699
2700# Check whether --enable-silent-rules was given.
2701if test "${enable_silent_rules+set}" = set; then :
2702  enableval=$enable_silent_rules;
2703fi
2704
2705case $enable_silent_rules in # (((
2706  yes) AM_DEFAULT_VERBOSITY=0;;
2707   no) AM_DEFAULT_VERBOSITY=1;;
2708    *) AM_DEFAULT_VERBOSITY=1;;
2709esac
2710am_make=${MAKE-make}
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2712$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2713if ${am_cv_make_support_nested_variables+:} false; then :
2714  $as_echo_n "(cached) " >&6
2715else
2716  if $as_echo 'TRUE=$(BAR$(V))
2717BAR0=false
2718BAR1=true
2719V=1
2720am__doit:
2721	@$(TRUE)
2722.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2723  am_cv_make_support_nested_variables=yes
2724else
2725  am_cv_make_support_nested_variables=no
2726fi
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2729$as_echo "$am_cv_make_support_nested_variables" >&6; }
2730if test $am_cv_make_support_nested_variables = yes; then
2731    AM_V='$(V)'
2732  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2733else
2734  AM_V=$AM_DEFAULT_VERBOSITY
2735  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2736fi
2737AM_BACKSLASH='\'
2738
2739if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741  # is not polluted with repeated "-I."
2742  am__isrc=' -I$(srcdir)'
2743  # test to see if srcdir already configured
2744  if test -f $srcdir/config.status; then
2745    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2746  fi
2747fi
2748
2749# test whether we have cygpath
2750if test -z "$CYGPATH_W"; then
2751  if (cygpath --version) >/dev/null 2>/dev/null; then
2752    CYGPATH_W='cygpath -w'
2753  else
2754    CYGPATH_W=echo
2755  fi
2756fi
2757
2758
2759# Define the identity of the package.
2760 PACKAGE='openpam'
2761 VERSION='20140912'
2762
2763
2764cat >>confdefs.h <<_ACEOF
2765#define PACKAGE "$PACKAGE"
2766_ACEOF
2767
2768
2769cat >>confdefs.h <<_ACEOF
2770#define VERSION "$VERSION"
2771_ACEOF
2772
2773# Some tools Automake needs.
2774
2775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2776
2777
2778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2779
2780
2781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2782
2783
2784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2785
2786
2787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2788
2789# For better backward compatibility.  To be removed once Automake 1.9.x
2790# dies out for good.  For more background, see:
2791# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793mkdir_p='$(MKDIR_P)'
2794
2795# We need awk for the "check" target.  The system "awk" is bad on
2796# some platforms.
2797# Always define AMTAR for backward compatibility.  Yes, it's still used
2798# in the wild :-(  We should find a proper way to deprecate it ...
2799AMTAR='$${TAR-tar}'
2800
2801
2802# We'll loop over all known methods to create a tar archive until one works.
2803_am_tools='gnutar  pax cpio none'
2804
2805am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2806
2807
2808
2809
2810
2811
2812# POSIX will say in a future version that running "rm -f" with no argument
2813# is OK; and we want to be able to make that assumption in our Makefile
2814# recipes.  So use an aggressive probe to check that the usage we want is
2815# actually supported "in the wild" to an acceptable degree.
2816# See automake bug#10828.
2817# To make any issue more visible, cause the running configure to be aborted
2818# by default if the 'rm' program in use doesn't match our expectations; the
2819# user can still override this though.
2820if rm -f && rm -fr && rm -rf; then : OK; else
2821  cat >&2 <<'END'
2822Oops!
2823
2824Your 'rm' program seems unable to run without file operands specified
2825on the command line, even when the '-f' option is present.  This is contrary
2826to the behaviour of most rm programs out there, and not conforming with
2827the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2828
2829Please tell bug-automake@gnu.org about your system, including the value
2830of your $PATH and any error possibly output before this message.  This
2831can help us improve future automake versions.
2832
2833END
2834  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2835    echo 'Configuration will proceed anyway, since you have set the' >&2
2836    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2837    echo >&2
2838  else
2839    cat >&2 <<'END'
2840Aborting the configuration process, to ensure you take notice of the issue.
2841
2842You can download and install GNU coreutils to get an 'rm' implementation
2843that behaves properly: <http://www.gnu.org/software/coreutils/>.
2844
2845If you want to complete the configuration process using your problematic
2846'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2847to "yes", and re-run configure.
2848
2849END
2850    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2851  fi
2852fi
2853ac_config_headers="$ac_config_headers config.h"
2854
2855
2856# C compiler and features
2857ac_ext=c
2858ac_cpp='$CPP $CPPFLAGS'
2859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863ac_ext=c
2864ac_cpp='$CPP $CPPFLAGS'
2865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868if test -n "$ac_tool_prefix"; then
2869  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_CC"; then
2908  ac_ct_CC=$CC
2909  # Extract the first word of "gcc", so it can be a program name with args.
2910set dummy gcc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$ac_ct_CC"; then
2917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_ac_ct_CC="gcc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937if test -n "$ac_ct_CC"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939$as_echo "$ac_ct_CC" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945  if test "x$ac_ct_CC" = x; then
2946    CC=""
2947  else
2948    case $cross_compiling:$ac_tool_warned in
2949yes:)
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952ac_tool_warned=yes ;;
2953esac
2954    CC=$ac_ct_CC
2955  fi
2956else
2957  CC="$ac_cv_prog_CC"
2958fi
2959
2960if test -z "$CC"; then
2961          if test -n "$ac_tool_prefix"; then
2962    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}cc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_CC="${ac_tool_prefix}cc"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989CC=$ac_cv_prog_CC
2990if test -n "$CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992$as_echo "$CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999  fi
3000fi
3001if test -z "$CC"; then
3002  # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012  ac_prog_rejected=no
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021       ac_prog_rejected=yes
3022       continue
3023     fi
3024    ac_cv_prog_CC="cc"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032if test $ac_prog_rejected = yes; then
3033  # We found a bogon in the path, so make sure we never use it.
3034  set dummy $ac_cv_prog_CC
3035  shift
3036  if test $# != 0; then
3037    # We chose a different compiler from the bogus one.
3038    # However, it has the same basename, so the bogon will be chosen
3039    # first if we set CC to just the basename; use the full file name.
3040    shift
3041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042  fi
3043fi
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$CC"; then
3058  if test -n "$ac_tool_prefix"; then
3059  for ac_prog in cl.exe
3060  do
3061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098    test -n "$CC" && break
3099  done
3100fi
3101if test -z "$CC"; then
3102  ac_ct_CC=$CC
3103  for ac_prog in cl.exe
3104do
3105  # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$ac_ct_CC"; then
3113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_ac_ct_CC="$ac_prog"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133if test -n "$ac_ct_CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135$as_echo "$ac_ct_CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  test -n "$ac_ct_CC" && break
3143done
3144
3145  if test "x$ac_ct_CC" = x; then
3146    CC=""
3147  else
3148    case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154    CC=$ac_ct_CC
3155  fi
3156fi
3157
3158fi
3159
3160
3161test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error $? "no acceptable C compiler found in \$PATH
3164See \`config.log' for more details" "$LINENO" 5; }
3165
3166# Provide some information about the compiler.
3167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168set X $ac_compile
3169ac_compiler=$2
3170for ac_option in --version -v -V -qversion; do
3171  { { ac_try="$ac_compiler $ac_option >&5"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179  ac_status=$?
3180  if test -s conftest.err; then
3181    sed '10a\
3182... rest of stderr output deleted ...
3183         10q' conftest.err >conftest.er1
3184    cat conftest.er1 >&5
3185  fi
3186  rm -f conftest.er1 conftest.err
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; }
3189done
3190
3191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202ac_clean_files_save=$ac_clean_files
3203ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204# Try to create an executable without -o first, disregard a.out.
3205# It will help us diagnose broken compilers, and finding out an intuition
3206# of exeext.
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208$as_echo_n "checking whether the C compiler works... " >&6; }
3209ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211# The possible output files:
3212ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214ac_rmfiles=
3215for ac_file in $ac_files
3216do
3217  case $ac_file in
3218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220  esac
3221done
3222rm -f $ac_rmfiles
3223
3224if { { ac_try="$ac_link_default"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link_default") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; then :
3235  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238# so that the user can short-circuit this test for compilers unknown to
3239# Autoconf.
3240for ac_file in $ac_files ''
3241do
3242  test -f "$ac_file" || continue
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245	;;
3246    [ab].out )
3247	# We found the default executable, but exeext='' is most
3248	# certainly right.
3249	break;;
3250    *.* )
3251	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252	then :; else
3253	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254	fi
3255	# We set ac_cv_exeext here because the later test for it is not
3256	# safe: cross compilers may not add the suffix if given an `-o'
3257	# argument, so we may need to know it at that point already.
3258	# Even if this section looks crufty: it has the advantage of
3259	# actually working.
3260	break;;
3261    * )
3262	break;;
3263  esac
3264done
3265test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267else
3268  ac_file=''
3269fi
3270if test -z "$ac_file"; then :
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273$as_echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278as_fn_error 77 "C compiler cannot create executables
3279See \`config.log' for more details" "$LINENO" 5; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
3283fi
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
3288ac_exeext=$ac_cv_exeext
3289
3290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291ac_clean_files=$ac_clean_files_save
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293$as_echo_n "checking for suffix of executables... " >&6; }
3294if { { ac_try="$ac_link"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310  test -f "$ac_file" || continue
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314	  break;;
3315    * ) break;;
3316  esac
3317done
3318else
3319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details" "$LINENO" 5; }
3323fi
3324rm -f conftest conftest$ac_cv_exeext
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326$as_echo "$ac_cv_exeext" >&6; }
3327
3328rm -f conftest.$ac_ext
3329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run.  If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350  { { ac_try="$ac_link"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357  (eval "$ac_link") 2>&5
3358  ac_status=$?
3359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360  test $ac_status = 0; }
3361  if { ac_try='./conftest$ac_cv_exeext'
3362  { { case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368  (eval "$ac_try") 2>&5
3369  ac_status=$?
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; }; }; then
3372    cross_compiling=no
3373  else
3374    if test "$cross_compiling" = maybe; then
3375	cross_compiling=yes
3376    else
3377	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error $? "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details" "$LINENO" 5; }
3382    fi
3383  fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391$as_echo_n "checking for suffix of object files... " >&6; }
3392if ${ac_cv_objext+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
3407if { { ac_try="$ac_compile"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_compile") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  for ac_file in conftest.o conftest.obj conftest.*; do
3419  test -f "$ac_file" || continue;
3420  case $ac_file in
3421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423       break;;
3424  esac
3425done
3426else
3427  $as_echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details" "$LINENO" 5; }
3434fi
3435rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438$as_echo "$ac_cv_objext" >&6; }
3439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443if ${ac_cv_c_compiler_gnu+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453       choke me
3454#endif
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460if ac_fn_c_try_compile "$LINENO"; then :
3461  ac_compiler_gnu=yes
3462else
3463  ac_compiler_gnu=no
3464fi
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472  GCC=yes
3473else
3474  GCC=
3475fi
3476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479$as_echo_n "checking whether $CC accepts -g... " >&6; }
3480if ${ac_cv_prog_cc_g+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_save_c_werror_flag=$ac_c_werror_flag
3484   ac_c_werror_flag=yes
3485   ac_cv_prog_cc_g=no
3486   CFLAGS="-g"
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498if ac_fn_c_try_compile "$LINENO"; then :
3499  ac_cv_prog_cc_g=yes
3500else
3501  CFLAGS=""
3502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514
3515else
3516  ac_c_werror_flag=$ac_save_c_werror_flag
3517	 CFLAGS="-g"
3518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  ac_cv_prog_cc_g=yes
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537   ac_c_werror_flag=$ac_save_c_werror_flag
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540$as_echo "$ac_cv_prog_cc_g" >&6; }
3541if test "$ac_test_CFLAGS" = set; then
3542  CFLAGS=$ac_save_CFLAGS
3543elif test $ac_cv_prog_cc_g = yes; then
3544  if test "$GCC" = yes; then
3545    CFLAGS="-g -O2"
3546  else
3547    CFLAGS="-g"
3548  fi
3549else
3550  if test "$GCC" = yes; then
3551    CFLAGS="-O2"
3552  else
3553    CFLAGS=
3554  fi
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558if ${ac_cv_prog_cc_c89+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  ac_cv_prog_cc_c89=no
3562ac_save_CC=$CC
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <stdarg.h>
3566#include <stdio.h>
3567struct stat;
3568/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3569struct buf { int x; };
3570FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571static char *e (p, i)
3572     char **p;
3573     int i;
3574{
3575  return p[i];
3576}
3577static char *f (char * (*g) (char **, int), char **p, ...)
3578{
3579  char *s;
3580  va_list v;
3581  va_start (v,p);
3582  s = g (p, va_arg (v,int));
3583  va_end (v);
3584  return s;
3585}
3586
3587/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3588   function prototypes and stuff, but not '\xHH' hex character constants.
3589   These don't provoke an error unfortunately, instead are silently treated
3590   as 'x'.  The following induces an error, until -std is added to get
3591   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3592   array size at least.  It's necessary to write '\x00'==0 to get something
3593   that's true only with -std.  */
3594int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597   inside strings and character constants.  */
3598#define FOO(x) 'x'
3599int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601int test (int i, double x);
3602struct s1 {int (*f) (int a);};
3603struct s2 {int (*f) (double a);};
3604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605int argc;
3606char **argv;
3607int
3608main ()
3609{
3610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617do
3618  CC="$ac_save_CC $ac_arg"
3619  if ac_fn_c_try_compile "$LINENO"; then :
3620  ac_cv_prog_cc_c89=$ac_arg
3621fi
3622rm -f core conftest.err conftest.$ac_objext
3623  test "x$ac_cv_prog_cc_c89" != "xno" && break
3624done
3625rm -f conftest.$ac_ext
3626CC=$ac_save_CC
3627
3628fi
3629# AC_CACHE_VAL
3630case "x$ac_cv_prog_cc_c89" in
3631  x)
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633$as_echo "none needed" >&6; } ;;
3634  xno)
3635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636$as_echo "unsupported" >&6; } ;;
3637  *)
3638    CC="$CC $ac_cv_prog_cc_c89"
3639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641esac
3642if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644fi
3645
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659if ${am_cv_prog_cc_c_o+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673  # Make sure it works both with $CC and with simple cc.
3674  # Following AC_PROG_CC_C_O, we do the test twice because some
3675  # compilers refuse to overwrite an existing .o file with -o,
3676  # though they will create one.
3677  am_cv_prog_cc_c_o=yes
3678  for am_i in 1 2; do
3679    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } \
3684         && test -f conftest2.$ac_objext; then
3685      : OK
3686    else
3687      am_cv_prog_cc_c_o=no
3688      break
3689    fi
3690  done
3691  rm -f core conftest*
3692  unset am_i
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695$as_echo "$am_cv_prog_cc_c_o" >&6; }
3696if test "$am_cv_prog_cc_c_o" != yes; then
3697   # Losing compiler, so override with the script.
3698   # FIXME: It is wrong to rewrite CC.
3699   # But if we don't then we get into trouble of one sort or another.
3700   # A longer-term fix would be to have automake use am__CC in this case,
3701   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702   CC="$am_aux_dir/compile $CC"
3703fi
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710DEPDIR="${am__leading_dot}deps"
3711
3712ac_config_commands="$ac_config_commands depfiles"
3713
3714
3715am_make=${MAKE-make}
3716cat > confinc << 'END'
3717am__doit:
3718	@echo this is the am__doit target
3719.PHONY: am__doit
3720END
3721# If we don't find an include directive, just comment out the code.
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3723$as_echo_n "checking for style of include used by $am_make... " >&6; }
3724am__include="#"
3725am__quote=
3726_am_result=none
3727# First try GNU make style include.
3728echo "include confinc" > confmf
3729# Ignore all kinds of additional output from 'make'.
3730case `$am_make -s -f confmf 2> /dev/null` in #(
3731*the\ am__doit\ target*)
3732  am__include=include
3733  am__quote=
3734  _am_result=GNU
3735  ;;
3736esac
3737# Now try BSD make style include.
3738if test "$am__include" = "#"; then
3739   echo '.include "confinc"' > confmf
3740   case `$am_make -s -f confmf 2> /dev/null` in #(
3741   *the\ am__doit\ target*)
3742     am__include=.include
3743     am__quote="\""
3744     _am_result=BSD
3745     ;;
3746   esac
3747fi
3748
3749
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3751$as_echo "$_am_result" >&6; }
3752rm -f confinc confmf
3753
3754# Check whether --enable-dependency-tracking was given.
3755if test "${enable_dependency_tracking+set}" = set; then :
3756  enableval=$enable_dependency_tracking;
3757fi
3758
3759if test "x$enable_dependency_tracking" != xno; then
3760  am_depcomp="$ac_aux_dir/depcomp"
3761  AMDEPBACKSLASH='\'
3762  am__nodep='_no'
3763fi
3764 if test "x$enable_dependency_tracking" != xno; then
3765  AMDEP_TRUE=
3766  AMDEP_FALSE='#'
3767else
3768  AMDEP_TRUE='#'
3769  AMDEP_FALSE=
3770fi
3771
3772
3773
3774depcc="$CC"   am_compiler_list=
3775
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777$as_echo_n "checking dependency style of $depcc... " >&6; }
3778if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779  $as_echo_n "(cached) " >&6
3780else
3781  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782  # We make a subdir and do the tests there.  Otherwise we can end up
3783  # making bogus files that we don't know about and never remove.  For
3784  # instance it was reported that on HP-UX the gcc test will end up
3785  # making a dummy file named 'D' -- because '-MD' means "put the output
3786  # in D".
3787  rm -rf conftest.dir
3788  mkdir conftest.dir
3789  # Copy depcomp to subdir because otherwise we won't find it if we're
3790  # using a relative directory.
3791  cp "$am_depcomp" conftest.dir
3792  cd conftest.dir
3793  # We will build objects and dependencies in a subdirectory because
3794  # it helps to detect inapplicable dependency modes.  For instance
3795  # both Tru64's cc and ICC support -MD to output dependencies as a
3796  # side effect of compilation, but ICC will put the dependencies in
3797  # the current directory while Tru64 will put them in the object
3798  # directory.
3799  mkdir sub
3800
3801  am_cv_CC_dependencies_compiler_type=none
3802  if test "$am_compiler_list" = ""; then
3803     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804  fi
3805  am__universal=false
3806  case " $depcc " in #(
3807     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808     esac
3809
3810  for depmode in $am_compiler_list; do
3811    # Setup a source with many dependencies, because some compilers
3812    # like to wrap large dependency lists on column 80 (with \), and
3813    # we should not choose a depcomp mode which is confused by this.
3814    #
3815    # We need to recreate these files for each test, as the compiler may
3816    # overwrite some of them when testing with obscure command lines.
3817    # This happens at least with the AIX C compiler.
3818    : > sub/conftest.c
3819    for i in 1 2 3 4 5 6; do
3820      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3822      # Solaris 10 /bin/sh.
3823      echo '/* dummy */' > sub/conftst$i.h
3824    done
3825    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826
3827    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3828    # mode.  It turns out that the SunPro C++ compiler does not properly
3829    # handle '-M -o', and we need to detect this.  Also, some Intel
3830    # versions had trouble with output in subdirs.
3831    am__obj=sub/conftest.${OBJEXT-o}
3832    am__minus_obj="-o $am__obj"
3833    case $depmode in
3834    gcc)
3835      # This depmode causes a compiler race in universal mode.
3836      test "$am__universal" = false || continue
3837      ;;
3838    nosideeffect)
3839      # After this tag, mechanisms are not by side-effect, so they'll
3840      # only be used when explicitly requested.
3841      if test "x$enable_dependency_tracking" = xyes; then
3842	continue
3843      else
3844	break
3845      fi
3846      ;;
3847    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848      # This compiler won't grok '-c -o', but also, the minuso test has
3849      # not run yet.  These depmodes are late enough in the game, and
3850      # so weak that their functioning should not be impacted.
3851      am__obj=conftest.${OBJEXT-o}
3852      am__minus_obj=
3853      ;;
3854    none) break ;;
3855    esac
3856    if depmode=$depmode \
3857       source=sub/conftest.c object=$am__obj \
3858       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860         >/dev/null 2>conftest.err &&
3861       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865      # icc doesn't choke on unknown options, it will just issue warnings
3866      # or remarks (even with -Werror).  So we grep stderr for any message
3867      # that says an option was ignored or not supported.
3868      # When given -MP, icc 7.0 and 7.1 complain thusly:
3869      #   icc: Command line warning: ignoring option '-M'; no argument required
3870      # The diagnosis changed in icc 8.0:
3871      #   icc: Command line remark: option '-MP' not supported
3872      if (grep 'ignoring option' conftest.err ||
3873          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874        am_cv_CC_dependencies_compiler_type=$depmode
3875        break
3876      fi
3877    fi
3878  done
3879
3880  cd ..
3881  rm -rf conftest.dir
3882else
3883  am_cv_CC_dependencies_compiler_type=none
3884fi
3885
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891 if
3892  test "x$enable_dependency_tracking" != xno \
3893  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894  am__fastdepCC_TRUE=
3895  am__fastdepCC_FALSE='#'
3896else
3897  am__fastdepCC_TRUE='#'
3898  am__fastdepCC_FALSE=
3899fi
3900
3901
3902   case $ac_cv_prog_cc_stdc in #(
3903  no) :
3904    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3905  *) :
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3907$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3908if ${ac_cv_prog_cc_c99+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  ac_cv_prog_cc_c99=no
3912ac_save_CC=$CC
3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h.  */
3915#include <stdarg.h>
3916#include <stdbool.h>
3917#include <stdlib.h>
3918#include <wchar.h>
3919#include <stdio.h>
3920
3921// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3922#define debug(...) fprintf (stderr, __VA_ARGS__)
3923#define showlist(...) puts (#__VA_ARGS__)
3924#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3925static void
3926test_varargs_macros (void)
3927{
3928  int x = 1234;
3929  int y = 5678;
3930  debug ("Flag");
3931  debug ("X = %d\n", x);
3932  showlist (The first, second, and third items.);
3933  report (x>y, "x is %d but y is %d", x, y);
3934}
3935
3936// Check long long types.
3937#define BIG64 18446744073709551615ull
3938#define BIG32 4294967295ul
3939#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3940#if !BIG_OK
3941  your preprocessor is broken;
3942#endif
3943#if BIG_OK
3944#else
3945  your preprocessor is broken;
3946#endif
3947static long long int bignum = -9223372036854775807LL;
3948static unsigned long long int ubignum = BIG64;
3949
3950struct incomplete_array
3951{
3952  int datasize;
3953  double data[];
3954};
3955
3956struct named_init {
3957  int number;
3958  const wchar_t *name;
3959  double average;
3960};
3961
3962typedef const char *ccp;
3963
3964static inline int
3965test_restrict (ccp restrict text)
3966{
3967  // See if C++-style comments work.
3968  // Iterate through items via the restricted pointer.
3969  // Also check for declarations in for loops.
3970  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3971    continue;
3972  return 0;
3973}
3974
3975// Check varargs and va_copy.
3976static void
3977test_varargs (const char *format, ...)
3978{
3979  va_list args;
3980  va_start (args, format);
3981  va_list args_copy;
3982  va_copy (args_copy, args);
3983
3984  const char *str;
3985  int number;
3986  float fnumber;
3987
3988  while (*format)
3989    {
3990      switch (*format++)
3991	{
3992	case 's': // string
3993	  str = va_arg (args_copy, const char *);
3994	  break;
3995	case 'd': // int
3996	  number = va_arg (args_copy, int);
3997	  break;
3998	case 'f': // float
3999	  fnumber = va_arg (args_copy, double);
4000	  break;
4001	default:
4002	  break;
4003	}
4004    }
4005  va_end (args_copy);
4006  va_end (args);
4007}
4008
4009int
4010main ()
4011{
4012
4013  // Check bool.
4014  _Bool success = false;
4015
4016  // Check restrict.
4017  if (test_restrict ("String literal") == 0)
4018    success = true;
4019  char *restrict newvar = "Another string";
4020
4021  // Check varargs.
4022  test_varargs ("s, d' f .", "string", 65, 34.234);
4023  test_varargs_macros ();
4024
4025  // Check flexible array members.
4026  struct incomplete_array *ia =
4027    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4028  ia->datasize = 10;
4029  for (int i = 0; i < ia->datasize; ++i)
4030    ia->data[i] = i * 1.234;
4031
4032  // Check named initializers.
4033  struct named_init ni = {
4034    .number = 34,
4035    .name = L"Test wide string",
4036    .average = 543.34343,
4037  };
4038
4039  ni.number = 58;
4040
4041  int dynamic_array[ni.number];
4042  dynamic_array[ni.number - 1] = 543;
4043
4044  // work around unused variable warnings
4045  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4046	  || dynamic_array[ni.number - 1] != 543);
4047
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4053do
4054  CC="$ac_save_CC $ac_arg"
4055  if ac_fn_c_try_compile "$LINENO"; then :
4056  ac_cv_prog_cc_c99=$ac_arg
4057fi
4058rm -f core conftest.err conftest.$ac_objext
4059  test "x$ac_cv_prog_cc_c99" != "xno" && break
4060done
4061rm -f conftest.$ac_ext
4062CC=$ac_save_CC
4063
4064fi
4065# AC_CACHE_VAL
4066case "x$ac_cv_prog_cc_c99" in
4067  x)
4068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069$as_echo "none needed" >&6; } ;;
4070  xno)
4071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072$as_echo "unsupported" >&6; } ;;
4073  *)
4074    CC="$CC $ac_cv_prog_cc_c99"
4075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4076$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4077esac
4078if test "x$ac_cv_prog_cc_c99" != xno; then :
4079  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4080else
4081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083if ${ac_cv_prog_cc_c89+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  ac_cv_prog_cc_c89=no
4087ac_save_CC=$CC
4088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090#include <stdarg.h>
4091#include <stdio.h>
4092struct stat;
4093/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4094struct buf { int x; };
4095FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096static char *e (p, i)
4097     char **p;
4098     int i;
4099{
4100  return p[i];
4101}
4102static char *f (char * (*g) (char **, int), char **p, ...)
4103{
4104  char *s;
4105  va_list v;
4106  va_start (v,p);
4107  s = g (p, va_arg (v,int));
4108  va_end (v);
4109  return s;
4110}
4111
4112/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4113   function prototypes and stuff, but not '\xHH' hex character constants.
4114   These don't provoke an error unfortunately, instead are silently treated
4115   as 'x'.  The following induces an error, until -std is added to get
4116   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4117   array size at least.  It's necessary to write '\x00'==0 to get something
4118   that's true only with -std.  */
4119int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4120
4121/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4122   inside strings and character constants.  */
4123#define FOO(x) 'x'
4124int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4125
4126int test (int i, double x);
4127struct s1 {int (*f) (int a);};
4128struct s2 {int (*f) (double a);};
4129int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4130int argc;
4131char **argv;
4132int
4133main ()
4134{
4135return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4141	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4142do
4143  CC="$ac_save_CC $ac_arg"
4144  if ac_fn_c_try_compile "$LINENO"; then :
4145  ac_cv_prog_cc_c89=$ac_arg
4146fi
4147rm -f core conftest.err conftest.$ac_objext
4148  test "x$ac_cv_prog_cc_c89" != "xno" && break
4149done
4150rm -f conftest.$ac_ext
4151CC=$ac_save_CC
4152
4153fi
4154# AC_CACHE_VAL
4155case "x$ac_cv_prog_cc_c89" in
4156  x)
4157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4158$as_echo "none needed" >&6; } ;;
4159  xno)
4160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161$as_echo "unsupported" >&6; } ;;
4162  *)
4163    CC="$CC $ac_cv_prog_cc_c89"
4164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4165$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4166esac
4167if test "x$ac_cv_prog_cc_c89" != xno; then :
4168  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4169else
4170  ac_cv_prog_cc_stdc=no
4171fi
4172
4173fi
4174 ;;
4175esac
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4177$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4178  if ${ac_cv_prog_cc_stdc+:} false; then :
4179  $as_echo_n "(cached) " >&6
4180fi
4181
4182  case $ac_cv_prog_cc_stdc in #(
4183  no) :
4184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185$as_echo "unsupported" >&6; } ;; #(
4186  '') :
4187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188$as_echo "none needed" >&6; } ;; #(
4189  *) :
4190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4191$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4192esac
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4200$as_echo_n "checking how to run the C preprocessor... " >&6; }
4201# On Suns, sometimes $CPP names a directory.
4202if test -n "$CPP" && test -d "$CPP"; then
4203  CPP=
4204fi
4205if test -z "$CPP"; then
4206  if ${ac_cv_prog_CPP+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209      # Double quotes because CPP needs to be expanded
4210    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211    do
4212      ac_preproc_ok=false
4213for ac_c_preproc_warn_flag in '' yes
4214do
4215  # Use a header file that comes with gcc, so configuring glibc
4216  # with a fresh cross-compiler works.
4217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218  # <limits.h> exists even on freestanding compilers.
4219  # On the NeXT, cc -E runs the code through the compiler's parser,
4220  # not just through cpp. "Syntax error" is here to catch this case.
4221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h.  */
4223#ifdef __STDC__
4224# include <limits.h>
4225#else
4226# include <assert.h>
4227#endif
4228		     Syntax error
4229_ACEOF
4230if ac_fn_c_try_cpp "$LINENO"; then :
4231
4232else
4233  # Broken: fails on valid input.
4234continue
4235fi
4236rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238  # OK, works on sane cases.  Now check whether nonexistent headers
4239  # can be detected and how.
4240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242#include <ac_nonexistent.h>
4243_ACEOF
4244if ac_fn_c_try_cpp "$LINENO"; then :
4245  # Broken: success on invalid input.
4246continue
4247else
4248  # Passes both tests.
4249ac_preproc_ok=:
4250break
4251fi
4252rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254done
4255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256rm -f conftest.i conftest.err conftest.$ac_ext
4257if $ac_preproc_ok; then :
4258  break
4259fi
4260
4261    done
4262    ac_cv_prog_CPP=$CPP
4263
4264fi
4265  CPP=$ac_cv_prog_CPP
4266else
4267  ac_cv_prog_CPP=$CPP
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4270$as_echo "$CPP" >&6; }
4271ac_preproc_ok=false
4272for ac_c_preproc_warn_flag in '' yes
4273do
4274  # Use a header file that comes with gcc, so configuring glibc
4275  # with a fresh cross-compiler works.
4276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277  # <limits.h> exists even on freestanding compilers.
4278  # On the NeXT, cc -E runs the code through the compiler's parser,
4279  # not just through cpp. "Syntax error" is here to catch this case.
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282#ifdef __STDC__
4283# include <limits.h>
4284#else
4285# include <assert.h>
4286#endif
4287		     Syntax error
4288_ACEOF
4289if ac_fn_c_try_cpp "$LINENO"; then :
4290
4291else
4292  # Broken: fails on valid input.
4293continue
4294fi
4295rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297  # OK, works on sane cases.  Now check whether nonexistent headers
4298  # can be detected and how.
4299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301#include <ac_nonexistent.h>
4302_ACEOF
4303if ac_fn_c_try_cpp "$LINENO"; then :
4304  # Broken: success on invalid input.
4305continue
4306else
4307  # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313done
4314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315rm -f conftest.i conftest.err conftest.$ac_ext
4316if $ac_preproc_ok; then :
4317
4318else
4319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4322See \`config.log' for more details" "$LINENO" 5; }
4323fi
4324
4325ac_ext=c
4326ac_cpp='$CPP $CPPFLAGS'
4327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335if ${ac_cv_path_GREP+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  if test -z "$GREP"; then
4339  ac_path_GREP_found=false
4340  # Loop through the user's path and test for each of PROGNAME-LIST
4341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346    for ac_prog in grep ggrep; do
4347    for ac_exec_ext in '' $ac_executable_extensions; do
4348      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349      as_fn_executable_p "$ac_path_GREP" || continue
4350# Check for GNU ac_path_GREP and select it if it is found.
4351  # Check for GNU $ac_path_GREP
4352case `"$ac_path_GREP" --version 2>&1` in
4353*GNU*)
4354  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4355*)
4356  ac_count=0
4357  $as_echo_n 0123456789 >"conftest.in"
4358  while :
4359  do
4360    cat "conftest.in" "conftest.in" >"conftest.tmp"
4361    mv "conftest.tmp" "conftest.in"
4362    cp "conftest.in" "conftest.nl"
4363    $as_echo 'GREP' >> "conftest.nl"
4364    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366    as_fn_arith $ac_count + 1 && ac_count=$as_val
4367    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368      # Best one so far, save it but keep looking for a better one
4369      ac_cv_path_GREP="$ac_path_GREP"
4370      ac_path_GREP_max=$ac_count
4371    fi
4372    # 10*(2^10) chars as input seems more than enough
4373    test $ac_count -gt 10 && break
4374  done
4375  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376esac
4377
4378      $ac_path_GREP_found && break 3
4379    done
4380  done
4381  done
4382IFS=$as_save_IFS
4383  if test -z "$ac_cv_path_GREP"; then
4384    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385  fi
4386else
4387  ac_cv_path_GREP=$GREP
4388fi
4389
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392$as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4394
4395
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397$as_echo_n "checking for egrep... " >&6; }
4398if ${ac_cv_path_EGREP+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402   then ac_cv_path_EGREP="$GREP -E"
4403   else
4404     if test -z "$EGREP"; then
4405  ac_path_EGREP_found=false
4406  # Loop through the user's path and test for each of PROGNAME-LIST
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_prog in egrep; do
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415      as_fn_executable_p "$ac_path_EGREP" || continue
4416# Check for GNU ac_path_EGREP and select it if it is found.
4417  # Check for GNU $ac_path_EGREP
4418case `"$ac_path_EGREP" --version 2>&1` in
4419*GNU*)
4420  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421*)
4422  ac_count=0
4423  $as_echo_n 0123456789 >"conftest.in"
4424  while :
4425  do
4426    cat "conftest.in" "conftest.in" >"conftest.tmp"
4427    mv "conftest.tmp" "conftest.in"
4428    cp "conftest.in" "conftest.nl"
4429    $as_echo 'EGREP' >> "conftest.nl"
4430    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432    as_fn_arith $ac_count + 1 && ac_count=$as_val
4433    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434      # Best one so far, save it but keep looking for a better one
4435      ac_cv_path_EGREP="$ac_path_EGREP"
4436      ac_path_EGREP_max=$ac_count
4437    fi
4438    # 10*(2^10) chars as input seems more than enough
4439    test $ac_count -gt 10 && break
4440  done
4441  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442esac
4443
4444      $ac_path_EGREP_found && break 3
4445    done
4446  done
4447  done
4448IFS=$as_save_IFS
4449  if test -z "$ac_cv_path_EGREP"; then
4450    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451  fi
4452else
4453  ac_cv_path_EGREP=$EGREP
4454fi
4455
4456   fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459$as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464$as_echo_n "checking for ANSI C header files... " >&6; }
4465if ${ac_cv_header_stdc+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470#include <stdlib.h>
4471#include <stdarg.h>
4472#include <string.h>
4473#include <float.h>
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
4484  ac_cv_header_stdc=yes
4485else
4486  ac_cv_header_stdc=no
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489
4490if test $ac_cv_header_stdc = yes; then
4491  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#include <string.h>
4495
4496_ACEOF
4497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498  $EGREP "memchr" >/dev/null 2>&1; then :
4499
4500else
4501  ac_cv_header_stdc=no
4502fi
4503rm -f conftest*
4504
4505fi
4506
4507if test $ac_cv_header_stdc = yes; then
4508  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <stdlib.h>
4512
4513_ACEOF
4514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515  $EGREP "free" >/dev/null 2>&1; then :
4516
4517else
4518  ac_cv_header_stdc=no
4519fi
4520rm -f conftest*
4521
4522fi
4523
4524if test $ac_cv_header_stdc = yes; then
4525  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526  if test "$cross_compiling" = yes; then :
4527  :
4528else
4529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531#include <ctype.h>
4532#include <stdlib.h>
4533#if ((' ' & 0x0FF) == 0x020)
4534# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536#else
4537# define ISLOWER(c) \
4538		   (('a' <= (c) && (c) <= 'i') \
4539		     || ('j' <= (c) && (c) <= 'r') \
4540		     || ('s' <= (c) && (c) <= 'z'))
4541# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542#endif
4543
4544#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4545int
4546main ()
4547{
4548  int i;
4549  for (i = 0; i < 256; i++)
4550    if (XOR (islower (i), ISLOWER (i))
4551	|| toupper (i) != TOUPPER (i))
4552      return 2;
4553  return 0;
4554}
4555_ACEOF
4556if ac_fn_c_try_run "$LINENO"; then :
4557
4558else
4559  ac_cv_header_stdc=no
4560fi
4561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562  conftest.$ac_objext conftest.beam conftest.$ac_ext
4563fi
4564
4565fi
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568$as_echo "$ac_cv_header_stdc" >&6; }
4569if test $ac_cv_header_stdc = yes; then
4570
4571$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4572
4573fi
4574
4575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577		  inttypes.h stdint.h unistd.h
4578do :
4579  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4581"
4582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583  cat >>confdefs.h <<_ACEOF
4584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585_ACEOF
4586
4587fi
4588
4589done
4590
4591
4592
4593  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594if test "x$ac_cv_header_minix_config_h" = xyes; then :
4595  MINIX=yes
4596else
4597  MINIX=
4598fi
4599
4600
4601  if test "$MINIX" = yes; then
4602
4603$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4604
4605
4606$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4607
4608
4609$as_echo "#define _MINIX 1" >>confdefs.h
4610
4611  fi
4612
4613
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616if ${ac_cv_safe_to_define___extensions__+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h.  */
4621
4622#         define __EXTENSIONS__ 1
4623          $ac_includes_default
4624int
4625main ()
4626{
4627
4628  ;
4629  return 0;
4630}
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633  ac_cv_safe_to_define___extensions__=yes
4634else
4635  ac_cv_safe_to_define___extensions__=no
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641  test $ac_cv_safe_to_define___extensions__ = yes &&
4642    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4643
4644  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4645
4646  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4647
4648  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4649
4650  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4651
4652
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4655$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4656if ${ac_cv_c_const+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662int
4663main ()
4664{
4665
4666#ifndef __cplusplus
4667  /* Ultrix mips cc rejects this sort of thing.  */
4668  typedef int charset[2];
4669  const charset cs = { 0, 0 };
4670  /* SunOS 4.1.1 cc rejects this.  */
4671  char const *const *pcpcc;
4672  char **ppc;
4673  /* NEC SVR4.0.2 mips cc rejects this.  */
4674  struct point {int x, y;};
4675  static struct point const zero = {0,0};
4676  /* AIX XL C 1.02.0.0 rejects this.
4677     It does not let you subtract one const X* pointer from another in
4678     an arm of an if-expression whose if-part is not a constant
4679     expression */
4680  const char *g = "string";
4681  pcpcc = &g + (g ? g-g : 0);
4682  /* HPUX 7.0 cc rejects these. */
4683  ++pcpcc;
4684  ppc = (char**) pcpcc;
4685  pcpcc = (char const *const *) ppc;
4686  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4687    char tx;
4688    char *t = &tx;
4689    char const *s = 0 ? (char *) 0 : (char const *) 0;
4690
4691    *t++ = 0;
4692    if (s) return 0;
4693  }
4694  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4695    int x[] = {25, 17};
4696    const int *foo = &x[0];
4697    ++foo;
4698  }
4699  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4700    typedef const int *iptr;
4701    iptr p = 0;
4702    ++p;
4703  }
4704  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4705       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4706    struct s { int j; const int *ap[3]; } bx;
4707    struct s *b = &bx; b->j = 5;
4708  }
4709  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4710    const int foo = 10;
4711    if (!foo) return 0;
4712  }
4713  return !cs[0] && !zero.x;
4714#endif
4715
4716  ;
4717  return 0;
4718}
4719_ACEOF
4720if ac_fn_c_try_compile "$LINENO"; then :
4721  ac_cv_c_const=yes
4722else
4723  ac_cv_c_const=no
4724fi
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726fi
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4728$as_echo "$ac_cv_c_const" >&6; }
4729if test $ac_cv_c_const = no; then
4730
4731$as_echo "#define const /**/" >>confdefs.h
4732
4733fi
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4736$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4737if ${ac_cv_c_restrict+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  ac_cv_c_restrict=no
4741   # The order here caters to the fact that C++ does not require restrict.
4742   for ac_kw in __restrict __restrict__ _Restrict restrict; do
4743     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745typedef int * int_ptr;
4746	int foo (int_ptr $ac_kw ip) {
4747	return ip[0];
4748       }
4749int
4750main ()
4751{
4752int s[1];
4753	int * $ac_kw t = s;
4754	t[0] = 0;
4755	return foo(t)
4756  ;
4757  return 0;
4758}
4759_ACEOF
4760if ac_fn_c_try_compile "$LINENO"; then :
4761  ac_cv_c_restrict=$ac_kw
4762fi
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764     test "$ac_cv_c_restrict" != no && break
4765   done
4766
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4769$as_echo "$ac_cv_c_restrict" >&6; }
4770
4771 case $ac_cv_c_restrict in
4772   restrict) ;;
4773   no) $as_echo "#define restrict /**/" >>confdefs.h
4774 ;;
4775   *)  cat >>confdefs.h <<_ACEOF
4776#define restrict $ac_cv_c_restrict
4777_ACEOF
4778 ;;
4779 esac
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4782$as_echo_n "checking for working volatile... " >&6; }
4783if ${ac_cv_c_volatile+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h.  */
4788
4789int
4790main ()
4791{
4792
4793volatile int x;
4794int * volatile y = (int *) 0;
4795return !x && !y;
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800if ac_fn_c_try_compile "$LINENO"; then :
4801  ac_cv_c_volatile=yes
4802else
4803  ac_cv_c_volatile=no
4804fi
4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806fi
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4808$as_echo "$ac_cv_c_volatile" >&6; }
4809if test $ac_cv_c_volatile = no; then
4810
4811$as_echo "#define volatile /**/" >>confdefs.h
4812
4813fi
4814
4815
4816# libtool
4817
4818case `pwd` in
4819  *\ * | *\	*)
4820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4822esac
4823
4824
4825
4826macro_version='2.4.2'
4827macro_revision='1.3337'
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841ltmain="$ac_aux_dir/ltmain.sh"
4842
4843# Make sure we can run config.sub.
4844$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4845  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4846
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848$as_echo_n "checking build system type... " >&6; }
4849if ${ac_cv_build+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  ac_build_alias=$build_alias
4853test "x$ac_build_alias" = x &&
4854  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4855test "x$ac_build_alias" = x &&
4856  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4857ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4858  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4859
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4862$as_echo "$ac_cv_build" >&6; }
4863case $ac_cv_build in
4864*-*-*) ;;
4865*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4866esac
4867build=$ac_cv_build
4868ac_save_IFS=$IFS; IFS='-'
4869set x $ac_cv_build
4870shift
4871build_cpu=$1
4872build_vendor=$2
4873shift; shift
4874# Remember, the first character of IFS is used to create $*,
4875# except with old shells:
4876build_os=$*
4877IFS=$ac_save_IFS
4878case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4879
4880
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4882$as_echo_n "checking host system type... " >&6; }
4883if ${ac_cv_host+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  if test "x$host_alias" = x; then
4887  ac_cv_host=$ac_cv_build
4888else
4889  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4890    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4891fi
4892
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4895$as_echo "$ac_cv_host" >&6; }
4896case $ac_cv_host in
4897*-*-*) ;;
4898*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4899esac
4900host=$ac_cv_host
4901ac_save_IFS=$IFS; IFS='-'
4902set x $ac_cv_host
4903shift
4904host_cpu=$1
4905host_vendor=$2
4906shift; shift
4907# Remember, the first character of IFS is used to create $*,
4908# except with old shells:
4909host_os=$*
4910IFS=$ac_save_IFS
4911case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4912
4913
4914# Backslashify metacharacters that are still active within
4915# double-quoted strings.
4916sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4917
4918# Same as above, but do not quote variable references.
4919double_quote_subst='s/\(["`\\]\)/\\\1/g'
4920
4921# Sed substitution to delay expansion of an escaped shell variable in a
4922# double_quote_subst'ed string.
4923delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924
4925# Sed substitution to delay expansion of an escaped single quote.
4926delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4927
4928# Sed substitution to avoid accidental globbing in evaled expressions
4929no_glob_subst='s/\*/\\\*/g'
4930
4931ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4932ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4933ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4934
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4936$as_echo_n "checking how to print strings... " >&6; }
4937# Test print first, because it will be a builtin if present.
4938if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4939   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4940  ECHO='print -r --'
4941elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4942  ECHO='printf %s\n'
4943else
4944  # Use this function as a fallback that always works.
4945  func_fallback_echo ()
4946  {
4947    eval 'cat <<_LTECHO_EOF
4948$1
4949_LTECHO_EOF'
4950  }
4951  ECHO='func_fallback_echo'
4952fi
4953
4954# func_echo_all arg...
4955# Invoke $ECHO with all args, space-separated.
4956func_echo_all ()
4957{
4958    $ECHO ""
4959}
4960
4961case "$ECHO" in
4962  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4963$as_echo "printf" >&6; } ;;
4964  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4965$as_echo "print -r" >&6; } ;;
4966  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4967$as_echo "cat" >&6; } ;;
4968esac
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4984$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4985if ${ac_cv_path_SED+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4989     for ac_i in 1 2 3 4 5 6 7; do
4990       ac_script="$ac_script$as_nl$ac_script"
4991     done
4992     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4993     { ac_script=; unset ac_script;}
4994     if test -z "$SED"; then
4995  ac_path_SED_found=false
4996  # Loop through the user's path and test for each of PROGNAME-LIST
4997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000  IFS=$as_save_IFS
5001  test -z "$as_dir" && as_dir=.
5002    for ac_prog in sed gsed; do
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5005      as_fn_executable_p "$ac_path_SED" || continue
5006# Check for GNU ac_path_SED and select it if it is found.
5007  # Check for GNU $ac_path_SED
5008case `"$ac_path_SED" --version 2>&1` in
5009*GNU*)
5010  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5011*)
5012  ac_count=0
5013  $as_echo_n 0123456789 >"conftest.in"
5014  while :
5015  do
5016    cat "conftest.in" "conftest.in" >"conftest.tmp"
5017    mv "conftest.tmp" "conftest.in"
5018    cp "conftest.in" "conftest.nl"
5019    $as_echo '' >> "conftest.nl"
5020    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022    as_fn_arith $ac_count + 1 && ac_count=$as_val
5023    if test $ac_count -gt ${ac_path_SED_max-0}; then
5024      # Best one so far, save it but keep looking for a better one
5025      ac_cv_path_SED="$ac_path_SED"
5026      ac_path_SED_max=$ac_count
5027    fi
5028    # 10*(2^10) chars as input seems more than enough
5029    test $ac_count -gt 10 && break
5030  done
5031  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032esac
5033
5034      $ac_path_SED_found && break 3
5035    done
5036  done
5037  done
5038IFS=$as_save_IFS
5039  if test -z "$ac_cv_path_SED"; then
5040    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5041  fi
5042else
5043  ac_cv_path_SED=$SED
5044fi
5045
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5048$as_echo "$ac_cv_path_SED" >&6; }
5049 SED="$ac_cv_path_SED"
5050  rm -f conftest.sed
5051
5052test -z "$SED" && SED=sed
5053Xsed="$SED -e 1s/^X//"
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5066$as_echo_n "checking for fgrep... " >&6; }
5067if ${ac_cv_path_FGREP+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5071   then ac_cv_path_FGREP="$GREP -F"
5072   else
5073     if test -z "$FGREP"; then
5074  ac_path_FGREP_found=false
5075  # Loop through the user's path and test for each of PROGNAME-LIST
5076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078do
5079  IFS=$as_save_IFS
5080  test -z "$as_dir" && as_dir=.
5081    for ac_prog in fgrep; do
5082    for ac_exec_ext in '' $ac_executable_extensions; do
5083      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5084      as_fn_executable_p "$ac_path_FGREP" || continue
5085# Check for GNU ac_path_FGREP and select it if it is found.
5086  # Check for GNU $ac_path_FGREP
5087case `"$ac_path_FGREP" --version 2>&1` in
5088*GNU*)
5089  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5090*)
5091  ac_count=0
5092  $as_echo_n 0123456789 >"conftest.in"
5093  while :
5094  do
5095    cat "conftest.in" "conftest.in" >"conftest.tmp"
5096    mv "conftest.tmp" "conftest.in"
5097    cp "conftest.in" "conftest.nl"
5098    $as_echo 'FGREP' >> "conftest.nl"
5099    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101    as_fn_arith $ac_count + 1 && ac_count=$as_val
5102    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5103      # Best one so far, save it but keep looking for a better one
5104      ac_cv_path_FGREP="$ac_path_FGREP"
5105      ac_path_FGREP_max=$ac_count
5106    fi
5107    # 10*(2^10) chars as input seems more than enough
5108    test $ac_count -gt 10 && break
5109  done
5110  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111esac
5112
5113      $ac_path_FGREP_found && break 3
5114    done
5115  done
5116  done
5117IFS=$as_save_IFS
5118  if test -z "$ac_cv_path_FGREP"; then
5119    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5120  fi
5121else
5122  ac_cv_path_FGREP=$FGREP
5123fi
5124
5125   fi
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5128$as_echo "$ac_cv_path_FGREP" >&6; }
5129 FGREP="$ac_cv_path_FGREP"
5130
5131
5132test -z "$GREP" && GREP=grep
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152# Check whether --with-gnu-ld was given.
5153if test "${with_gnu_ld+set}" = set; then :
5154  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5155else
5156  with_gnu_ld=no
5157fi
5158
5159ac_prog=ld
5160if test "$GCC" = yes; then
5161  # Check if gcc -print-prog-name=ld gives a path.
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5163$as_echo_n "checking for ld used by $CC... " >&6; }
5164  case $host in
5165  *-*-mingw*)
5166    # gcc leaves a trailing carriage return which upsets mingw
5167    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5168  *)
5169    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5170  esac
5171  case $ac_prog in
5172    # Accept absolute paths.
5173    [\\/]* | ?:[\\/]*)
5174      re_direlt='/[^/][^/]*/\.\./'
5175      # Canonicalize the pathname of ld
5176      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5177      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5178	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5179      done
5180      test -z "$LD" && LD="$ac_prog"
5181      ;;
5182  "")
5183    # If it fails, then pretend we aren't using GCC.
5184    ac_prog=ld
5185    ;;
5186  *)
5187    # If it is relative, then search for the first ld in PATH.
5188    with_gnu_ld=unknown
5189    ;;
5190  esac
5191elif test "$with_gnu_ld" = yes; then
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5193$as_echo_n "checking for GNU ld... " >&6; }
5194else
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5196$as_echo_n "checking for non-GNU ld... " >&6; }
5197fi
5198if ${lt_cv_path_LD+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  if test -z "$LD"; then
5202  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5203  for ac_dir in $PATH; do
5204    IFS="$lt_save_ifs"
5205    test -z "$ac_dir" && ac_dir=.
5206    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5207      lt_cv_path_LD="$ac_dir/$ac_prog"
5208      # Check to see if the program is GNU ld.  I'd rather use --version,
5209      # but apparently some variants of GNU ld only accept -v.
5210      # Break only if it was the GNU/non-GNU ld that we prefer.
5211      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5212      *GNU* | *'with BFD'*)
5213	test "$with_gnu_ld" != no && break
5214	;;
5215      *)
5216	test "$with_gnu_ld" != yes && break
5217	;;
5218      esac
5219    fi
5220  done
5221  IFS="$lt_save_ifs"
5222else
5223  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5224fi
5225fi
5226
5227LD="$lt_cv_path_LD"
5228if test -n "$LD"; then
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5230$as_echo "$LD" >&6; }
5231else
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5237$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5238if ${lt_cv_prog_gnu_ld+:} false; then :
5239  $as_echo_n "(cached) " >&6
5240else
5241  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242case `$LD -v 2>&1 </dev/null` in
5243*GNU* | *'with BFD'*)
5244  lt_cv_prog_gnu_ld=yes
5245  ;;
5246*)
5247  lt_cv_prog_gnu_ld=no
5248  ;;
5249esac
5250fi
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5252$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5253with_gnu_ld=$lt_cv_prog_gnu_ld
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5264$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5265if ${lt_cv_path_NM+:} false; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268  if test -n "$NM"; then
5269  # Let the user override the test.
5270  lt_cv_path_NM="$NM"
5271else
5272  lt_nm_to_check="${ac_tool_prefix}nm"
5273  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5274    lt_nm_to_check="$lt_nm_to_check nm"
5275  fi
5276  for lt_tmp_nm in $lt_nm_to_check; do
5277    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5278    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5279      IFS="$lt_save_ifs"
5280      test -z "$ac_dir" && ac_dir=.
5281      tmp_nm="$ac_dir/$lt_tmp_nm"
5282      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5283	# Check to see if the nm accepts a BSD-compat flag.
5284	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5285	#   nm: unknown option "B" ignored
5286	# Tru64's nm complains that /dev/null is an invalid object file
5287	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5288	*/dev/null* | *'Invalid file or object type'*)
5289	  lt_cv_path_NM="$tmp_nm -B"
5290	  break
5291	  ;;
5292	*)
5293	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5294	  */dev/null*)
5295	    lt_cv_path_NM="$tmp_nm -p"
5296	    break
5297	    ;;
5298	  *)
5299	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5300	    continue # so that we can try to find one that supports BSD flags
5301	    ;;
5302	  esac
5303	  ;;
5304	esac
5305      fi
5306    done
5307    IFS="$lt_save_ifs"
5308  done
5309  : ${lt_cv_path_NM=no}
5310fi
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5313$as_echo "$lt_cv_path_NM" >&6; }
5314if test "$lt_cv_path_NM" != "no"; then
5315  NM="$lt_cv_path_NM"
5316else
5317  # Didn't find any BSD compatible name lister, look for dumpbin.
5318  if test -n "$DUMPBIN"; then :
5319    # Let the user override the test.
5320  else
5321    if test -n "$ac_tool_prefix"; then
5322  for ac_prog in dumpbin "link -dump"
5323  do
5324    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; }
5328if ${ac_cv_prog_DUMPBIN+:} false; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  if test -n "$DUMPBIN"; then
5332  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5333else
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337  IFS=$as_save_IFS
5338  test -z "$as_dir" && as_dir=.
5339    for ac_exec_ext in '' $ac_executable_extensions; do
5340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343    break 2
5344  fi
5345done
5346  done
5347IFS=$as_save_IFS
5348
5349fi
5350fi
5351DUMPBIN=$ac_cv_prog_DUMPBIN
5352if test -n "$DUMPBIN"; then
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5354$as_echo "$DUMPBIN" >&6; }
5355else
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357$as_echo "no" >&6; }
5358fi
5359
5360
5361    test -n "$DUMPBIN" && break
5362  done
5363fi
5364if test -z "$DUMPBIN"; then
5365  ac_ct_DUMPBIN=$DUMPBIN
5366  for ac_prog in dumpbin "link -dump"
5367do
5368  # Extract the first word of "$ac_prog", so it can be a program name with args.
5369set dummy $ac_prog; ac_word=$2
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371$as_echo_n "checking for $ac_word... " >&6; }
5372if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  if test -n "$ac_ct_DUMPBIN"; then
5376  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5377else
5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381  IFS=$as_save_IFS
5382  test -z "$as_dir" && as_dir=.
5383    for ac_exec_ext in '' $ac_executable_extensions; do
5384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387    break 2
5388  fi
5389done
5390  done
5391IFS=$as_save_IFS
5392
5393fi
5394fi
5395ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5396if test -n "$ac_ct_DUMPBIN"; then
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5398$as_echo "$ac_ct_DUMPBIN" >&6; }
5399else
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5402fi
5403
5404
5405  test -n "$ac_ct_DUMPBIN" && break
5406done
5407
5408  if test "x$ac_ct_DUMPBIN" = x; then
5409    DUMPBIN=":"
5410  else
5411    case $cross_compiling:$ac_tool_warned in
5412yes:)
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415ac_tool_warned=yes ;;
5416esac
5417    DUMPBIN=$ac_ct_DUMPBIN
5418  fi
5419fi
5420
5421    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5422    *COFF*)
5423      DUMPBIN="$DUMPBIN -symbols"
5424      ;;
5425    *)
5426      DUMPBIN=:
5427      ;;
5428    esac
5429  fi
5430
5431  if test "$DUMPBIN" != ":"; then
5432    NM="$DUMPBIN"
5433  fi
5434fi
5435test -z "$NM" && NM=nm
5436
5437
5438
5439
5440
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5443$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5444if ${lt_cv_nm_interface+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  lt_cv_nm_interface="BSD nm"
5448  echo "int some_variable = 0;" > conftest.$ac_ext
5449  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5450  (eval "$ac_compile" 2>conftest.err)
5451  cat conftest.err >&5
5452  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5453  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5454  cat conftest.err >&5
5455  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5456  cat conftest.out >&5
5457  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5458    lt_cv_nm_interface="MS dumpbin"
5459  fi
5460  rm -f conftest*
5461fi
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5463$as_echo "$lt_cv_nm_interface" >&6; }
5464
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5466$as_echo_n "checking whether ln -s works... " >&6; }
5467LN_S=$as_ln_s
5468if test "$LN_S" = "ln -s"; then
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470$as_echo "yes" >&6; }
5471else
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5473$as_echo "no, using $LN_S" >&6; }
5474fi
5475
5476# find the maximum length of command line arguments
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5478$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5479if ${lt_cv_sys_max_cmd_len+:} false; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482    i=0
5483  teststring="ABCD"
5484
5485  case $build_os in
5486  msdosdjgpp*)
5487    # On DJGPP, this test can blow up pretty badly due to problems in libc
5488    # (any single argument exceeding 2000 bytes causes a buffer overrun
5489    # during glob expansion).  Even if it were fixed, the result of this
5490    # check would be larger than it should be.
5491    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5492    ;;
5493
5494  gnu*)
5495    # Under GNU Hurd, this test is not required because there is
5496    # no limit to the length of command line arguments.
5497    # Libtool will interpret -1 as no limit whatsoever
5498    lt_cv_sys_max_cmd_len=-1;
5499    ;;
5500
5501  cygwin* | mingw* | cegcc*)
5502    # On Win9x/ME, this test blows up -- it succeeds, but takes
5503    # about 5 minutes as the teststring grows exponentially.
5504    # Worse, since 9x/ME are not pre-emptively multitasking,
5505    # you end up with a "frozen" computer, even though with patience
5506    # the test eventually succeeds (with a max line length of 256k).
5507    # Instead, let's just punt: use the minimum linelength reported by
5508    # all of the supported platforms: 8192 (on NT/2K/XP).
5509    lt_cv_sys_max_cmd_len=8192;
5510    ;;
5511
5512  mint*)
5513    # On MiNT this can take a long time and run out of memory.
5514    lt_cv_sys_max_cmd_len=8192;
5515    ;;
5516
5517  amigaos*)
5518    # On AmigaOS with pdksh, this test takes hours, literally.
5519    # So we just punt and use a minimum line length of 8192.
5520    lt_cv_sys_max_cmd_len=8192;
5521    ;;
5522
5523  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5524    # This has been around since 386BSD, at least.  Likely further.
5525    if test -x /sbin/sysctl; then
5526      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5527    elif test -x /usr/sbin/sysctl; then
5528      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5529    else
5530      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5531    fi
5532    # And add a safety zone
5533    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5534    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5535    ;;
5536
5537  interix*)
5538    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5539    lt_cv_sys_max_cmd_len=196608
5540    ;;
5541
5542  os2*)
5543    # The test takes a long time on OS/2.
5544    lt_cv_sys_max_cmd_len=8192
5545    ;;
5546
5547  osf*)
5548    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5549    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5550    # nice to cause kernel panics so lets avoid the loop below.
5551    # First set a reasonable default.
5552    lt_cv_sys_max_cmd_len=16384
5553    #
5554    if test -x /sbin/sysconfig; then
5555      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5556        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5557      esac
5558    fi
5559    ;;
5560  sco3.2v5*)
5561    lt_cv_sys_max_cmd_len=102400
5562    ;;
5563  sysv5* | sco5v6* | sysv4.2uw2*)
5564    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5565    if test -n "$kargmax"; then
5566      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5567    else
5568      lt_cv_sys_max_cmd_len=32768
5569    fi
5570    ;;
5571  *)
5572    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5573    if test -n "$lt_cv_sys_max_cmd_len"; then
5574      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5576    else
5577      # Make teststring a little bigger before we do anything with it.
5578      # a 1K string should be a reasonable start.
5579      for i in 1 2 3 4 5 6 7 8 ; do
5580        teststring=$teststring$teststring
5581      done
5582      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5583      # If test is not a shell built-in, we'll probably end up computing a
5584      # maximum length that is only half of the actual maximum length, but
5585      # we can't tell.
5586      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5587	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5588	      test $i != 17 # 1/2 MB should be enough
5589      do
5590        i=`expr $i + 1`
5591        teststring=$teststring$teststring
5592      done
5593      # Only check the string length outside the loop.
5594      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5595      teststring=
5596      # Add a significant safety factor because C++ compilers can tack on
5597      # massive amounts of additional arguments before passing them to the
5598      # linker.  It appears as though 1/2 is a usable value.
5599      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5600    fi
5601    ;;
5602  esac
5603
5604fi
5605
5606if test -n $lt_cv_sys_max_cmd_len ; then
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5608$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5609else
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5611$as_echo "none" >&6; }
5612fi
5613max_cmd_len=$lt_cv_sys_max_cmd_len
5614
5615
5616
5617
5618
5619
5620: ${CP="cp -f"}
5621: ${MV="mv -f"}
5622: ${RM="rm -f"}
5623
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5625$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5626# Try some XSI features
5627xsi_shell=no
5628( _lt_dummy="a/b/c"
5629  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5630      = c,a/b,b/c, \
5631    && eval 'test $(( 1 + 1 )) -eq 2 \
5632    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5633  && xsi_shell=yes
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5635$as_echo "$xsi_shell" >&6; }
5636
5637
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5639$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5640lt_shell_append=no
5641( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5642    >/dev/null 2>&1 \
5643  && lt_shell_append=yes
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5645$as_echo "$lt_shell_append" >&6; }
5646
5647
5648if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5649  lt_unset=unset
5650else
5651  lt_unset=false
5652fi
5653
5654
5655
5656
5657
5658# test EBCDIC or ASCII
5659case `echo X|tr X '\101'` in
5660 A) # ASCII based system
5661    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5662  lt_SP2NL='tr \040 \012'
5663  lt_NL2SP='tr \015\012 \040\040'
5664  ;;
5665 *) # EBCDIC based system
5666  lt_SP2NL='tr \100 \n'
5667  lt_NL2SP='tr \r\n \100\100'
5668  ;;
5669esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5680$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5681if ${lt_cv_to_host_file_cmd+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  case $host in
5685  *-*-mingw* )
5686    case $build in
5687      *-*-mingw* ) # actually msys
5688        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5689        ;;
5690      *-*-cygwin* )
5691        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5692        ;;
5693      * ) # otherwise, assume *nix
5694        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5695        ;;
5696    esac
5697    ;;
5698  *-*-cygwin* )
5699    case $build in
5700      *-*-mingw* ) # actually msys
5701        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5702        ;;
5703      *-*-cygwin* )
5704        lt_cv_to_host_file_cmd=func_convert_file_noop
5705        ;;
5706      * ) # otherwise, assume *nix
5707        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5708        ;;
5709    esac
5710    ;;
5711  * ) # unhandled hosts (and "normal" native builds)
5712    lt_cv_to_host_file_cmd=func_convert_file_noop
5713    ;;
5714esac
5715
5716fi
5717
5718to_host_file_cmd=$lt_cv_to_host_file_cmd
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5720$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5721
5722
5723
5724
5725
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5727$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5728if ${lt_cv_to_tool_file_cmd+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  #assume ordinary cross tools, or native build.
5732lt_cv_to_tool_file_cmd=func_convert_file_noop
5733case $host in
5734  *-*-mingw* )
5735    case $build in
5736      *-*-mingw* ) # actually msys
5737        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5738        ;;
5739    esac
5740    ;;
5741esac
5742
5743fi
5744
5745to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5747$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5748
5749
5750
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5754$as_echo_n "checking for $LD option to reload object files... " >&6; }
5755if ${lt_cv_ld_reload_flag+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  lt_cv_ld_reload_flag='-r'
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5761$as_echo "$lt_cv_ld_reload_flag" >&6; }
5762reload_flag=$lt_cv_ld_reload_flag
5763case $reload_flag in
5764"" | " "*) ;;
5765*) reload_flag=" $reload_flag" ;;
5766esac
5767reload_cmds='$LD$reload_flag -o $output$reload_objs'
5768case $host_os in
5769  cygwin* | mingw* | pw32* | cegcc*)
5770    if test "$GCC" != yes; then
5771      reload_cmds=false
5772    fi
5773    ;;
5774  darwin*)
5775    if test "$GCC" = yes; then
5776      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5777    else
5778      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779    fi
5780    ;;
5781esac
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791if test -n "$ac_tool_prefix"; then
5792  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5793set dummy ${ac_tool_prefix}objdump; ac_word=$2
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
5796if ${ac_cv_prog_OBJDUMP+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  if test -n "$OBJDUMP"; then
5800  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805  IFS=$as_save_IFS
5806  test -z "$as_dir" && as_dir=.
5807    for ac_exec_ext in '' $ac_executable_extensions; do
5808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811    break 2
5812  fi
5813done
5814  done
5815IFS=$as_save_IFS
5816
5817fi
5818fi
5819OBJDUMP=$ac_cv_prog_OBJDUMP
5820if test -n "$OBJDUMP"; then
5821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5822$as_echo "$OBJDUMP" >&6; }
5823else
5824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825$as_echo "no" >&6; }
5826fi
5827
5828
5829fi
5830if test -z "$ac_cv_prog_OBJDUMP"; then
5831  ac_ct_OBJDUMP=$OBJDUMP
5832  # Extract the first word of "objdump", so it can be a program name with args.
5833set dummy objdump; ac_word=$2
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835$as_echo_n "checking for $ac_word... " >&6; }
5836if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  if test -n "$ac_ct_OBJDUMP"; then
5840  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5841else
5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845  IFS=$as_save_IFS
5846  test -z "$as_dir" && as_dir=.
5847    for ac_exec_ext in '' $ac_executable_extensions; do
5848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851    break 2
5852  fi
5853done
5854  done
5855IFS=$as_save_IFS
5856
5857fi
5858fi
5859ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5860if test -n "$ac_ct_OBJDUMP"; then
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5862$as_echo "$ac_ct_OBJDUMP" >&6; }
5863else
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866fi
5867
5868  if test "x$ac_ct_OBJDUMP" = x; then
5869    OBJDUMP="false"
5870  else
5871    case $cross_compiling:$ac_tool_warned in
5872yes:)
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875ac_tool_warned=yes ;;
5876esac
5877    OBJDUMP=$ac_ct_OBJDUMP
5878  fi
5879else
5880  OBJDUMP="$ac_cv_prog_OBJDUMP"
5881fi
5882
5883test -z "$OBJDUMP" && OBJDUMP=objdump
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5894$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5895if ${lt_cv_deplibs_check_method+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  lt_cv_file_magic_cmd='$MAGIC_CMD'
5899lt_cv_file_magic_test_file=
5900lt_cv_deplibs_check_method='unknown'
5901# Need to set the preceding variable on all platforms that support
5902# interlibrary dependencies.
5903# 'none' -- dependencies not supported.
5904# `unknown' -- same as none, but documents that we really don't know.
5905# 'pass_all' -- all dependencies passed with no checks.
5906# 'test_compile' -- check by making test program.
5907# 'file_magic [[regex]]' -- check by looking for files in library path
5908# which responds to the $file_magic_cmd with a given extended regex.
5909# If you have `file' or equivalent on your system and you're not sure
5910# whether `pass_all' will *always* work, you probably want this one.
5911
5912case $host_os in
5913aix[4-9]*)
5914  lt_cv_deplibs_check_method=pass_all
5915  ;;
5916
5917beos*)
5918  lt_cv_deplibs_check_method=pass_all
5919  ;;
5920
5921bsdi[45]*)
5922  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5923  lt_cv_file_magic_cmd='/usr/bin/file -L'
5924  lt_cv_file_magic_test_file=/shlib/libc.so
5925  ;;
5926
5927cygwin*)
5928  # func_win32_libid is a shell function defined in ltmain.sh
5929  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930  lt_cv_file_magic_cmd='func_win32_libid'
5931  ;;
5932
5933mingw* | pw32*)
5934  # Base MSYS/MinGW do not provide the 'file' command needed by
5935  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5936  # unless we find 'file', for example because we are cross-compiling.
5937  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5938  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5939    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5940    lt_cv_file_magic_cmd='func_win32_libid'
5941  else
5942    # Keep this pattern in sync with the one in func_win32_libid.
5943    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5944    lt_cv_file_magic_cmd='$OBJDUMP -f'
5945  fi
5946  ;;
5947
5948cegcc*)
5949  # use the weaker test based on 'objdump'. See mingw*.
5950  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5951  lt_cv_file_magic_cmd='$OBJDUMP -f'
5952  ;;
5953
5954darwin* | rhapsody*)
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958freebsd* | dragonfly*)
5959  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960    case $host_cpu in
5961    i*86 )
5962      # Not sure whether the presence of OpenBSD here was a mistake.
5963      # Let's accept both of them until this is cleared up.
5964      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5965      lt_cv_file_magic_cmd=/usr/bin/file
5966      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5967      ;;
5968    esac
5969  else
5970    lt_cv_deplibs_check_method=pass_all
5971  fi
5972  ;;
5973
5974gnu*)
5975  lt_cv_deplibs_check_method=pass_all
5976  ;;
5977
5978haiku*)
5979  lt_cv_deplibs_check_method=pass_all
5980  ;;
5981
5982hpux10.20* | hpux11*)
5983  lt_cv_file_magic_cmd=/usr/bin/file
5984  case $host_cpu in
5985  ia64*)
5986    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5987    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5988    ;;
5989  hppa*64*)
5990    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]'
5991    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5992    ;;
5993  *)
5994    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5995    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5996    ;;
5997  esac
5998  ;;
5999
6000interix[3-9]*)
6001  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6002  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6003  ;;
6004
6005irix5* | irix6* | nonstopux*)
6006  case $LD in
6007  *-32|*"-32 ") libmagic=32-bit;;
6008  *-n32|*"-n32 ") libmagic=N32;;
6009  *-64|*"-64 ") libmagic=64-bit;;
6010  *) libmagic=never-match;;
6011  esac
6012  lt_cv_deplibs_check_method=pass_all
6013  ;;
6014
6015# This must be glibc/ELF.
6016linux* | k*bsd*-gnu | kopensolaris*-gnu)
6017  lt_cv_deplibs_check_method=pass_all
6018  ;;
6019
6020netbsd*)
6021  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6023  else
6024    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6025  fi
6026  ;;
6027
6028newos6*)
6029  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6030  lt_cv_file_magic_cmd=/usr/bin/file
6031  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6032  ;;
6033
6034*nto* | *qnx*)
6035  lt_cv_deplibs_check_method=pass_all
6036  ;;
6037
6038openbsd*)
6039  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6041  else
6042    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6043  fi
6044  ;;
6045
6046osf3* | osf4* | osf5*)
6047  lt_cv_deplibs_check_method=pass_all
6048  ;;
6049
6050rdos*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054solaris*)
6055  lt_cv_deplibs_check_method=pass_all
6056  ;;
6057
6058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6059  lt_cv_deplibs_check_method=pass_all
6060  ;;
6061
6062sysv4 | sysv4.3*)
6063  case $host_vendor in
6064  motorola)
6065    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]'
6066    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6067    ;;
6068  ncr)
6069    lt_cv_deplibs_check_method=pass_all
6070    ;;
6071  sequent)
6072    lt_cv_file_magic_cmd='/bin/file'
6073    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6074    ;;
6075  sni)
6076    lt_cv_file_magic_cmd='/bin/file'
6077    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6078    lt_cv_file_magic_test_file=/lib/libc.so
6079    ;;
6080  siemens)
6081    lt_cv_deplibs_check_method=pass_all
6082    ;;
6083  pc)
6084    lt_cv_deplibs_check_method=pass_all
6085    ;;
6086  esac
6087  ;;
6088
6089tpf*)
6090  lt_cv_deplibs_check_method=pass_all
6091  ;;
6092esac
6093
6094fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6096$as_echo "$lt_cv_deplibs_check_method" >&6; }
6097
6098file_magic_glob=
6099want_nocaseglob=no
6100if test "$build" = "$host"; then
6101  case $host_os in
6102  mingw* | pw32*)
6103    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6104      want_nocaseglob=yes
6105    else
6106      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6107    fi
6108    ;;
6109  esac
6110fi
6111
6112file_magic_cmd=$lt_cv_file_magic_cmd
6113deplibs_check_method=$lt_cv_deplibs_check_method
6114test -z "$deplibs_check_method" && deplibs_check_method=unknown
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137if test -n "$ac_tool_prefix"; then
6138  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6139set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if ${ac_cv_prog_DLLTOOL+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  if test -n "$DLLTOOL"; then
6146  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153    for ac_exec_ext in '' $ac_executable_extensions; do
6154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160  done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165DLLTOOL=$ac_cv_prog_DLLTOOL
6166if test -n "$DLLTOOL"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6168$as_echo "$DLLTOOL" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174
6175fi
6176if test -z "$ac_cv_prog_DLLTOOL"; then
6177  ac_ct_DLLTOOL=$DLLTOOL
6178  # Extract the first word of "dlltool", so it can be a program name with args.
6179set dummy dlltool; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$ac_ct_DLLTOOL"; then
6186  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6206if test -n "$ac_ct_DLLTOOL"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6208$as_echo "$ac_ct_DLLTOOL" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214  if test "x$ac_ct_DLLTOOL" = x; then
6215    DLLTOOL="false"
6216  else
6217    case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223    DLLTOOL=$ac_ct_DLLTOOL
6224  fi
6225else
6226  DLLTOOL="$ac_cv_prog_DLLTOOL"
6227fi
6228
6229test -z "$DLLTOOL" && DLLTOOL=dlltool
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6241$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6242if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  lt_cv_sharedlib_from_linklib_cmd='unknown'
6246
6247case $host_os in
6248cygwin* | mingw* | pw32* | cegcc*)
6249  # two different shell functions defined in ltmain.sh
6250  # decide which to use based on capabilities of $DLLTOOL
6251  case `$DLLTOOL --help 2>&1` in
6252  *--identify-strict*)
6253    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6254    ;;
6255  *)
6256    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6257    ;;
6258  esac
6259  ;;
6260*)
6261  # fallback: assume linklib IS sharedlib
6262  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6263  ;;
6264esac
6265
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6268$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6269sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6270test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6271
6272
6273
6274
6275
6276
6277
6278if test -n "$ac_tool_prefix"; then
6279  for ac_prog in ar
6280  do
6281    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if ${ac_cv_prog_AR+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  if test -n "$AR"; then
6289  ac_cv_prog_AR="$AR" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294  IFS=$as_save_IFS
6295  test -z "$as_dir" && as_dir=.
6296    for ac_exec_ext in '' $ac_executable_extensions; do
6297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300    break 2
6301  fi
6302done
6303  done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308AR=$ac_cv_prog_AR
6309if test -n "$AR"; then
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6311$as_echo "$AR" >&6; }
6312else
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318    test -n "$AR" && break
6319  done
6320fi
6321if test -z "$AR"; then
6322  ac_ct_AR=$AR
6323  for ac_prog in ar
6324do
6325  # Extract the first word of "$ac_prog", so it can be a program name with args.
6326set dummy $ac_prog; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if ${ac_cv_prog_ac_ct_AR+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  if test -n "$ac_ct_AR"; then
6333  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338  IFS=$as_save_IFS
6339  test -z "$as_dir" && as_dir=.
6340    for ac_exec_ext in '' $ac_executable_extensions; do
6341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342    ac_cv_prog_ac_ct_AR="$ac_prog"
6343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344    break 2
6345  fi
6346done
6347  done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_AR=$ac_cv_prog_ac_ct_AR
6353if test -n "$ac_ct_AR"; then
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6355$as_echo "$ac_ct_AR" >&6; }
6356else
6357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361
6362  test -n "$ac_ct_AR" && break
6363done
6364
6365  if test "x$ac_ct_AR" = x; then
6366    AR="false"
6367  else
6368    case $cross_compiling:$ac_tool_warned in
6369yes:)
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372ac_tool_warned=yes ;;
6373esac
6374    AR=$ac_ct_AR
6375  fi
6376fi
6377
6378: ${AR=ar}
6379: ${AR_FLAGS=cru}
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6392$as_echo_n "checking for archiver @FILE support... " >&6; }
6393if ${lt_cv_ar_at_file+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  lt_cv_ar_at_file=no
6397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h.  */
6399
6400int
6401main ()
6402{
6403
6404  ;
6405  return 0;
6406}
6407_ACEOF
6408if ac_fn_c_try_compile "$LINENO"; then :
6409  echo conftest.$ac_objext > conftest.lst
6410      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6411      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6412  (eval $lt_ar_try) 2>&5
6413  ac_status=$?
6414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415  test $ac_status = 0; }
6416      if test "$ac_status" -eq 0; then
6417	# Ensure the archiver fails upon bogus file names.
6418	rm -f conftest.$ac_objext libconftest.a
6419	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6420  (eval $lt_ar_try) 2>&5
6421  ac_status=$?
6422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423  test $ac_status = 0; }
6424	if test "$ac_status" -ne 0; then
6425          lt_cv_ar_at_file=@
6426        fi
6427      fi
6428      rm -f conftest.* libconftest.a
6429
6430fi
6431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6435$as_echo "$lt_cv_ar_at_file" >&6; }
6436
6437if test "x$lt_cv_ar_at_file" = xno; then
6438  archiver_list_spec=
6439else
6440  archiver_list_spec=$lt_cv_ar_at_file
6441fi
6442
6443
6444
6445
6446
6447
6448
6449if test -n "$ac_tool_prefix"; then
6450  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6451set dummy ${ac_tool_prefix}strip; ac_word=$2
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
6454if ${ac_cv_prog_STRIP+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  if test -n "$STRIP"; then
6458  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463  IFS=$as_save_IFS
6464  test -z "$as_dir" && as_dir=.
6465    for ac_exec_ext in '' $ac_executable_extensions; do
6466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469    break 2
6470  fi
6471done
6472  done
6473IFS=$as_save_IFS
6474
6475fi
6476fi
6477STRIP=$ac_cv_prog_STRIP
6478if test -n "$STRIP"; then
6479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6480$as_echo "$STRIP" >&6; }
6481else
6482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486
6487fi
6488if test -z "$ac_cv_prog_STRIP"; then
6489  ac_ct_STRIP=$STRIP
6490  # Extract the first word of "strip", so it can be a program name with args.
6491set dummy strip; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
6494if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6495  $as_echo_n "(cached) " >&6
6496else
6497  if test -n "$ac_ct_STRIP"; then
6498  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503  IFS=$as_save_IFS
6504  test -z "$as_dir" && as_dir=.
6505    for ac_exec_ext in '' $ac_executable_extensions; do
6506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507    ac_cv_prog_ac_ct_STRIP="strip"
6508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509    break 2
6510  fi
6511done
6512  done
6513IFS=$as_save_IFS
6514
6515fi
6516fi
6517ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6518if test -n "$ac_ct_STRIP"; then
6519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6520$as_echo "$ac_ct_STRIP" >&6; }
6521else
6522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525
6526  if test "x$ac_ct_STRIP" = x; then
6527    STRIP=":"
6528  else
6529    case $cross_compiling:$ac_tool_warned in
6530yes:)
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533ac_tool_warned=yes ;;
6534esac
6535    STRIP=$ac_ct_STRIP
6536  fi
6537else
6538  STRIP="$ac_cv_prog_STRIP"
6539fi
6540
6541test -z "$STRIP" && STRIP=:
6542
6543
6544
6545
6546
6547
6548if test -n "$ac_tool_prefix"; then
6549  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if ${ac_cv_prog_RANLIB+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  if test -n "$RANLIB"; then
6557  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562  IFS=$as_save_IFS
6563  test -z "$as_dir" && as_dir=.
6564    for ac_exec_ext in '' $ac_executable_extensions; do
6565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568    break 2
6569  fi
6570done
6571  done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576RANLIB=$ac_cv_prog_RANLIB
6577if test -n "$RANLIB"; then
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579$as_echo "$RANLIB" >&6; }
6580else
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585
6586fi
6587if test -z "$ac_cv_prog_RANLIB"; then
6588  ac_ct_RANLIB=$RANLIB
6589  # Extract the first word of "ranlib", so it can be a program name with args.
6590set dummy ranlib; ac_word=$2
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592$as_echo_n "checking for $ac_word... " >&6; }
6593if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  if test -n "$ac_ct_RANLIB"; then
6597  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602  IFS=$as_save_IFS
6603  test -z "$as_dir" && as_dir=.
6604    for ac_exec_ext in '' $ac_executable_extensions; do
6605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606    ac_cv_prog_ac_ct_RANLIB="ranlib"
6607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611  done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617if test -n "$ac_ct_RANLIB"; then
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619$as_echo "$ac_ct_RANLIB" >&6; }
6620else
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622$as_echo "no" >&6; }
6623fi
6624
6625  if test "x$ac_ct_RANLIB" = x; then
6626    RANLIB=":"
6627  else
6628    case $cross_compiling:$ac_tool_warned in
6629yes:)
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632ac_tool_warned=yes ;;
6633esac
6634    RANLIB=$ac_ct_RANLIB
6635  fi
6636else
6637  RANLIB="$ac_cv_prog_RANLIB"
6638fi
6639
6640test -z "$RANLIB" && RANLIB=:
6641
6642
6643
6644
6645
6646
6647# Determine commands to create old-style static archives.
6648old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649old_postinstall_cmds='chmod 644 $oldlib'
6650old_postuninstall_cmds=
6651
6652if test -n "$RANLIB"; then
6653  case $host_os in
6654  openbsd*)
6655    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6656    ;;
6657  *)
6658    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6659    ;;
6660  esac
6661  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6662fi
6663
6664case $host_os in
6665  darwin*)
6666    lock_old_archive_extraction=yes ;;
6667  *)
6668    lock_old_archive_extraction=no ;;
6669esac
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709# If no C compiler was specified, use CC.
6710LTCC=${LTCC-"$CC"}
6711
6712# If no C compiler flags were specified, use CFLAGS.
6713LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6714
6715# Allow CC to be a program name with arguments.
6716compiler=$CC
6717
6718
6719# Check for command to grab the raw symbol name followed by C symbol from nm.
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6722if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6723  $as_echo_n "(cached) " >&6
6724else
6725
6726# These are sane defaults that work on at least a few old systems.
6727# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6728
6729# Character class describing NM global symbol codes.
6730symcode='[BCDEGRST]'
6731
6732# Regexp to match symbols that can be accessed directly from C.
6733sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6734
6735# Define system-specific variables.
6736case $host_os in
6737aix*)
6738  symcode='[BCDT]'
6739  ;;
6740cygwin* | mingw* | pw32* | cegcc*)
6741  symcode='[ABCDGISTW]'
6742  ;;
6743hpux*)
6744  if test "$host_cpu" = ia64; then
6745    symcode='[ABCDEGRST]'
6746  fi
6747  ;;
6748irix* | nonstopux*)
6749  symcode='[BCDEGRST]'
6750  ;;
6751osf*)
6752  symcode='[BCDEGQRST]'
6753  ;;
6754solaris*)
6755  symcode='[BDRT]'
6756  ;;
6757sco3.2v5*)
6758  symcode='[DT]'
6759  ;;
6760sysv4.2uw2*)
6761  symcode='[DT]'
6762  ;;
6763sysv5* | sco5v6* | unixware* | OpenUNIX*)
6764  symcode='[ABDT]'
6765  ;;
6766sysv4)
6767  symcode='[DFNSTU]'
6768  ;;
6769esac
6770
6771# If we're using GNU nm, then use its standard symbol codes.
6772case `$NM -V 2>&1` in
6773*GNU* | *'with BFD'*)
6774  symcode='[ABCDGIRSTW]' ;;
6775esac
6776
6777# Transform an extracted symbol line into a proper C declaration.
6778# Some systems (esp. on ia64) link data and code symbols differently,
6779# so use this general approach.
6780lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6781
6782# Transform an extracted symbol line into symbol name and symbol address
6783lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6784lt_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'"
6785
6786# Handle CRLF in mingw tool chain
6787opt_cr=
6788case $build_os in
6789mingw*)
6790  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6791  ;;
6792esac
6793
6794# Try without a prefix underscore, then with it.
6795for ac_symprfx in "" "_"; do
6796
6797  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6798  symxfrm="\\1 $ac_symprfx\\2 \\2"
6799
6800  # Write the raw and C identifiers.
6801  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802    # Fake it for dumpbin and say T for any non-static function
6803    # and D for any global variable.
6804    # Also find C++ and __fastcall symbols from MSVC++,
6805    # which start with @ or ?.
6806    lt_cv_sys_global_symbol_pipe="$AWK '"\
6807"     {last_section=section; section=\$ 3};"\
6808"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6809"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810"     \$ 0!~/External *\|/{next};"\
6811"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812"     {if(hide[section]) next};"\
6813"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817"     ' prfx=^$ac_symprfx"
6818  else
6819    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6820  fi
6821  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6822
6823  # Check to see that the pipe works correctly.
6824  pipe_works=no
6825
6826  rm -f conftest*
6827  cat > conftest.$ac_ext <<_LT_EOF
6828#ifdef __cplusplus
6829extern "C" {
6830#endif
6831char nm_test_var;
6832void nm_test_func(void);
6833void nm_test_func(void){}
6834#ifdef __cplusplus
6835}
6836#endif
6837int main(){nm_test_var='a';nm_test_func();return(0);}
6838_LT_EOF
6839
6840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841  (eval $ac_compile) 2>&5
6842  ac_status=$?
6843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844  test $ac_status = 0; }; then
6845    # Now try to grab the symbols.
6846    nlist=conftest.nm
6847    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6848  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6849  ac_status=$?
6850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851  test $ac_status = 0; } && test -s "$nlist"; then
6852      # Try sorting and uniquifying the output.
6853      if sort "$nlist" | uniq > "$nlist"T; then
6854	mv -f "$nlist"T "$nlist"
6855      else
6856	rm -f "$nlist"T
6857      fi
6858
6859      # Make sure that we snagged all the symbols we need.
6860      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6861	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6862	  cat <<_LT_EOF > conftest.$ac_ext
6863/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6864#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6865/* DATA imports from DLLs on WIN32 con't be const, because runtime
6866   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6867# define LT_DLSYM_CONST
6868#elif defined(__osf__)
6869/* This system does not cope well with relocations in const data.  */
6870# define LT_DLSYM_CONST
6871#else
6872# define LT_DLSYM_CONST const
6873#endif
6874
6875#ifdef __cplusplus
6876extern "C" {
6877#endif
6878
6879_LT_EOF
6880	  # Now generate the symbol file.
6881	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6882
6883	  cat <<_LT_EOF >> conftest.$ac_ext
6884
6885/* The mapping between symbol names and symbols.  */
6886LT_DLSYM_CONST struct {
6887  const char *name;
6888  void       *address;
6889}
6890lt__PROGRAM__LTX_preloaded_symbols[] =
6891{
6892  { "@PROGRAM@", (void *) 0 },
6893_LT_EOF
6894	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6895	  cat <<\_LT_EOF >> conftest.$ac_ext
6896  {0, (void *) 0}
6897};
6898
6899/* This works around a problem in FreeBSD linker */
6900#ifdef FREEBSD_WORKAROUND
6901static const void *lt_preloaded_setup() {
6902  return lt__PROGRAM__LTX_preloaded_symbols;
6903}
6904#endif
6905
6906#ifdef __cplusplus
6907}
6908#endif
6909_LT_EOF
6910	  # Now try linking the two files.
6911	  mv conftest.$ac_objext conftstm.$ac_objext
6912	  lt_globsym_save_LIBS=$LIBS
6913	  lt_globsym_save_CFLAGS=$CFLAGS
6914	  LIBS="conftstm.$ac_objext"
6915	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6916	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6917  (eval $ac_link) 2>&5
6918  ac_status=$?
6919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6921	    pipe_works=yes
6922	  fi
6923	  LIBS=$lt_globsym_save_LIBS
6924	  CFLAGS=$lt_globsym_save_CFLAGS
6925	else
6926	  echo "cannot find nm_test_func in $nlist" >&5
6927	fi
6928      else
6929	echo "cannot find nm_test_var in $nlist" >&5
6930      fi
6931    else
6932      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6933    fi
6934  else
6935    echo "$progname: failed program was:" >&5
6936    cat conftest.$ac_ext >&5
6937  fi
6938  rm -rf conftest* conftst*
6939
6940  # Do not use the global_symbol_pipe unless it works.
6941  if test "$pipe_works" = yes; then
6942    break
6943  else
6944    lt_cv_sys_global_symbol_pipe=
6945  fi
6946done
6947
6948fi
6949
6950if test -z "$lt_cv_sys_global_symbol_pipe"; then
6951  lt_cv_sys_global_symbol_to_cdecl=
6952fi
6953if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6955$as_echo "failed" >&6; }
6956else
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6958$as_echo "ok" >&6; }
6959fi
6960
6961# Response file support.
6962if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6963  nm_file_list_spec='@'
6964elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6965  nm_file_list_spec='@'
6966fi
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6995$as_echo_n "checking for sysroot... " >&6; }
6996
6997# Check whether --with-sysroot was given.
6998if test "${with_sysroot+set}" = set; then :
6999  withval=$with_sysroot;
7000else
7001  with_sysroot=no
7002fi
7003
7004
7005lt_sysroot=
7006case ${with_sysroot} in #(
7007 yes)
7008   if test "$GCC" = yes; then
7009     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7010   fi
7011   ;; #(
7012 /*)
7013   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7014   ;; #(
7015 no|'')
7016   ;; #(
7017 *)
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7019$as_echo "${with_sysroot}" >&6; }
7020   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7021   ;;
7022esac
7023
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7025$as_echo "${lt_sysroot:-no}" >&6; }
7026
7027
7028
7029
7030
7031# Check whether --enable-libtool-lock was given.
7032if test "${enable_libtool_lock+set}" = set; then :
7033  enableval=$enable_libtool_lock;
7034fi
7035
7036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038# Some flags need to be propagated to the compiler or linker for good
7039# libtool support.
7040case $host in
7041ia64-*-hpux*)
7042  # Find out which ABI we are using.
7043  echo 'int i;' > conftest.$ac_ext
7044  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045  (eval $ac_compile) 2>&5
7046  ac_status=$?
7047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048  test $ac_status = 0; }; then
7049    case `/usr/bin/file conftest.$ac_objext` in
7050      *ELF-32*)
7051	HPUX_IA64_MODE="32"
7052	;;
7053      *ELF-64*)
7054	HPUX_IA64_MODE="64"
7055	;;
7056    esac
7057  fi
7058  rm -rf conftest*
7059  ;;
7060*-*-irix6*)
7061  # Find out which ABI we are using.
7062  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064  (eval $ac_compile) 2>&5
7065  ac_status=$?
7066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067  test $ac_status = 0; }; then
7068    if test "$lt_cv_prog_gnu_ld" = yes; then
7069      case `/usr/bin/file conftest.$ac_objext` in
7070	*32-bit*)
7071	  LD="${LD-ld} -melf32bsmip"
7072	  ;;
7073	*N32*)
7074	  LD="${LD-ld} -melf32bmipn32"
7075	  ;;
7076	*64-bit*)
7077	  LD="${LD-ld} -melf64bmip"
7078	;;
7079      esac
7080    else
7081      case `/usr/bin/file conftest.$ac_objext` in
7082	*32-bit*)
7083	  LD="${LD-ld} -32"
7084	  ;;
7085	*N32*)
7086	  LD="${LD-ld} -n32"
7087	  ;;
7088	*64-bit*)
7089	  LD="${LD-ld} -64"
7090	  ;;
7091      esac
7092    fi
7093  fi
7094  rm -rf conftest*
7095  ;;
7096
7097x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7098s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099  # Find out which ABI we are using.
7100  echo 'int i;' > conftest.$ac_ext
7101  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102  (eval $ac_compile) 2>&5
7103  ac_status=$?
7104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105  test $ac_status = 0; }; then
7106    case `/usr/bin/file conftest.o` in
7107      *32-bit*)
7108	case $host in
7109	  x86_64-*kfreebsd*-gnu)
7110	    LD="${LD-ld} -m elf_i386_fbsd"
7111	    ;;
7112	  x86_64-*linux*)
7113	    LD="${LD-ld} -m elf_i386"
7114	    ;;
7115	  ppc64-*linux*|powerpc64-*linux*)
7116	    LD="${LD-ld} -m elf32ppclinux"
7117	    ;;
7118	  s390x-*linux*)
7119	    LD="${LD-ld} -m elf_s390"
7120	    ;;
7121	  sparc64-*linux*)
7122	    LD="${LD-ld} -m elf32_sparc"
7123	    ;;
7124	esac
7125	;;
7126      *64-bit*)
7127	case $host in
7128	  x86_64-*kfreebsd*-gnu)
7129	    LD="${LD-ld} -m elf_x86_64_fbsd"
7130	    ;;
7131	  x86_64-*linux*)
7132	    LD="${LD-ld} -m elf_x86_64"
7133	    ;;
7134	  ppc*-*linux*|powerpc*-*linux*)
7135	    LD="${LD-ld} -m elf64ppc"
7136	    ;;
7137	  s390*-*linux*|s390*-*tpf*)
7138	    LD="${LD-ld} -m elf64_s390"
7139	    ;;
7140	  sparc*-*linux*)
7141	    LD="${LD-ld} -m elf64_sparc"
7142	    ;;
7143	esac
7144	;;
7145    esac
7146  fi
7147  rm -rf conftest*
7148  ;;
7149
7150*-*-sco3.2v5*)
7151  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7152  SAVE_CFLAGS="$CFLAGS"
7153  CFLAGS="$CFLAGS -belf"
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7155$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7156if ${lt_cv_cc_needs_belf+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  ac_ext=c
7160ac_cpp='$CPP $CPPFLAGS'
7161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
7165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167
7168int
7169main ()
7170{
7171
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_link "$LINENO"; then :
7177  lt_cv_cc_needs_belf=yes
7178else
7179  lt_cv_cc_needs_belf=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext \
7182    conftest$ac_exeext conftest.$ac_ext
7183     ac_ext=c
7184ac_cpp='$CPP $CPPFLAGS'
7185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189fi
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7191$as_echo "$lt_cv_cc_needs_belf" >&6; }
7192  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7193    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7194    CFLAGS="$SAVE_CFLAGS"
7195  fi
7196  ;;
7197*-*solaris*)
7198  # Find out which ABI we are using.
7199  echo 'int i;' > conftest.$ac_ext
7200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201  (eval $ac_compile) 2>&5
7202  ac_status=$?
7203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204  test $ac_status = 0; }; then
7205    case `/usr/bin/file conftest.o` in
7206    *64-bit*)
7207      case $lt_cv_prog_gnu_ld in
7208      yes*)
7209        case $host in
7210        i?86-*-solaris*)
7211          LD="${LD-ld} -m elf_x86_64"
7212          ;;
7213        sparc*-*-solaris*)
7214          LD="${LD-ld} -m elf64_sparc"
7215          ;;
7216        esac
7217        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7218        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7219          LD="${LD-ld}_sol2"
7220        fi
7221        ;;
7222      *)
7223	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7224	  LD="${LD-ld} -64"
7225	fi
7226	;;
7227      esac
7228      ;;
7229    esac
7230  fi
7231  rm -rf conftest*
7232  ;;
7233esac
7234
7235need_locks="$enable_libtool_lock"
7236
7237if test -n "$ac_tool_prefix"; then
7238  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7239set dummy ${ac_tool_prefix}mt; ac_word=$2
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  if test -n "$MANIFEST_TOOL"; then
7246  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  test -z "$as_dir" && as_dir=.
7253    for ac_exec_ext in '' $ac_executable_extensions; do
7254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257    break 2
7258  fi
7259done
7260  done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7266if test -n "$MANIFEST_TOOL"; then
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7268$as_echo "$MANIFEST_TOOL" >&6; }
7269else
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274
7275fi
7276if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7277  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7278  # Extract the first word of "mt", so it can be a program name with args.
7279set dummy mt; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$ac_ct_MANIFEST_TOOL"; then
7286  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293    for ac_exec_ext in '' $ac_executable_extensions; do
7294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300  done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7306if test -n "$ac_ct_MANIFEST_TOOL"; then
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7308$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7309else
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7315    MANIFEST_TOOL=":"
7316  else
7317    case $cross_compiling:$ac_tool_warned in
7318yes:)
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321ac_tool_warned=yes ;;
7322esac
7323    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7324  fi
7325else
7326  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7327fi
7328
7329test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7331$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7332if ${lt_cv_path_mainfest_tool+:} false; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335  lt_cv_path_mainfest_tool=no
7336  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7337  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7338  cat conftest.err >&5
7339  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7340    lt_cv_path_mainfest_tool=yes
7341  fi
7342  rm -f conftest*
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7345$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7346if test "x$lt_cv_path_mainfest_tool" != xyes; then
7347  MANIFEST_TOOL=:
7348fi
7349
7350
7351
7352
7353
7354
7355  case $host_os in
7356    rhapsody* | darwin*)
7357    if test -n "$ac_tool_prefix"; then
7358  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7359set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361$as_echo_n "checking for $ac_word... " >&6; }
7362if ${ac_cv_prog_DSYMUTIL+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  if test -n "$DSYMUTIL"; then
7366  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7367else
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371  IFS=$as_save_IFS
7372  test -z "$as_dir" && as_dir=.
7373    for ac_exec_ext in '' $ac_executable_extensions; do
7374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377    break 2
7378  fi
7379done
7380  done
7381IFS=$as_save_IFS
7382
7383fi
7384fi
7385DSYMUTIL=$ac_cv_prog_DSYMUTIL
7386if test -n "$DSYMUTIL"; then
7387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7388$as_echo "$DSYMUTIL" >&6; }
7389else
7390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391$as_echo "no" >&6; }
7392fi
7393
7394
7395fi
7396if test -z "$ac_cv_prog_DSYMUTIL"; then
7397  ac_ct_DSYMUTIL=$DSYMUTIL
7398  # Extract the first word of "dsymutil", so it can be a program name with args.
7399set dummy dsymutil; ac_word=$2
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401$as_echo_n "checking for $ac_word... " >&6; }
7402if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405  if test -n "$ac_ct_DSYMUTIL"; then
7406  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7407else
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411  IFS=$as_save_IFS
7412  test -z "$as_dir" && as_dir=.
7413    for ac_exec_ext in '' $ac_executable_extensions; do
7414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417    break 2
7418  fi
7419done
7420  done
7421IFS=$as_save_IFS
7422
7423fi
7424fi
7425ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7426if test -n "$ac_ct_DSYMUTIL"; then
7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7428$as_echo "$ac_ct_DSYMUTIL" >&6; }
7429else
7430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431$as_echo "no" >&6; }
7432fi
7433
7434  if test "x$ac_ct_DSYMUTIL" = x; then
7435    DSYMUTIL=":"
7436  else
7437    case $cross_compiling:$ac_tool_warned in
7438yes:)
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441ac_tool_warned=yes ;;
7442esac
7443    DSYMUTIL=$ac_ct_DSYMUTIL
7444  fi
7445else
7446  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7447fi
7448
7449    if test -n "$ac_tool_prefix"; then
7450  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453$as_echo_n "checking for $ac_word... " >&6; }
7454if ${ac_cv_prog_NMEDIT+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457  if test -n "$NMEDIT"; then
7458  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7459else
7460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461for as_dir in $PATH
7462do
7463  IFS=$as_save_IFS
7464  test -z "$as_dir" && as_dir=.
7465    for ac_exec_ext in '' $ac_executable_extensions; do
7466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469    break 2
7470  fi
7471done
7472  done
7473IFS=$as_save_IFS
7474
7475fi
7476fi
7477NMEDIT=$ac_cv_prog_NMEDIT
7478if test -n "$NMEDIT"; then
7479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7480$as_echo "$NMEDIT" >&6; }
7481else
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483$as_echo "no" >&6; }
7484fi
7485
7486
7487fi
7488if test -z "$ac_cv_prog_NMEDIT"; then
7489  ac_ct_NMEDIT=$NMEDIT
7490  # Extract the first word of "nmedit", so it can be a program name with args.
7491set dummy nmedit; ac_word=$2
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493$as_echo_n "checking for $ac_word... " >&6; }
7494if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7495  $as_echo_n "(cached) " >&6
7496else
7497  if test -n "$ac_ct_NMEDIT"; then
7498  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7499else
7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503  IFS=$as_save_IFS
7504  test -z "$as_dir" && as_dir=.
7505    for ac_exec_ext in '' $ac_executable_extensions; do
7506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509    break 2
7510  fi
7511done
7512  done
7513IFS=$as_save_IFS
7514
7515fi
7516fi
7517ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518if test -n "$ac_ct_NMEDIT"; then
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7520$as_echo "$ac_ct_NMEDIT" >&6; }
7521else
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
7524fi
7525
7526  if test "x$ac_ct_NMEDIT" = x; then
7527    NMEDIT=":"
7528  else
7529    case $cross_compiling:$ac_tool_warned in
7530yes:)
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533ac_tool_warned=yes ;;
7534esac
7535    NMEDIT=$ac_ct_NMEDIT
7536  fi
7537else
7538  NMEDIT="$ac_cv_prog_NMEDIT"
7539fi
7540
7541    if test -n "$ac_tool_prefix"; then
7542  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7543set dummy ${ac_tool_prefix}lipo; ac_word=$2
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545$as_echo_n "checking for $ac_word... " >&6; }
7546if ${ac_cv_prog_LIPO+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  if test -n "$LIPO"; then
7550  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557    for ac_exec_ext in '' $ac_executable_extensions; do
7558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564  done
7565IFS=$as_save_IFS
7566
7567fi
7568fi
7569LIPO=$ac_cv_prog_LIPO
7570if test -n "$LIPO"; then
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7572$as_echo "$LIPO" >&6; }
7573else
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576fi
7577
7578
7579fi
7580if test -z "$ac_cv_prog_LIPO"; then
7581  ac_ct_LIPO=$LIPO
7582  # Extract the first word of "lipo", so it can be a program name with args.
7583set dummy lipo; ac_word=$2
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585$as_echo_n "checking for $ac_word... " >&6; }
7586if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  if test -n "$ac_ct_LIPO"; then
7590  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7591else
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595  IFS=$as_save_IFS
7596  test -z "$as_dir" && as_dir=.
7597    for ac_exec_ext in '' $ac_executable_extensions; do
7598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599    ac_cv_prog_ac_ct_LIPO="lipo"
7600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601    break 2
7602  fi
7603done
7604  done
7605IFS=$as_save_IFS
7606
7607fi
7608fi
7609ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7610if test -n "$ac_ct_LIPO"; then
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7612$as_echo "$ac_ct_LIPO" >&6; }
7613else
7614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615$as_echo "no" >&6; }
7616fi
7617
7618  if test "x$ac_ct_LIPO" = x; then
7619    LIPO=":"
7620  else
7621    case $cross_compiling:$ac_tool_warned in
7622yes:)
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625ac_tool_warned=yes ;;
7626esac
7627    LIPO=$ac_ct_LIPO
7628  fi
7629else
7630  LIPO="$ac_cv_prog_LIPO"
7631fi
7632
7633    if test -n "$ac_tool_prefix"; then
7634  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7635set dummy ${ac_tool_prefix}otool; ac_word=$2
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if ${ac_cv_prog_OTOOL+:} false; then :
7639  $as_echo_n "(cached) " >&6
7640else
7641  if test -n "$OTOOL"; then
7642  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649    for ac_exec_ext in '' $ac_executable_extensions; do
7650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656  done
7657IFS=$as_save_IFS
7658
7659fi
7660fi
7661OTOOL=$ac_cv_prog_OTOOL
7662if test -n "$OTOOL"; then
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7664$as_echo "$OTOOL" >&6; }
7665else
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670
7671fi
7672if test -z "$ac_cv_prog_OTOOL"; then
7673  ac_ct_OTOOL=$OTOOL
7674  # Extract the first word of "otool", so it can be a program name with args.
7675set dummy otool; ac_word=$2
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  if test -n "$ac_ct_OTOOL"; then
7682  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687  IFS=$as_save_IFS
7688  test -z "$as_dir" && as_dir=.
7689    for ac_exec_ext in '' $ac_executable_extensions; do
7690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691    ac_cv_prog_ac_ct_OTOOL="otool"
7692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693    break 2
7694  fi
7695done
7696  done
7697IFS=$as_save_IFS
7698
7699fi
7700fi
7701ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7702if test -n "$ac_ct_OTOOL"; then
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7704$as_echo "$ac_ct_OTOOL" >&6; }
7705else
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710  if test "x$ac_ct_OTOOL" = x; then
7711    OTOOL=":"
7712  else
7713    case $cross_compiling:$ac_tool_warned in
7714yes:)
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717ac_tool_warned=yes ;;
7718esac
7719    OTOOL=$ac_ct_OTOOL
7720  fi
7721else
7722  OTOOL="$ac_cv_prog_OTOOL"
7723fi
7724
7725    if test -n "$ac_tool_prefix"; then
7726  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7727set dummy ${ac_tool_prefix}otool64; ac_word=$2
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
7730if ${ac_cv_prog_OTOOL64+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  if test -n "$OTOOL64"; then
7734  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741    for ac_exec_ext in '' $ac_executable_extensions; do
7742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748  done
7749IFS=$as_save_IFS
7750
7751fi
7752fi
7753OTOOL64=$ac_cv_prog_OTOOL64
7754if test -n "$OTOOL64"; then
7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7756$as_echo "$OTOOL64" >&6; }
7757else
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760fi
7761
7762
7763fi
7764if test -z "$ac_cv_prog_OTOOL64"; then
7765  ac_ct_OTOOL64=$OTOOL64
7766  # Extract the first word of "otool64", so it can be a program name with args.
7767set dummy otool64; ac_word=$2
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769$as_echo_n "checking for $ac_word... " >&6; }
7770if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  if test -n "$ac_ct_OTOOL64"; then
7774  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  test -z "$as_dir" && as_dir=.
7781    for ac_exec_ext in '' $ac_executable_extensions; do
7782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_ac_ct_OTOOL64="otool64"
7784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788  done
7789IFS=$as_save_IFS
7790
7791fi
7792fi
7793ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7794if test -n "$ac_ct_OTOOL64"; then
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7796$as_echo "$ac_ct_OTOOL64" >&6; }
7797else
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800fi
7801
7802  if test "x$ac_ct_OTOOL64" = x; then
7803    OTOOL64=":"
7804  else
7805    case $cross_compiling:$ac_tool_warned in
7806yes:)
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809ac_tool_warned=yes ;;
7810esac
7811    OTOOL64=$ac_ct_OTOOL64
7812  fi
7813else
7814  OTOOL64="$ac_cv_prog_OTOOL64"
7815fi
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7844$as_echo_n "checking for -single_module linker flag... " >&6; }
7845if ${lt_cv_apple_cc_single_mod+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  lt_cv_apple_cc_single_mod=no
7849      if test -z "${LT_MULTI_MODULE}"; then
7850	# By default we will add the -single_module flag. You can override
7851	# by either setting the environment variable LT_MULTI_MODULE
7852	# non-empty at configure time, or by adding -multi_module to the
7853	# link flags.
7854	rm -rf libconftest.dylib*
7855	echo "int foo(void){return 1;}" > conftest.c
7856	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7857-dynamiclib -Wl,-single_module conftest.c" >&5
7858	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7859	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7860        _lt_result=$?
7861	# If there is a non-empty error log, and "single_module"
7862	# appears in it, assume the flag caused a linker warning
7863        if test -s conftest.err && $GREP single_module conftest.err; then
7864	  cat conftest.err >&5
7865	# Otherwise, if the output was created with a 0 exit code from
7866	# the compiler, it worked.
7867	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7868	  lt_cv_apple_cc_single_mod=yes
7869	else
7870	  cat conftest.err >&5
7871	fi
7872	rm -rf libconftest.dylib*
7873	rm -f conftest.*
7874      fi
7875fi
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7877$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7878
7879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7880$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7881if ${lt_cv_ld_exported_symbols_list+:} false; then :
7882  $as_echo_n "(cached) " >&6
7883else
7884  lt_cv_ld_exported_symbols_list=no
7885      save_LDFLAGS=$LDFLAGS
7886      echo "_main" > conftest.sym
7887      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7888      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890
7891int
7892main ()
7893{
7894
7895  ;
7896  return 0;
7897}
7898_ACEOF
7899if ac_fn_c_try_link "$LINENO"; then :
7900  lt_cv_ld_exported_symbols_list=yes
7901else
7902  lt_cv_ld_exported_symbols_list=no
7903fi
7904rm -f core conftest.err conftest.$ac_objext \
7905    conftest$ac_exeext conftest.$ac_ext
7906	LDFLAGS="$save_LDFLAGS"
7907
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7910$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7911
7912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7913$as_echo_n "checking for -force_load linker flag... " >&6; }
7914if ${lt_cv_ld_force_load+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  lt_cv_ld_force_load=no
7918      cat > conftest.c << _LT_EOF
7919int forced_loaded() { return 2;}
7920_LT_EOF
7921      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7922      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7923      echo "$AR cru libconftest.a conftest.o" >&5
7924      $AR cru libconftest.a conftest.o 2>&5
7925      echo "$RANLIB libconftest.a" >&5
7926      $RANLIB libconftest.a 2>&5
7927      cat > conftest.c << _LT_EOF
7928int main() { return 0;}
7929_LT_EOF
7930      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7931      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7932      _lt_result=$?
7933      if test -s conftest.err && $GREP force_load conftest.err; then
7934	cat conftest.err >&5
7935      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7936	lt_cv_ld_force_load=yes
7937      else
7938	cat conftest.err >&5
7939      fi
7940        rm -f conftest.err libconftest.a conftest conftest.c
7941        rm -rf conftest.dSYM
7942
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7945$as_echo "$lt_cv_ld_force_load" >&6; }
7946    case $host_os in
7947    rhapsody* | darwin1.[012])
7948      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7949    darwin1.*)
7950      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951    darwin*) # darwin 5.x on
7952      # if running on 10.5 or later, the deployment target defaults
7953      # to the OS version, if on x86, and 10.4, the deployment
7954      # target defaults to 10.4. Don't you love it?
7955      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7956	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7957	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7958	10.[012]*)
7959	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7960	10.*)
7961	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7962      esac
7963    ;;
7964  esac
7965    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7966      _lt_dar_single_mod='$single_module'
7967    fi
7968    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7969      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7970    else
7971      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7972    fi
7973    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7974      _lt_dsymutil='~$DSYMUTIL $lib || :'
7975    else
7976      _lt_dsymutil=
7977    fi
7978    ;;
7979  esac
7980
7981for ac_header in dlfcn.h
7982do :
7983  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7984"
7985if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7986  cat >>confdefs.h <<_ACEOF
7987#define HAVE_DLFCN_H 1
7988_ACEOF
7989
7990fi
7991
7992done
7993
7994
7995
7996
7997
7998# Set options
7999# Check whether --enable-static was given.
8000if test "${enable_static+set}" = set; then :
8001  enableval=$enable_static; p=${PACKAGE-default}
8002    case $enableval in
8003    yes) enable_static=yes ;;
8004    no) enable_static=no ;;
8005    *)
8006     enable_static=no
8007      # Look at the argument we got.  We use all the common list separators.
8008      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009      for pkg in $enableval; do
8010	IFS="$lt_save_ifs"
8011	if test "X$pkg" = "X$p"; then
8012	  enable_static=yes
8013	fi
8014      done
8015      IFS="$lt_save_ifs"
8016      ;;
8017    esac
8018else
8019  enable_static=no
8020fi
8021
8022
8023
8024
8025
8026
8027
8028enable_dlopen=yes
8029
8030
8031
8032
8033  enable_win32_dll=no
8034
8035
8036            # Check whether --enable-shared was given.
8037if test "${enable_shared+set}" = set; then :
8038  enableval=$enable_shared; p=${PACKAGE-default}
8039    case $enableval in
8040    yes) enable_shared=yes ;;
8041    no) enable_shared=no ;;
8042    *)
8043      enable_shared=no
8044      # Look at the argument we got.  We use all the common list separators.
8045      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046      for pkg in $enableval; do
8047	IFS="$lt_save_ifs"
8048	if test "X$pkg" = "X$p"; then
8049	  enable_shared=yes
8050	fi
8051      done
8052      IFS="$lt_save_ifs"
8053      ;;
8054    esac
8055else
8056  enable_shared=yes
8057fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069# Check whether --with-pic was given.
8070if test "${with_pic+set}" = set; then :
8071  withval=$with_pic; lt_p=${PACKAGE-default}
8072    case $withval in
8073    yes|no) pic_mode=$withval ;;
8074    *)
8075      pic_mode=default
8076      # Look at the argument we got.  We use all the common list separators.
8077      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078      for lt_pkg in $withval; do
8079	IFS="$lt_save_ifs"
8080	if test "X$lt_pkg" = "X$lt_p"; then
8081	  pic_mode=yes
8082	fi
8083      done
8084      IFS="$lt_save_ifs"
8085      ;;
8086    esac
8087else
8088  pic_mode=default
8089fi
8090
8091
8092test -z "$pic_mode" && pic_mode=default
8093
8094
8095
8096
8097
8098
8099
8100  # Check whether --enable-fast-install was given.
8101if test "${enable_fast_install+set}" = set; then :
8102  enableval=$enable_fast_install; p=${PACKAGE-default}
8103    case $enableval in
8104    yes) enable_fast_install=yes ;;
8105    no) enable_fast_install=no ;;
8106    *)
8107      enable_fast_install=no
8108      # Look at the argument we got.  We use all the common list separators.
8109      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110      for pkg in $enableval; do
8111	IFS="$lt_save_ifs"
8112	if test "X$pkg" = "X$p"; then
8113	  enable_fast_install=yes
8114	fi
8115      done
8116      IFS="$lt_save_ifs"
8117      ;;
8118    esac
8119else
8120  enable_fast_install=yes
8121fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133# This can be used to rebuild libtool when needed
8134LIBTOOL_DEPS="$ltmain"
8135
8136# Always use our own libtool.
8137LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183if test -n "${ZSH_VERSION+set}" ; then
8184   setopt NO_GLOB_SUBST
8185fi
8186
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188$as_echo_n "checking for objdir... " >&6; }
8189if ${lt_cv_objdir+:} false; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  rm -f .libs 2>/dev/null
8193mkdir .libs 2>/dev/null
8194if test -d .libs; then
8195  lt_cv_objdir=.libs
8196else
8197  # MS-DOS does not allow filenames that begin with a dot.
8198  lt_cv_objdir=_libs
8199fi
8200rmdir .libs 2>/dev/null
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203$as_echo "$lt_cv_objdir" >&6; }
8204objdir=$lt_cv_objdir
8205
8206
8207
8208
8209
8210cat >>confdefs.h <<_ACEOF
8211#define LT_OBJDIR "$lt_cv_objdir/"
8212_ACEOF
8213
8214
8215
8216
8217case $host_os in
8218aix3*)
8219  # AIX sometimes has problems with the GCC collect2 program.  For some
8220  # reason, if we set the COLLECT_NAMES environment variable, the problems
8221  # vanish in a puff of smoke.
8222  if test "X${COLLECT_NAMES+set}" != Xset; then
8223    COLLECT_NAMES=
8224    export COLLECT_NAMES
8225  fi
8226  ;;
8227esac
8228
8229# Global variables:
8230ofile=libtool
8231can_build_shared=yes
8232
8233# All known linkers require a `.a' archive for static linking (except MSVC,
8234# which needs '.lib').
8235libext=a
8236
8237with_gnu_ld="$lt_cv_prog_gnu_ld"
8238
8239old_CC="$CC"
8240old_CFLAGS="$CFLAGS"
8241
8242# Set sane defaults for various variables
8243test -z "$CC" && CC=cc
8244test -z "$LTCC" && LTCC=$CC
8245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246test -z "$LD" && LD=ld
8247test -z "$ac_objext" && ac_objext=o
8248
8249for cc_temp in $compiler""; do
8250  case $cc_temp in
8251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253    \-*) ;;
8254    *) break;;
8255  esac
8256done
8257cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8258
8259
8260# Only perform the check for file, if the check method requires it
8261test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262case $deplibs_check_method in
8263file_magic*)
8264  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  case $MAGIC_CMD in
8271[\\/*] |  ?:[\\/]*)
8272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273  ;;
8274*)
8275  lt_save_MAGIC_CMD="$MAGIC_CMD"
8276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278  for ac_dir in $ac_dummy; do
8279    IFS="$lt_save_ifs"
8280    test -z "$ac_dir" && ac_dir=.
8281    if test -f $ac_dir/${ac_tool_prefix}file; then
8282      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283      if test -n "$file_magic_test_file"; then
8284	case $deplibs_check_method in
8285	"file_magic "*)
8286	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289	    $EGREP "$file_magic_regex" > /dev/null; then
8290	    :
8291	  else
8292	    cat <<_LT_EOF 1>&2
8293
8294*** Warning: the command libtool uses to detect shared libraries,
8295*** $file_magic_cmd, produces output that libtool cannot recognize.
8296*** The result is that libtool may fail to recognize shared libraries
8297*** as such.  This will affect the creation of libtool libraries that
8298*** depend on shared libraries, but programs linked with such libtool
8299*** libraries will work regardless of this problem.  Nevertheless, you
8300*** may want to report the problem to your system manager and/or to
8301*** bug-libtool@gnu.org
8302
8303_LT_EOF
8304	  fi ;;
8305	esac
8306      fi
8307      break
8308    fi
8309  done
8310  IFS="$lt_save_ifs"
8311  MAGIC_CMD="$lt_save_MAGIC_CMD"
8312  ;;
8313esac
8314fi
8315
8316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317if test -n "$MAGIC_CMD"; then
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319$as_echo "$MAGIC_CMD" >&6; }
8320else
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322$as_echo "no" >&6; }
8323fi
8324
8325
8326
8327
8328
8329if test -z "$lt_cv_path_MAGIC_CMD"; then
8330  if test -n "$ac_tool_prefix"; then
8331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332$as_echo_n "checking for file... " >&6; }
8333if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  case $MAGIC_CMD in
8337[\\/*] |  ?:[\\/]*)
8338  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339  ;;
8340*)
8341  lt_save_MAGIC_CMD="$MAGIC_CMD"
8342  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344  for ac_dir in $ac_dummy; do
8345    IFS="$lt_save_ifs"
8346    test -z "$ac_dir" && ac_dir=.
8347    if test -f $ac_dir/file; then
8348      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349      if test -n "$file_magic_test_file"; then
8350	case $deplibs_check_method in
8351	"file_magic "*)
8352	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355	    $EGREP "$file_magic_regex" > /dev/null; then
8356	    :
8357	  else
8358	    cat <<_LT_EOF 1>&2
8359
8360*** Warning: the command libtool uses to detect shared libraries,
8361*** $file_magic_cmd, produces output that libtool cannot recognize.
8362*** The result is that libtool may fail to recognize shared libraries
8363*** as such.  This will affect the creation of libtool libraries that
8364*** depend on shared libraries, but programs linked with such libtool
8365*** libraries will work regardless of this problem.  Nevertheless, you
8366*** may want to report the problem to your system manager and/or to
8367*** bug-libtool@gnu.org
8368
8369_LT_EOF
8370	  fi ;;
8371	esac
8372      fi
8373      break
8374    fi
8375  done
8376  IFS="$lt_save_ifs"
8377  MAGIC_CMD="$lt_save_MAGIC_CMD"
8378  ;;
8379esac
8380fi
8381
8382MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383if test -n "$MAGIC_CMD"; then
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385$as_echo "$MAGIC_CMD" >&6; }
8386else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392  else
8393    MAGIC_CMD=:
8394  fi
8395fi
8396
8397  fi
8398  ;;
8399esac
8400
8401# Use C for the default configuration in the libtool script
8402
8403lt_save_CC="$CC"
8404ac_ext=c
8405ac_cpp='$CPP $CPPFLAGS'
8406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411# Source file extension for C test sources.
8412ac_ext=c
8413
8414# Object file extension for compiled C test sources.
8415objext=o
8416objext=$objext
8417
8418# Code to be used in simple compile tests
8419lt_simple_compile_test_code="int some_variable = 0;"
8420
8421# Code to be used in simple link tests
8422lt_simple_link_test_code='int main(){return(0);}'
8423
8424
8425
8426
8427
8428
8429
8430# If no C compiler was specified, use CC.
8431LTCC=${LTCC-"$CC"}
8432
8433# If no C compiler flags were specified, use CFLAGS.
8434LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435
8436# Allow CC to be a program name with arguments.
8437compiler=$CC
8438
8439# Save the default compiler, since it gets overwritten when the other
8440# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441compiler_DEFAULT=$CC
8442
8443# save warnings/boilerplate of simple test code
8444ac_outfile=conftest.$ac_objext
8445echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447_lt_compiler_boilerplate=`cat conftest.err`
8448$RM conftest*
8449
8450ac_outfile=conftest.$ac_objext
8451echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453_lt_linker_boilerplate=`cat conftest.err`
8454$RM -r conftest*
8455
8456
8457if test -n "$compiler"; then
8458
8459lt_prog_compiler_no_builtin_flag=
8460
8461if test "$GCC" = yes; then
8462  case $cc_basename in
8463  nvcc*)
8464    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8465  *)
8466    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8467  esac
8468
8469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8470$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8471if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8472  $as_echo_n "(cached) " >&6
8473else
8474  lt_cv_prog_compiler_rtti_exceptions=no
8475   ac_outfile=conftest.$ac_objext
8476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477   lt_compiler_flag="-fno-rtti -fno-exceptions"
8478   # Insert the option either (1) after the last *FLAGS variable, or
8479   # (2) before a word containing "conftest.", or (3) at the end.
8480   # Note that $ac_compile itself does not contain backslashes and begins
8481   # with a dollar sign (not a hyphen), so the echo should work correctly.
8482   # The option is referenced via a variable to avoid confusing sed.
8483   lt_compile=`echo "$ac_compile" | $SED \
8484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486   -e 's:$: $lt_compiler_flag:'`
8487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488   (eval "$lt_compile" 2>conftest.err)
8489   ac_status=$?
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   if (exit $ac_status) && test -s "$ac_outfile"; then
8493     # The compiler can only warn and ignore the option if not recognized
8494     # So say no if there are warnings other than the usual output.
8495     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8496     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8498       lt_cv_prog_compiler_rtti_exceptions=yes
8499     fi
8500   fi
8501   $RM conftest*
8502
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8505$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8506
8507if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8508    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8509else
8510    :
8511fi
8512
8513fi
8514
8515
8516
8517
8518
8519
8520  lt_prog_compiler_wl=
8521lt_prog_compiler_pic=
8522lt_prog_compiler_static=
8523
8524
8525  if test "$GCC" = yes; then
8526    lt_prog_compiler_wl='-Wl,'
8527    lt_prog_compiler_static='-static'
8528
8529    case $host_os in
8530      aix*)
8531      # All AIX code is PIC.
8532      if test "$host_cpu" = ia64; then
8533	# AIX 5 now supports IA64 processor
8534	lt_prog_compiler_static='-Bstatic'
8535      fi
8536      ;;
8537
8538    amigaos*)
8539      case $host_cpu in
8540      powerpc)
8541            # see comment about AmigaOS4 .so support
8542            lt_prog_compiler_pic='-fPIC'
8543        ;;
8544      m68k)
8545            # FIXME: we need at least 68020 code to build shared libraries, but
8546            # adding the `-m68020' flag to GCC prevents building anything better,
8547            # like `-m68040'.
8548            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8549        ;;
8550      esac
8551      ;;
8552
8553    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8554      # PIC is the default for these OSes.
8555      ;;
8556
8557    mingw* | cygwin* | pw32* | os2* | cegcc*)
8558      # This hack is so that the source file can tell whether it is being
8559      # built for inclusion in a dll (and should export symbols for example).
8560      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8561      # (--disable-auto-import) libraries
8562      lt_prog_compiler_pic='-DDLL_EXPORT'
8563      ;;
8564
8565    darwin* | rhapsody*)
8566      # PIC is the default on this platform
8567      # Common symbols not allowed in MH_DYLIB files
8568      lt_prog_compiler_pic='-fno-common'
8569      ;;
8570
8571    haiku*)
8572      # PIC is the default for Haiku.
8573      # The "-static" flag exists, but is broken.
8574      lt_prog_compiler_static=
8575      ;;
8576
8577    hpux*)
8578      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8579      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8580      # sets the default TLS model and affects inlining.
8581      case $host_cpu in
8582      hppa*64*)
8583	# +Z the default
8584	;;
8585      *)
8586	lt_prog_compiler_pic='-fPIC'
8587	;;
8588      esac
8589      ;;
8590
8591    interix[3-9]*)
8592      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8593      # Instead, we relocate shared libraries at runtime.
8594      ;;
8595
8596    msdosdjgpp*)
8597      # Just because we use GCC doesn't mean we suddenly get shared libraries
8598      # on systems that don't support them.
8599      lt_prog_compiler_can_build_shared=no
8600      enable_shared=no
8601      ;;
8602
8603    *nto* | *qnx*)
8604      # QNX uses GNU C++, but need to define -shared option too, otherwise
8605      # it will coredump.
8606      lt_prog_compiler_pic='-fPIC -shared'
8607      ;;
8608
8609    sysv4*MP*)
8610      if test -d /usr/nec; then
8611	lt_prog_compiler_pic=-Kconform_pic
8612      fi
8613      ;;
8614
8615    *)
8616      lt_prog_compiler_pic='-fPIC'
8617      ;;
8618    esac
8619
8620    case $cc_basename in
8621    nvcc*) # Cuda Compiler Driver 2.2
8622      lt_prog_compiler_wl='-Xlinker '
8623      if test -n "$lt_prog_compiler_pic"; then
8624        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8625      fi
8626      ;;
8627    esac
8628  else
8629    # PORTME Check for flag to pass linker flags through the system compiler.
8630    case $host_os in
8631    aix*)
8632      lt_prog_compiler_wl='-Wl,'
8633      if test "$host_cpu" = ia64; then
8634	# AIX 5 now supports IA64 processor
8635	lt_prog_compiler_static='-Bstatic'
8636      else
8637	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8638      fi
8639      ;;
8640
8641    mingw* | cygwin* | pw32* | os2* | cegcc*)
8642      # This hack is so that the source file can tell whether it is being
8643      # built for inclusion in a dll (and should export symbols for example).
8644      lt_prog_compiler_pic='-DDLL_EXPORT'
8645      ;;
8646
8647    hpux9* | hpux10* | hpux11*)
8648      lt_prog_compiler_wl='-Wl,'
8649      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8650      # not for PA HP-UX.
8651      case $host_cpu in
8652      hppa*64*|ia64*)
8653	# +Z the default
8654	;;
8655      *)
8656	lt_prog_compiler_pic='+Z'
8657	;;
8658      esac
8659      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8660      lt_prog_compiler_static='${wl}-a ${wl}archive'
8661      ;;
8662
8663    irix5* | irix6* | nonstopux*)
8664      lt_prog_compiler_wl='-Wl,'
8665      # PIC (with -KPIC) is the default.
8666      lt_prog_compiler_static='-non_shared'
8667      ;;
8668
8669    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8670      case $cc_basename in
8671      # old Intel for x86_64 which still supported -KPIC.
8672      ecc*)
8673	lt_prog_compiler_wl='-Wl,'
8674	lt_prog_compiler_pic='-KPIC'
8675	lt_prog_compiler_static='-static'
8676        ;;
8677      # icc used to be incompatible with GCC.
8678      # ICC 10 doesn't accept -KPIC any more.
8679      icc* | ifort*)
8680	lt_prog_compiler_wl='-Wl,'
8681	lt_prog_compiler_pic='-fPIC'
8682	lt_prog_compiler_static='-static'
8683        ;;
8684      # Lahey Fortran 8.1.
8685      lf95*)
8686	lt_prog_compiler_wl='-Wl,'
8687	lt_prog_compiler_pic='--shared'
8688	lt_prog_compiler_static='--static'
8689	;;
8690      nagfor*)
8691	# NAG Fortran compiler
8692	lt_prog_compiler_wl='-Wl,-Wl,,'
8693	lt_prog_compiler_pic='-PIC'
8694	lt_prog_compiler_static='-Bstatic'
8695	;;
8696      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8697        # Portland Group compilers (*not* the Pentium gcc compiler,
8698	# which looks to be a dead project)
8699	lt_prog_compiler_wl='-Wl,'
8700	lt_prog_compiler_pic='-fpic'
8701	lt_prog_compiler_static='-Bstatic'
8702        ;;
8703      ccc*)
8704        lt_prog_compiler_wl='-Wl,'
8705        # All Alpha code is PIC.
8706        lt_prog_compiler_static='-non_shared'
8707        ;;
8708      xl* | bgxl* | bgf* | mpixl*)
8709	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8710	lt_prog_compiler_wl='-Wl,'
8711	lt_prog_compiler_pic='-qpic'
8712	lt_prog_compiler_static='-qstaticlink'
8713	;;
8714      *)
8715	case `$CC -V 2>&1 | sed 5q` in
8716	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8717	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8718	  lt_prog_compiler_pic='-KPIC'
8719	  lt_prog_compiler_static='-Bstatic'
8720	  lt_prog_compiler_wl=''
8721	  ;;
8722	*Sun\ F* | *Sun*Fortran*)
8723	  lt_prog_compiler_pic='-KPIC'
8724	  lt_prog_compiler_static='-Bstatic'
8725	  lt_prog_compiler_wl='-Qoption ld '
8726	  ;;
8727	*Sun\ C*)
8728	  # Sun C 5.9
8729	  lt_prog_compiler_pic='-KPIC'
8730	  lt_prog_compiler_static='-Bstatic'
8731	  lt_prog_compiler_wl='-Wl,'
8732	  ;;
8733        *Intel*\ [CF]*Compiler*)
8734	  lt_prog_compiler_wl='-Wl,'
8735	  lt_prog_compiler_pic='-fPIC'
8736	  lt_prog_compiler_static='-static'
8737	  ;;
8738	*Portland\ Group*)
8739	  lt_prog_compiler_wl='-Wl,'
8740	  lt_prog_compiler_pic='-fpic'
8741	  lt_prog_compiler_static='-Bstatic'
8742	  ;;
8743	esac
8744	;;
8745      esac
8746      ;;
8747
8748    newsos6)
8749      lt_prog_compiler_pic='-KPIC'
8750      lt_prog_compiler_static='-Bstatic'
8751      ;;
8752
8753    *nto* | *qnx*)
8754      # QNX uses GNU C++, but need to define -shared option too, otherwise
8755      # it will coredump.
8756      lt_prog_compiler_pic='-fPIC -shared'
8757      ;;
8758
8759    osf3* | osf4* | osf5*)
8760      lt_prog_compiler_wl='-Wl,'
8761      # All OSF/1 code is PIC.
8762      lt_prog_compiler_static='-non_shared'
8763      ;;
8764
8765    rdos*)
8766      lt_prog_compiler_static='-non_shared'
8767      ;;
8768
8769    solaris*)
8770      lt_prog_compiler_pic='-KPIC'
8771      lt_prog_compiler_static='-Bstatic'
8772      case $cc_basename in
8773      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8774	lt_prog_compiler_wl='-Qoption ld ';;
8775      *)
8776	lt_prog_compiler_wl='-Wl,';;
8777      esac
8778      ;;
8779
8780    sunos4*)
8781      lt_prog_compiler_wl='-Qoption ld '
8782      lt_prog_compiler_pic='-PIC'
8783      lt_prog_compiler_static='-Bstatic'
8784      ;;
8785
8786    sysv4 | sysv4.2uw2* | sysv4.3*)
8787      lt_prog_compiler_wl='-Wl,'
8788      lt_prog_compiler_pic='-KPIC'
8789      lt_prog_compiler_static='-Bstatic'
8790      ;;
8791
8792    sysv4*MP*)
8793      if test -d /usr/nec ;then
8794	lt_prog_compiler_pic='-Kconform_pic'
8795	lt_prog_compiler_static='-Bstatic'
8796      fi
8797      ;;
8798
8799    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8800      lt_prog_compiler_wl='-Wl,'
8801      lt_prog_compiler_pic='-KPIC'
8802      lt_prog_compiler_static='-Bstatic'
8803      ;;
8804
8805    unicos*)
8806      lt_prog_compiler_wl='-Wl,'
8807      lt_prog_compiler_can_build_shared=no
8808      ;;
8809
8810    uts4*)
8811      lt_prog_compiler_pic='-pic'
8812      lt_prog_compiler_static='-Bstatic'
8813      ;;
8814
8815    *)
8816      lt_prog_compiler_can_build_shared=no
8817      ;;
8818    esac
8819  fi
8820
8821case $host_os in
8822  # For platforms which do not support PIC, -DPIC is meaningless:
8823  *djgpp*)
8824    lt_prog_compiler_pic=
8825    ;;
8826  *)
8827    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8828    ;;
8829esac
8830
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8832$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8833if ${lt_cv_prog_compiler_pic+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8837fi
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8839$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8840lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8841
8842#
8843# Check to make sure the PIC flag actually works.
8844#
8845if test -n "$lt_prog_compiler_pic"; then
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8847$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8848if ${lt_cv_prog_compiler_pic_works+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  lt_cv_prog_compiler_pic_works=no
8852   ac_outfile=conftest.$ac_objext
8853   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8855   # Insert the option either (1) after the last *FLAGS variable, or
8856   # (2) before a word containing "conftest.", or (3) at the end.
8857   # Note that $ac_compile itself does not contain backslashes and begins
8858   # with a dollar sign (not a hyphen), so the echo should work correctly.
8859   # The option is referenced via a variable to avoid confusing sed.
8860   lt_compile=`echo "$ac_compile" | $SED \
8861   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863   -e 's:$: $lt_compiler_flag:'`
8864   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865   (eval "$lt_compile" 2>conftest.err)
8866   ac_status=$?
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   if (exit $ac_status) && test -s "$ac_outfile"; then
8870     # The compiler can only warn and ignore the option if not recognized
8871     # So say no if there are warnings other than the usual output.
8872     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8873     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8875       lt_cv_prog_compiler_pic_works=yes
8876     fi
8877   fi
8878   $RM conftest*
8879
8880fi
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8882$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8883
8884if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8885    case $lt_prog_compiler_pic in
8886     "" | " "*) ;;
8887     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8888     esac
8889else
8890    lt_prog_compiler_pic=
8891     lt_prog_compiler_can_build_shared=no
8892fi
8893
8894fi
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906#
8907# Check to make sure the static flag actually works.
8908#
8909wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8911$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8912if ${lt_cv_prog_compiler_static_works+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  lt_cv_prog_compiler_static_works=no
8916   save_LDFLAGS="$LDFLAGS"
8917   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8918   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8919   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8920     # The linker can only warn and ignore the option if not recognized
8921     # So say no if there are warnings
8922     if test -s conftest.err; then
8923       # Append any errors to the config.log.
8924       cat conftest.err 1>&5
8925       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8926       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8927       if diff conftest.exp conftest.er2 >/dev/null; then
8928         lt_cv_prog_compiler_static_works=yes
8929       fi
8930     else
8931       lt_cv_prog_compiler_static_works=yes
8932     fi
8933   fi
8934   $RM -r conftest*
8935   LDFLAGS="$save_LDFLAGS"
8936
8937fi
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8939$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8940
8941if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8942    :
8943else
8944    lt_prog_compiler_static=
8945fi
8946
8947
8948
8949
8950
8951
8952
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8954$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8955if ${lt_cv_prog_compiler_c_o+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  lt_cv_prog_compiler_c_o=no
8959   $RM -r conftest 2>/dev/null
8960   mkdir conftest
8961   cd conftest
8962   mkdir out
8963   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8964
8965   lt_compiler_flag="-o out/conftest2.$ac_objext"
8966   # Insert the option either (1) after the last *FLAGS variable, or
8967   # (2) before a word containing "conftest.", or (3) at the end.
8968   # Note that $ac_compile itself does not contain backslashes and begins
8969   # with a dollar sign (not a hyphen), so the echo should work correctly.
8970   lt_compile=`echo "$ac_compile" | $SED \
8971   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8972   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8973   -e 's:$: $lt_compiler_flag:'`
8974   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8975   (eval "$lt_compile" 2>out/conftest.err)
8976   ac_status=$?
8977   cat out/conftest.err >&5
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8980   then
8981     # The compiler can only warn and ignore the option if not recognized
8982     # So say no if there are warnings
8983     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8984     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8985     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8986       lt_cv_prog_compiler_c_o=yes
8987     fi
8988   fi
8989   chmod u+w . 2>&5
8990   $RM conftest*
8991   # SGI C++ compiler will create directory out/ii_files/ for
8992   # template instantiation
8993   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8994   $RM out/* && rmdir out
8995   cd ..
8996   $RM -r conftest
8997   $RM conftest*
8998
8999fi
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9001$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9002
9003
9004
9005
9006
9007
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9009$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9010if ${lt_cv_prog_compiler_c_o+:} false; then :
9011  $as_echo_n "(cached) " >&6
9012else
9013  lt_cv_prog_compiler_c_o=no
9014   $RM -r conftest 2>/dev/null
9015   mkdir conftest
9016   cd conftest
9017   mkdir out
9018   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9019
9020   lt_compiler_flag="-o out/conftest2.$ac_objext"
9021   # Insert the option either (1) after the last *FLAGS variable, or
9022   # (2) before a word containing "conftest.", or (3) at the end.
9023   # Note that $ac_compile itself does not contain backslashes and begins
9024   # with a dollar sign (not a hyphen), so the echo should work correctly.
9025   lt_compile=`echo "$ac_compile" | $SED \
9026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028   -e 's:$: $lt_compiler_flag:'`
9029   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9030   (eval "$lt_compile" 2>out/conftest.err)
9031   ac_status=$?
9032   cat out/conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9035   then
9036     # The compiler can only warn and ignore the option if not recognized
9037     # So say no if there are warnings
9038     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9039     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9040     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9041       lt_cv_prog_compiler_c_o=yes
9042     fi
9043   fi
9044   chmod u+w . 2>&5
9045   $RM conftest*
9046   # SGI C++ compiler will create directory out/ii_files/ for
9047   # template instantiation
9048   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9049   $RM out/* && rmdir out
9050   cd ..
9051   $RM -r conftest
9052   $RM conftest*
9053
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9056$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9057
9058
9059
9060
9061hard_links="nottested"
9062if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9063  # do not overwrite the value of need_locks provided by the user
9064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9065$as_echo_n "checking if we can lock with hard links... " >&6; }
9066  hard_links=yes
9067  $RM conftest*
9068  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9069  touch conftest.a
9070  ln conftest.a conftest.b 2>&5 || hard_links=no
9071  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9073$as_echo "$hard_links" >&6; }
9074  if test "$hard_links" = no; then
9075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9076$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9077    need_locks=warn
9078  fi
9079else
9080  need_locks=no
9081fi
9082
9083
9084
9085
9086
9087
9088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9089$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9090
9091  runpath_var=
9092  allow_undefined_flag=
9093  always_export_symbols=no
9094  archive_cmds=
9095  archive_expsym_cmds=
9096  compiler_needs_object=no
9097  enable_shared_with_static_runtimes=no
9098  export_dynamic_flag_spec=
9099  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9100  hardcode_automatic=no
9101  hardcode_direct=no
9102  hardcode_direct_absolute=no
9103  hardcode_libdir_flag_spec=
9104  hardcode_libdir_separator=
9105  hardcode_minus_L=no
9106  hardcode_shlibpath_var=unsupported
9107  inherit_rpath=no
9108  link_all_deplibs=unknown
9109  module_cmds=
9110  module_expsym_cmds=
9111  old_archive_from_new_cmds=
9112  old_archive_from_expsyms_cmds=
9113  thread_safe_flag_spec=
9114  whole_archive_flag_spec=
9115  # include_expsyms should be a list of space-separated symbols to be *always*
9116  # included in the symbol list
9117  include_expsyms=
9118  # exclude_expsyms can be an extended regexp of symbols to exclude
9119  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9120  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9121  # as well as any symbol that contains `d'.
9122  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9123  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9124  # platforms (ab)use it in PIC code, but their linkers get confused if
9125  # the symbol is explicitly referenced.  Since portable code cannot
9126  # rely on this symbol name, it's probably fine to never include it in
9127  # preloaded symbol tables.
9128  # Exclude shared library initialization/finalization symbols.
9129  extract_expsyms_cmds=
9130
9131  case $host_os in
9132  cygwin* | mingw* | pw32* | cegcc*)
9133    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9134    # When not using gcc, we currently assume that we are using
9135    # Microsoft Visual C++.
9136    if test "$GCC" != yes; then
9137      with_gnu_ld=no
9138    fi
9139    ;;
9140  interix*)
9141    # we just hope/assume this is gcc and not c89 (= MSVC++)
9142    with_gnu_ld=yes
9143    ;;
9144  openbsd*)
9145    with_gnu_ld=no
9146    ;;
9147  esac
9148
9149  ld_shlibs=yes
9150
9151  # On some targets, GNU ld is compatible enough with the native linker
9152  # that we're better off using the native interface for both.
9153  lt_use_gnu_ld_interface=no
9154  if test "$with_gnu_ld" = yes; then
9155    case $host_os in
9156      aix*)
9157	# The AIX port of GNU ld has always aspired to compatibility
9158	# with the native linker.  However, as the warning in the GNU ld
9159	# block says, versions before 2.19.5* couldn't really create working
9160	# shared libraries, regardless of the interface used.
9161	case `$LD -v 2>&1` in
9162	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9163	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9164	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9165	  *)
9166	    lt_use_gnu_ld_interface=yes
9167	    ;;
9168	esac
9169	;;
9170      *)
9171	lt_use_gnu_ld_interface=yes
9172	;;
9173    esac
9174  fi
9175
9176  if test "$lt_use_gnu_ld_interface" = yes; then
9177    # If archive_cmds runs LD, not CC, wlarc should be empty
9178    wlarc='${wl}'
9179
9180    # Set some defaults for GNU ld with shared library support. These
9181    # are reset later if shared libraries are not supported. Putting them
9182    # here allows them to be overridden if necessary.
9183    runpath_var=LD_RUN_PATH
9184    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9185    export_dynamic_flag_spec='${wl}--export-dynamic'
9186    # ancient GNU ld didn't support --whole-archive et. al.
9187    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9188      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9189    else
9190      whole_archive_flag_spec=
9191    fi
9192    supports_anon_versioning=no
9193    case `$LD -v 2>&1` in
9194      *GNU\ gold*) supports_anon_versioning=yes ;;
9195      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9196      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9197      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9198      *\ 2.11.*) ;; # other 2.11 versions
9199      *) supports_anon_versioning=yes ;;
9200    esac
9201
9202    # See if GNU ld supports shared libraries.
9203    case $host_os in
9204    aix[3-9]*)
9205      # On AIX/PPC, the GNU linker is very broken
9206      if test "$host_cpu" != ia64; then
9207	ld_shlibs=no
9208	cat <<_LT_EOF 1>&2
9209
9210*** Warning: the GNU linker, at least up to release 2.19, is reported
9211*** to be unable to reliably create shared libraries on AIX.
9212*** Therefore, libtool is disabling shared libraries support.  If you
9213*** really care for shared libraries, you may want to install binutils
9214*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9215*** You will then need to restart the configuration process.
9216
9217_LT_EOF
9218      fi
9219      ;;
9220
9221    amigaos*)
9222      case $host_cpu in
9223      powerpc)
9224            # see comment about AmigaOS4 .so support
9225            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226            archive_expsym_cmds=''
9227        ;;
9228      m68k)
9229            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)'
9230            hardcode_libdir_flag_spec='-L$libdir'
9231            hardcode_minus_L=yes
9232        ;;
9233      esac
9234      ;;
9235
9236    beos*)
9237      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9238	allow_undefined_flag=unsupported
9239	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9240	# support --undefined.  This deserves some investigation.  FIXME
9241	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9242      else
9243	ld_shlibs=no
9244      fi
9245      ;;
9246
9247    cygwin* | mingw* | pw32* | cegcc*)
9248      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9249      # as there is no search path for DLLs.
9250      hardcode_libdir_flag_spec='-L$libdir'
9251      export_dynamic_flag_spec='${wl}--export-all-symbols'
9252      allow_undefined_flag=unsupported
9253      always_export_symbols=no
9254      enable_shared_with_static_runtimes=yes
9255      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'
9256      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9257
9258      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9259        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9260	# If the export-symbols file already is a .def file (1st line
9261	# is EXPORTS), use it as is; otherwise, prepend...
9262	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9263	  cp $export_symbols $output_objdir/$soname.def;
9264	else
9265	  echo EXPORTS > $output_objdir/$soname.def;
9266	  cat $export_symbols >> $output_objdir/$soname.def;
9267	fi~
9268	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9269      else
9270	ld_shlibs=no
9271      fi
9272      ;;
9273
9274    haiku*)
9275      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276      link_all_deplibs=yes
9277      ;;
9278
9279    interix[3-9]*)
9280      hardcode_direct=no
9281      hardcode_shlibpath_var=no
9282      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9283      export_dynamic_flag_spec='${wl}-E'
9284      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9285      # Instead, shared libraries are loaded at an image base (0x10000000 by
9286      # default) and relocated if they conflict, which is a slow very memory
9287      # consuming and fragmenting process.  To avoid this, we pick a random,
9288      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9289      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9290      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9291      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'
9292      ;;
9293
9294    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9295      tmp_diet=no
9296      if test "$host_os" = linux-dietlibc; then
9297	case $cc_basename in
9298	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9299	esac
9300      fi
9301      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9302	 && test "$tmp_diet" = no
9303      then
9304	tmp_addflag=' $pic_flag'
9305	tmp_sharedflag='-shared'
9306	case $cc_basename,$host_cpu in
9307        pgcc*)				# Portland Group C compiler
9308	  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'
9309	  tmp_addflag=' $pic_flag'
9310	  ;;
9311	pgf77* | pgf90* | pgf95* | pgfortran*)
9312					# Portland Group f77 and f90 compilers
9313	  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'
9314	  tmp_addflag=' $pic_flag -Mnomain' ;;
9315	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9316	  tmp_addflag=' -i_dynamic' ;;
9317	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9318	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9319	ifc* | ifort*)			# Intel Fortran compiler
9320	  tmp_addflag=' -nofor_main' ;;
9321	lf95*)				# Lahey Fortran 8.1
9322	  whole_archive_flag_spec=
9323	  tmp_sharedflag='--shared' ;;
9324	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9325	  tmp_sharedflag='-qmkshrobj'
9326	  tmp_addflag= ;;
9327	nvcc*)	# Cuda Compiler Driver 2.2
9328	  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'
9329	  compiler_needs_object=yes
9330	  ;;
9331	esac
9332	case `$CC -V 2>&1 | sed 5q` in
9333	*Sun\ C*)			# Sun C 5.9
9334	  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'
9335	  compiler_needs_object=yes
9336	  tmp_sharedflag='-G' ;;
9337	*Sun\ F*)			# Sun Fortran 8.3
9338	  tmp_sharedflag='-G' ;;
9339	esac
9340	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341
9342        if test "x$supports_anon_versioning" = xyes; then
9343          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9344	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9345	    echo "local: *; };" >> $output_objdir/$libname.ver~
9346	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9347        fi
9348
9349	case $cc_basename in
9350	xlf* | bgf* | bgxlf* | mpixlf*)
9351	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9352	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9353	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9355	  if test "x$supports_anon_versioning" = xyes; then
9356	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9357	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9358	      echo "local: *; };" >> $output_objdir/$libname.ver~
9359	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9360	  fi
9361	  ;;
9362	esac
9363      else
9364        ld_shlibs=no
9365      fi
9366      ;;
9367
9368    netbsd*)
9369      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9370	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9371	wlarc=
9372      else
9373	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375      fi
9376      ;;
9377
9378    solaris*)
9379      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9380	ld_shlibs=no
9381	cat <<_LT_EOF 1>&2
9382
9383*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9384*** create shared libraries on Solaris systems.  Therefore, libtool
9385*** is disabling shared libraries support.  We urge you to upgrade GNU
9386*** binutils to release 2.9.1 or newer.  Another option is to modify
9387*** your PATH or compiler configuration so that the native linker is
9388*** used, and then restart.
9389
9390_LT_EOF
9391      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394      else
9395	ld_shlibs=no
9396      fi
9397      ;;
9398
9399    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9400      case `$LD -v 2>&1` in
9401        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9402	ld_shlibs=no
9403	cat <<_LT_EOF 1>&2
9404
9405*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9406*** reliably create shared libraries on SCO systems.  Therefore, libtool
9407*** is disabling shared libraries support.  We urge you to upgrade GNU
9408*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9409*** your PATH or compiler configuration so that the native linker is
9410*** used, and then restart.
9411
9412_LT_EOF
9413	;;
9414	*)
9415	  # For security reasons, it is highly recommended that you always
9416	  # use absolute paths for naming shared libraries, and exclude the
9417	  # DT_RUNPATH tag from executables and libraries.  But doing so
9418	  # requires that you compile everything twice, which is a pain.
9419	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9420	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9421	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423	  else
9424	    ld_shlibs=no
9425	  fi
9426	;;
9427      esac
9428      ;;
9429
9430    sunos4*)
9431      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9432      wlarc=
9433      hardcode_direct=yes
9434      hardcode_shlibpath_var=no
9435      ;;
9436
9437    *)
9438      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9441      else
9442	ld_shlibs=no
9443      fi
9444      ;;
9445    esac
9446
9447    if test "$ld_shlibs" = no; then
9448      runpath_var=
9449      hardcode_libdir_flag_spec=
9450      export_dynamic_flag_spec=
9451      whole_archive_flag_spec=
9452    fi
9453  else
9454    # PORTME fill in a description of your system's linker (not GNU ld)
9455    case $host_os in
9456    aix3*)
9457      allow_undefined_flag=unsupported
9458      always_export_symbols=yes
9459      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'
9460      # Note: this linker hardcodes the directories in LIBPATH if there
9461      # are no directories specified by -L.
9462      hardcode_minus_L=yes
9463      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9464	# Neither direct hardcoding nor static linking is supported with a
9465	# broken collect2.
9466	hardcode_direct=unsupported
9467      fi
9468      ;;
9469
9470    aix[4-9]*)
9471      if test "$host_cpu" = ia64; then
9472	# On IA64, the linker does run time linking by default, so we don't
9473	# have to do anything special.
9474	aix_use_runtimelinking=no
9475	exp_sym_flag='-Bexport'
9476	no_entry_flag=""
9477      else
9478	# If we're using GNU nm, then we don't want the "-C" option.
9479	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9480	# Also, AIX nm treats weak defined symbols like other global
9481	# defined symbols, whereas GNU nm marks them as "W".
9482	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9483	  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'
9484	else
9485	  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'
9486	fi
9487	aix_use_runtimelinking=no
9488
9489	# Test if we are trying to use run time linking or normal
9490	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9491	# need to do runtime linking.
9492	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9493	  for ld_flag in $LDFLAGS; do
9494	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9495	    aix_use_runtimelinking=yes
9496	    break
9497	  fi
9498	  done
9499	  ;;
9500	esac
9501
9502	exp_sym_flag='-bexport'
9503	no_entry_flag='-bnoentry'
9504      fi
9505
9506      # When large executables or shared objects are built, AIX ld can
9507      # have problems creating the table of contents.  If linking a library
9508      # or program results in "error TOC overflow" add -mminimal-toc to
9509      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9510      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9511
9512      archive_cmds=''
9513      hardcode_direct=yes
9514      hardcode_direct_absolute=yes
9515      hardcode_libdir_separator=':'
9516      link_all_deplibs=yes
9517      file_list_spec='${wl}-f,'
9518
9519      if test "$GCC" = yes; then
9520	case $host_os in aix4.[012]|aix4.[012].*)
9521	# We only want to do this on AIX 4.2 and lower, the check
9522	# below for broken collect2 doesn't work under 4.3+
9523	  collect2name=`${CC} -print-prog-name=collect2`
9524	  if test -f "$collect2name" &&
9525	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9526	  then
9527	  # We have reworked collect2
9528	  :
9529	  else
9530	  # We have old collect2
9531	  hardcode_direct=unsupported
9532	  # It fails to find uninstalled libraries when the uninstalled
9533	  # path is not listed in the libpath.  Setting hardcode_minus_L
9534	  # to unsupported forces relinking
9535	  hardcode_minus_L=yes
9536	  hardcode_libdir_flag_spec='-L$libdir'
9537	  hardcode_libdir_separator=
9538	  fi
9539	  ;;
9540	esac
9541	shared_flag='-shared'
9542	if test "$aix_use_runtimelinking" = yes; then
9543	  shared_flag="$shared_flag "'${wl}-G'
9544	fi
9545      else
9546	# not using gcc
9547	if test "$host_cpu" = ia64; then
9548	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9549	# chokes on -Wl,-G. The following line is correct:
9550	  shared_flag='-G'
9551	else
9552	  if test "$aix_use_runtimelinking" = yes; then
9553	    shared_flag='${wl}-G'
9554	  else
9555	    shared_flag='${wl}-bM:SRE'
9556	  fi
9557	fi
9558      fi
9559
9560      export_dynamic_flag_spec='${wl}-bexpall'
9561      # It seems that -bexpall does not export symbols beginning with
9562      # underscore (_), so it is better to generate a list of symbols to export.
9563      always_export_symbols=yes
9564      if test "$aix_use_runtimelinking" = yes; then
9565	# Warning - without using the other runtime loading flags (-brtl),
9566	# -berok will link without error, but may produce a broken library.
9567	allow_undefined_flag='-berok'
9568        # Determine the default libpath from the value encoded in an
9569        # empty executable.
9570        if test "${lt_cv_aix_libpath+set}" = set; then
9571  aix_libpath=$lt_cv_aix_libpath
9572else
9573  if ${lt_cv_aix_libpath_+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577/* end confdefs.h.  */
9578
9579int
9580main ()
9581{
9582
9583  ;
9584  return 0;
9585}
9586_ACEOF
9587if ac_fn_c_try_link "$LINENO"; then :
9588
9589  lt_aix_libpath_sed='
9590      /Import File Strings/,/^$/ {
9591	  /^0/ {
9592	      s/^0  *\([^ ]*\) *$/\1/
9593	      p
9594	  }
9595      }'
9596  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9597  # Check for a 64-bit object if we didn't find anything.
9598  if test -z "$lt_cv_aix_libpath_"; then
9599    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9600  fi
9601fi
9602rm -f core conftest.err conftest.$ac_objext \
9603    conftest$ac_exeext conftest.$ac_ext
9604  if test -z "$lt_cv_aix_libpath_"; then
9605    lt_cv_aix_libpath_="/usr/lib:/lib"
9606  fi
9607
9608fi
9609
9610  aix_libpath=$lt_cv_aix_libpath_
9611fi
9612
9613        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9614        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"
9615      else
9616	if test "$host_cpu" = ia64; then
9617	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9618	  allow_undefined_flag="-z nodefs"
9619	  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"
9620	else
9621	 # Determine the default libpath from the value encoded in an
9622	 # empty executable.
9623	 if test "${lt_cv_aix_libpath+set}" = set; then
9624  aix_libpath=$lt_cv_aix_libpath
9625else
9626  if ${lt_cv_aix_libpath_+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631
9632int
9633main ()
9634{
9635
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641
9642  lt_aix_libpath_sed='
9643      /Import File Strings/,/^$/ {
9644	  /^0/ {
9645	      s/^0  *\([^ ]*\) *$/\1/
9646	      p
9647	  }
9648      }'
9649  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650  # Check for a 64-bit object if we didn't find anything.
9651  if test -z "$lt_cv_aix_libpath_"; then
9652    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653  fi
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656    conftest$ac_exeext conftest.$ac_ext
9657  if test -z "$lt_cv_aix_libpath_"; then
9658    lt_cv_aix_libpath_="/usr/lib:/lib"
9659  fi
9660
9661fi
9662
9663  aix_libpath=$lt_cv_aix_libpath_
9664fi
9665
9666	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9667	  # Warning - without using the other run time loading flags,
9668	  # -berok will link without error, but may produce a broken library.
9669	  no_undefined_flag=' ${wl}-bernotok'
9670	  allow_undefined_flag=' ${wl}-berok'
9671	  if test "$with_gnu_ld" = yes; then
9672	    # We only use this code for GNU lds that support --whole-archive.
9673	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9674	  else
9675	    # Exported symbols can be pulled into shared objects from archives
9676	    whole_archive_flag_spec='$convenience'
9677	  fi
9678	  archive_cmds_need_lc=yes
9679	  # This is similar to how AIX traditionally builds its shared libraries.
9680	  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'
9681	fi
9682      fi
9683      ;;
9684
9685    amigaos*)
9686      case $host_cpu in
9687      powerpc)
9688            # see comment about AmigaOS4 .so support
9689            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690            archive_expsym_cmds=''
9691        ;;
9692      m68k)
9693            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)'
9694            hardcode_libdir_flag_spec='-L$libdir'
9695            hardcode_minus_L=yes
9696        ;;
9697      esac
9698      ;;
9699
9700    bsdi[45]*)
9701      export_dynamic_flag_spec=-rdynamic
9702      ;;
9703
9704    cygwin* | mingw* | pw32* | cegcc*)
9705      # When not using gcc, we currently assume that we are using
9706      # Microsoft Visual C++.
9707      # hardcode_libdir_flag_spec is actually meaningless, as there is
9708      # no search path for DLLs.
9709      case $cc_basename in
9710      cl*)
9711	# Native MSVC
9712	hardcode_libdir_flag_spec=' '
9713	allow_undefined_flag=unsupported
9714	always_export_symbols=yes
9715	file_list_spec='@'
9716	# Tell ltmain to make .lib files, not .a files.
9717	libext=lib
9718	# Tell ltmain to make .dll files, not .so files.
9719	shrext_cmds=".dll"
9720	# FIXME: Setting linknames here is a bad hack.
9721	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9722	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9723	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9724	  else
9725	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9726	  fi~
9727	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9728	  linknames='
9729	# The linker will not automatically build a static lib if we build a DLL.
9730	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9731	enable_shared_with_static_runtimes=yes
9732	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9733	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9734	# Don't use ranlib
9735	old_postinstall_cmds='chmod 644 $oldlib'
9736	postlink_cmds='lt_outputfile="@OUTPUT@"~
9737	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9738	  case $lt_outputfile in
9739	    *.exe|*.EXE) ;;
9740	    *)
9741	      lt_outputfile="$lt_outputfile.exe"
9742	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9743	      ;;
9744	  esac~
9745	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9746	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9747	    $RM "$lt_outputfile.manifest";
9748	  fi'
9749	;;
9750      *)
9751	# Assume MSVC wrapper
9752	hardcode_libdir_flag_spec=' '
9753	allow_undefined_flag=unsupported
9754	# Tell ltmain to make .lib files, not .a files.
9755	libext=lib
9756	# Tell ltmain to make .dll files, not .so files.
9757	shrext_cmds=".dll"
9758	# FIXME: Setting linknames here is a bad hack.
9759	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9760	# The linker will automatically build a .lib file if we build a DLL.
9761	old_archive_from_new_cmds='true'
9762	# FIXME: Should let the user specify the lib program.
9763	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9764	enable_shared_with_static_runtimes=yes
9765	;;
9766      esac
9767      ;;
9768
9769    darwin* | rhapsody*)
9770
9771
9772  archive_cmds_need_lc=no
9773  hardcode_direct=no
9774  hardcode_automatic=yes
9775  hardcode_shlibpath_var=unsupported
9776  if test "$lt_cv_ld_force_load" = "yes"; then
9777    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\"`'
9778
9779  else
9780    whole_archive_flag_spec=''
9781  fi
9782  link_all_deplibs=yes
9783  allow_undefined_flag="$_lt_dar_allow_undefined"
9784  case $cc_basename in
9785     ifort*) _lt_dar_can_shared=yes ;;
9786     *) _lt_dar_can_shared=$GCC ;;
9787  esac
9788  if test "$_lt_dar_can_shared" = "yes"; then
9789    output_verbose_link_cmd=func_echo_all
9790    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9791    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9792    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}"
9793    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}"
9794
9795  else
9796  ld_shlibs=no
9797  fi
9798
9799      ;;
9800
9801    dgux*)
9802      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803      hardcode_libdir_flag_spec='-L$libdir'
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9808    # support.  Future versions do this automatically, but an explicit c++rt0.o
9809    # does not break anything, and helps significantly (at the cost of a little
9810    # extra space).
9811    freebsd2.2*)
9812      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9813      hardcode_libdir_flag_spec='-R$libdir'
9814      hardcode_direct=yes
9815      hardcode_shlibpath_var=no
9816      ;;
9817
9818    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9819    freebsd2.*)
9820      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9821      hardcode_direct=yes
9822      hardcode_minus_L=yes
9823      hardcode_shlibpath_var=no
9824      ;;
9825
9826    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9827    freebsd* | dragonfly*)
9828      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9829      hardcode_libdir_flag_spec='-R$libdir'
9830      hardcode_direct=yes
9831      hardcode_shlibpath_var=no
9832      ;;
9833
9834    hpux9*)
9835      if test "$GCC" = yes; then
9836	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'
9837      else
9838	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'
9839      fi
9840      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841      hardcode_libdir_separator=:
9842      hardcode_direct=yes
9843
9844      # hardcode_minus_L: Not really in the search PATH,
9845      # but as the default location of the library.
9846      hardcode_minus_L=yes
9847      export_dynamic_flag_spec='${wl}-E'
9848      ;;
9849
9850    hpux10*)
9851      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9852	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853      else
9854	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9855      fi
9856      if test "$with_gnu_ld" = no; then
9857	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9858	hardcode_libdir_separator=:
9859	hardcode_direct=yes
9860	hardcode_direct_absolute=yes
9861	export_dynamic_flag_spec='${wl}-E'
9862	# hardcode_minus_L: Not really in the search PATH,
9863	# but as the default location of the library.
9864	hardcode_minus_L=yes
9865      fi
9866      ;;
9867
9868    hpux11*)
9869      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9870	case $host_cpu in
9871	hppa*64*)
9872	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873	  ;;
9874	ia64*)
9875	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9876	  ;;
9877	*)
9878	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879	  ;;
9880	esac
9881      else
9882	case $host_cpu in
9883	hppa*64*)
9884	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9885	  ;;
9886	ia64*)
9887	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9888	  ;;
9889	*)
9890
9891	  # Older versions of the 11.00 compiler do not understand -b yet
9892	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9893	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9894$as_echo_n "checking if $CC understands -b... " >&6; }
9895if ${lt_cv_prog_compiler__b+:} false; then :
9896  $as_echo_n "(cached) " >&6
9897else
9898  lt_cv_prog_compiler__b=no
9899   save_LDFLAGS="$LDFLAGS"
9900   LDFLAGS="$LDFLAGS -b"
9901   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9902   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9903     # The linker can only warn and ignore the option if not recognized
9904     # So say no if there are warnings
9905     if test -s conftest.err; then
9906       # Append any errors to the config.log.
9907       cat conftest.err 1>&5
9908       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9909       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9910       if diff conftest.exp conftest.er2 >/dev/null; then
9911         lt_cv_prog_compiler__b=yes
9912       fi
9913     else
9914       lt_cv_prog_compiler__b=yes
9915     fi
9916   fi
9917   $RM -r conftest*
9918   LDFLAGS="$save_LDFLAGS"
9919
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9922$as_echo "$lt_cv_prog_compiler__b" >&6; }
9923
9924if test x"$lt_cv_prog_compiler__b" = xyes; then
9925    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9926else
9927    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9928fi
9929
9930	  ;;
9931	esac
9932      fi
9933      if test "$with_gnu_ld" = no; then
9934	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9935	hardcode_libdir_separator=:
9936
9937	case $host_cpu in
9938	hppa*64*|ia64*)
9939	  hardcode_direct=no
9940	  hardcode_shlibpath_var=no
9941	  ;;
9942	*)
9943	  hardcode_direct=yes
9944	  hardcode_direct_absolute=yes
9945	  export_dynamic_flag_spec='${wl}-E'
9946
9947	  # hardcode_minus_L: Not really in the search PATH,
9948	  # but as the default location of the library.
9949	  hardcode_minus_L=yes
9950	  ;;
9951	esac
9952      fi
9953      ;;
9954
9955    irix5* | irix6* | nonstopux*)
9956      if test "$GCC" = yes; then
9957	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'
9958	# Try to use the -exported_symbol ld option, if it does not
9959	# work, assume that -exports_file does not work either and
9960	# implicitly export all symbols.
9961	# This should be the same for all languages, so no per-tag cache variable.
9962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9963$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9964if ${lt_cv_irix_exported_symbol+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  save_LDFLAGS="$LDFLAGS"
9968	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9969	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970/* end confdefs.h.  */
9971int foo (void) { return 0; }
9972_ACEOF
9973if ac_fn_c_try_link "$LINENO"; then :
9974  lt_cv_irix_exported_symbol=yes
9975else
9976  lt_cv_irix_exported_symbol=no
9977fi
9978rm -f core conftest.err conftest.$ac_objext \
9979    conftest$ac_exeext conftest.$ac_ext
9980           LDFLAGS="$save_LDFLAGS"
9981fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9983$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9984	if test "$lt_cv_irix_exported_symbol" = yes; then
9985          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'
9986	fi
9987      else
9988	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'
9989	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'
9990      fi
9991      archive_cmds_need_lc='no'
9992      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993      hardcode_libdir_separator=:
9994      inherit_rpath=yes
9995      link_all_deplibs=yes
9996      ;;
9997
9998    netbsd*)
9999      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10000	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10001      else
10002	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10003      fi
10004      hardcode_libdir_flag_spec='-R$libdir'
10005      hardcode_direct=yes
10006      hardcode_shlibpath_var=no
10007      ;;
10008
10009    newsos6)
10010      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011      hardcode_direct=yes
10012      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013      hardcode_libdir_separator=:
10014      hardcode_shlibpath_var=no
10015      ;;
10016
10017    *nto* | *qnx*)
10018      ;;
10019
10020    openbsd*)
10021      if test -f /usr/libexec/ld.so; then
10022	hardcode_direct=yes
10023	hardcode_shlibpath_var=no
10024	hardcode_direct_absolute=yes
10025	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10026	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10027	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10028	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029	  export_dynamic_flag_spec='${wl}-E'
10030	else
10031	  case $host_os in
10032	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10033	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034	     hardcode_libdir_flag_spec='-R$libdir'
10035	     ;;
10036	   *)
10037	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10039	     ;;
10040	  esac
10041	fi
10042      else
10043	ld_shlibs=no
10044      fi
10045      ;;
10046
10047    os2*)
10048      hardcode_libdir_flag_spec='-L$libdir'
10049      hardcode_minus_L=yes
10050      allow_undefined_flag=unsupported
10051      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'
10052      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10053      ;;
10054
10055    osf3*)
10056      if test "$GCC" = yes; then
10057	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10058	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'
10059      else
10060	allow_undefined_flag=' -expect_unresolved \*'
10061	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'
10062      fi
10063      archive_cmds_need_lc='no'
10064      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065      hardcode_libdir_separator=:
10066      ;;
10067
10068    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10069      if test "$GCC" = yes; then
10070	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10071	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'
10072	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073      else
10074	allow_undefined_flag=' -expect_unresolved \*'
10075	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'
10076	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~
10077	$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'
10078
10079	# Both c and cxx compiler support -rpath directly
10080	hardcode_libdir_flag_spec='-rpath $libdir'
10081      fi
10082      archive_cmds_need_lc='no'
10083      hardcode_libdir_separator=:
10084      ;;
10085
10086    solaris*)
10087      no_undefined_flag=' -z defs'
10088      if test "$GCC" = yes; then
10089	wlarc='${wl}'
10090	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092	  $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'
10093      else
10094	case `$CC -V 2>&1` in
10095	*"Compilers 5.0"*)
10096	  wlarc=''
10097	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10099	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10100	  ;;
10101	*)
10102	  wlarc='${wl}'
10103	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10105	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10106	  ;;
10107	esac
10108      fi
10109      hardcode_libdir_flag_spec='-R$libdir'
10110      hardcode_shlibpath_var=no
10111      case $host_os in
10112      solaris2.[0-5] | solaris2.[0-5].*) ;;
10113      *)
10114	# The compiler driver will combine and reorder linker options,
10115	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10116	# but is careful enough not to reorder.
10117	# Supported since Solaris 2.6 (maybe 2.5.1?)
10118	if test "$GCC" = yes; then
10119	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10120	else
10121	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10122	fi
10123	;;
10124      esac
10125      link_all_deplibs=yes
10126      ;;
10127
10128    sunos4*)
10129      if test "x$host_vendor" = xsequent; then
10130	# Use $CC to link under sequent, because it throws in some extra .o
10131	# files that make .init and .fini sections work.
10132	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133      else
10134	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10135      fi
10136      hardcode_libdir_flag_spec='-L$libdir'
10137      hardcode_direct=yes
10138      hardcode_minus_L=yes
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    sysv4)
10143      case $host_vendor in
10144	sni)
10145	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146	  hardcode_direct=yes # is this really true???
10147	;;
10148	siemens)
10149	  ## LD is ld it makes a PLAMLIB
10150	  ## CC just makes a GrossModule.
10151	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10152	  reload_cmds='$CC -r -o $output$reload_objs'
10153	  hardcode_direct=no
10154        ;;
10155	motorola)
10156	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10158	;;
10159      esac
10160      runpath_var='LD_RUN_PATH'
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    sysv4.3*)
10165      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166      hardcode_shlibpath_var=no
10167      export_dynamic_flag_spec='-Bexport'
10168      ;;
10169
10170    sysv4*MP*)
10171      if test -d /usr/nec; then
10172	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173	hardcode_shlibpath_var=no
10174	runpath_var=LD_RUN_PATH
10175	hardcode_runpath_var=yes
10176	ld_shlibs=yes
10177      fi
10178      ;;
10179
10180    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10181      no_undefined_flag='${wl}-z,text'
10182      archive_cmds_need_lc=no
10183      hardcode_shlibpath_var=no
10184      runpath_var='LD_RUN_PATH'
10185
10186      if test "$GCC" = yes; then
10187	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189      else
10190	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192      fi
10193      ;;
10194
10195    sysv5* | sco3.2v5* | sco5v6*)
10196      # Note: We can NOT use -z defs as we might desire, because we do not
10197      # link with -lc, and that would cause any symbols used from libc to
10198      # always be unresolved, which means just about no library would
10199      # ever link correctly.  If we're not using GNU ld we use -z text
10200      # though, which does catch some bad symbols but isn't as heavy-handed
10201      # as -z defs.
10202      no_undefined_flag='${wl}-z,text'
10203      allow_undefined_flag='${wl}-z,nodefs'
10204      archive_cmds_need_lc=no
10205      hardcode_shlibpath_var=no
10206      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10207      hardcode_libdir_separator=':'
10208      link_all_deplibs=yes
10209      export_dynamic_flag_spec='${wl}-Bexport'
10210      runpath_var='LD_RUN_PATH'
10211
10212      if test "$GCC" = yes; then
10213	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215      else
10216	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218      fi
10219      ;;
10220
10221    uts4*)
10222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223      hardcode_libdir_flag_spec='-L$libdir'
10224      hardcode_shlibpath_var=no
10225      ;;
10226
10227    *)
10228      ld_shlibs=no
10229      ;;
10230    esac
10231
10232    if test x$host_vendor = xsni; then
10233      case $host in
10234      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10235	export_dynamic_flag_spec='${wl}-Blargedynsym'
10236	;;
10237      esac
10238    fi
10239  fi
10240
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10242$as_echo "$ld_shlibs" >&6; }
10243test "$ld_shlibs" = no && can_build_shared=no
10244
10245with_gnu_ld=$with_gnu_ld
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261#
10262# Do we need to explicitly link libc?
10263#
10264case "x$archive_cmds_need_lc" in
10265x|xyes)
10266  # Assume -lc should be added
10267  archive_cmds_need_lc=yes
10268
10269  if test "$enable_shared" = yes && test "$GCC" = yes; then
10270    case $archive_cmds in
10271    *'~'*)
10272      # FIXME: we may have to deal with multi-command sequences.
10273      ;;
10274    '$CC '*)
10275      # Test whether the compiler implicitly links with -lc since on some
10276      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10277      # to ld, don't add -lc before -lgcc.
10278      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10279$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10280if ${lt_cv_archive_cmds_need_lc+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  $RM conftest*
10284	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10285
10286	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10287  (eval $ac_compile) 2>&5
10288  ac_status=$?
10289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10290  test $ac_status = 0; } 2>conftest.err; then
10291	  soname=conftest
10292	  lib=conftest
10293	  libobjs=conftest.$ac_objext
10294	  deplibs=
10295	  wl=$lt_prog_compiler_wl
10296	  pic_flag=$lt_prog_compiler_pic
10297	  compiler_flags=-v
10298	  linker_flags=-v
10299	  verstring=
10300	  output_objdir=.
10301	  libname=conftest
10302	  lt_save_allow_undefined_flag=$allow_undefined_flag
10303	  allow_undefined_flag=
10304	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10305  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10306  ac_status=$?
10307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308  test $ac_status = 0; }
10309	  then
10310	    lt_cv_archive_cmds_need_lc=no
10311	  else
10312	    lt_cv_archive_cmds_need_lc=yes
10313	  fi
10314	  allow_undefined_flag=$lt_save_allow_undefined_flag
10315	else
10316	  cat conftest.err 1>&5
10317	fi
10318	$RM conftest*
10319
10320fi
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10322$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10323      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10324      ;;
10325    esac
10326  fi
10327  ;;
10328esac
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10482$as_echo_n "checking dynamic linker characteristics... " >&6; }
10483
10484if test "$GCC" = yes; then
10485  case $host_os in
10486    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10487    *) lt_awk_arg="/^libraries:/" ;;
10488  esac
10489  case $host_os in
10490    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10491    *) lt_sed_strip_eq="s,=/,/,g" ;;
10492  esac
10493  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10494  case $lt_search_path_spec in
10495  *\;*)
10496    # if the path contains ";" then we assume it to be the separator
10497    # otherwise default to the standard path separator (i.e. ":") - it is
10498    # assumed that no part of a normal pathname contains ";" but that should
10499    # okay in the real world where ";" in dirpaths is itself problematic.
10500    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10501    ;;
10502  *)
10503    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10504    ;;
10505  esac
10506  # Ok, now we have the path, separated by spaces, we can step through it
10507  # and add multilib dir if necessary.
10508  lt_tmp_lt_search_path_spec=
10509  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10510  for lt_sys_path in $lt_search_path_spec; do
10511    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10512      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10513    else
10514      test -d "$lt_sys_path" && \
10515	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10516    fi
10517  done
10518  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10519BEGIN {RS=" "; FS="/|\n";} {
10520  lt_foo="";
10521  lt_count=0;
10522  for (lt_i = NF; lt_i > 0; lt_i--) {
10523    if ($lt_i != "" && $lt_i != ".") {
10524      if ($lt_i == "..") {
10525        lt_count++;
10526      } else {
10527        if (lt_count == 0) {
10528          lt_foo="/" $lt_i lt_foo;
10529        } else {
10530          lt_count--;
10531        }
10532      }
10533    }
10534  }
10535  if (lt_foo != "") { lt_freq[lt_foo]++; }
10536  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10537}'`
10538  # AWK program above erroneously prepends '/' to C:/dos/paths
10539  # for these hosts.
10540  case $host_os in
10541    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10542      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10543  esac
10544  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10545else
10546  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10547fi
10548library_names_spec=
10549libname_spec='lib$name'
10550soname_spec=
10551shrext_cmds=".so"
10552postinstall_cmds=
10553postuninstall_cmds=
10554finish_cmds=
10555finish_eval=
10556shlibpath_var=
10557shlibpath_overrides_runpath=unknown
10558version_type=none
10559dynamic_linker="$host_os ld.so"
10560sys_lib_dlsearch_path_spec="/lib /usr/lib"
10561need_lib_prefix=unknown
10562hardcode_into_libs=no
10563
10564# when you set need_version to no, make sure it does not cause -set_version
10565# flags to be left without arguments
10566need_version=unknown
10567
10568case $host_os in
10569aix3*)
10570  version_type=linux # correct to gnu/linux during the next big refactor
10571  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10572  shlibpath_var=LIBPATH
10573
10574  # AIX 3 has no versioning support, so we append a major version to the name.
10575  soname_spec='${libname}${release}${shared_ext}$major'
10576  ;;
10577
10578aix[4-9]*)
10579  version_type=linux # correct to gnu/linux during the next big refactor
10580  need_lib_prefix=no
10581  need_version=no
10582  hardcode_into_libs=yes
10583  if test "$host_cpu" = ia64; then
10584    # AIX 5 supports IA64
10585    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10586    shlibpath_var=LD_LIBRARY_PATH
10587  else
10588    # With GCC up to 2.95.x, collect2 would create an import file
10589    # for dependence libraries.  The import file would start with
10590    # the line `#! .'.  This would cause the generated library to
10591    # depend on `.', always an invalid library.  This was fixed in
10592    # development snapshots of GCC prior to 3.0.
10593    case $host_os in
10594      aix4 | aix4.[01] | aix4.[01].*)
10595      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10596	   echo ' yes '
10597	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10598	:
10599      else
10600	can_build_shared=no
10601      fi
10602      ;;
10603    esac
10604    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10605    # soname into executable. Probably we can add versioning support to
10606    # collect2, so additional links can be useful in future.
10607    if test "$aix_use_runtimelinking" = yes; then
10608      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10609      # instead of lib<name>.a to let people know that these are not
10610      # typical AIX shared libraries.
10611      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612    else
10613      # We preserve .a as extension for shared libraries through AIX4.2
10614      # and later when we are not doing run time linking.
10615      library_names_spec='${libname}${release}.a $libname.a'
10616      soname_spec='${libname}${release}${shared_ext}$major'
10617    fi
10618    shlibpath_var=LIBPATH
10619  fi
10620  ;;
10621
10622amigaos*)
10623  case $host_cpu in
10624  powerpc)
10625    # Since July 2007 AmigaOS4 officially supports .so libraries.
10626    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628    ;;
10629  m68k)
10630    library_names_spec='$libname.ixlibrary $libname.a'
10631    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10632    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'
10633    ;;
10634  esac
10635  ;;
10636
10637beos*)
10638  library_names_spec='${libname}${shared_ext}'
10639  dynamic_linker="$host_os ld.so"
10640  shlibpath_var=LIBRARY_PATH
10641  ;;
10642
10643bsdi[45]*)
10644  version_type=linux # correct to gnu/linux during the next big refactor
10645  need_version=no
10646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647  soname_spec='${libname}${release}${shared_ext}$major'
10648  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10649  shlibpath_var=LD_LIBRARY_PATH
10650  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10651  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10652  # the default ld.so.conf also contains /usr/contrib/lib and
10653  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10654  # libtool to hard-code these into programs
10655  ;;
10656
10657cygwin* | mingw* | pw32* | cegcc*)
10658  version_type=windows
10659  shrext_cmds=".dll"
10660  need_version=no
10661  need_lib_prefix=no
10662
10663  case $GCC,$cc_basename in
10664  yes,*)
10665    # gcc
10666    library_names_spec='$libname.dll.a'
10667    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10668    postinstall_cmds='base_file=`basename \${file}`~
10669      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10670      dldir=$destdir/`dirname \$dlpath`~
10671      test -d \$dldir || mkdir -p \$dldir~
10672      $install_prog $dir/$dlname \$dldir/$dlname~
10673      chmod a+x \$dldir/$dlname~
10674      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10675        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10676      fi'
10677    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10678      dlpath=$dir/\$dldll~
10679       $RM \$dlpath'
10680    shlibpath_overrides_runpath=yes
10681
10682    case $host_os in
10683    cygwin*)
10684      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10685      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10686
10687      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10688      ;;
10689    mingw* | cegcc*)
10690      # MinGW DLLs use traditional 'lib' prefix
10691      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10692      ;;
10693    pw32*)
10694      # pw32 DLLs use 'pw' prefix rather than 'lib'
10695      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696      ;;
10697    esac
10698    dynamic_linker='Win32 ld.exe'
10699    ;;
10700
10701  *,cl*)
10702    # Native MSVC
10703    libname_spec='$name'
10704    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10705    library_names_spec='${libname}.dll.lib'
10706
10707    case $build_os in
10708    mingw*)
10709      sys_lib_search_path_spec=
10710      lt_save_ifs=$IFS
10711      IFS=';'
10712      for lt_path in $LIB
10713      do
10714        IFS=$lt_save_ifs
10715        # Let DOS variable expansion print the short 8.3 style file name.
10716        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10717        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10718      done
10719      IFS=$lt_save_ifs
10720      # Convert to MSYS style.
10721      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10722      ;;
10723    cygwin*)
10724      # Convert to unix form, then to dos form, then back to unix form
10725      # but this time dos style (no spaces!) so that the unix form looks
10726      # like /cygdrive/c/PROGRA~1:/cygdr...
10727      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10728      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10729      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10730      ;;
10731    *)
10732      sys_lib_search_path_spec="$LIB"
10733      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10734        # It is most probably a Windows format PATH.
10735        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10736      else
10737        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10738      fi
10739      # FIXME: find the short name or the path components, as spaces are
10740      # common. (e.g. "Program Files" -> "PROGRA~1")
10741      ;;
10742    esac
10743
10744    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10745    postinstall_cmds='base_file=`basename \${file}`~
10746      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10747      dldir=$destdir/`dirname \$dlpath`~
10748      test -d \$dldir || mkdir -p \$dldir~
10749      $install_prog $dir/$dlname \$dldir/$dlname'
10750    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751      dlpath=$dir/\$dldll~
10752       $RM \$dlpath'
10753    shlibpath_overrides_runpath=yes
10754    dynamic_linker='Win32 link.exe'
10755    ;;
10756
10757  *)
10758    # Assume MSVC wrapper
10759    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10760    dynamic_linker='Win32 ld.exe'
10761    ;;
10762  esac
10763  # FIXME: first we should search . and the directory the executable is in
10764  shlibpath_var=PATH
10765  ;;
10766
10767darwin* | rhapsody*)
10768  dynamic_linker="$host_os dyld"
10769  version_type=darwin
10770  need_lib_prefix=no
10771  need_version=no
10772  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10773  soname_spec='${libname}${release}${major}$shared_ext'
10774  shlibpath_overrides_runpath=yes
10775  shlibpath_var=DYLD_LIBRARY_PATH
10776  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10777
10778  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10779  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10780  ;;
10781
10782dgux*)
10783  version_type=linux # correct to gnu/linux during the next big refactor
10784  need_lib_prefix=no
10785  need_version=no
10786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10787  soname_spec='${libname}${release}${shared_ext}$major'
10788  shlibpath_var=LD_LIBRARY_PATH
10789  ;;
10790
10791freebsd* | dragonfly*)
10792  # DragonFly does not have aout.  When/if they implement a new
10793  # versioning mechanism, adjust this.
10794  if test -x /usr/bin/objformat; then
10795    objformat=`/usr/bin/objformat`
10796  else
10797    case $host_os in
10798    freebsd[23].*) objformat=aout ;;
10799    *) objformat=elf ;;
10800    esac
10801  fi
10802  version_type=freebsd-$objformat
10803  case $version_type in
10804    freebsd-elf*)
10805      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10806      need_version=no
10807      need_lib_prefix=no
10808      ;;
10809    freebsd-*)
10810      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10811      need_version=yes
10812      ;;
10813  esac
10814  shlibpath_var=LD_LIBRARY_PATH
10815  case $host_os in
10816  freebsd2.*)
10817    shlibpath_overrides_runpath=yes
10818    ;;
10819  freebsd3.[01]* | freebsdelf3.[01]*)
10820    shlibpath_overrides_runpath=yes
10821    hardcode_into_libs=yes
10822    ;;
10823  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10824  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10825    shlibpath_overrides_runpath=no
10826    hardcode_into_libs=yes
10827    ;;
10828  *) # from 4.6 on, and DragonFly
10829    shlibpath_overrides_runpath=yes
10830    hardcode_into_libs=yes
10831    ;;
10832  esac
10833  ;;
10834
10835gnu*)
10836  version_type=linux # correct to gnu/linux during the next big refactor
10837  need_lib_prefix=no
10838  need_version=no
10839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10840  soname_spec='${libname}${release}${shared_ext}$major'
10841  shlibpath_var=LD_LIBRARY_PATH
10842  shlibpath_overrides_runpath=no
10843  hardcode_into_libs=yes
10844  ;;
10845
10846haiku*)
10847  version_type=linux # correct to gnu/linux during the next big refactor
10848  need_lib_prefix=no
10849  need_version=no
10850  dynamic_linker="$host_os runtime_loader"
10851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10852  soname_spec='${libname}${release}${shared_ext}$major'
10853  shlibpath_var=LIBRARY_PATH
10854  shlibpath_overrides_runpath=yes
10855  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10856  hardcode_into_libs=yes
10857  ;;
10858
10859hpux9* | hpux10* | hpux11*)
10860  # Give a soname corresponding to the major version so that dld.sl refuses to
10861  # link against other versions.
10862  version_type=sunos
10863  need_lib_prefix=no
10864  need_version=no
10865  case $host_cpu in
10866  ia64*)
10867    shrext_cmds='.so'
10868    hardcode_into_libs=yes
10869    dynamic_linker="$host_os dld.so"
10870    shlibpath_var=LD_LIBRARY_PATH
10871    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10872    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873    soname_spec='${libname}${release}${shared_ext}$major'
10874    if test "X$HPUX_IA64_MODE" = X32; then
10875      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10876    else
10877      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10878    fi
10879    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10880    ;;
10881  hppa*64*)
10882    shrext_cmds='.sl'
10883    hardcode_into_libs=yes
10884    dynamic_linker="$host_os dld.sl"
10885    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10886    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10887    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888    soname_spec='${libname}${release}${shared_ext}$major'
10889    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10890    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10891    ;;
10892  *)
10893    shrext_cmds='.sl'
10894    dynamic_linker="$host_os dld.sl"
10895    shlibpath_var=SHLIB_PATH
10896    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10897    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898    soname_spec='${libname}${release}${shared_ext}$major'
10899    ;;
10900  esac
10901  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10902  postinstall_cmds='chmod 555 $lib'
10903  # or fails outright, so override atomically:
10904  install_override_mode=555
10905  ;;
10906
10907interix[3-9]*)
10908  version_type=linux # correct to gnu/linux during the next big refactor
10909  need_lib_prefix=no
10910  need_version=no
10911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10912  soname_spec='${libname}${release}${shared_ext}$major'
10913  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10914  shlibpath_var=LD_LIBRARY_PATH
10915  shlibpath_overrides_runpath=no
10916  hardcode_into_libs=yes
10917  ;;
10918
10919irix5* | irix6* | nonstopux*)
10920  case $host_os in
10921    nonstopux*) version_type=nonstopux ;;
10922    *)
10923	if test "$lt_cv_prog_gnu_ld" = yes; then
10924		version_type=linux # correct to gnu/linux during the next big refactor
10925	else
10926		version_type=irix
10927	fi ;;
10928  esac
10929  need_lib_prefix=no
10930  need_version=no
10931  soname_spec='${libname}${release}${shared_ext}$major'
10932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10933  case $host_os in
10934  irix5* | nonstopux*)
10935    libsuff= shlibsuff=
10936    ;;
10937  *)
10938    case $LD in # libtool.m4 will add one of these switches to LD
10939    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10940      libsuff= shlibsuff= libmagic=32-bit;;
10941    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10942      libsuff=32 shlibsuff=N32 libmagic=N32;;
10943    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10944      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10945    *) libsuff= shlibsuff= libmagic=never-match;;
10946    esac
10947    ;;
10948  esac
10949  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10950  shlibpath_overrides_runpath=no
10951  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10952  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10953  hardcode_into_libs=yes
10954  ;;
10955
10956# No shared lib support for Linux oldld, aout, or coff.
10957linux*oldld* | linux*aout* | linux*coff*)
10958  dynamic_linker=no
10959  ;;
10960
10961# This must be glibc/ELF.
10962linux* | k*bsd*-gnu | kopensolaris*-gnu)
10963  version_type=linux # correct to gnu/linux during the next big refactor
10964  need_lib_prefix=no
10965  need_version=no
10966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967  soname_spec='${libname}${release}${shared_ext}$major'
10968  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10969  shlibpath_var=LD_LIBRARY_PATH
10970  shlibpath_overrides_runpath=no
10971
10972  # Some binutils ld are patched to set DT_RUNPATH
10973  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10974  $as_echo_n "(cached) " >&6
10975else
10976  lt_cv_shlibpath_overrides_runpath=no
10977    save_LDFLAGS=$LDFLAGS
10978    save_libdir=$libdir
10979    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10980	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h.  */
10983
10984int
10985main ()
10986{
10987
10988  ;
10989  return 0;
10990}
10991_ACEOF
10992if ac_fn_c_try_link "$LINENO"; then :
10993  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10994  lt_cv_shlibpath_overrides_runpath=yes
10995fi
10996fi
10997rm -f core conftest.err conftest.$ac_objext \
10998    conftest$ac_exeext conftest.$ac_ext
10999    LDFLAGS=$save_LDFLAGS
11000    libdir=$save_libdir
11001
11002fi
11003
11004  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11005
11006  # This implies no fast_install, which is unacceptable.
11007  # Some rework will be needed to allow for fast_install
11008  # before this can be enabled.
11009  hardcode_into_libs=yes
11010
11011  # Append ld.so.conf contents to the search path
11012  if test -f /etc/ld.so.conf; then
11013    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' ' '`
11014    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11015  fi
11016
11017  # We used to test for /lib/ld.so.1 and disable shared libraries on
11018  # powerpc, because MkLinux only supported shared libraries with the
11019  # GNU dynamic linker.  Since this was broken with cross compilers,
11020  # most powerpc-linux boxes support dynamic linking these days and
11021  # people can always --disable-shared, the test was removed, and we
11022  # assume the GNU/Linux dynamic linker is in use.
11023  dynamic_linker='GNU/Linux ld.so'
11024  ;;
11025
11026netbsd*)
11027  version_type=sunos
11028  need_lib_prefix=no
11029  need_version=no
11030  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11032    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11033    dynamic_linker='NetBSD (a.out) ld.so'
11034  else
11035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11036    soname_spec='${libname}${release}${shared_ext}$major'
11037    dynamic_linker='NetBSD ld.elf_so'
11038  fi
11039  shlibpath_var=LD_LIBRARY_PATH
11040  shlibpath_overrides_runpath=yes
11041  hardcode_into_libs=yes
11042  ;;
11043
11044newsos6)
11045  version_type=linux # correct to gnu/linux during the next big refactor
11046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  shlibpath_overrides_runpath=yes
11049  ;;
11050
11051*nto* | *qnx*)
11052  version_type=qnx
11053  need_lib_prefix=no
11054  need_version=no
11055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056  soname_spec='${libname}${release}${shared_ext}$major'
11057  shlibpath_var=LD_LIBRARY_PATH
11058  shlibpath_overrides_runpath=no
11059  hardcode_into_libs=yes
11060  dynamic_linker='ldqnx.so'
11061  ;;
11062
11063openbsd*)
11064  version_type=sunos
11065  sys_lib_dlsearch_path_spec="/usr/lib"
11066  need_lib_prefix=no
11067  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11068  case $host_os in
11069    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11070    *)				need_version=no  ;;
11071  esac
11072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074  shlibpath_var=LD_LIBRARY_PATH
11075  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11076    case $host_os in
11077      openbsd2.[89] | openbsd2.[89].*)
11078	shlibpath_overrides_runpath=no
11079	;;
11080      *)
11081	shlibpath_overrides_runpath=yes
11082	;;
11083      esac
11084  else
11085    shlibpath_overrides_runpath=yes
11086  fi
11087  ;;
11088
11089os2*)
11090  libname_spec='$name'
11091  shrext_cmds=".dll"
11092  need_lib_prefix=no
11093  library_names_spec='$libname${shared_ext} $libname.a'
11094  dynamic_linker='OS/2 ld.exe'
11095  shlibpath_var=LIBPATH
11096  ;;
11097
11098osf3* | osf4* | osf5*)
11099  version_type=osf
11100  need_lib_prefix=no
11101  need_version=no
11102  soname_spec='${libname}${release}${shared_ext}$major'
11103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104  shlibpath_var=LD_LIBRARY_PATH
11105  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11106  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11107  ;;
11108
11109rdos*)
11110  dynamic_linker=no
11111  ;;
11112
11113solaris*)
11114  version_type=linux # correct to gnu/linux during the next big refactor
11115  need_lib_prefix=no
11116  need_version=no
11117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118  soname_spec='${libname}${release}${shared_ext}$major'
11119  shlibpath_var=LD_LIBRARY_PATH
11120  shlibpath_overrides_runpath=yes
11121  hardcode_into_libs=yes
11122  # ldd complains unless libraries are executable
11123  postinstall_cmds='chmod +x $lib'
11124  ;;
11125
11126sunos4*)
11127  version_type=sunos
11128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11130  shlibpath_var=LD_LIBRARY_PATH
11131  shlibpath_overrides_runpath=yes
11132  if test "$with_gnu_ld" = yes; then
11133    need_lib_prefix=no
11134  fi
11135  need_version=yes
11136  ;;
11137
11138sysv4 | sysv4.3*)
11139  version_type=linux # correct to gnu/linux during the next big refactor
11140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141  soname_spec='${libname}${release}${shared_ext}$major'
11142  shlibpath_var=LD_LIBRARY_PATH
11143  case $host_vendor in
11144    sni)
11145      shlibpath_overrides_runpath=no
11146      need_lib_prefix=no
11147      runpath_var=LD_RUN_PATH
11148      ;;
11149    siemens)
11150      need_lib_prefix=no
11151      ;;
11152    motorola)
11153      need_lib_prefix=no
11154      need_version=no
11155      shlibpath_overrides_runpath=no
11156      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11157      ;;
11158  esac
11159  ;;
11160
11161sysv4*MP*)
11162  if test -d /usr/nec ;then
11163    version_type=linux # correct to gnu/linux during the next big refactor
11164    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11165    soname_spec='$libname${shared_ext}.$major'
11166    shlibpath_var=LD_LIBRARY_PATH
11167  fi
11168  ;;
11169
11170sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11171  version_type=freebsd-elf
11172  need_lib_prefix=no
11173  need_version=no
11174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11175  soname_spec='${libname}${release}${shared_ext}$major'
11176  shlibpath_var=LD_LIBRARY_PATH
11177  shlibpath_overrides_runpath=yes
11178  hardcode_into_libs=yes
11179  if test "$with_gnu_ld" = yes; then
11180    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11181  else
11182    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11183    case $host_os in
11184      sco3.2v5*)
11185        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11186	;;
11187    esac
11188  fi
11189  sys_lib_dlsearch_path_spec='/usr/lib'
11190  ;;
11191
11192tpf*)
11193  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11194  version_type=linux # correct to gnu/linux during the next big refactor
11195  need_lib_prefix=no
11196  need_version=no
11197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198  shlibpath_var=LD_LIBRARY_PATH
11199  shlibpath_overrides_runpath=no
11200  hardcode_into_libs=yes
11201  ;;
11202
11203uts4*)
11204  version_type=linux # correct to gnu/linux during the next big refactor
11205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206  soname_spec='${libname}${release}${shared_ext}$major'
11207  shlibpath_var=LD_LIBRARY_PATH
11208  ;;
11209
11210*)
11211  dynamic_linker=no
11212  ;;
11213esac
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11215$as_echo "$dynamic_linker" >&6; }
11216test "$dynamic_linker" = no && can_build_shared=no
11217
11218variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11219if test "$GCC" = yes; then
11220  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11221fi
11222
11223if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11224  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11225fi
11226if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11227  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11228fi
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11322$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11323hardcode_action=
11324if test -n "$hardcode_libdir_flag_spec" ||
11325   test -n "$runpath_var" ||
11326   test "X$hardcode_automatic" = "Xyes" ; then
11327
11328  # We can hardcode non-existent directories.
11329  if test "$hardcode_direct" != no &&
11330     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11331     # have to relink, otherwise we might link with an installed library
11332     # when we should be linking with a yet-to-be-installed one
11333     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11334     test "$hardcode_minus_L" != no; then
11335    # Linking always hardcodes the temporary library directory.
11336    hardcode_action=relink
11337  else
11338    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11339    hardcode_action=immediate
11340  fi
11341else
11342  # We cannot hardcode anything, or else we can only hardcode existing
11343  # directories.
11344  hardcode_action=unsupported
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11347$as_echo "$hardcode_action" >&6; }
11348
11349if test "$hardcode_action" = relink ||
11350   test "$inherit_rpath" = yes; then
11351  # Fast installation is not supported
11352  enable_fast_install=no
11353elif test "$shlibpath_overrides_runpath" = yes ||
11354     test "$enable_shared" = no; then
11355  # Fast installation is not necessary
11356  enable_fast_install=needless
11357fi
11358
11359
11360
11361
11362
11363
11364  if test "x$enable_dlopen" != xyes; then
11365  enable_dlopen=unknown
11366  enable_dlopen_self=unknown
11367  enable_dlopen_self_static=unknown
11368else
11369  lt_cv_dlopen=no
11370  lt_cv_dlopen_libs=
11371
11372  case $host_os in
11373  beos*)
11374    lt_cv_dlopen="load_add_on"
11375    lt_cv_dlopen_libs=
11376    lt_cv_dlopen_self=yes
11377    ;;
11378
11379  mingw* | pw32* | cegcc*)
11380    lt_cv_dlopen="LoadLibrary"
11381    lt_cv_dlopen_libs=
11382    ;;
11383
11384  cygwin*)
11385    lt_cv_dlopen="dlopen"
11386    lt_cv_dlopen_libs=
11387    ;;
11388
11389  darwin*)
11390  # if libdl is installed we need to link against it
11391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392$as_echo_n "checking for dlopen in -ldl... " >&6; }
11393if ${ac_cv_lib_dl_dlopen+:} false; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  ac_check_lib_save_LIBS=$LIBS
11397LIBS="-ldl  $LIBS"
11398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399/* end confdefs.h.  */
11400
11401/* Override any GCC internal prototype to avoid an error.
11402   Use char because int might match the return type of a GCC
11403   builtin and then its argument prototype would still apply.  */
11404#ifdef __cplusplus
11405extern "C"
11406#endif
11407char dlopen ();
11408int
11409main ()
11410{
11411return dlopen ();
11412  ;
11413  return 0;
11414}
11415_ACEOF
11416if ac_fn_c_try_link "$LINENO"; then :
11417  ac_cv_lib_dl_dlopen=yes
11418else
11419  ac_cv_lib_dl_dlopen=no
11420fi
11421rm -f core conftest.err conftest.$ac_objext \
11422    conftest$ac_exeext conftest.$ac_ext
11423LIBS=$ac_check_lib_save_LIBS
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11429else
11430
11431    lt_cv_dlopen="dyld"
11432    lt_cv_dlopen_libs=
11433    lt_cv_dlopen_self=yes
11434
11435fi
11436
11437    ;;
11438
11439  *)
11440    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11441if test "x$ac_cv_func_shl_load" = xyes; then :
11442  lt_cv_dlopen="shl_load"
11443else
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11445$as_echo_n "checking for shl_load in -ldld... " >&6; }
11446if ${ac_cv_lib_dld_shl_load+:} false; then :
11447  $as_echo_n "(cached) " >&6
11448else
11449  ac_check_lib_save_LIBS=$LIBS
11450LIBS="-ldld  $LIBS"
11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452/* end confdefs.h.  */
11453
11454/* Override any GCC internal prototype to avoid an error.
11455   Use char because int might match the return type of a GCC
11456   builtin and then its argument prototype would still apply.  */
11457#ifdef __cplusplus
11458extern "C"
11459#endif
11460char shl_load ();
11461int
11462main ()
11463{
11464return shl_load ();
11465  ;
11466  return 0;
11467}
11468_ACEOF
11469if ac_fn_c_try_link "$LINENO"; then :
11470  ac_cv_lib_dld_shl_load=yes
11471else
11472  ac_cv_lib_dld_shl_load=no
11473fi
11474rm -f core conftest.err conftest.$ac_objext \
11475    conftest$ac_exeext conftest.$ac_ext
11476LIBS=$ac_check_lib_save_LIBS
11477fi
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11479$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11480if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11481  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11482else
11483  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11484if test "x$ac_cv_func_dlopen" = xyes; then :
11485  lt_cv_dlopen="dlopen"
11486else
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11488$as_echo_n "checking for dlopen in -ldl... " >&6; }
11489if ${ac_cv_lib_dl_dlopen+:} false; then :
11490  $as_echo_n "(cached) " >&6
11491else
11492  ac_check_lib_save_LIBS=$LIBS
11493LIBS="-ldl  $LIBS"
11494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495/* end confdefs.h.  */
11496
11497/* Override any GCC internal prototype to avoid an error.
11498   Use char because int might match the return type of a GCC
11499   builtin and then its argument prototype would still apply.  */
11500#ifdef __cplusplus
11501extern "C"
11502#endif
11503char dlopen ();
11504int
11505main ()
11506{
11507return dlopen ();
11508  ;
11509  return 0;
11510}
11511_ACEOF
11512if ac_fn_c_try_link "$LINENO"; then :
11513  ac_cv_lib_dl_dlopen=yes
11514else
11515  ac_cv_lib_dl_dlopen=no
11516fi
11517rm -f core conftest.err conftest.$ac_objext \
11518    conftest$ac_exeext conftest.$ac_ext
11519LIBS=$ac_check_lib_save_LIBS
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11522$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11523if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11524  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11525else
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11527$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11528if ${ac_cv_lib_svld_dlopen+:} false; then :
11529  $as_echo_n "(cached) " >&6
11530else
11531  ac_check_lib_save_LIBS=$LIBS
11532LIBS="-lsvld  $LIBS"
11533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535
11536/* Override any GCC internal prototype to avoid an error.
11537   Use char because int might match the return type of a GCC
11538   builtin and then its argument prototype would still apply.  */
11539#ifdef __cplusplus
11540extern "C"
11541#endif
11542char dlopen ();
11543int
11544main ()
11545{
11546return dlopen ();
11547  ;
11548  return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_link "$LINENO"; then :
11552  ac_cv_lib_svld_dlopen=yes
11553else
11554  ac_cv_lib_svld_dlopen=no
11555fi
11556rm -f core conftest.err conftest.$ac_objext \
11557    conftest$ac_exeext conftest.$ac_ext
11558LIBS=$ac_check_lib_save_LIBS
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11561$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11562if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11563  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11564else
11565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11566$as_echo_n "checking for dld_link in -ldld... " >&6; }
11567if ${ac_cv_lib_dld_dld_link+:} false; then :
11568  $as_echo_n "(cached) " >&6
11569else
11570  ac_check_lib_save_LIBS=$LIBS
11571LIBS="-ldld  $LIBS"
11572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573/* end confdefs.h.  */
11574
11575/* Override any GCC internal prototype to avoid an error.
11576   Use char because int might match the return type of a GCC
11577   builtin and then its argument prototype would still apply.  */
11578#ifdef __cplusplus
11579extern "C"
11580#endif
11581char dld_link ();
11582int
11583main ()
11584{
11585return dld_link ();
11586  ;
11587  return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_link "$LINENO"; then :
11591  ac_cv_lib_dld_dld_link=yes
11592else
11593  ac_cv_lib_dld_dld_link=no
11594fi
11595rm -f core conftest.err conftest.$ac_objext \
11596    conftest$ac_exeext conftest.$ac_ext
11597LIBS=$ac_check_lib_save_LIBS
11598fi
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11600$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11601if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11602  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11603fi
11604
11605
11606fi
11607
11608
11609fi
11610
11611
11612fi
11613
11614
11615fi
11616
11617
11618fi
11619
11620    ;;
11621  esac
11622
11623  if test "x$lt_cv_dlopen" != xno; then
11624    enable_dlopen=yes
11625  else
11626    enable_dlopen=no
11627  fi
11628
11629  case $lt_cv_dlopen in
11630  dlopen)
11631    save_CPPFLAGS="$CPPFLAGS"
11632    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11633
11634    save_LDFLAGS="$LDFLAGS"
11635    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11636
11637    save_LIBS="$LIBS"
11638    LIBS="$lt_cv_dlopen_libs $LIBS"
11639
11640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11641$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11642if ${lt_cv_dlopen_self+:} false; then :
11643  $as_echo_n "(cached) " >&6
11644else
11645  	  if test "$cross_compiling" = yes; then :
11646  lt_cv_dlopen_self=cross
11647else
11648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11649  lt_status=$lt_dlunknown
11650  cat > conftest.$ac_ext <<_LT_EOF
11651#line $LINENO "configure"
11652#include "confdefs.h"
11653
11654#if HAVE_DLFCN_H
11655#include <dlfcn.h>
11656#endif
11657
11658#include <stdio.h>
11659
11660#ifdef RTLD_GLOBAL
11661#  define LT_DLGLOBAL		RTLD_GLOBAL
11662#else
11663#  ifdef DL_GLOBAL
11664#    define LT_DLGLOBAL		DL_GLOBAL
11665#  else
11666#    define LT_DLGLOBAL		0
11667#  endif
11668#endif
11669
11670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11671   find out it does not work in some platform. */
11672#ifndef LT_DLLAZY_OR_NOW
11673#  ifdef RTLD_LAZY
11674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11675#  else
11676#    ifdef DL_LAZY
11677#      define LT_DLLAZY_OR_NOW		DL_LAZY
11678#    else
11679#      ifdef RTLD_NOW
11680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11681#      else
11682#        ifdef DL_NOW
11683#          define LT_DLLAZY_OR_NOW	DL_NOW
11684#        else
11685#          define LT_DLLAZY_OR_NOW	0
11686#        endif
11687#      endif
11688#    endif
11689#  endif
11690#endif
11691
11692/* When -fvisbility=hidden is used, assume the code has been annotated
11693   correspondingly for the symbols needed.  */
11694#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11695int fnord () __attribute__((visibility("default")));
11696#endif
11697
11698int fnord () { return 42; }
11699int main ()
11700{
11701  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11702  int status = $lt_dlunknown;
11703
11704  if (self)
11705    {
11706      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11707      else
11708        {
11709	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11710          else puts (dlerror ());
11711	}
11712      /* dlclose (self); */
11713    }
11714  else
11715    puts (dlerror ());
11716
11717  return status;
11718}
11719_LT_EOF
11720  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11721  (eval $ac_link) 2>&5
11722  ac_status=$?
11723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11724  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11725    (./conftest; exit; ) >&5 2>/dev/null
11726    lt_status=$?
11727    case x$lt_status in
11728      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11729      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11730      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11731    esac
11732  else :
11733    # compilation failed
11734    lt_cv_dlopen_self=no
11735  fi
11736fi
11737rm -fr conftest*
11738
11739
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11742$as_echo "$lt_cv_dlopen_self" >&6; }
11743
11744    if test "x$lt_cv_dlopen_self" = xyes; then
11745      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11746      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11747$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11748if ${lt_cv_dlopen_self_static+:} false; then :
11749  $as_echo_n "(cached) " >&6
11750else
11751  	  if test "$cross_compiling" = yes; then :
11752  lt_cv_dlopen_self_static=cross
11753else
11754  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11755  lt_status=$lt_dlunknown
11756  cat > conftest.$ac_ext <<_LT_EOF
11757#line $LINENO "configure"
11758#include "confdefs.h"
11759
11760#if HAVE_DLFCN_H
11761#include <dlfcn.h>
11762#endif
11763
11764#include <stdio.h>
11765
11766#ifdef RTLD_GLOBAL
11767#  define LT_DLGLOBAL		RTLD_GLOBAL
11768#else
11769#  ifdef DL_GLOBAL
11770#    define LT_DLGLOBAL		DL_GLOBAL
11771#  else
11772#    define LT_DLGLOBAL		0
11773#  endif
11774#endif
11775
11776/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11777   find out it does not work in some platform. */
11778#ifndef LT_DLLAZY_OR_NOW
11779#  ifdef RTLD_LAZY
11780#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11781#  else
11782#    ifdef DL_LAZY
11783#      define LT_DLLAZY_OR_NOW		DL_LAZY
11784#    else
11785#      ifdef RTLD_NOW
11786#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11787#      else
11788#        ifdef DL_NOW
11789#          define LT_DLLAZY_OR_NOW	DL_NOW
11790#        else
11791#          define LT_DLLAZY_OR_NOW	0
11792#        endif
11793#      endif
11794#    endif
11795#  endif
11796#endif
11797
11798/* When -fvisbility=hidden is used, assume the code has been annotated
11799   correspondingly for the symbols needed.  */
11800#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11801int fnord () __attribute__((visibility("default")));
11802#endif
11803
11804int fnord () { return 42; }
11805int main ()
11806{
11807  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11808  int status = $lt_dlunknown;
11809
11810  if (self)
11811    {
11812      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11813      else
11814        {
11815	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11816          else puts (dlerror ());
11817	}
11818      /* dlclose (self); */
11819    }
11820  else
11821    puts (dlerror ());
11822
11823  return status;
11824}
11825_LT_EOF
11826  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11827  (eval $ac_link) 2>&5
11828  ac_status=$?
11829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11830  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11831    (./conftest; exit; ) >&5 2>/dev/null
11832    lt_status=$?
11833    case x$lt_status in
11834      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11835      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11836      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11837    esac
11838  else :
11839    # compilation failed
11840    lt_cv_dlopen_self_static=no
11841  fi
11842fi
11843rm -fr conftest*
11844
11845
11846fi
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11848$as_echo "$lt_cv_dlopen_self_static" >&6; }
11849    fi
11850
11851    CPPFLAGS="$save_CPPFLAGS"
11852    LDFLAGS="$save_LDFLAGS"
11853    LIBS="$save_LIBS"
11854    ;;
11855  esac
11856
11857  case $lt_cv_dlopen_self in
11858  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11859  *) enable_dlopen_self=unknown ;;
11860  esac
11861
11862  case $lt_cv_dlopen_self_static in
11863  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11864  *) enable_dlopen_self_static=unknown ;;
11865  esac
11866fi
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884striplib=
11885old_striplib=
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11887$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11888if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11889  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11890  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892$as_echo "yes" >&6; }
11893else
11894# FIXME - insert some real tests, host_os isn't really good enough
11895  case $host_os in
11896  darwin*)
11897    if test -n "$STRIP" ; then
11898      striplib="$STRIP -x"
11899      old_striplib="$STRIP -S"
11900      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901$as_echo "yes" >&6; }
11902    else
11903      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904$as_echo "no" >&6; }
11905    fi
11906    ;;
11907  *)
11908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910    ;;
11911  esac
11912fi
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925  # Report which library types will actually be built
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11927$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11929$as_echo "$can_build_shared" >&6; }
11930
11931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11932$as_echo_n "checking whether to build shared libraries... " >&6; }
11933  test "$can_build_shared" = "no" && enable_shared=no
11934
11935  # On AIX, shared libraries and static libraries use the same namespace, and
11936  # are all built from PIC.
11937  case $host_os in
11938  aix3*)
11939    test "$enable_shared" = yes && enable_static=no
11940    if test -n "$RANLIB"; then
11941      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11942      postinstall_cmds='$RANLIB $lib'
11943    fi
11944    ;;
11945
11946  aix[4-9]*)
11947    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11948      test "$enable_shared" = yes && enable_static=no
11949    fi
11950    ;;
11951  esac
11952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11953$as_echo "$enable_shared" >&6; }
11954
11955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11956$as_echo_n "checking whether to build static libraries... " >&6; }
11957  # Make sure either enable_shared or enable_static is yes.
11958  test "$enable_shared" = yes || enable_static=yes
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11960$as_echo "$enable_static" >&6; }
11961
11962
11963
11964
11965fi
11966ac_ext=c
11967ac_cpp='$CPP $CPPFLAGS'
11968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970ac_compiler_gnu=$ac_cv_c_compiler_gnu
11971
11972CC="$lt_save_CC"
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988        ac_config_commands="$ac_config_commands libtool"
11989
11990
11991
11992
11993# Only expand once:
11994
11995
11996
11997# other programs
11998
11999
12000LIB_MAJ=2
12001
12002
12003cat >>confdefs.h <<_ACEOF
12004#define LIB_MAJ $LIB_MAJ
12005_ACEOF
12006
12007
12008# Check whether --enable-debug was given.
12009if test "${enable_debug+set}" = set; then :
12010  enableval=$enable_debug;
12011$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12012
12013fi
12014
12015
12016# Check whether --enable-unversioned-modules was given.
12017if test "${enable_unversioned_modules+set}" = set; then :
12018  enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12019
12020
12021$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12022
12023
12024fi
12025fi
12026
12027
12028
12029# Check whether --with-modules-dir was given.
12030if test "${with_modules_dir+set}" = set; then :
12031  withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12032
12033	OPENPAM_MODULES_DIR="$withval"
12034
12035cat >>confdefs.h <<_ACEOF
12036#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12037_ACEOF
12038
12039
12040fi
12041fi
12042
12043
12044 if test x"$OPENPAM_MODULES_DIR" != x""; then
12045  CUSTOM_MODULES_DIR_TRUE=
12046  CUSTOM_MODULES_DIR_FALSE='#'
12047else
12048  CUSTOM_MODULES_DIR_TRUE='#'
12049  CUSTOM_MODULES_DIR_FALSE=
12050fi
12051
12052
12053
12054# Check whether --with-doc was given.
12055if test "${with_doc+set}" = set; then :
12056  withval=$with_doc;
12057else
12058  with_doc=yes
12059fi
12060
12061 if test x"$with_doc" = x"yes"; then
12062  WITH_DOC_TRUE=
12063  WITH_DOC_FALSE='#'
12064else
12065  WITH_DOC_TRUE='#'
12066  WITH_DOC_FALSE=
12067fi
12068
12069
12070
12071# Check whether --with-pam-unix was given.
12072if test "${with_pam_unix+set}" = set; then :
12073  withval=$with_pam_unix;
12074else
12075  with_pam_unix=no
12076fi
12077
12078 if test x"$with_pam_unix" = x"yes"; then
12079  WITH_PAM_UNIX_TRUE=
12080  WITH_PAM_UNIX_FALSE='#'
12081else
12082  WITH_PAM_UNIX_TRUE='#'
12083  WITH_PAM_UNIX_FALSE=
12084fi
12085
12086
12087
12088# Check whether --with-pamtest was given.
12089if test "${with_pamtest+set}" = set; then :
12090  withval=$with_pamtest;
12091else
12092  with_pamtest=no
12093fi
12094
12095 if test x"$with_pamtest" = x"yes"; then
12096  WITH_PAMTEST_TRUE=
12097  WITH_PAMTEST_FALSE='#'
12098else
12099  WITH_PAMTEST_TRUE='#'
12100  WITH_PAMTEST_FALSE=
12101fi
12102
12103
12104
12105# Check whether --with-su was given.
12106if test "${with_su+set}" = set; then :
12107  withval=$with_su;
12108else
12109  with_su=no
12110fi
12111
12112 if test x"$with_su" = x"yes"; then
12113  WITH_SU_TRUE=
12114  WITH_SU_FALSE='#'
12115else
12116  WITH_SU_TRUE='#'
12117  WITH_SU_FALSE=
12118fi
12119
12120
12121for ac_header in crypt.h
12122do :
12123  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12124if test "x$ac_cv_header_crypt_h" = xyes; then :
12125  cat >>confdefs.h <<_ACEOF
12126#define HAVE_CRYPT_H 1
12127_ACEOF
12128
12129fi
12130
12131done
12132
12133
12134for ac_func in asprintf vasprintf
12135do :
12136  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12137ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12138if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12139  cat >>confdefs.h <<_ACEOF
12140#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12141_ACEOF
12142
12143fi
12144done
12145
12146for ac_func in dlfunc fdlopen
12147do :
12148  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12149ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12150if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12151  cat >>confdefs.h <<_ACEOF
12152#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153_ACEOF
12154
12155fi
12156done
12157
12158for ac_func in fpurge
12159do :
12160  ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12161if test "x$ac_cv_func_fpurge" = xyes; then :
12162  cat >>confdefs.h <<_ACEOF
12163#define HAVE_FPURGE 1
12164_ACEOF
12165
12166fi
12167done
12168
12169for ac_func in setlogmask
12170do :
12171  ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12172if test "x$ac_cv_func_setlogmask" = xyes; then :
12173  cat >>confdefs.h <<_ACEOF
12174#define HAVE_SETLOGMASK 1
12175_ACEOF
12176
12177fi
12178done
12179
12180for ac_func in strlcat strlcmp strlcpy strlset
12181do :
12182  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12184if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12185  cat >>confdefs.h <<_ACEOF
12186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12187_ACEOF
12188
12189fi
12190done
12191
12192
12193saved_LIBS="${LIBS}"
12194LIBS=""
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12196$as_echo_n "checking for dlopen in -ldl... " >&6; }
12197if ${ac_cv_lib_dl_dlopen+:} false; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  ac_check_lib_save_LIBS=$LIBS
12201LIBS="-ldl  $LIBS"
12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204
12205/* Override any GCC internal prototype to avoid an error.
12206   Use char because int might match the return type of a GCC
12207   builtin and then its argument prototype would still apply.  */
12208#ifdef __cplusplus
12209extern "C"
12210#endif
12211char dlopen ();
12212int
12213main ()
12214{
12215return dlopen ();
12216  ;
12217  return 0;
12218}
12219_ACEOF
12220if ac_fn_c_try_link "$LINENO"; then :
12221  ac_cv_lib_dl_dlopen=yes
12222else
12223  ac_cv_lib_dl_dlopen=no
12224fi
12225rm -f core conftest.err conftest.$ac_objext \
12226    conftest$ac_exeext conftest.$ac_ext
12227LIBS=$ac_check_lib_save_LIBS
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12230$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12231if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12232  cat >>confdefs.h <<_ACEOF
12233#define HAVE_LIBDL 1
12234_ACEOF
12235
12236  LIBS="-ldl $LIBS"
12237
12238fi
12239
12240DL_LIBS="${LIBS}"
12241LIBS="${saved_LIBS}"
12242
12243
12244saved_LIBS="${LIBS}"
12245LIBS=""
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12247$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12248if ${ac_cv_lib_crypt_crypt+:} false; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  ac_check_lib_save_LIBS=$LIBS
12252LIBS="-lcrypt  $LIBS"
12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h.  */
12255
12256/* Override any GCC internal prototype to avoid an error.
12257   Use char because int might match the return type of a GCC
12258   builtin and then its argument prototype would still apply.  */
12259#ifdef __cplusplus
12260extern "C"
12261#endif
12262char crypt ();
12263int
12264main ()
12265{
12266return crypt ();
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_link "$LINENO"; then :
12272  ac_cv_lib_crypt_crypt=yes
12273else
12274  ac_cv_lib_crypt_crypt=no
12275fi
12276rm -f core conftest.err conftest.$ac_objext \
12277    conftest$ac_exeext conftest.$ac_ext
12278LIBS=$ac_check_lib_save_LIBS
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12281$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12282if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12283  cat >>confdefs.h <<_ACEOF
12284#define HAVE_LIBCRYPT 1
12285_ACEOF
12286
12287  LIBS="-lcrypt $LIBS"
12288
12289fi
12290
12291CRYPT_LIBS="${LIBS}"
12292LIBS="${saved_LIBS}"
12293
12294
12295saved_LIBS="${LIBS}"
12296LIBS=""
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
12298$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
12299if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  ac_check_lib_save_LIBS=$LIBS
12303LIBS="-lcrypto  $LIBS"
12304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306
12307/* Override any GCC internal prototype to avoid an error.
12308   Use char because int might match the return type of a GCC
12309   builtin and then its argument prototype would still apply.  */
12310#ifdef __cplusplus
12311extern "C"
12312#endif
12313char HMAC_CTX_init ();
12314int
12315main ()
12316{
12317return HMAC_CTX_init ();
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322if ac_fn_c_try_link "$LINENO"; then :
12323  ac_cv_lib_crypto_HMAC_CTX_init=yes
12324else
12325  ac_cv_lib_crypto_HMAC_CTX_init=no
12326fi
12327rm -f core conftest.err conftest.$ac_objext \
12328    conftest$ac_exeext conftest.$ac_ext
12329LIBS=$ac_check_lib_save_LIBS
12330fi
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
12332$as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
12333if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
12334  cat >>confdefs.h <<_ACEOF
12335#define HAVE_LIBCRYPTO 1
12336_ACEOF
12337
12338  LIBS="-lcrypto $LIBS"
12339
12340fi
12341
12342CRYPTO_LIBS="${LIBS}"
12343LIBS="${saved_LIBS}"
12344
12345
12346# Check whether --enable-developer-warnings was given.
12347if test "${enable_developer_warnings+set}" = set; then :
12348  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12349fi
12350
12351# Check whether --enable-debugging-symbols was given.
12352if test "${enable_debugging_symbols+set}" = set; then :
12353  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12354fi
12355
12356# Check whether --enable-werror was given.
12357if test "${enable_werror+set}" = set; then :
12358  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12359fi
12360
12361
12362ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12363
12364ac_config_files="$ac_config_files pamgdb"
12365
12366ac_config_files="$ac_config_files mkpkgng"
12367
12368cat >confcache <<\_ACEOF
12369# This file is a shell script that caches the results of configure
12370# tests run on this system so they can be shared between configure
12371# scripts and configure runs, see configure's option --config-cache.
12372# It is not useful on other systems.  If it contains results you don't
12373# want to keep, you may remove or edit it.
12374#
12375# config.status only pays attention to the cache file if you give it
12376# the --recheck option to rerun configure.
12377#
12378# `ac_cv_env_foo' variables (set or unset) will be overridden when
12379# loading this file, other *unset* `ac_cv_foo' will be assigned the
12380# following values.
12381
12382_ACEOF
12383
12384# The following way of writing the cache mishandles newlines in values,
12385# but we know of no workaround that is simple, portable, and efficient.
12386# So, we kill variables containing newlines.
12387# Ultrix sh set writes to stderr and can't be redirected directly,
12388# and sets the high bit in the cache file unless we assign to the vars.
12389(
12390  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12391    eval ac_val=\$$ac_var
12392    case $ac_val in #(
12393    *${as_nl}*)
12394      case $ac_var in #(
12395      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12396$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12397      esac
12398      case $ac_var in #(
12399      _ | IFS | as_nl) ;; #(
12400      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12401      *) { eval $ac_var=; unset $ac_var;} ;;
12402      esac ;;
12403    esac
12404  done
12405
12406  (set) 2>&1 |
12407    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12408    *${as_nl}ac_space=\ *)
12409      # `set' does not quote correctly, so add quotes: double-quote
12410      # substitution turns \\\\ into \\, and sed turns \\ into \.
12411      sed -n \
12412	"s/'/'\\\\''/g;
12413	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12414      ;; #(
12415    *)
12416      # `set' quotes correctly as required by POSIX, so do not add quotes.
12417      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12418      ;;
12419    esac |
12420    sort
12421) |
12422  sed '
12423     /^ac_cv_env_/b end
12424     t clear
12425     :clear
12426     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12427     t end
12428     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12429     :end' >>confcache
12430if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12431  if test -w "$cache_file"; then
12432    if test "x$cache_file" != "x/dev/null"; then
12433      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12434$as_echo "$as_me: updating cache $cache_file" >&6;}
12435      if test ! -f "$cache_file" || test -h "$cache_file"; then
12436	cat confcache >"$cache_file"
12437      else
12438        case $cache_file in #(
12439        */* | ?:*)
12440	  mv -f confcache "$cache_file"$$ &&
12441	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12442        *)
12443	  mv -f confcache "$cache_file" ;;
12444	esac
12445      fi
12446    fi
12447  else
12448    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12449$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12450  fi
12451fi
12452rm -f confcache
12453
12454test "x$prefix" = xNONE && prefix=$ac_default_prefix
12455# Let make expand exec_prefix.
12456test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12457
12458DEFS=-DHAVE_CONFIG_H
12459
12460ac_libobjs=
12461ac_ltlibobjs=
12462for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12463  # 1. Remove the extension, and $U if already installed.
12464  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12465  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12466  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12467  #    will be set to the directory where LIBOBJS objects are built.
12468  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12469  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12470done
12471LIBOBJS=$ac_libobjs
12472
12473LTLIBOBJS=$ac_ltlibobjs
12474
12475
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12477$as_echo_n "checking that generated files are newer than configure... " >&6; }
12478   if test -n "$am_sleep_pid"; then
12479     # Hide warnings about reused PIDs.
12480     wait $am_sleep_pid 2>/dev/null
12481   fi
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12483$as_echo "done" >&6; }
12484 if test -n "$EXEEXT"; then
12485  am__EXEEXT_TRUE=
12486  am__EXEEXT_FALSE='#'
12487else
12488  am__EXEEXT_TRUE='#'
12489  am__EXEEXT_FALSE=
12490fi
12491
12492if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12493  as_fn_error $? "conditional \"AMDEP\" was never defined.
12494Usually this means the macro was only invoked conditionally." "$LINENO" 5
12495fi
12496if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12497  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12498Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499fi
12500if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
12501  as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
12502Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503fi
12504if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12505  as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12506Usually this means the macro was only invoked conditionally." "$LINENO" 5
12507fi
12508if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12509  as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12510Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511fi
12512if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12513  as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12514Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515fi
12516if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12517  as_fn_error $? "conditional \"WITH_SU\" was never defined.
12518Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519fi
12520
12521: "${CONFIG_STATUS=./config.status}"
12522ac_write_fail=0
12523ac_clean_files_save=$ac_clean_files
12524ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12526$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12527as_write_fail=0
12528cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12529#! $SHELL
12530# Generated by $as_me.
12531# Run this file to recreate the current configuration.
12532# Compiler output produced by configure, useful for debugging
12533# configure, is in config.log if it exists.
12534
12535debug=false
12536ac_cs_recheck=false
12537ac_cs_silent=false
12538
12539SHELL=\${CONFIG_SHELL-$SHELL}
12540export SHELL
12541_ASEOF
12542cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12543## -------------------- ##
12544## M4sh Initialization. ##
12545## -------------------- ##
12546
12547# Be more Bourne compatible
12548DUALCASE=1; export DUALCASE # for MKS sh
12549if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12550  emulate sh
12551  NULLCMD=:
12552  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12553  # is contrary to our usage.  Disable this feature.
12554  alias -g '${1+"$@"}'='"$@"'
12555  setopt NO_GLOB_SUBST
12556else
12557  case `(set -o) 2>/dev/null` in #(
12558  *posix*) :
12559    set -o posix ;; #(
12560  *) :
12561     ;;
12562esac
12563fi
12564
12565
12566as_nl='
12567'
12568export as_nl
12569# Printing a long string crashes Solaris 7 /usr/bin/printf.
12570as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12572as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12573# Prefer a ksh shell builtin over an external printf program on Solaris,
12574# but without wasting forks for bash or zsh.
12575if test -z "$BASH_VERSION$ZSH_VERSION" \
12576    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12577  as_echo='print -r --'
12578  as_echo_n='print -rn --'
12579elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12580  as_echo='printf %s\n'
12581  as_echo_n='printf %s'
12582else
12583  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12584    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12585    as_echo_n='/usr/ucb/echo -n'
12586  else
12587    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12588    as_echo_n_body='eval
12589      arg=$1;
12590      case $arg in #(
12591      *"$as_nl"*)
12592	expr "X$arg" : "X\\(.*\\)$as_nl";
12593	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12594      esac;
12595      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12596    '
12597    export as_echo_n_body
12598    as_echo_n='sh -c $as_echo_n_body as_echo'
12599  fi
12600  export as_echo_body
12601  as_echo='sh -c $as_echo_body as_echo'
12602fi
12603
12604# The user is always right.
12605if test "${PATH_SEPARATOR+set}" != set; then
12606  PATH_SEPARATOR=:
12607  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12608    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12609      PATH_SEPARATOR=';'
12610  }
12611fi
12612
12613
12614# IFS
12615# We need space, tab and new line, in precisely that order.  Quoting is
12616# there to prevent editors from complaining about space-tab.
12617# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12618# splitting by setting IFS to empty value.)
12619IFS=" ""	$as_nl"
12620
12621# Find who we are.  Look in the path if we contain no directory separator.
12622as_myself=
12623case $0 in #((
12624  *[\\/]* ) as_myself=$0 ;;
12625  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626for as_dir in $PATH
12627do
12628  IFS=$as_save_IFS
12629  test -z "$as_dir" && as_dir=.
12630    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12631  done
12632IFS=$as_save_IFS
12633
12634     ;;
12635esac
12636# We did not find ourselves, most probably we were run as `sh COMMAND'
12637# in which case we are not to be found in the path.
12638if test "x$as_myself" = x; then
12639  as_myself=$0
12640fi
12641if test ! -f "$as_myself"; then
12642  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12643  exit 1
12644fi
12645
12646# Unset variables that we do not need and which cause bugs (e.g. in
12647# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12648# suppresses any "Segmentation fault" message there.  '((' could
12649# trigger a bug in pdksh 5.2.14.
12650for as_var in BASH_ENV ENV MAIL MAILPATH
12651do eval test x\${$as_var+set} = xset \
12652  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12653done
12654PS1='$ '
12655PS2='> '
12656PS4='+ '
12657
12658# NLS nuisances.
12659LC_ALL=C
12660export LC_ALL
12661LANGUAGE=C
12662export LANGUAGE
12663
12664# CDPATH.
12665(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12666
12667
12668# as_fn_error STATUS ERROR [LINENO LOG_FD]
12669# ----------------------------------------
12670# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12671# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12672# script with STATUS, using 1 if that was 0.
12673as_fn_error ()
12674{
12675  as_status=$1; test $as_status -eq 0 && as_status=1
12676  if test "$4"; then
12677    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12678    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12679  fi
12680  $as_echo "$as_me: error: $2" >&2
12681  as_fn_exit $as_status
12682} # as_fn_error
12683
12684
12685# as_fn_set_status STATUS
12686# -----------------------
12687# Set $? to STATUS, without forking.
12688as_fn_set_status ()
12689{
12690  return $1
12691} # as_fn_set_status
12692
12693# as_fn_exit STATUS
12694# -----------------
12695# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12696as_fn_exit ()
12697{
12698  set +e
12699  as_fn_set_status $1
12700  exit $1
12701} # as_fn_exit
12702
12703# as_fn_unset VAR
12704# ---------------
12705# Portably unset VAR.
12706as_fn_unset ()
12707{
12708  { eval $1=; unset $1;}
12709}
12710as_unset=as_fn_unset
12711# as_fn_append VAR VALUE
12712# ----------------------
12713# Append the text in VALUE to the end of the definition contained in VAR. Take
12714# advantage of any shell optimizations that allow amortized linear growth over
12715# repeated appends, instead of the typical quadratic growth present in naive
12716# implementations.
12717if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12718  eval 'as_fn_append ()
12719  {
12720    eval $1+=\$2
12721  }'
12722else
12723  as_fn_append ()
12724  {
12725    eval $1=\$$1\$2
12726  }
12727fi # as_fn_append
12728
12729# as_fn_arith ARG...
12730# ------------------
12731# Perform arithmetic evaluation on the ARGs, and store the result in the
12732# global $as_val. Take advantage of shells that can avoid forks. The arguments
12733# must be portable across $(()) and expr.
12734if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12735  eval 'as_fn_arith ()
12736  {
12737    as_val=$(( $* ))
12738  }'
12739else
12740  as_fn_arith ()
12741  {
12742    as_val=`expr "$@" || test $? -eq 1`
12743  }
12744fi # as_fn_arith
12745
12746
12747if expr a : '\(a\)' >/dev/null 2>&1 &&
12748   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12749  as_expr=expr
12750else
12751  as_expr=false
12752fi
12753
12754if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12755  as_basename=basename
12756else
12757  as_basename=false
12758fi
12759
12760if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12761  as_dirname=dirname
12762else
12763  as_dirname=false
12764fi
12765
12766as_me=`$as_basename -- "$0" ||
12767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12768	 X"$0" : 'X\(//\)$' \| \
12769	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12770$as_echo X/"$0" |
12771    sed '/^.*\/\([^/][^/]*\)\/*$/{
12772	    s//\1/
12773	    q
12774	  }
12775	  /^X\/\(\/\/\)$/{
12776	    s//\1/
12777	    q
12778	  }
12779	  /^X\/\(\/\).*/{
12780	    s//\1/
12781	    q
12782	  }
12783	  s/.*/./; q'`
12784
12785# Avoid depending upon Character Ranges.
12786as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12787as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12788as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12789as_cr_digits='0123456789'
12790as_cr_alnum=$as_cr_Letters$as_cr_digits
12791
12792ECHO_C= ECHO_N= ECHO_T=
12793case `echo -n x` in #(((((
12794-n*)
12795  case `echo 'xy\c'` in
12796  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12797  xy)  ECHO_C='\c';;
12798  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12799       ECHO_T='	';;
12800  esac;;
12801*)
12802  ECHO_N='-n';;
12803esac
12804
12805rm -f conf$$ conf$$.exe conf$$.file
12806if test -d conf$$.dir; then
12807  rm -f conf$$.dir/conf$$.file
12808else
12809  rm -f conf$$.dir
12810  mkdir conf$$.dir 2>/dev/null
12811fi
12812if (echo >conf$$.file) 2>/dev/null; then
12813  if ln -s conf$$.file conf$$ 2>/dev/null; then
12814    as_ln_s='ln -s'
12815    # ... but there are two gotchas:
12816    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12817    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12818    # In both cases, we have to default to `cp -pR'.
12819    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12820      as_ln_s='cp -pR'
12821  elif ln conf$$.file conf$$ 2>/dev/null; then
12822    as_ln_s=ln
12823  else
12824    as_ln_s='cp -pR'
12825  fi
12826else
12827  as_ln_s='cp -pR'
12828fi
12829rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12830rmdir conf$$.dir 2>/dev/null
12831
12832
12833# as_fn_mkdir_p
12834# -------------
12835# Create "$as_dir" as a directory, including parents if necessary.
12836as_fn_mkdir_p ()
12837{
12838
12839  case $as_dir in #(
12840  -*) as_dir=./$as_dir;;
12841  esac
12842  test -d "$as_dir" || eval $as_mkdir_p || {
12843    as_dirs=
12844    while :; do
12845      case $as_dir in #(
12846      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12847      *) as_qdir=$as_dir;;
12848      esac
12849      as_dirs="'$as_qdir' $as_dirs"
12850      as_dir=`$as_dirname -- "$as_dir" ||
12851$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12852	 X"$as_dir" : 'X\(//\)[^/]' \| \
12853	 X"$as_dir" : 'X\(//\)$' \| \
12854	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12855$as_echo X"$as_dir" |
12856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12857	    s//\1/
12858	    q
12859	  }
12860	  /^X\(\/\/\)[^/].*/{
12861	    s//\1/
12862	    q
12863	  }
12864	  /^X\(\/\/\)$/{
12865	    s//\1/
12866	    q
12867	  }
12868	  /^X\(\/\).*/{
12869	    s//\1/
12870	    q
12871	  }
12872	  s/.*/./; q'`
12873      test -d "$as_dir" && break
12874    done
12875    test -z "$as_dirs" || eval "mkdir $as_dirs"
12876  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12877
12878
12879} # as_fn_mkdir_p
12880if mkdir -p . 2>/dev/null; then
12881  as_mkdir_p='mkdir -p "$as_dir"'
12882else
12883  test -d ./-p && rmdir ./-p
12884  as_mkdir_p=false
12885fi
12886
12887
12888# as_fn_executable_p FILE
12889# -----------------------
12890# Test if FILE is an executable regular file.
12891as_fn_executable_p ()
12892{
12893  test -f "$1" && test -x "$1"
12894} # as_fn_executable_p
12895as_test_x='test -x'
12896as_executable_p=as_fn_executable_p
12897
12898# Sed expression to map a string onto a valid CPP name.
12899as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12900
12901# Sed expression to map a string onto a valid variable name.
12902as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12903
12904
12905exec 6>&1
12906## ----------------------------------- ##
12907## Main body of $CONFIG_STATUS script. ##
12908## ----------------------------------- ##
12909_ASEOF
12910test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12911
12912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12913# Save the log message, to keep $0 and so on meaningful, and to
12914# report actual input values of CONFIG_FILES etc. instead of their
12915# values after options handling.
12916ac_log="
12917This file was extended by OpenPAM $as_me 20140912, which was
12918generated by GNU Autoconf 2.69.  Invocation command line was
12919
12920  CONFIG_FILES    = $CONFIG_FILES
12921  CONFIG_HEADERS  = $CONFIG_HEADERS
12922  CONFIG_LINKS    = $CONFIG_LINKS
12923  CONFIG_COMMANDS = $CONFIG_COMMANDS
12924  $ $0 $@
12925
12926on `(hostname || uname -n) 2>/dev/null | sed 1q`
12927"
12928
12929_ACEOF
12930
12931case $ac_config_files in *"
12932"*) set x $ac_config_files; shift; ac_config_files=$*;;
12933esac
12934
12935case $ac_config_headers in *"
12936"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12937esac
12938
12939
12940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12941# Files that config.status was made for.
12942config_files="$ac_config_files"
12943config_headers="$ac_config_headers"
12944config_commands="$ac_config_commands"
12945
12946_ACEOF
12947
12948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12949ac_cs_usage="\
12950\`$as_me' instantiates files and other configuration actions
12951from templates according to the current configuration.  Unless the files
12952and actions are specified as TAGs, all are instantiated by default.
12953
12954Usage: $0 [OPTION]... [TAG]...
12955
12956  -h, --help       print this help, then exit
12957  -V, --version    print version number and configuration settings, then exit
12958      --config     print configuration, then exit
12959  -q, --quiet, --silent
12960                   do not print progress messages
12961  -d, --debug      don't remove temporary files
12962      --recheck    update $as_me by reconfiguring in the same conditions
12963      --file=FILE[:TEMPLATE]
12964                   instantiate the configuration file FILE
12965      --header=FILE[:TEMPLATE]
12966                   instantiate the configuration header FILE
12967
12968Configuration files:
12969$config_files
12970
12971Configuration headers:
12972$config_headers
12973
12974Configuration commands:
12975$config_commands
12976
12977Report bugs to <des@des.no>.
12978OpenPAM home page: <http://www.openpam.org/>."
12979
12980_ACEOF
12981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12983ac_cs_version="\\
12984OpenPAM config.status 20140912
12985configured by $0, generated by GNU Autoconf 2.69,
12986  with options \\"\$ac_cs_config\\"
12987
12988Copyright (C) 2012 Free Software Foundation, Inc.
12989This config.status script is free software; the Free Software Foundation
12990gives unlimited permission to copy, distribute and modify it."
12991
12992ac_pwd='$ac_pwd'
12993srcdir='$srcdir'
12994INSTALL='$INSTALL'
12995MKDIR_P='$MKDIR_P'
12996AWK='$AWK'
12997test -n "\$AWK" || AWK=awk
12998_ACEOF
12999
13000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001# The default lists apply if the user does not specify any file.
13002ac_need_defaults=:
13003while test $# != 0
13004do
13005  case $1 in
13006  --*=?*)
13007    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13008    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13009    ac_shift=:
13010    ;;
13011  --*=)
13012    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13013    ac_optarg=
13014    ac_shift=:
13015    ;;
13016  *)
13017    ac_option=$1
13018    ac_optarg=$2
13019    ac_shift=shift
13020    ;;
13021  esac
13022
13023  case $ac_option in
13024  # Handling of the options.
13025  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13026    ac_cs_recheck=: ;;
13027  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13028    $as_echo "$ac_cs_version"; exit ;;
13029  --config | --confi | --conf | --con | --co | --c )
13030    $as_echo "$ac_cs_config"; exit ;;
13031  --debug | --debu | --deb | --de | --d | -d )
13032    debug=: ;;
13033  --file | --fil | --fi | --f )
13034    $ac_shift
13035    case $ac_optarg in
13036    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13037    '') as_fn_error $? "missing file argument" ;;
13038    esac
13039    as_fn_append CONFIG_FILES " '$ac_optarg'"
13040    ac_need_defaults=false;;
13041  --header | --heade | --head | --hea )
13042    $ac_shift
13043    case $ac_optarg in
13044    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13045    esac
13046    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13047    ac_need_defaults=false;;
13048  --he | --h)
13049    # Conflict between --help and --header
13050    as_fn_error $? "ambiguous option: \`$1'
13051Try \`$0 --help' for more information.";;
13052  --help | --hel | -h )
13053    $as_echo "$ac_cs_usage"; exit ;;
13054  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13055  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13056    ac_cs_silent=: ;;
13057
13058  # This is an error.
13059  -*) as_fn_error $? "unrecognized option: \`$1'
13060Try \`$0 --help' for more information." ;;
13061
13062  *) as_fn_append ac_config_targets " $1"
13063     ac_need_defaults=false ;;
13064
13065  esac
13066  shift
13067done
13068
13069ac_configure_extra_args=
13070
13071if $ac_cs_silent; then
13072  exec 6>/dev/null
13073  ac_configure_extra_args="$ac_configure_extra_args --silent"
13074fi
13075
13076_ACEOF
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078if \$ac_cs_recheck; then
13079  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13080  shift
13081  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13082  CONFIG_SHELL='$SHELL'
13083  export CONFIG_SHELL
13084  exec "\$@"
13085fi
13086
13087_ACEOF
13088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13089exec 5>>config.log
13090{
13091  echo
13092  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13093## Running $as_me. ##
13094_ASBOX
13095  $as_echo "$ac_log"
13096} >&5
13097
13098_ACEOF
13099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13100#
13101# INIT-COMMANDS
13102#
13103AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13104
13105
13106# The HP-UX ksh and POSIX shell print the target directory to stdout
13107# if CDPATH is set.
13108(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13109
13110sed_quote_subst='$sed_quote_subst'
13111double_quote_subst='$double_quote_subst'
13112delay_variable_subst='$delay_variable_subst'
13113macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13114macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13115enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13116enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13117pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13118enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13119SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13120ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13121PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13122host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13123host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13124host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13125build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13126build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13127build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13128SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13129Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13130GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13131EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13132FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13133LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13134NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13135LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13136max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13137ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13138exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13139lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13140lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13141lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13142lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13143lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13144reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13145reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13146OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13147deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13148file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13149file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13150want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13151DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13152sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13153AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13154AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13155archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13156STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13157RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13158old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13159old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13160old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13161lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13162CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13163CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13164compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13165GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13166lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13167lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13168lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13169lt_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"`'
13170nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13171lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13172objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13173MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13174lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13175lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13176lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13177lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13178lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13179need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13180MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13181DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13182NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13183LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13184OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13185OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13186libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13187shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13188extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13189archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13190enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13191export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13192whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13193compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13194old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13195old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13196archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13197archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13198module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13199module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13200with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13201allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13202no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13203hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13204hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13205hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13206hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13207hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13208hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13209hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13210inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13211link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13212always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13213export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13214exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13215include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13216prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13217postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13218file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13219variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13220need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13221need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13222version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13223runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13224shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13225shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13226libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13227library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13228soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13229install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13230postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13231postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13232finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13233finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13234hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13235sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13236sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13237hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13238enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13239enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13240enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13241old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13242striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13243
13244LTCC='$LTCC'
13245LTCFLAGS='$LTCFLAGS'
13246compiler='$compiler_DEFAULT'
13247
13248# A function that is used when there is no print builtin or printf.
13249func_fallback_echo ()
13250{
13251  eval 'cat <<_LTECHO_EOF
13252\$1
13253_LTECHO_EOF'
13254}
13255
13256# Quote evaled strings.
13257for var in SHELL \
13258ECHO \
13259PATH_SEPARATOR \
13260SED \
13261GREP \
13262EGREP \
13263FGREP \
13264LD \
13265NM \
13266LN_S \
13267lt_SP2NL \
13268lt_NL2SP \
13269reload_flag \
13270OBJDUMP \
13271deplibs_check_method \
13272file_magic_cmd \
13273file_magic_glob \
13274want_nocaseglob \
13275DLLTOOL \
13276sharedlib_from_linklib_cmd \
13277AR \
13278AR_FLAGS \
13279archiver_list_spec \
13280STRIP \
13281RANLIB \
13282CC \
13283CFLAGS \
13284compiler \
13285lt_cv_sys_global_symbol_pipe \
13286lt_cv_sys_global_symbol_to_cdecl \
13287lt_cv_sys_global_symbol_to_c_name_address \
13288lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13289nm_file_list_spec \
13290lt_prog_compiler_no_builtin_flag \
13291lt_prog_compiler_pic \
13292lt_prog_compiler_wl \
13293lt_prog_compiler_static \
13294lt_cv_prog_compiler_c_o \
13295need_locks \
13296MANIFEST_TOOL \
13297DSYMUTIL \
13298NMEDIT \
13299LIPO \
13300OTOOL \
13301OTOOL64 \
13302shrext_cmds \
13303export_dynamic_flag_spec \
13304whole_archive_flag_spec \
13305compiler_needs_object \
13306with_gnu_ld \
13307allow_undefined_flag \
13308no_undefined_flag \
13309hardcode_libdir_flag_spec \
13310hardcode_libdir_separator \
13311exclude_expsyms \
13312include_expsyms \
13313file_list_spec \
13314variables_saved_for_relink \
13315libname_spec \
13316library_names_spec \
13317soname_spec \
13318install_override_mode \
13319finish_eval \
13320old_striplib \
13321striplib; do
13322    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13323    *[\\\\\\\`\\"\\\$]*)
13324      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13325      ;;
13326    *)
13327      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13328      ;;
13329    esac
13330done
13331
13332# Double-quote double-evaled strings.
13333for var in reload_cmds \
13334old_postinstall_cmds \
13335old_postuninstall_cmds \
13336old_archive_cmds \
13337extract_expsyms_cmds \
13338old_archive_from_new_cmds \
13339old_archive_from_expsyms_cmds \
13340archive_cmds \
13341archive_expsym_cmds \
13342module_cmds \
13343module_expsym_cmds \
13344export_symbols_cmds \
13345prelink_cmds \
13346postlink_cmds \
13347postinstall_cmds \
13348postuninstall_cmds \
13349finish_cmds \
13350sys_lib_search_path_spec \
13351sys_lib_dlsearch_path_spec; do
13352    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13353    *[\\\\\\\`\\"\\\$]*)
13354      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13355      ;;
13356    *)
13357      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13358      ;;
13359    esac
13360done
13361
13362ac_aux_dir='$ac_aux_dir'
13363xsi_shell='$xsi_shell'
13364lt_shell_append='$lt_shell_append'
13365
13366# See if we are running on zsh, and set the options which allow our
13367# commands through without removal of \ escapes INIT.
13368if test -n "\${ZSH_VERSION+set}" ; then
13369   setopt NO_GLOB_SUBST
13370fi
13371
13372
13373    PACKAGE='$PACKAGE'
13374    VERSION='$VERSION'
13375    TIMESTAMP='$TIMESTAMP'
13376    RM='$RM'
13377    ofile='$ofile'
13378
13379
13380
13381
13382_ACEOF
13383
13384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13385
13386# Handling of arguments.
13387for ac_config_target in $ac_config_targets
13388do
13389  case $ac_config_target in
13390    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13391    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13392    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13393    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13394    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13395    "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13396    "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13397    "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13398    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13399    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13400    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13401    "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13402    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13403    "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
13404    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13405    "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13406    "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13407    "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13408    "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13409    "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13410    "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
13411
13412  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13413  esac
13414done
13415
13416
13417# If the user did not use the arguments to specify the items to instantiate,
13418# then the envvar interface is used.  Set only those that are not.
13419# We use the long form for the default assignment because of an extremely
13420# bizarre bug on SunOS 4.1.3.
13421if $ac_need_defaults; then
13422  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13423  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13424  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13425fi
13426
13427# Have a temporary directory for convenience.  Make it in the build tree
13428# simply because there is no reason against having it here, and in addition,
13429# creating and moving files from /tmp can sometimes cause problems.
13430# Hook for its removal unless debugging.
13431# Note that there is a small window in which the directory will not be cleaned:
13432# after its creation but before its name has been assigned to `$tmp'.
13433$debug ||
13434{
13435  tmp= ac_tmp=
13436  trap 'exit_status=$?
13437  : "${ac_tmp:=$tmp}"
13438  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13439' 0
13440  trap 'as_fn_exit 1' 1 2 13 15
13441}
13442# Create a (secure) tmp directory for tmp files.
13443
13444{
13445  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13446  test -d "$tmp"
13447}  ||
13448{
13449  tmp=./conf$$-$RANDOM
13450  (umask 077 && mkdir "$tmp")
13451} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13452ac_tmp=$tmp
13453
13454# Set up the scripts for CONFIG_FILES section.
13455# No need to generate them if there are no CONFIG_FILES.
13456# This happens for instance with `./config.status config.h'.
13457if test -n "$CONFIG_FILES"; then
13458
13459
13460ac_cr=`echo X | tr X '\015'`
13461# On cygwin, bash can eat \r inside `` if the user requested igncr.
13462# But we know of no other shell where ac_cr would be empty at this
13463# point, so we can use a bashism as a fallback.
13464if test "x$ac_cr" = x; then
13465  eval ac_cr=\$\'\\r\'
13466fi
13467ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13468if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13469  ac_cs_awk_cr='\\r'
13470else
13471  ac_cs_awk_cr=$ac_cr
13472fi
13473
13474echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13475_ACEOF
13476
13477
13478{
13479  echo "cat >conf$$subs.awk <<_ACEOF" &&
13480  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13481  echo "_ACEOF"
13482} >conf$$subs.sh ||
13483  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13484ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13485ac_delim='%!_!# '
13486for ac_last_try in false false false false false :; do
13487  . ./conf$$subs.sh ||
13488    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13489
13490  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13491  if test $ac_delim_n = $ac_delim_num; then
13492    break
13493  elif $ac_last_try; then
13494    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13495  else
13496    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13497  fi
13498done
13499rm -f conf$$subs.sh
13500
13501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13502cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13503_ACEOF
13504sed -n '
13505h
13506s/^/S["/; s/!.*/"]=/
13507p
13508g
13509s/^[^!]*!//
13510:repl
13511t repl
13512s/'"$ac_delim"'$//
13513t delim
13514:nl
13515h
13516s/\(.\{148\}\)..*/\1/
13517t more1
13518s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13519p
13520n
13521b repl
13522:more1
13523s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13524p
13525g
13526s/.\{148\}//
13527t nl
13528:delim
13529h
13530s/\(.\{148\}\)..*/\1/
13531t more2
13532s/["\\]/\\&/g; s/^/"/; s/$/"/
13533p
13534b
13535:more2
13536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13537p
13538g
13539s/.\{148\}//
13540t delim
13541' <conf$$subs.awk | sed '
13542/^[^""]/{
13543  N
13544  s/\n//
13545}
13546' >>$CONFIG_STATUS || ac_write_fail=1
13547rm -f conf$$subs.awk
13548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13549_ACAWK
13550cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13551  for (key in S) S_is_set[key] = 1
13552  FS = ""
13553
13554}
13555{
13556  line = $ 0
13557  nfields = split(line, field, "@")
13558  substed = 0
13559  len = length(field[1])
13560  for (i = 2; i < nfields; i++) {
13561    key = field[i]
13562    keylen = length(key)
13563    if (S_is_set[key]) {
13564      value = S[key]
13565      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13566      len += length(value) + length(field[++i])
13567      substed = 1
13568    } else
13569      len += 1 + keylen
13570  }
13571
13572  print line
13573}
13574
13575_ACAWK
13576_ACEOF
13577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13578if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13579  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13580else
13581  cat
13582fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13583  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13584_ACEOF
13585
13586# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13587# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13588# trailing colons and then remove the whole line if VPATH becomes empty
13589# (actually we leave an empty line to preserve line numbers).
13590if test "x$srcdir" = x.; then
13591  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13592h
13593s///
13594s/^/:/
13595s/[	 ]*$/:/
13596s/:\$(srcdir):/:/g
13597s/:\${srcdir}:/:/g
13598s/:@srcdir@:/:/g
13599s/^:*//
13600s/:*$//
13601x
13602s/\(=[	 ]*\).*/\1/
13603G
13604s/\n//
13605s/^[^=]*=[	 ]*$//
13606}'
13607fi
13608
13609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610fi # test -n "$CONFIG_FILES"
13611
13612# Set up the scripts for CONFIG_HEADERS section.
13613# No need to generate them if there are no CONFIG_HEADERS.
13614# This happens for instance with `./config.status Makefile'.
13615if test -n "$CONFIG_HEADERS"; then
13616cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13617BEGIN {
13618_ACEOF
13619
13620# Transform confdefs.h into an awk script `defines.awk', embedded as
13621# here-document in config.status, that substitutes the proper values into
13622# config.h.in to produce config.h.
13623
13624# Create a delimiter string that does not exist in confdefs.h, to ease
13625# handling of long lines.
13626ac_delim='%!_!# '
13627for ac_last_try in false false :; do
13628  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13629  if test -z "$ac_tt"; then
13630    break
13631  elif $ac_last_try; then
13632    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13633  else
13634    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13635  fi
13636done
13637
13638# For the awk script, D is an array of macro values keyed by name,
13639# likewise P contains macro parameters if any.  Preserve backslash
13640# newline sequences.
13641
13642ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13643sed -n '
13644s/.\{148\}/&'"$ac_delim"'/g
13645t rset
13646:rset
13647s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13648t def
13649d
13650:def
13651s/\\$//
13652t bsnl
13653s/["\\]/\\&/g
13654s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13655D["\1"]=" \3"/p
13656s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13657d
13658:bsnl
13659s/["\\]/\\&/g
13660s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13661D["\1"]=" \3\\\\\\n"\\/p
13662t cont
13663s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13664t cont
13665d
13666:cont
13667n
13668s/.\{148\}/&'"$ac_delim"'/g
13669t clear
13670:clear
13671s/\\$//
13672t bsnlc
13673s/["\\]/\\&/g; s/^/"/; s/$/"/p
13674d
13675:bsnlc
13676s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13677b cont
13678' <confdefs.h | sed '
13679s/'"$ac_delim"'/"\\\
13680"/g' >>$CONFIG_STATUS || ac_write_fail=1
13681
13682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683  for (key in D) D_is_set[key] = 1
13684  FS = ""
13685}
13686/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13687  line = \$ 0
13688  split(line, arg, " ")
13689  if (arg[1] == "#") {
13690    defundef = arg[2]
13691    mac1 = arg[3]
13692  } else {
13693    defundef = substr(arg[1], 2)
13694    mac1 = arg[2]
13695  }
13696  split(mac1, mac2, "(") #)
13697  macro = mac2[1]
13698  prefix = substr(line, 1, index(line, defundef) - 1)
13699  if (D_is_set[macro]) {
13700    # Preserve the white space surrounding the "#".
13701    print prefix "define", macro P[macro] D[macro]
13702    next
13703  } else {
13704    # Replace #undef with comments.  This is necessary, for example,
13705    # in the case of _POSIX_SOURCE, which is predefined and required
13706    # on some systems where configure will not decide to define it.
13707    if (defundef == "undef") {
13708      print "/*", prefix defundef, macro, "*/"
13709      next
13710    }
13711  }
13712}
13713{ print }
13714_ACAWK
13715_ACEOF
13716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13718fi # test -n "$CONFIG_HEADERS"
13719
13720
13721eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13722shift
13723for ac_tag
13724do
13725  case $ac_tag in
13726  :[FHLC]) ac_mode=$ac_tag; continue;;
13727  esac
13728  case $ac_mode$ac_tag in
13729  :[FHL]*:*);;
13730  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13731  :[FH]-) ac_tag=-:-;;
13732  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13733  esac
13734  ac_save_IFS=$IFS
13735  IFS=:
13736  set x $ac_tag
13737  IFS=$ac_save_IFS
13738  shift
13739  ac_file=$1
13740  shift
13741
13742  case $ac_mode in
13743  :L) ac_source=$1;;
13744  :[FH])
13745    ac_file_inputs=
13746    for ac_f
13747    do
13748      case $ac_f in
13749      -) ac_f="$ac_tmp/stdin";;
13750      *) # Look for the file first in the build tree, then in the source tree
13751	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13752	 # because $ac_f cannot contain `:'.
13753	 test -f "$ac_f" ||
13754	   case $ac_f in
13755	   [\\/$]*) false;;
13756	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13757	   esac ||
13758	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13759      esac
13760      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13761      as_fn_append ac_file_inputs " '$ac_f'"
13762    done
13763
13764    # Let's still pretend it is `configure' which instantiates (i.e., don't
13765    # use $as_me), people would be surprised to read:
13766    #    /* config.h.  Generated by config.status.  */
13767    configure_input='Generated from '`
13768	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13769	`' by configure.'
13770    if test x"$ac_file" != x-; then
13771      configure_input="$ac_file.  $configure_input"
13772      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13773$as_echo "$as_me: creating $ac_file" >&6;}
13774    fi
13775    # Neutralize special characters interpreted by sed in replacement strings.
13776    case $configure_input in #(
13777    *\&* | *\|* | *\\* )
13778       ac_sed_conf_input=`$as_echo "$configure_input" |
13779       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13780    *) ac_sed_conf_input=$configure_input;;
13781    esac
13782
13783    case $ac_tag in
13784    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13785      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13786    esac
13787    ;;
13788  esac
13789
13790  ac_dir=`$as_dirname -- "$ac_file" ||
13791$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792	 X"$ac_file" : 'X\(//\)[^/]' \| \
13793	 X"$ac_file" : 'X\(//\)$' \| \
13794	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13795$as_echo X"$ac_file" |
13796    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13797	    s//\1/
13798	    q
13799	  }
13800	  /^X\(\/\/\)[^/].*/{
13801	    s//\1/
13802	    q
13803	  }
13804	  /^X\(\/\/\)$/{
13805	    s//\1/
13806	    q
13807	  }
13808	  /^X\(\/\).*/{
13809	    s//\1/
13810	    q
13811	  }
13812	  s/.*/./; q'`
13813  as_dir="$ac_dir"; as_fn_mkdir_p
13814  ac_builddir=.
13815
13816case "$ac_dir" in
13817.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13818*)
13819  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13820  # A ".." for each directory in $ac_dir_suffix.
13821  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13822  case $ac_top_builddir_sub in
13823  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13824  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13825  esac ;;
13826esac
13827ac_abs_top_builddir=$ac_pwd
13828ac_abs_builddir=$ac_pwd$ac_dir_suffix
13829# for backward compatibility:
13830ac_top_builddir=$ac_top_build_prefix
13831
13832case $srcdir in
13833  .)  # We are building in place.
13834    ac_srcdir=.
13835    ac_top_srcdir=$ac_top_builddir_sub
13836    ac_abs_top_srcdir=$ac_pwd ;;
13837  [\\/]* | ?:[\\/]* )  # Absolute name.
13838    ac_srcdir=$srcdir$ac_dir_suffix;
13839    ac_top_srcdir=$srcdir
13840    ac_abs_top_srcdir=$srcdir ;;
13841  *) # Relative name.
13842    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13843    ac_top_srcdir=$ac_top_build_prefix$srcdir
13844    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13845esac
13846ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13847
13848
13849  case $ac_mode in
13850  :F)
13851  #
13852  # CONFIG_FILE
13853  #
13854
13855  case $INSTALL in
13856  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13857  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13858  esac
13859  ac_MKDIR_P=$MKDIR_P
13860  case $MKDIR_P in
13861  [\\/$]* | ?:[\\/]* ) ;;
13862  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13863  esac
13864_ACEOF
13865
13866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13867# If the template does not know about datarootdir, expand it.
13868# FIXME: This hack should be removed a few years after 2.60.
13869ac_datarootdir_hack=; ac_datarootdir_seen=
13870ac_sed_dataroot='
13871/datarootdir/ {
13872  p
13873  q
13874}
13875/@datadir@/p
13876/@docdir@/p
13877/@infodir@/p
13878/@localedir@/p
13879/@mandir@/p'
13880case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13881*datarootdir*) ac_datarootdir_seen=yes;;
13882*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13883  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13884$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13885_ACEOF
13886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887  ac_datarootdir_hack='
13888  s&@datadir@&$datadir&g
13889  s&@docdir@&$docdir&g
13890  s&@infodir@&$infodir&g
13891  s&@localedir@&$localedir&g
13892  s&@mandir@&$mandir&g
13893  s&\\\${datarootdir}&$datarootdir&g' ;;
13894esac
13895_ACEOF
13896
13897# Neutralize VPATH when `$srcdir' = `.'.
13898# Shell code in configure.ac might set extrasub.
13899# FIXME: do we really want to maintain this feature?
13900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13901ac_sed_extra="$ac_vpsub
13902$extrasub
13903_ACEOF
13904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13905:t
13906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13907s|@configure_input@|$ac_sed_conf_input|;t t
13908s&@top_builddir@&$ac_top_builddir_sub&;t t
13909s&@top_build_prefix@&$ac_top_build_prefix&;t t
13910s&@srcdir@&$ac_srcdir&;t t
13911s&@abs_srcdir@&$ac_abs_srcdir&;t t
13912s&@top_srcdir@&$ac_top_srcdir&;t t
13913s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13914s&@builddir@&$ac_builddir&;t t
13915s&@abs_builddir@&$ac_abs_builddir&;t t
13916s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13917s&@INSTALL@&$ac_INSTALL&;t t
13918s&@MKDIR_P@&$ac_MKDIR_P&;t t
13919$ac_datarootdir_hack
13920"
13921eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13922  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13923
13924test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13925  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13926  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13927      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13929which seems to be undefined.  Please make sure it is defined" >&5
13930$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13931which seems to be undefined.  Please make sure it is defined" >&2;}
13932
13933  rm -f "$ac_tmp/stdin"
13934  case $ac_file in
13935  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13936  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13937  esac \
13938  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13939 ;;
13940  :H)
13941  #
13942  # CONFIG_HEADER
13943  #
13944  if test x"$ac_file" != x-; then
13945    {
13946      $as_echo "/* $configure_input  */" \
13947      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13948    } >"$ac_tmp/config.h" \
13949      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13950    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13951      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13952$as_echo "$as_me: $ac_file is unchanged" >&6;}
13953    else
13954      rm -f "$ac_file"
13955      mv "$ac_tmp/config.h" "$ac_file" \
13956	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13957    fi
13958  else
13959    $as_echo "/* $configure_input  */" \
13960      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13961      || as_fn_error $? "could not create -" "$LINENO" 5
13962  fi
13963# Compute "$ac_file"'s index in $config_headers.
13964_am_arg="$ac_file"
13965_am_stamp_count=1
13966for _am_header in $config_headers :; do
13967  case $_am_header in
13968    $_am_arg | $_am_arg:* )
13969      break ;;
13970    * )
13971      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13972  esac
13973done
13974echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13975$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13976	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13977	 X"$_am_arg" : 'X\(//\)$' \| \
13978	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13979$as_echo X"$_am_arg" |
13980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13981	    s//\1/
13982	    q
13983	  }
13984	  /^X\(\/\/\)[^/].*/{
13985	    s//\1/
13986	    q
13987	  }
13988	  /^X\(\/\/\)$/{
13989	    s//\1/
13990	    q
13991	  }
13992	  /^X\(\/\).*/{
13993	    s//\1/
13994	    q
13995	  }
13996	  s/.*/./; q'`/stamp-h$_am_stamp_count
13997 ;;
13998
13999  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14000$as_echo "$as_me: executing $ac_file commands" >&6;}
14001 ;;
14002  esac
14003
14004
14005  case $ac_file$ac_mode in
14006    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14007  # Older Autoconf quotes --file arguments for eval, but not when files
14008  # are listed without --file.  Let's play safe and only enable the eval
14009  # if we detect the quoting.
14010  case $CONFIG_FILES in
14011  *\'*) eval set x "$CONFIG_FILES" ;;
14012  *)   set x $CONFIG_FILES ;;
14013  esac
14014  shift
14015  for mf
14016  do
14017    # Strip MF so we end up with the name of the file.
14018    mf=`echo "$mf" | sed -e 's/:.*$//'`
14019    # Check whether this is an Automake generated Makefile or not.
14020    # We used to match only the files named 'Makefile.in', but
14021    # some people rename them; so instead we look at the file content.
14022    # Grep'ing the first line is not enough: some people post-process
14023    # each Makefile.in and add a new line on top of each file to say so.
14024    # Grep'ing the whole file is not good either: AIX grep has a line
14025    # limit of 2048, but all sed's we know have understand at least 4000.
14026    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14027      dirpart=`$as_dirname -- "$mf" ||
14028$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14029	 X"$mf" : 'X\(//\)[^/]' \| \
14030	 X"$mf" : 'X\(//\)$' \| \
14031	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14032$as_echo X"$mf" |
14033    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14034	    s//\1/
14035	    q
14036	  }
14037	  /^X\(\/\/\)[^/].*/{
14038	    s//\1/
14039	    q
14040	  }
14041	  /^X\(\/\/\)$/{
14042	    s//\1/
14043	    q
14044	  }
14045	  /^X\(\/\).*/{
14046	    s//\1/
14047	    q
14048	  }
14049	  s/.*/./; q'`
14050    else
14051      continue
14052    fi
14053    # Extract the definition of DEPDIR, am__include, and am__quote
14054    # from the Makefile without running 'make'.
14055    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14056    test -z "$DEPDIR" && continue
14057    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14058    test -z "$am__include" && continue
14059    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14060    # Find all dependency output files, they are included files with
14061    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14062    # simplest approach to changing $(DEPDIR) to its actual value in the
14063    # expansion.
14064    for file in `sed -n "
14065      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14066	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14067      # Make sure the directory exists.
14068      test -f "$dirpart/$file" && continue
14069      fdir=`$as_dirname -- "$file" ||
14070$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071	 X"$file" : 'X\(//\)[^/]' \| \
14072	 X"$file" : 'X\(//\)$' \| \
14073	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14074$as_echo X"$file" |
14075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076	    s//\1/
14077	    q
14078	  }
14079	  /^X\(\/\/\)[^/].*/{
14080	    s//\1/
14081	    q
14082	  }
14083	  /^X\(\/\/\)$/{
14084	    s//\1/
14085	    q
14086	  }
14087	  /^X\(\/\).*/{
14088	    s//\1/
14089	    q
14090	  }
14091	  s/.*/./; q'`
14092      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14093      # echo "creating $dirpart/$file"
14094      echo '# dummy' > "$dirpart/$file"
14095    done
14096  done
14097}
14098 ;;
14099    "libtool":C)
14100
14101    # See if we are running on zsh, and set the options which allow our
14102    # commands through without removal of \ escapes.
14103    if test -n "${ZSH_VERSION+set}" ; then
14104      setopt NO_GLOB_SUBST
14105    fi
14106
14107    cfgfile="${ofile}T"
14108    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14109    $RM "$cfgfile"
14110
14111    cat <<_LT_EOF >> "$cfgfile"
14112#! $SHELL
14113
14114# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14115# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14118#
14119#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14120#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14121#                 Foundation, Inc.
14122#   Written by Gordon Matzigkeit, 1996
14123#
14124#   This file is part of GNU Libtool.
14125#
14126# GNU Libtool is free software; you can redistribute it and/or
14127# modify it under the terms of the GNU General Public License as
14128# published by the Free Software Foundation; either version 2 of
14129# the License, or (at your option) any later version.
14130#
14131# As a special exception to the GNU General Public License,
14132# if you distribute this file as part of a program or library that
14133# is built using GNU Libtool, you may include this file under the
14134# same distribution terms that you use for the rest of that program.
14135#
14136# GNU Libtool is distributed in the hope that it will be useful,
14137# but WITHOUT ANY WARRANTY; without even the implied warranty of
14138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14139# GNU General Public License for more details.
14140#
14141# You should have received a copy of the GNU General Public License
14142# along with GNU Libtool; see the file COPYING.  If not, a copy
14143# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14144# obtained by writing to the Free Software Foundation, Inc.,
14145# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14146
14147
14148# The names of the tagged configurations supported by this script.
14149available_tags=""
14150
14151# ### BEGIN LIBTOOL CONFIG
14152
14153# Which release of libtool.m4 was used?
14154macro_version=$macro_version
14155macro_revision=$macro_revision
14156
14157# Whether or not to build static libraries.
14158build_old_libs=$enable_static
14159
14160# Whether or not to build shared libraries.
14161build_libtool_libs=$enable_shared
14162
14163# What type of objects to build.
14164pic_mode=$pic_mode
14165
14166# Whether or not to optimize for fast installation.
14167fast_install=$enable_fast_install
14168
14169# Shell to use when invoking shell scripts.
14170SHELL=$lt_SHELL
14171
14172# An echo program that protects backslashes.
14173ECHO=$lt_ECHO
14174
14175# The PATH separator for the build system.
14176PATH_SEPARATOR=$lt_PATH_SEPARATOR
14177
14178# The host system.
14179host_alias=$host_alias
14180host=$host
14181host_os=$host_os
14182
14183# The build system.
14184build_alias=$build_alias
14185build=$build
14186build_os=$build_os
14187
14188# A sed program that does not truncate output.
14189SED=$lt_SED
14190
14191# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14192Xsed="\$SED -e 1s/^X//"
14193
14194# A grep program that handles long lines.
14195GREP=$lt_GREP
14196
14197# An ERE matcher.
14198EGREP=$lt_EGREP
14199
14200# A literal string matcher.
14201FGREP=$lt_FGREP
14202
14203# A BSD- or MS-compatible name lister.
14204NM=$lt_NM
14205
14206# Whether we need soft or hard links.
14207LN_S=$lt_LN_S
14208
14209# What is the maximum length of a command?
14210max_cmd_len=$max_cmd_len
14211
14212# Object file suffix (normally "o").
14213objext=$ac_objext
14214
14215# Executable file suffix (normally "").
14216exeext=$exeext
14217
14218# whether the shell understands "unset".
14219lt_unset=$lt_unset
14220
14221# turn spaces into newlines.
14222SP2NL=$lt_lt_SP2NL
14223
14224# turn newlines into spaces.
14225NL2SP=$lt_lt_NL2SP
14226
14227# convert \$build file names to \$host format.
14228to_host_file_cmd=$lt_cv_to_host_file_cmd
14229
14230# convert \$build files to toolchain format.
14231to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14232
14233# An object symbol dumper.
14234OBJDUMP=$lt_OBJDUMP
14235
14236# Method to check whether dependent libraries are shared objects.
14237deplibs_check_method=$lt_deplibs_check_method
14238
14239# Command to use when deplibs_check_method = "file_magic".
14240file_magic_cmd=$lt_file_magic_cmd
14241
14242# How to find potential files when deplibs_check_method = "file_magic".
14243file_magic_glob=$lt_file_magic_glob
14244
14245# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14246want_nocaseglob=$lt_want_nocaseglob
14247
14248# DLL creation program.
14249DLLTOOL=$lt_DLLTOOL
14250
14251# Command to associate shared and link libraries.
14252sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14253
14254# The archiver.
14255AR=$lt_AR
14256
14257# Flags to create an archive.
14258AR_FLAGS=$lt_AR_FLAGS
14259
14260# How to feed a file listing to the archiver.
14261archiver_list_spec=$lt_archiver_list_spec
14262
14263# A symbol stripping program.
14264STRIP=$lt_STRIP
14265
14266# Commands used to install an old-style archive.
14267RANLIB=$lt_RANLIB
14268old_postinstall_cmds=$lt_old_postinstall_cmds
14269old_postuninstall_cmds=$lt_old_postuninstall_cmds
14270
14271# Whether to use a lock for old archive extraction.
14272lock_old_archive_extraction=$lock_old_archive_extraction
14273
14274# A C compiler.
14275LTCC=$lt_CC
14276
14277# LTCC compiler flags.
14278LTCFLAGS=$lt_CFLAGS
14279
14280# Take the output of nm and produce a listing of raw symbols and C names.
14281global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14282
14283# Transform the output of nm in a proper C declaration.
14284global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14285
14286# Transform the output of nm in a C name address pair.
14287global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14288
14289# Transform the output of nm in a C name address pair when lib prefix is needed.
14290global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14291
14292# Specify filename containing input files for \$NM.
14293nm_file_list_spec=$lt_nm_file_list_spec
14294
14295# The root where to search for dependent libraries,and in which our libraries should be installed.
14296lt_sysroot=$lt_sysroot
14297
14298# The name of the directory that contains temporary libtool files.
14299objdir=$objdir
14300
14301# Used to examine libraries when file_magic_cmd begins with "file".
14302MAGIC_CMD=$MAGIC_CMD
14303
14304# Must we lock files when doing compilation?
14305need_locks=$lt_need_locks
14306
14307# Manifest tool.
14308MANIFEST_TOOL=$lt_MANIFEST_TOOL
14309
14310# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14311DSYMUTIL=$lt_DSYMUTIL
14312
14313# Tool to change global to local symbols on Mac OS X.
14314NMEDIT=$lt_NMEDIT
14315
14316# Tool to manipulate fat objects and archives on Mac OS X.
14317LIPO=$lt_LIPO
14318
14319# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14320OTOOL=$lt_OTOOL
14321
14322# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14323OTOOL64=$lt_OTOOL64
14324
14325# Old archive suffix (normally "a").
14326libext=$libext
14327
14328# Shared library suffix (normally ".so").
14329shrext_cmds=$lt_shrext_cmds
14330
14331# The commands to extract the exported symbol list from a shared archive.
14332extract_expsyms_cmds=$lt_extract_expsyms_cmds
14333
14334# Variables whose values should be saved in libtool wrapper scripts and
14335# restored at link time.
14336variables_saved_for_relink=$lt_variables_saved_for_relink
14337
14338# Do we need the "lib" prefix for modules?
14339need_lib_prefix=$need_lib_prefix
14340
14341# Do we need a version for libraries?
14342need_version=$need_version
14343
14344# Library versioning type.
14345version_type=$version_type
14346
14347# Shared library runtime path variable.
14348runpath_var=$runpath_var
14349
14350# Shared library path variable.
14351shlibpath_var=$shlibpath_var
14352
14353# Is shlibpath searched before the hard-coded library search path?
14354shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14355
14356# Format of library name prefix.
14357libname_spec=$lt_libname_spec
14358
14359# List of archive names.  First name is the real one, the rest are links.
14360# The last name is the one that the linker finds with -lNAME
14361library_names_spec=$lt_library_names_spec
14362
14363# The coded name of the library, if different from the real name.
14364soname_spec=$lt_soname_spec
14365
14366# Permission mode override for installation of shared libraries.
14367install_override_mode=$lt_install_override_mode
14368
14369# Command to use after installation of a shared archive.
14370postinstall_cmds=$lt_postinstall_cmds
14371
14372# Command to use after uninstallation of a shared archive.
14373postuninstall_cmds=$lt_postuninstall_cmds
14374
14375# Commands used to finish a libtool library installation in a directory.
14376finish_cmds=$lt_finish_cmds
14377
14378# As "finish_cmds", except a single script fragment to be evaled but
14379# not shown.
14380finish_eval=$lt_finish_eval
14381
14382# Whether we should hardcode library paths into libraries.
14383hardcode_into_libs=$hardcode_into_libs
14384
14385# Compile-time system search path for libraries.
14386sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14387
14388# Run-time system search path for libraries.
14389sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14390
14391# Whether dlopen is supported.
14392dlopen_support=$enable_dlopen
14393
14394# Whether dlopen of programs is supported.
14395dlopen_self=$enable_dlopen_self
14396
14397# Whether dlopen of statically linked programs is supported.
14398dlopen_self_static=$enable_dlopen_self_static
14399
14400# Commands to strip libraries.
14401old_striplib=$lt_old_striplib
14402striplib=$lt_striplib
14403
14404
14405# The linker used to build libraries.
14406LD=$lt_LD
14407
14408# How to create reloadable object files.
14409reload_flag=$lt_reload_flag
14410reload_cmds=$lt_reload_cmds
14411
14412# Commands used to build an old-style archive.
14413old_archive_cmds=$lt_old_archive_cmds
14414
14415# A language specific compiler.
14416CC=$lt_compiler
14417
14418# Is the compiler the GNU compiler?
14419with_gcc=$GCC
14420
14421# Compiler flag to turn off builtin functions.
14422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14423
14424# Additional compiler flags for building library objects.
14425pic_flag=$lt_lt_prog_compiler_pic
14426
14427# How to pass a linker flag through the compiler.
14428wl=$lt_lt_prog_compiler_wl
14429
14430# Compiler flag to prevent dynamic linking.
14431link_static_flag=$lt_lt_prog_compiler_static
14432
14433# Does compiler simultaneously support -c and -o options?
14434compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14435
14436# Whether or not to add -lc for building shared libraries.
14437build_libtool_need_lc=$archive_cmds_need_lc
14438
14439# Whether or not to disallow shared libs when runtime libs are static.
14440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14441
14442# Compiler flag to allow reflexive dlopens.
14443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14444
14445# Compiler flag to generate shared objects directly from archives.
14446whole_archive_flag_spec=$lt_whole_archive_flag_spec
14447
14448# Whether the compiler copes with passing no objects directly.
14449compiler_needs_object=$lt_compiler_needs_object
14450
14451# Create an old-style archive from a shared archive.
14452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14453
14454# Create a temporary old-style archive to link instead of a shared archive.
14455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14456
14457# Commands used to build a shared archive.
14458archive_cmds=$lt_archive_cmds
14459archive_expsym_cmds=$lt_archive_expsym_cmds
14460
14461# Commands used to build a loadable module if different from building
14462# a shared archive.
14463module_cmds=$lt_module_cmds
14464module_expsym_cmds=$lt_module_expsym_cmds
14465
14466# Whether we are building with GNU ld or not.
14467with_gnu_ld=$lt_with_gnu_ld
14468
14469# Flag that allows shared libraries with undefined symbols to be built.
14470allow_undefined_flag=$lt_allow_undefined_flag
14471
14472# Flag that enforces no undefined symbols.
14473no_undefined_flag=$lt_no_undefined_flag
14474
14475# Flag to hardcode \$libdir into a binary during linking.
14476# This must work even if \$libdir does not exist
14477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14478
14479# Whether we need a single "-rpath" flag with a separated argument.
14480hardcode_libdir_separator=$lt_hardcode_libdir_separator
14481
14482# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14483# DIR into the resulting binary.
14484hardcode_direct=$hardcode_direct
14485
14486# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14487# DIR into the resulting binary and the resulting library dependency is
14488# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14489# library is relocated.
14490hardcode_direct_absolute=$hardcode_direct_absolute
14491
14492# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14493# into the resulting binary.
14494hardcode_minus_L=$hardcode_minus_L
14495
14496# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14497# into the resulting binary.
14498hardcode_shlibpath_var=$hardcode_shlibpath_var
14499
14500# Set to "yes" if building a shared library automatically hardcodes DIR
14501# into the library and all subsequent libraries and executables linked
14502# against it.
14503hardcode_automatic=$hardcode_automatic
14504
14505# Set to yes if linker adds runtime paths of dependent libraries
14506# to runtime path list.
14507inherit_rpath=$inherit_rpath
14508
14509# Whether libtool must link a program against all its dependency libraries.
14510link_all_deplibs=$link_all_deplibs
14511
14512# Set to "yes" if exported symbols are required.
14513always_export_symbols=$always_export_symbols
14514
14515# The commands to list exported symbols.
14516export_symbols_cmds=$lt_export_symbols_cmds
14517
14518# Symbols that should not be listed in the preloaded symbols.
14519exclude_expsyms=$lt_exclude_expsyms
14520
14521# Symbols that must always be exported.
14522include_expsyms=$lt_include_expsyms
14523
14524# Commands necessary for linking programs (against libraries) with templates.
14525prelink_cmds=$lt_prelink_cmds
14526
14527# Commands necessary for finishing linking programs.
14528postlink_cmds=$lt_postlink_cmds
14529
14530# Specify filename containing input files.
14531file_list_spec=$lt_file_list_spec
14532
14533# How to hardcode a shared library path into an executable.
14534hardcode_action=$hardcode_action
14535
14536# ### END LIBTOOL CONFIG
14537
14538_LT_EOF
14539
14540  case $host_os in
14541  aix3*)
14542    cat <<\_LT_EOF >> "$cfgfile"
14543# AIX sometimes has problems with the GCC collect2 program.  For some
14544# reason, if we set the COLLECT_NAMES environment variable, the problems
14545# vanish in a puff of smoke.
14546if test "X${COLLECT_NAMES+set}" != Xset; then
14547  COLLECT_NAMES=
14548  export COLLECT_NAMES
14549fi
14550_LT_EOF
14551    ;;
14552  esac
14553
14554
14555ltmain="$ac_aux_dir/ltmain.sh"
14556
14557
14558  # We use sed instead of cat because bash on DJGPP gets confused if
14559  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14560  # text mode, it properly converts lines to CR/LF.  This bash problem
14561  # is reportedly fixed, but why not run on old versions too?
14562  sed '$q' "$ltmain" >> "$cfgfile" \
14563     || (rm -f "$cfgfile"; exit 1)
14564
14565  if test x"$xsi_shell" = xyes; then
14566  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14567func_dirname ()\
14568{\
14569\    case ${1} in\
14570\      */*) func_dirname_result="${1%/*}${2}" ;;\
14571\      *  ) func_dirname_result="${3}" ;;\
14572\    esac\
14573} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14574  && mv -f "$cfgfile.tmp" "$cfgfile" \
14575    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14576test 0 -eq $? || _lt_function_replace_fail=:
14577
14578
14579  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14580func_basename ()\
14581{\
14582\    func_basename_result="${1##*/}"\
14583} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14584  && mv -f "$cfgfile.tmp" "$cfgfile" \
14585    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586test 0 -eq $? || _lt_function_replace_fail=:
14587
14588
14589  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14590func_dirname_and_basename ()\
14591{\
14592\    case ${1} in\
14593\      */*) func_dirname_result="${1%/*}${2}" ;;\
14594\      *  ) func_dirname_result="${3}" ;;\
14595\    esac\
14596\    func_basename_result="${1##*/}"\
14597} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14598  && mv -f "$cfgfile.tmp" "$cfgfile" \
14599    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14600test 0 -eq $? || _lt_function_replace_fail=:
14601
14602
14603  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14604func_stripname ()\
14605{\
14606\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14607\    # positional parameters, so assign one to ordinary parameter first.\
14608\    func_stripname_result=${3}\
14609\    func_stripname_result=${func_stripname_result#"${1}"}\
14610\    func_stripname_result=${func_stripname_result%"${2}"}\
14611} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14612  && mv -f "$cfgfile.tmp" "$cfgfile" \
14613    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14614test 0 -eq $? || _lt_function_replace_fail=:
14615
14616
14617  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14618func_split_long_opt ()\
14619{\
14620\    func_split_long_opt_name=${1%%=*}\
14621\    func_split_long_opt_arg=${1#*=}\
14622} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14623  && mv -f "$cfgfile.tmp" "$cfgfile" \
14624    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14625test 0 -eq $? || _lt_function_replace_fail=:
14626
14627
14628  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14629func_split_short_opt ()\
14630{\
14631\    func_split_short_opt_arg=${1#??}\
14632\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14633} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14634  && mv -f "$cfgfile.tmp" "$cfgfile" \
14635    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14636test 0 -eq $? || _lt_function_replace_fail=:
14637
14638
14639  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14640func_lo2o ()\
14641{\
14642\    case ${1} in\
14643\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14644\      *)    func_lo2o_result=${1} ;;\
14645\    esac\
14646} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14647  && mv -f "$cfgfile.tmp" "$cfgfile" \
14648    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649test 0 -eq $? || _lt_function_replace_fail=:
14650
14651
14652  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14653func_xform ()\
14654{\
14655    func_xform_result=${1%.*}.lo\
14656} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14657  && mv -f "$cfgfile.tmp" "$cfgfile" \
14658    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659test 0 -eq $? || _lt_function_replace_fail=:
14660
14661
14662  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14663func_arith ()\
14664{\
14665    func_arith_result=$(( $* ))\
14666} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14667  && mv -f "$cfgfile.tmp" "$cfgfile" \
14668    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14669test 0 -eq $? || _lt_function_replace_fail=:
14670
14671
14672  sed -e '/^func_len ()$/,/^} # func_len /c\
14673func_len ()\
14674{\
14675    func_len_result=${#1}\
14676} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14677  && mv -f "$cfgfile.tmp" "$cfgfile" \
14678    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14679test 0 -eq $? || _lt_function_replace_fail=:
14680
14681fi
14682
14683if test x"$lt_shell_append" = xyes; then
14684  sed -e '/^func_append ()$/,/^} # func_append /c\
14685func_append ()\
14686{\
14687    eval "${1}+=\\${2}"\
14688} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14689  && mv -f "$cfgfile.tmp" "$cfgfile" \
14690    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691test 0 -eq $? || _lt_function_replace_fail=:
14692
14693
14694  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14695func_append_quoted ()\
14696{\
14697\    func_quote_for_eval "${2}"\
14698\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14699} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14700  && mv -f "$cfgfile.tmp" "$cfgfile" \
14701    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14702test 0 -eq $? || _lt_function_replace_fail=:
14703
14704
14705  # Save a `func_append' function call where possible by direct use of '+='
14706  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14707    && mv -f "$cfgfile.tmp" "$cfgfile" \
14708      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14709  test 0 -eq $? || _lt_function_replace_fail=:
14710else
14711  # Save a `func_append' function call even when '+=' is not available
14712  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14713    && mv -f "$cfgfile.tmp" "$cfgfile" \
14714      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715  test 0 -eq $? || _lt_function_replace_fail=:
14716fi
14717
14718if test x"$_lt_function_replace_fail" = x":"; then
14719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14720$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14721fi
14722
14723
14724   mv -f "$cfgfile" "$ofile" ||
14725    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14726  chmod +x "$ofile"
14727
14728 ;;
14729    "pamgdb":F) chmod +x pamgdb ;;
14730    "mkpkgng":F) chmod +x mkpkgng ;;
14731
14732  esac
14733done # for ac_tag
14734
14735
14736as_fn_exit 0
14737_ACEOF
14738ac_clean_files=$ac_clean_files_save
14739
14740test $ac_write_fail = 0 ||
14741  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14742
14743
14744# configure is writing to config.log, and then calls config.status.
14745# config.status does its own redirection, appending to config.log.
14746# Unfortunately, on DOS this fails, as config.log is still kept open
14747# by configure, so config.status won't be able to write to it; its
14748# output is simply discarded.  So we exec the FD to /dev/null,
14749# effectively closing config.log, so it can be properly (re)opened and
14750# appended to by config.status.  When coming back to configure, we
14751# need to make the FD available again.
14752if test "$no_create" != yes; then
14753  ac_cs_success=:
14754  ac_config_status_args=
14755  test "$silent" = yes &&
14756    ac_config_status_args="$ac_config_status_args --quiet"
14757  exec 5>/dev/null
14758  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14759  exec 5>>config.log
14760  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14761  # would make configure fail if this is the last instruction.
14762  $ac_cs_success || as_fn_exit 1
14763fi
14764if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14765  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14766$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14767fi
14768
14769